CN108174376B - Method and system for preventing interference - Google Patents

Method and system for preventing interference Download PDF

Info

Publication number
CN108174376B
CN108174376B CN201711453468.6A CN201711453468A CN108174376B CN 108174376 B CN108174376 B CN 108174376B CN 201711453468 A CN201711453468 A CN 201711453468A CN 108174376 B CN108174376 B CN 108174376B
Authority
CN
China
Prior art keywords
mobile terminal
bluetooth
upper computer
module
key device
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
CN201711453468.6A
Other languages
Chinese (zh)
Other versions
CN108174376A (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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201711453468.6A priority Critical patent/CN108174376B/en
Publication of CN108174376A publication Critical patent/CN108174376A/en
Application granted granted Critical
Publication of CN108174376B publication Critical patent/CN108174376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a system for preventing interference, and relates to the field of electronic products. The method comprises the following steps: the upper computer is connected with the mobile terminal and the Bluetooth intelligent secret key device, and when the insertion event of the Bluetooth intelligent secret key device is monitored, the upper computer sends the acquired Bluetooth intelligent secret key device identification to the mobile terminal; the Bluetooth intelligent key device broadcasts the Bluetooth intelligent key device identification, and the mobile terminal searches the Bluetooth intelligent key device with the received Bluetooth intelligent key device identification; the Bluetooth intelligent secret key equipment is connected with the mobile terminal to receive the function test data; when the function test data is received, the Bluetooth intelligent secret key equipment generates state test data, the generated state test data is sent to the upper computer, the upper computer judges whether the received state test data is the same as the preset successful data, if yes, the test successful information is displayed, and if not, the test failed information is displayed.

Description

Method and system for preventing interference
Technical Field
The present invention relates to the field of electronic products, and more particularly, to a system and a device for preventing interference.
Background
Bluetooth is a wireless technical standard, and can realize short-distance data exchange among fixed equipment, mobile equipment and a building personal area network; bluetooth technology is useful for the transmission of information between two or more devices in close proximity under low bandwidth conditions; bluetooth is commonly used for telephony voice transmissions (e.g., bluetooth headsets) or byte data transmissions (file transmissions) for handheld computer devices. Bluetooth is found in many products such as telephones, tablets, media players, robotic systems, handheld devices, laptops, game pads, and some high-quality headsets, modems, watches, etc.
At present, companies producing bluetooth smart key devices have the following problems in the production detection of bluetooth smart key device products: 1. when detecting the Bluetooth intelligent secret key equipment without the shell, a detection tool or a detection person cannot acquire the Bluetooth name of the Bluetooth intelligent secret key equipment, and the problem of mutual interference among a plurality of Bluetooth intelligent secret key equipment exists when simultaneously detecting a plurality of Bluetooth intelligent secret key equipment; 2. when detecting the bluetooth intelligent key equipment after installing the shell, the measurement personnel need carry out corresponding selection according to the serial number on the shell and just can detect, and detection efficiency is relatively low.
Disclosure of Invention
The present invention is directed to overcome the deficiencies of the prior art and to provide a method and system for preventing interference.
The invention provides a method for preventing interference, which is characterized in that an upper computer is connected with a mobile terminal and is connected with Bluetooth intelligent key equipment through a USB interface, and the method comprises the following steps:
step R1: when the upper computer monitors an insertion event of the Bluetooth intelligent key device, the upper computer acquires a Bluetooth intelligent key device identifier and sends the acquired Bluetooth intelligent key device identifier to a mobile terminal, wherein the Bluetooth intelligent key device identifier is used for connecting the Bluetooth intelligent key device with the mobile terminal;
step R2: the mobile terminal receives the Bluetooth intelligent key equipment identification sent by the upper computer;
step R3: the mobile terminal searches the Bluetooth intelligent key equipment with the received Bluetooth intelligent key equipment identification, judges whether the Bluetooth intelligent key equipment with the received Bluetooth intelligent key equipment identification is searched, if so, executes the step R4, otherwise, finishes;
step R4: the Bluetooth intelligent key equipment is connected with the mobile terminal and receives the function test data sent by the mobile terminal;
step R5: when the Bluetooth intelligent secret key equipment receives the function test data, the Bluetooth intelligent secret key equipment generates state test data and sends the generated state test data to the upper computer;
step R6: when the upper computer receives the state test data, the upper computer judges whether the received state test data is the same as preset successful data, if so, test success information is displayed, and otherwise, test failure information is displayed;
the method further comprises a step T before the step R3: and the Bluetooth intelligent secret key equipment broadcasts the Bluetooth intelligent secret key equipment identification.
The present invention also provides a system for preventing interference, comprising: the Bluetooth intelligent key device comprises an upper computer, a mobile terminal and Bluetooth intelligent key equipment, and is characterized in that the upper computer comprises a USB interface, a monitoring module, a first sending module, a first receiving module, a first obtaining module, a first judging module and a display module;
the mobile terminal comprises a second receiving module, a second sending module, a searching module, a second judging module and a first ending module;
the Bluetooth intelligent key device comprises a first generating module, a third sending module, a third receiving module and a broadcasting module;
the USB interface is used for connecting the upper computer with the Bluetooth intelligent key device and transmitting data between the upper computer and the Bluetooth intelligent key device;
the monitoring module is used for monitoring an insertion event of the Bluetooth intelligent secret key device;
the first acquisition module is used for acquiring a Bluetooth intelligent key device identifier when the monitoring module monitors an insertion event of the Bluetooth intelligent key device, wherein the Bluetooth intelligent key device identifier is used for connecting the Bluetooth intelligent key device with the mobile terminal;
the first sending module is configured to send the identifier of the bluetooth intelligent key device acquired by the first acquiring module to the mobile terminal;
the second receiving module is configured to receive the identifier of the bluetooth intelligent key device sent by the first sending module;
the broadcast module is used for broadcasting the Bluetooth intelligent secret key equipment identification;
the searching module is used for searching the Bluetooth intelligent secret key equipment with the Bluetooth intelligent secret key equipment identification received by the second receiving module;
the second judging module is configured to judge whether the searching module searches for the bluetooth smart key device having the bluetooth smart key device identifier received by the second receiving module;
the first termination module is configured to terminate the search when the second determination module determines that the search module does not search for the bluetooth smart key device having the bluetooth smart key device identifier received by the second reception module;
the second sending module is configured to send function test data to the bluetooth smart key device by connecting with the bluetooth smart key device when the second determining module determines that the search module searches for the bluetooth smart key device having the received bluetooth smart key device identifier;
the third receiving module is used for receiving the function test data sent by the second sending module by connecting with the mobile terminal;
the first generating module is configured to generate state test data when the third receiving module receives the functional test data sent by the second sending module;
the third sending module is used for sending the state test data generated by the first generating module to the upper computer;
the first receiving module is configured to receive the status test data sent by the third sending module;
the first judging module is configured to, when the first receiving module receives the status test data sent by the third sending module, judge whether the received status test data is the same as preset success data;
the display module is used for displaying the test success information when the first judging module judges that the received state test data is the same as the preset success data; and the first judging module is also used for displaying test failure information when judging that the received state test data is different from the preset success data.
The present invention also provides an upper computer in a system for preventing interference, including: the device comprises a USB interface, a monitoring module, a first sending module, a first receiving module, a first obtaining module, a first judging module and a display module;
the USB interface is used for connecting the upper computer with the Bluetooth intelligent key device and transmitting data between the upper computer and the Bluetooth intelligent key device;
the monitoring module is used for monitoring an insertion event of the Bluetooth intelligent secret key device;
the first acquisition module is used for acquiring a Bluetooth intelligent key device identifier when the monitoring module monitors an insertion event of the Bluetooth intelligent key device, wherein the Bluetooth intelligent key device identifier is used for connecting the Bluetooth intelligent key device with the mobile terminal;
the first sending module is used for sending the Bluetooth intelligent secret key equipment identifier obtained by the first obtaining module to a mobile terminal;
the first receiving module is configured to receive the status test data sent by the bluetooth intelligent key device;
the first judging module is used for judging whether the received state test data is the same as preset successful data or not when the first receiving module receives the state test data;
the display module is used for displaying the test success information when the first judging module judges that the received state test data is the same as the preset success data; and the first judging module is also used for displaying test failure information when judging that the received state test data is different from the preset success data.
The invention also provides a working method of the upper computer in the system for preventing the interference, the upper computer is connected with the mobile terminal and is connected with the Bluetooth intelligent key device through the USB interface, and the method is characterized by comprising the following steps:
step S1: when the upper computer monitors an insertion event of the Bluetooth intelligent key device, the upper computer acquires a Bluetooth intelligent key device identifier and sends the acquired Bluetooth intelligent key device identifier to a mobile terminal, wherein the Bluetooth intelligent key device identifier is used for connecting the Bluetooth intelligent key device with the mobile terminal;
step S2: and when the upper computer receives the state test data sent by the Bluetooth intelligent key equipment, the upper computer judges whether the received state test data is the same as preset successful data, if so, test success information is displayed, and otherwise, test failure information is displayed.
The present invention also provides a mobile terminal in a system for preventing interference, including: the device comprises a second receiving module, a second sending module, a searching module and a second judging module;
the second receiving module is used for receiving the Bluetooth intelligent secret key equipment identification sent by the upper computer;
the searching module is used for searching the Bluetooth intelligent secret key equipment with the Bluetooth intelligent secret key equipment identification received by the second receiving module;
the second judging module is used for judging whether the searching module searches the Bluetooth intelligent key device with the Bluetooth intelligent key device identification received by the second receiving module;
and the second sending module is configured to send the function test data to the bluetooth smart key device by connecting with the mobile terminal when the second determining module determines that the search module searches for the bluetooth smart key device having the received bluetooth smart key device identifier.
The invention also provides a working method of the mobile terminal in the system for preventing the interference, the mobile terminal is connected with an upper computer, the upper computer is connected with the Bluetooth intelligent key device through a USB interface, and the method is characterized by comprising the following steps:
step N1: the mobile terminal receives the Bluetooth intelligent key equipment identification sent by the upper computer;
step N2: the mobile terminal searches the Bluetooth intelligent key equipment with the received Bluetooth intelligent key equipment identification, judges whether the Bluetooth intelligent key equipment with the received Bluetooth intelligent key equipment identification is searched, if so, executes the step N3, otherwise, finishes;
step N3: and the mobile terminal is connected with the Bluetooth intelligent key device and sends function test data to the intelligent Bluetooth key device.
The present invention also provides a bluetooth smart key device in a system for preventing interference, including: the system comprises a first generating module, a third sending module, a third receiving module and a broadcasting module;
the broadcast module is used for broadcasting the Bluetooth intelligent secret key equipment identification;
the third receiving module is used for receiving the function test data sent by the mobile terminal by connecting with the mobile terminal;
the first generating module is used for generating state test data when the third receiving module receives the function test data sent by the mobile terminal;
and the third sending module is used for sending the state test data generated by the first generating module to an upper computer.
The invention also provides a working method of the Bluetooth intelligent key device in the system for preventing the interference, the Bluetooth intelligent key device is connected with an upper computer through a USB interface, the upper computer is connected with a mobile terminal, and the method is characterized by comprising the following steps:
step M1: the Bluetooth intelligent key equipment broadcasts a Bluetooth intelligent key equipment identifier;
step M2: the Bluetooth intelligent key equipment is connected with the mobile terminal and receives the function test data sent by the mobile terminal;
step M3: when the Bluetooth intelligent secret key equipment receives the function test data, the Bluetooth intelligent secret key equipment generates state test data and sends the generated state test data to the upper computer.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
Drawings
Fig. 1 is a flowchart of a working method of an upper computer for preventing interference according to a second embodiment of the present invention;
fig. 2 is a flowchart of a method for preventing a mobile terminal from generating interference according to a third embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for operating a Bluetooth smart key device for preventing interference according to a fourth embodiment of the present invention;
fig. 4 is a flowchart of a method for preventing interference according to a fifth embodiment of the present invention;
fig. 5 is a flowchart of a working method of the upper computer in the method for preventing interference according to the sixth embodiment of the present invention;
fig. 6 is a flowchart of a method of operating a mobile terminal in a method for preventing interference according to a sixth embodiment of the present invention;
fig. 7 is a flowchart of a method for operating a bluetooth smart key device in a method for preventing interference according to a sixth embodiment of the present invention;
fig. 8 is a flowchart illustrating detailed steps of a bluetooth monitoring operation performed by an upper computer according to a seventh embodiment of the present invention;
fig. 9 is a block diagram of a system for preventing interference according to an eighth embodiment of the present invention;
fig. 10 is a block diagram of an upper computer for preventing interference according to a ninth embodiment of the present invention;
fig. 11 is a block diagram of a mobile terminal for preventing interference according to a tenth embodiment of the present invention;
fig. 12 is a block diagram of a bluetooth smart key device for preventing interference according to an eleventh embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The embodiment of the invention provides a method for preventing interference, wherein an upper computer is connected with a mobile terminal and is connected with Bluetooth intelligent key equipment through a USB interface, and the method comprises the following steps:
step R1: when the upper computer monitors an insertion event of the Bluetooth intelligent secret key equipment, the upper computer acquires a Bluetooth intelligent secret key equipment identifier and sends the acquired Bluetooth intelligent secret key equipment identifier to the mobile terminal, and the Bluetooth intelligent secret key equipment identifier is used for connecting the Bluetooth intelligent secret key equipment with the mobile terminal;
further, in step R1 in this embodiment, the upper computer obtains the identifier of the bluetooth smart key device, specifically:
step A: the upper computer generates a Bluetooth intelligent key device identification of the Bluetooth intelligent key device according to a preset rule, and sets the generated Bluetooth intelligent key device identification to the Bluetooth intelligent key device.
Further, step a in this embodiment specifically includes: the upper computer generates a Bluetooth name of the Bluetooth intelligent secret key equipment according to the serial number of the hub, the port serial number on the hub and the machine number, and sets the generated Bluetooth intelligent secret key equipment identification to the Bluetooth intelligent secret key equipment through the USB interface.
Further, in step R1 in this embodiment, the monitoring, by the upper computer, of the insertion event of the bluetooth smart key device specifically includes:
step D1: when the upper computer monitors the insertion information according to the acquired file descriptor for the device manager, the upper computer acquires a device object of the device corresponding to the monitored insertion information, judges whether the acquired device object is a USB device, if so, executes the step D2, otherwise, ends;
step D2: the upper computer acquires the type attribute of the equipment, judges whether the equipment is hub equipment or not according to the acquired type attribute of the equipment, if so, the operation is finished, otherwise, the step D3 is executed;
step D3: the upper computer judges the operation type of the equipment, if the operation type is the plug-in operation, the step D4 is executed, if the operation type is the plug-out operation, the operation is finished;
step D4: the upper computer acquires the serial numbers of the connection ports of the hub and the upper computer, acquires the serial numbers of the connection ports of the hub and the equipment path of the equipment, and monitors the insertion event of the Bluetooth intelligent key equipment according to the serial numbers of the connection ports of the hub and the upper computer, the serial numbers of the connection ports of the hub, the acquired equipment path and the operation type.
Step R2: the mobile terminal receives a Bluetooth intelligent secret key device identification sent by an upper computer;
step R3: the mobile terminal searches the Bluetooth intelligent key equipment with the received Bluetooth intelligent key equipment identification, judges whether the Bluetooth intelligent key equipment with the received Bluetooth intelligent key equipment identification is searched, if so, executes the step R4, otherwise, finishes;
step R4: the Bluetooth intelligent secret key equipment is connected with the mobile terminal and receives the function test data sent by the mobile terminal;
step R5: when the Bluetooth intelligent secret key equipment receives the function test data, the Bluetooth intelligent secret key equipment generates state test data and sends the generated state test data to an upper computer;
step R6: when the upper computer receives the state test data, the upper computer judges whether the received state test data is the same as the preset successful data, if so, the upper computer displays test success information, and otherwise, the upper computer displays test failure information;
further, step R5 in this embodiment is specifically: when the Bluetooth intelligent secret key equipment receives the function test data, the Bluetooth intelligent secret key equipment generates state test data and sends the generated state test data to the mobile terminal; the mobile terminal receives state test data sent by the Bluetooth intelligent key device and sends the received state test data to the upper computer;
the step R6 specifically includes: when the upper computer receives the state test data sent by the mobile terminal, the upper computer judges whether the received state test data is the same as the preset successful data, if so, the upper computer displays the test successful information, and otherwise, the upper computer displays the test failed information.
Further, in step R1 in this embodiment, the upper computer acquires the identifier of the bluetooth smart key device, and sends the acquired identifier of the bluetooth smart key device to the mobile terminal, which specifically includes:
and B: and the upper computer acquires the Bluetooth intelligent key equipment identification from the Bluetooth intelligent key equipment and sends the acquired Bluetooth intelligent key equipment identification to the mobile terminal.
Further, step B in this embodiment specifically includes: and the upper computer acquires the MAC address from the Bluetooth intelligent key equipment and sends the acquired MAC address to the mobile terminal.
The method also comprises a step T before the step R3: the bluetooth smart key device broadcasts a bluetooth smart key device identification.
Further, step T in this embodiment specifically is: the Bluetooth intelligent secret key equipment receives the Bluetooth name of the Bluetooth intelligent secret key equipment set by the upper computer through the USB interface, and the Bluetooth intelligent secret key equipment broadcasts the received Bluetooth name of the Bluetooth intelligent secret key equipment.
Further, step T in this embodiment specifically is: the Bluetooth intelligent secret key device broadcasts the preset MAC address of the Bluetooth intelligent secret key device.
Further, in R1 in this embodiment, when the host computer monitors an insertion event of the bluetooth smart key device, before the host computer obtains an identifier of the bluetooth smart key device, the method further includes: the upper computer updates the first mobile terminal list according to the second mobile terminal list;
in step R6, the method further includes, after displaying the test success information and the test failure information:
step R7: and the upper computer deletes the list information corresponding to the mobile terminal in the first mobile terminal list from the second mobile terminal list.
Further, the updating, by the upper computer in this embodiment, the first mobile terminal list according to the second mobile terminal list specifically includes:
step C1: the upper computer judges whether all list information in the second mobile terminal list exists in the first mobile terminal list, if so, the step C3 is executed, otherwise, the step C2 is executed;
step C2: the upper computer deletes list information of the second mobile terminal list, which does not exist in the first mobile terminal list, from the second mobile terminal list, and executes step C3;
step C3: the upper computer deletes list information of the second mobile terminal list in the first mobile terminal list, and executes the step C4;
step C4: and the upper computer judges whether the first mobile terminal list is empty, adds one to the operation times when the first mobile terminal list is empty, judges whether the added operation times is greater than an operation error time threshold value, if so, reports an error, otherwise, returns to the step R1, and executes the step R1 when the first mobile terminal list is not empty.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
Example two
An embodiment of the present invention provides a working method of an upper computer for preventing interference, where the upper computer is connected to a mobile terminal and is connected to a bluetooth smart key device through a USB interface, as shown in fig. 1, the working method includes:
step S1: when the upper computer monitors an insertion event of the Bluetooth intelligent secret key equipment, the upper computer acquires a Bluetooth intelligent secret key equipment identifier and sends the acquired Bluetooth intelligent secret key equipment identifier to the mobile terminal, and the Bluetooth intelligent secret key equipment identifier is used for connecting the Bluetooth intelligent secret key equipment with the mobile terminal;
further, in this embodiment, in step S1, the upper computer obtains the identifier of the bluetooth smart key device, specifically:
step A: the upper computer generates a Bluetooth intelligent key device identification of the Bluetooth intelligent key device according to a preset rule, and sets the generated Bluetooth intelligent key device identification to the Bluetooth intelligent key device.
Further, in this embodiment, step a specifically includes: the upper computer generates a Bluetooth name of the Bluetooth intelligent secret key equipment according to the serial number of the hub, the port serial number on the hub and the machine number, and sets the generated Bluetooth intelligent secret key equipment identification to the Bluetooth intelligent secret key equipment through the USB interface.
Further, in this embodiment, in step S1, the monitoring, by the upper computer, of the insertion event of the bluetooth smart key device specifically includes:
step D1: when the upper computer monitors the insertion information according to the acquired file descriptor for the device manager, the upper computer acquires a device object of the device corresponding to the monitored insertion information, judges whether the acquired device object is a USB device, if so, executes the step D2, otherwise, ends;
step D2: the upper computer acquires the type attribute of the equipment, judges whether the equipment is hub equipment or not according to the acquired type attribute of the equipment, if so, the operation is finished, otherwise, the step D3 is executed;
step D3: the upper computer judges the operation type of the equipment, if the operation type is the plug-in operation, the step D4 is executed, if the operation type is the plug-out operation, the operation is finished;
step D4: the upper computer acquires the serial numbers of the connection ports of the hub and the upper computer, acquires the serial numbers of the connection ports of the hub and the equipment path of the equipment, and monitors the insertion event of the Bluetooth intelligent key equipment according to the serial numbers of the connection ports of the hub and the upper computer, the serial numbers of the connection ports of the hub, the acquired equipment path and the operation type.
Further, in this embodiment, in step S1, when the upper computer monitors an insertion event of the bluetooth smart key device, before the upper computer obtains an identifier of the bluetooth smart key device, the method further includes: and the upper computer judges whether the Bluetooth intelligent secret key equipment executing the insertion event meets the preset requirement or not according to the preset supplier identification and the product equipment identification, if so, the upper computer acquires the Bluetooth intelligent secret key equipment identification, and if not, the operation is finished.
Step S2: when the upper computer receives the state test data sent by the Bluetooth intelligent key device, the upper computer judges whether the received state test data is the same as the preset successful data, if so, the upper computer displays the test successful information, and otherwise, the upper computer displays the test failed information.
Further, in this embodiment, step S2 specifically includes: when the upper computer receives the state test data sent by the Bluetooth intelligent secret key equipment through the mobile terminal, the upper computer judges whether the received state test data is the same as the preset successful data, if so, the upper computer displays the test successful information, and otherwise, the upper computer displays the test failed information.
Further, in this embodiment, in step S1, the upper computer obtains the identifier of the bluetooth smart key device, and sends the obtained identifier of the bluetooth smart key device to the mobile terminal, which specifically includes:
and B: and the upper computer acquires the Bluetooth intelligent key equipment identification from the Bluetooth intelligent key equipment and sends the acquired Bluetooth intelligent key equipment identification to the mobile terminal.
Further, in this embodiment, step B specifically includes: and the upper computer acquires the MAC address from the Bluetooth intelligent key equipment and sends the acquired MAC address to the mobile terminal.
Further, in this embodiment, in S1, when the host computer monitors an insertion event of the bluetooth smart key device, before the host computer obtains an identifier of the bluetooth smart key device, the method further includes:
the upper computer updates the first mobile terminal list according to the second mobile terminal list;
in step S2, the method further includes, after displaying the test success information and the test failure information:
step S3: and the upper computer deletes the list information corresponding to the mobile terminal in the first mobile terminal list from the second mobile terminal list.
Further, in this embodiment, the updating, by the upper computer, the first mobile terminal list according to the second mobile terminal list specifically includes:
step C1: the upper computer judges whether all list information in the second mobile terminal list exists in the first mobile terminal list, if so, the step C3 is executed, otherwise, the step C2 is executed;
step C2: the upper computer deletes list information of the second mobile terminal list, which does not exist in the first mobile terminal list, from the second mobile terminal list, and executes step C3;
step C3: the upper computer deletes list information of the second mobile terminal list in the first mobile terminal list, and executes the step C4;
step C4: and the upper computer judges whether the first mobile terminal list is empty, adds one to the operation times when the first mobile terminal list is empty, judges whether the added operation times is greater than an operation error time threshold value, if so, reports an error, otherwise, returns to the step S1, and executes the step S1 when the first mobile terminal list is not empty.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
EXAMPLE III
An embodiment of the present invention provides a method for operating a mobile terminal capable of preventing interference, where the mobile terminal is connected to an upper computer, and the upper computer is connected to a bluetooth smart key device through a USB interface, as shown in fig. 2, the method includes:
step N1: the mobile terminal receives a Bluetooth intelligent secret key device identification sent by an upper computer;
further, in this embodiment, the identifier of the bluetooth smart key device is a bluetooth name of the bluetooth smart key device.
Step N2: the mobile terminal searches the Bluetooth intelligent key equipment with the received Bluetooth intelligent key equipment identification, judges whether the Bluetooth intelligent key equipment with the received Bluetooth intelligent key equipment identification is searched, if so, executes the step N3, otherwise, finishes;
step N3: the mobile terminal is connected with the Bluetooth intelligent key device and sends function test data to the intelligent Bluetooth key device.
Further, in this embodiment, step N3 specifically includes:
step Q1: the mobile terminal sends a connection request to the Bluetooth intelligent secret key equipment;
step Q2: and when the mobile terminal receives the successful connection response sent by the Bluetooth intelligent key device, the mobile terminal sends the function test data to the Bluetooth intelligent key device.
Further, in this embodiment, the method further includes step N4: and when the mobile terminal receives the test state success data sent by the Bluetooth intelligent secret key equipment, the mobile terminal sends the received test state success data to the upper computer.
Further, in this embodiment, the Bluetooth smart key device identifier is the MAC address of the Bluetooth smart key device.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
Example four
An embodiment of the present invention provides a working method of a bluetooth intelligent key device for preventing interference, where the bluetooth intelligent key device is connected to an upper computer through a USB interface, and the upper computer is connected to a mobile terminal, as shown in fig. 3, the working method includes:
step M1: the Bluetooth intelligent secret key equipment broadcasts the Bluetooth intelligent secret key equipment identification;
further, in this embodiment, step M1 specifically includes: the Bluetooth intelligent secret key equipment receives the Bluetooth name of the Bluetooth intelligent secret key equipment set by the upper computer through the USB interface, and the Bluetooth intelligent secret key equipment broadcasts the received Bluetooth name of the Bluetooth intelligent secret key equipment.
Step M2: the Bluetooth intelligent secret key equipment is connected with the mobile terminal and receives the function test data sent by the mobile terminal;
further, in this embodiment, step M2 specifically includes:
step G1: when the Bluetooth intelligent secret key equipment receives the connection request information sent by the mobile terminal, the Bluetooth intelligent secret key equipment is connected with the mobile terminal to generate a successful connection response;
step G2: the Bluetooth intelligent secret key equipment sends a successful connection response to the mobile terminal and waits for receiving the function test data sent by the mobile terminal. Step M3: when the Bluetooth intelligent secret key equipment receives the function test data, the Bluetooth intelligent secret key equipment generates state test data and sends the generated state test data to the upper computer.
Further, in this embodiment, step M3 specifically includes: when the Bluetooth intelligent secret key equipment receives the function test data, the Bluetooth intelligent secret key equipment generates state test success data, and the generated state test success data is sent to the upper computer through the mobile terminal.
Further, in this embodiment, the step M1 specifically includes: the Bluetooth intelligent secret key device broadcasts the preset MAC address of the Bluetooth intelligent secret key device.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
EXAMPLE five
In this embodiment, a main process is performed at an upper computer, three sub-processes (a detection process, a bluetooth monitoring process, and a mobile terminal management process) are provided below the main process, after the bluetooth monitoring process determines a bluetooth intelligent device meeting a preset requirement, the main process of the upper computer creates the detection process, determines a type of return information received from the mobile terminal management process, and receives response data returned by the bluetooth intelligent device when the type of the return information is information of a currently operating device, as shown in fig. 4, the method includes the steps of
Step 501: when a starting instruction of the main process is received, the Bluetooth monitoring process executes monitoring operation for starting the Bluetooth intelligent key equipment;
step 502: the Bluetooth monitoring process judges whether the Bluetooth intelligent key device insertion event is monitored, if so, step 503 is executed, otherwise, the monitoring operation is continuously executed;
step 503: the Bluetooth monitoring process judges whether the Bluetooth intelligent secret key equipment executing the insertion event meets the preset requirement, if so, the Bluetooth intelligent secret key equipment sends information for establishing the detection process to the main process, and if not, the step 502 is returned;
specifically, in this embodiment, step 503 specifically includes: the Bluetooth monitoring process judges whether the monitored Bluetooth intelligent secret key equipment conforms to the preset supplier identification and product equipment identification, if so, the information for establishing the detection process is sent to the main process, and if not, the step 502 is returned; all Bluetooth intelligent key devices have supplier ID (VID) and product identification codes (PID), PID/VID uniquely identifies one device, a host machine distinguishes different devices through different VID and PID, and the VID and PID are both two bytes in length;
step 504: when a start instruction of a main process is received, the detection process executes start operation;
specifically, in this embodiment, before step 504, the method further includes: the method comprises the steps that a main process receives information for establishing a detection process sent by a Bluetooth detection process, and the detection process is established;
step 505: the detection process sends a request for acquiring the information of the mobile terminal to a mobile terminal management process;
optionally, the mobile terminal information may be information such as a mobile terminal name;
step 506: the mobile terminal management process receives a request for obtaining the mobile terminal information and updates a first mobile terminal equipment list;
specifically, in this embodiment, the first mobile terminal device list refers to a mobile terminal information list of a mobile terminal connected to the hub;
more specifically, in this embodiment, the first mobile terminal device list refers to a mobile terminal name list of mobile terminals connected to the hub;
specifically, in this embodiment, step 506 further includes: when a starting instruction of the main process is received, the mobile terminal management process executes a starting operation;
step 507: the mobile terminal management process judges whether all mobile terminal information in a second mobile terminal equipment list of the mobile terminal which is working exists in the first mobile terminal equipment list, if so, the step 509 is executed, otherwise, the step 508 is executed;
specifically, in this embodiment, the second mobile terminal device list refers to a mobile terminal information list of all mobile terminals that are working;
more specifically, in this embodiment, the second mobile terminal device list refers to a list of mobile terminal names of all mobile terminals that are working;
step 508: the mobile terminal management process deletes the mobile terminal information that does not exist in the first mobile terminal device list in the second mobile terminal device list, and executes step 509;
step 509: the mobile terminal management process deletes the mobile terminal information of the current second mobile terminal equipment list in the first mobile terminal equipment list, updates the first mobile terminal equipment list, and executes step 510;
step 510: the mobile terminal management process judges whether the updated first mobile terminal device list is empty, if yes, step 513 is executed, otherwise, step 511 is executed;
step 511: the mobile terminal management process takes the first mobile phone of the new first mobile phone device list as the current working device;
step 512: the mobile terminal management process returns the mobile terminal information of the current working equipment to the detection process, and adds the mobile terminal information of the current working equipment in the current second mobile terminal list;
step 513: the mobile terminal management process returns no current working equipment information to the detection process;
step 514: the detection process receives the return information of the mobile terminal management process, judges the type of the return information, executes step 516 when the return information is the mobile terminal information of the current working equipment, and executes step 515 when the return information is the information without the current working equipment;
step 515: the detection process increases the operation times by one, judges whether the increased operation times is greater than an operation error time threshold value, reports an error if the increased operation times is greater than the operation error time threshold value, and ends; otherwise, returning to the step 504;
step 516: generating a Bluetooth name of the Bluetooth intelligent secret key equipment by the detection process;
specifically, the detection process generates the device name of the Bluetooth intelligent key according to the serial number of the hub, the port serial number on the hub and the machine number;
517: the detection process sends the generated Bluetooth name of the Bluetooth intelligent secret key device to the mobile terminal through the debugging bridge, and the generated Bluetooth name of the Bluetooth intelligent secret key is set to the Bluetooth intelligent secret key device to be detected by the mobile terminal through the USB interface;
step 518: the detection process judges whether response data returned by the Bluetooth intelligent key device is received, if so, detection success information is displayed, and step 519 is executed, otherwise, detection failure information is displayed, and step 519 is executed;
step 519: the detection process sends a request for returning the mobile terminal information of the current working equipment to the mobile terminal management process;
step 520: and the mobile terminal management process receives the request of returning the mobile terminal information of the current working equipment and deletes the mobile terminal information of the current working equipment from the current second mobile terminal list.
In this embodiment, the upper computer may further receive response data returned by the mobile terminal; at this time, in step 517, the detection process sets the bluetooth name of the generated bluetooth smart key to the bluetooth smart key device that needs to be detected by the mobile terminal through the USB interface, and sends the bluetooth name of the generated bluetooth smart key device to the mobile terminal through the debug bridge.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
EXAMPLE six
In the sixth embodiment of the present invention, a new bluetooth name of an intelligent bluetooth key device is generated by an upper computer, bluetooth communication for function test is performed between the bluetooth intelligent key device and a mobile terminal, the mobile terminal returns a test status code representing a test result to the upper computer, and the upper computer compares the received status code with a preset status code to determine whether the test is successful; as shown in fig. 5-7, the method of the present embodiment includes an upper computer, a mobile terminal, and a bluetooth smart key device;
a working method of an upper computer in a method for preventing interference comprises the following steps:
step S1: the upper computer starts the monitoring operation of the Bluetooth intelligent key equipment;
step S2: the upper computer judges whether the insertion event of the Bluetooth intelligent key device is monitored, if so, the step S3 is executed, otherwise, the monitoring operation is continuously executed;
step S3: the upper computer judges whether the Bluetooth intelligent key equipment executing the insertion event meets the preset conditions, if so, the step S4 is executed, otherwise, the step S2 is returned;
specifically, in this embodiment, step S3 specifically includes: the upper computer judges whether the monitored Bluetooth intelligent key equipment conforms to preset supplier identification and product equipment identification, if so, the step S4 is executed, otherwise, the step S2 is returned; all Bluetooth intelligent key devices have supplier ID (VID) and product identification codes (PID), PID/VID uniquely identifies one device, a host machine distinguishes different devices through different VID and PID, and the VID and PID are both two bytes in length;
step S4: the upper computer updates the first mobile terminal equipment list;
specifically, in this embodiment, the first mobile terminal device list refers to a mobile terminal information list of a mobile terminal connected to the hub;
more specifically, in this embodiment, the first mobile terminal device list refers to a mobile terminal name list of mobile terminals connected to the hub;
optionally, the mobile terminal information may be information such as a mobile terminal name;
step S5: the upper computer judges whether all mobile terminal information in a second mobile terminal equipment list of the mobile terminal which is working exists in the first mobile terminal equipment list, if so, the step S7 is executed, otherwise, the step S6 is executed;
specifically, in this embodiment, the second mobile terminal device list refers to a mobile terminal information list of all mobile terminals that are working;
more specifically, in this embodiment, the second mobile terminal device list refers to a list of mobile terminal names of all mobile terminals that are working;
step S6: the upper computer deletes mobile terminal information which does not exist in the first mobile terminal equipment list in the second mobile terminal equipment list, and executes the step S7;
step S7: the upper computer deletes the mobile terminal information of the current second mobile terminal equipment list in the first mobile terminal equipment list, updates the first mobile terminal equipment list and executes the step S8;
step S8: the upper computer judges whether the updated first mobile terminal equipment list is empty, if so, the step S9 is executed, otherwise, the step S10 is executed;
step S9: the upper computer increases the operation times by one, judges whether the increased operation times is greater than an operation error time threshold value, if so, reports an error and ends; otherwise, returning to the step S4;
step S10: the upper computer takes the first mobile terminal of the updated first mobile terminal equipment list as current working equipment;
step S11: the upper computer adds the mobile terminal information of the current working equipment in the second mobile terminal list and executes the step S12;
step S12: the upper computer generates a Bluetooth name of the Bluetooth intelligent secret key device;
specifically, the upper computer generates the device name of the Bluetooth intelligent key according to the serial number of the hub, the port serial number on the hub and the machine number;
step S13: the upper computer sets the Bluetooth name of the generated Bluetooth intelligent secret key to Bluetooth intelligent secret key equipment needing to be detected by the mobile terminal through a USB interface, and sends the Bluetooth name of the generated Bluetooth intelligent secret key equipment to the mobile terminal through a debugging bridge;
step S14: the upper computer receives the state code sent by the mobile terminal, judges the type of the state code, displays the test success information when the state code is the same as the preset test state code, executes the step S15, displays the test overtime information when the state code is the same as the preset overtime state code, and executes the step S15;
specifically, in this embodiment, before this step, the upper computer presets a test status code and an overtime status code;
step S15: and the upper computer deletes the mobile terminal information of the current working equipment from the current second mobile terminal list.
A working method of a mobile terminal in a method for preventing interference comprises the following steps:
step N1: when the mobile terminal receives the Bluetooth name sent by the upper computer, the mobile terminal judges whether the timer is empty, if so, a first preset time is set, and the step N2 is executed, otherwise, the original timer is cancelled, a new timer is restarted to set the first preset time, and the step N2 is executed;
specifically, when the mobile terminal receives the bluetooth name of the bluetooth intelligent key device sent by the control device through the debug bridge, the mobile terminal determines whether the timer is empty, if yes, sets a first preset time, and executes step N2, otherwise, cancels the original timer, restarts a new timer to set the first preset time, and executes step N2;
step N2: the mobile terminal searches for the Bluetooth intelligent secret key equipment with the new Bluetooth name;
step N3: the mobile terminal judges whether the searched Bluetooth intelligent key equipment with the new Bluetooth name exists or not, if yes, the step N5 is executed, and if not, the step N4 is executed;
step N4: the mobile terminal judges whether the set first preset time is reached, if yes, overtime information is generated, the overtime information is returned to the upper computer, and if not, the step N2 is returned;
step N5: the mobile terminal sends a connection request to the Bluetooth intelligent secret key equipment;
step N6: when the mobile terminal receives a successful connection response sent by the Bluetooth intelligent key device, the mobile terminal sends function test data to the intelligent Bluetooth key device;
step N7: when the mobile terminal receives the state code sent by the Bluetooth intelligent secret key equipment, the mobile terminal sends the received state code to the upper computer.
The working method of the Bluetooth intelligent secret key device in the method for preventing the interference comprises the following steps:
step M1: when the Bluetooth intelligent secret key equipment receives the Bluetooth name sent by the upper computer through the USB interface, the Bluetooth intelligent secret key equipment sets second preset time;
step M2: the Bluetooth intelligent secret key equipment broadcasts the received Bluetooth name;
step M3: when the Bluetooth intelligent secret key equipment receives the connection request information sent by the mobile terminal, the Bluetooth intelligent secret key equipment is connected with the mobile terminal to generate a successful connection response;
step M4: the Bluetooth intelligent secret key equipment sends a successful connection response to the mobile terminal;
step M5: the Bluetooth intelligent key device judges whether function test data sent by the mobile terminal is received, if so, the step M7 is executed, otherwise, the step M6 is executed;
step M6: the Bluetooth intelligent key device judges whether the second preset time is reached, if yes, the Bluetooth intelligent key device generates an overtime state code, and sends the generated overtime state code to the mobile terminal, otherwise, the step M5 is returned;
specifically, before this step, the method further includes: the Bluetooth intelligent secret key equipment sets second preset time;
step M7: the Bluetooth intelligently generates a test state code and sends the generated test state code to the mobile terminal.
In this embodiment, the bluetooth intelligent key device may also return a test status code representing a test result to the upper computer; at this point, step N7 is deleted, and
step S14 is replaced with step S14-1: the upper computer receives the state code sent by the Bluetooth intelligent key device, judges the type of the state code, displays the test success information when the state code is the same as the preset test state code, executes the step S15, displays the test overtime information when the state code is the same as the preset overtime state code, and executes the step S15;
step M7 is replaced with step M7-1: the Bluetooth intelligently generates a test state code and sends the generated test state code to the upper computer.
In this embodiment, the identifier of the bluetooth name may be, besides the bluetooth name, an MAC address of the bluetooth smart key device and a partial attribute of the bluetooth smart key device, but the attribute may only distinguish different types of bluetooth smart key devices, and the same type may not be distinguished; when the identifier of the bluetooth intelligent key device is the MAC address, the status code generated by the bluetooth intelligent key device deleted in step S12 can only be forwarded to the upper computer by the mobile terminal;
step S13 is replaced with step S13-1: the upper computer sends the MAC address of the Bluetooth intelligent secret key equipment acquired from the Bluetooth intelligent secret key equipment to the mobile terminal through the debugging bridge;
step M1 is replaced with step M1-1: the Bluetooth intelligent secret key equipment sets second preset time;
step M2 is replaced with step M2-1: broadcasting the MAC address by the Bluetooth intelligent secret key equipment;
step N1 is replaced with step N1-1: when the mobile terminal receives the MAC address sent by the upper computer, the mobile terminal judges whether the timer is empty, if so, a first preset time is set, and the step N2 is executed, otherwise, the timer is closed, the timer is restarted, the first preset time is set, and the step N2 is executed;
specifically, when the mobile terminal receives the MAC address of the bluetooth smart key device sent by the control device through the debug bridge, the mobile terminal determines whether the timer is empty, if yes, sets a first preset time, and executes step N2, otherwise, closes the timer, restarts the timer, sets the first preset time, and executes step N2;
step N2 is replaced with step N2-1: the mobile terminal searches the Bluetooth intelligent secret key equipment with the new MAC address;
step N3 is replaced with step N3-1: the mobile terminal judges whether the searched Bluetooth intelligent key device with the new MAC address exists, if so, the step N5 is executed, otherwise, the step N4 is executed.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
EXAMPLE seven
The seventh embodiment of the present invention provides a flowchart of detailed steps of performing a bluetooth monitoring operation by an upper computer, as shown in fig. 8, including:
step 701: initializing a Bluetooth monitoring process, creating a monitoring object, and acquiring a file descriptor for a device manager (udev);
step 702: the Bluetooth monitoring process executes a starting operation;
step 703: the Bluetooth monitoring process judges whether the operation information is monitored or not according to the file descriptor for the equipment manager, if so, step 704 is executed, otherwise, the judgment is continued;
step 704: the Bluetooth monitoring process acquires a monitored device object of the device executing the operation information;
step 705: the Bluetooth monitoring process judges whether the acquired device object is a USB device, if so, step 707 is executed, otherwise, step 706 is executed;
step 706: the bluetooth monitoring process subtracts 1 from the reference count of the device, and returns to step 703;
step 707: the Bluetooth monitoring process acquires the type attribute of the equipment, judges whether the equipment is hub equipment according to the acquired type attribute of the equipment, if so, returns to the step 706, otherwise, executes the step 708;
step 708: the bluetooth monitoring process judges the operation type of the device, if the operation type is the plug-in operation, step 709 is executed, if the operation type is the plug-out operation, step 706 is returned to;
step 709: the Bluetooth monitoring process acquires the serial numbers of the connection ports of the hub and the upper computer and the serial numbers of the ports on the hub;
step 710: the Bluetooth monitoring process acquires a device path of the device;
specifically, step 710 includes the steps of:
step a 1: the Bluetooth monitoring process acquires a first return value of the first function interface, judges whether the acquired first return value of the first function interface is real and effective, if so, the equipment path exists, and the first return value is the equipment path, otherwise, the step a1 is executed;
for example, the first function interface is: udev _ DEVICE _ get _ property _ value (DEVICE, "DEVICE");
specifically, before this embodiment, a bluetooth monitoring process presets a path of a device;
step a 2: the bluetooth monitoring process acquires a second return value of the second function interface, judges whether the second return value of the second function interface is real and effective, if so, the device path exists, and the second return value is the device path, otherwise, the step a3 is executed;
for example, the second function interface is: udev _ device _ get _ devnode (device);
step a 3: the Bluetooth monitoring process is connected with "/dev/" before the second return value to obtain a third return value, whether the third return value is real and effective is judged, if yes, the equipment path exists, the third return value is obtained, and if not, the step a4 is executed;
step a 4: the Bluetooth monitoring process splices the "/proc/" before the second return value to obtain a fourth return value, judges whether the fourth return value is real and effective, if so, the equipment path exists, and obtains the fourth return value, wherein the fourth return value is the equipment path, otherwise, the equipment path does not exist;
step 711: and the Bluetooth monitoring process sends the equipment path, the serial number of the connection port of the hub and the upper computer, the port serial number and the operation type to the main process.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
Example eight
An eighth embodiment of the present invention provides a system for preventing interference, as shown in fig. 9, including an upper computer, a mobile terminal, and a bluetooth intelligent key device, where the upper computer includes a USB interface 801, a monitoring module 802, a first sending module 803, a first receiving module 804, a first obtaining module 805, a first determining module 806, and a display module 807;
the mobile terminal comprises a second receiving module 901, a second sending module 902, a searching module 903, a second judging module 904 and a first ending module 905;
the Bluetooth intelligent key device comprises a first generating module 101, a third sending module 103, a third receiving module 102 and a broadcasting module 104;
the USB interface 801 is used for connecting the upper computer and the Bluetooth intelligent key device and transmitting data between the upper computer and the Bluetooth intelligent key device;
a monitoring module 802, configured to monitor an insertion event of the bluetooth smart key device;
further, in this embodiment, the monitoring module 802 specifically includes a first monitoring unit, a second monitoring unit, a first obtaining unit, a second obtaining unit, a third obtaining unit, a fourth obtaining unit, a first ending unit, a second ending unit, a third ending unit, a fourth determining unit, a fifth determining unit, and a sixth determining unit;
a first acquisition unit for acquiring a file descriptor for a device manager;
the first monitoring unit is used for monitoring the insertion information according to the file descriptor for the equipment manager acquired by the first acquisition unit;
the second acquisition unit is used for acquiring the equipment object of the equipment corresponding to the insertion information monitored by the first monitoring unit when the first monitoring unit monitors the insertion information according to the acquired file descriptor for the equipment manager;
a fourth judging unit, configured to judge whether the device object acquired by the second acquiring unit is a USB device;
a first ending unit configured to end when the fourth determination unit determines that the device object acquired by the second acquisition unit is not a USB device;
a third obtaining unit, configured to obtain a type attribute of the device when the fourth determining unit determines that the device object obtained by the second obtaining unit is a USB device;
a fifth judging unit, configured to judge whether the device is a hub device according to the type attribute of the device acquired by the third acquiring unit;
a second ending unit, configured to end when the fifth determining unit determines that the device is the hub device according to the type attribute of the device acquired by the third acquiring unit;
a sixth judging unit, configured to judge the operation type of the device when the fifth judging unit judges that the device is not a hub device according to the type attribute of the device acquired by the third acquiring unit;
a third ending unit configured to end when the sixth judging unit judges that the operation type of the apparatus is the pull-out operation;
the fourth acquiring unit is used for acquiring the serial number of the port connected with the hub and the upper computer, acquiring the serial number of the port on the hub and acquiring the equipment path of the equipment when the sixth judging unit judges that the operation type of the equipment is the insertion operation;
and the second monitoring unit is used for monitoring the insertion event of the Bluetooth intelligent key device according to the serial numbers of the connection ports of the hub and the upper computer, the serial numbers of the ports on the hub, the acquired device path and the operation type, which are acquired by the fourth acquisition unit.
A first obtaining module 805, configured to obtain, when the monitoring module 802 monitors an insertion event of the bluetooth smart key device, a bluetooth smart key device identifier, where the bluetooth smart key device identifier is used for connecting the bluetooth smart key device with the mobile terminal;
further, in this embodiment, the first obtaining module 805 is specifically configured to generate a bluetooth smart key device identifier of the bluetooth smart key device according to a preset rule, and set the generated bluetooth smart key device identifier to the bluetooth smart key device.
Further, in this embodiment, the first obtaining module 805 is specifically configured to generate a bluetooth name of the bluetooth smart key device according to the hub number, the port number on the hub, and the machine number, and set the generated bluetooth smart key device identifier to the bluetooth smart key device through the USB interface 801.
A first sending module 803, configured to send the identifier of the bluetooth smart key device acquired by the first acquiring module 805 to the mobile terminal;
a second receiving module 901, configured to receive the identifier of the bluetooth smart key device sent by the first sending module 803;
a broadcasting module 104, configured to broadcast a bluetooth smart key device identifier;
further, in this embodiment, the third receiving module 102 is further configured to receive a bluetooth name of a bluetooth intelligent key device set by the upper computer through the USB interface 801;
the broadcasting module 104 is specifically configured to broadcast the bluetooth name of the bluetooth smart key device received by the third receiving module 102.
Further, in this embodiment, the broadcasting module 104 is specifically configured to broadcast the MAC address of the preset bluetooth smart key device.
A searching module 903, configured to search for a bluetooth smart key device having a bluetooth smart key device identifier received by the second receiving module 901;
a second determining module 904, configured to determine whether the searching module 903 searches for a bluetooth smart key device having the bluetooth smart key device identifier received by the second receiving module 901;
a first ending module 905, configured to end when the second determining module 904 determines that the searching module 903 does not search for the bluetooth smart key device having the bluetooth smart key device identifier received by the second receiving module 901;
a second sending module 902, configured to send function test data to the bluetooth smart key device by connecting with the bluetooth smart key device when the second determining module 904 determines that the searching module 903 searches for the bluetooth smart key device having the received bluetooth smart key device identifier;
the third receiving module 102 is configured to receive the function test data sent by the second sending module 902 by connecting with the mobile terminal;
the first generating module 101 is configured to generate status test data when the third receiving module 102 receives the functional test data sent by the second sending module 902;
the third sending module 103 is configured to send the state test data generated by the first generating module 101 to the upper computer;
a first receiving module 804, configured to receive the status test data sent by the third sending module 103;
a first determining module 806, configured to determine, when the first receiving module 804 receives the status test data sent by the third sending module 103, whether the received status test data is the same as the preset success data;
further, in this embodiment, the third sending module 103 is further configured to send the status test data generated by the first generating module 101 to the mobile terminal;
the second receiving module 901 is further configured to receive the status test data sent by the third sending module 103;
the second sending module 902 is further configured to send the status test data received by the second receiving module 901 to the upper computer;
the first receiving module 804 is further configured to receive the status test data sent by the second sending module 902;
the first determining module 806 is further configured to determine whether the status test data received by the first receiving module 804 and sent by the second sending module 902 is the same as the preset success data.
Furthermore, in this embodiment, the first obtaining module 805 is specifically configured to obtain the identifier of the bluetooth smart key device from the bluetooth smart key device when the monitoring module 802 monitors an insertion event of the bluetooth smart key device;
the first sending module is specifically configured to send the first obtaining module 805 to obtain the identifier of the bluetooth smart key device from the bluetooth smart key device to the mobile terminal.
Further, in this embodiment, the first obtaining module 805 is specifically configured to obtain a MAC address from the bluetooth smart key device;
the first sending module 803 is further configured to send the MAC address acquired by the first acquiring module 805 to the mobile terminal.
A display module 807, configured to display a test success message when the first determining module 806 determines that the received status test data is the same as the preset success data; and is further configured to display a test failure message when the first determining module 806 determines that the received status test data is different from the preset success data.
Further, in this embodiment, the upper computer further includes an updating module and a deleting module;
an updating module, configured to update the first mobile terminal list according to the second mobile terminal list when the monitoring module 802 monitors an insertion event of the bluetooth intelligent key device;
a deleting module, configured to delete the list information corresponding to the mobile terminal in the first mobile terminal list from the second mobile terminal list after the display module 807 displays the test success information and the test failure information.
Further, in this embodiment, the update module specifically includes: the device comprises a first judging unit, a second judging unit, a third judging unit, a first deleting unit, a second deleting unit and an error reporting unit;
a first judging unit, configured to judge whether all list information in the second mobile terminal list exists in the first mobile terminal list when the monitoring module 802 monitors an insertion event of the bluetooth intelligent key device;
a first deletion unit configured to delete, in the second mobile terminal list, list information of the second mobile terminal list that does not exist in the first mobile terminal list when the first judgment unit judges that all the list information in the second mobile terminal list does not exist in the first mobile terminal list;
a second deleting unit configured to delete list information of the second mobile terminal list existing in the first mobile terminal list from the first mobile terminal list when the first judging unit judges that all the list information of the second mobile terminal list exists in the first mobile terminal list;
the second judging unit is used for judging whether the first mobile terminal list is empty or not after the second deleting unit deletes the list information of the second mobile terminal list in the first mobile terminal list;
the first judging unit is further used for judging whether all list information in the second mobile terminal list exists in the first mobile terminal list or not when the second judging unit judges that the first mobile terminal list is not empty;
the third judging unit is used for adding one to the operation times when the second judging unit judges that the first mobile terminal list is empty, and judging whether the added operation times is greater than an operation error time threshold value or not;
an error reporting unit, configured to report an error when the third determining unit determines that the increased operation times are greater than the operation error time threshold;
the first judging unit is further configured to judge whether all list information in the second mobile terminal list exists in the first mobile terminal list when the third judging unit judges that the increased operation times are not greater than the operation error time threshold.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
Example nine
The ninth embodiment of the present invention provides an upper computer in a system for preventing interference, as shown in fig. 10, including a USB interface 801, a monitoring module 802, a first sending module 803, a first receiving module 804, a first obtaining module 805, a first determining module 806, and a display module 807;
the USB interface 801 is used for connecting the upper computer and the Bluetooth intelligent key device and transmitting data between the upper computer and the Bluetooth intelligent key device;
a monitoring module 802, configured to monitor an insertion event of the bluetooth smart key device;
further, in this embodiment, the monitoring module 802 specifically includes: the monitoring device comprises a first monitoring unit, a second monitoring unit, a first obtaining unit, a second obtaining unit, a third obtaining unit, a fourth obtaining unit, a first ending unit, a second ending unit, a third ending unit, a fourth judging unit, a fifth judging unit and a sixth judging unit;
a first acquisition unit for acquiring a file descriptor for a device manager;
the first monitoring unit is used for monitoring the insertion information according to the file descriptor for the equipment manager acquired by the first acquisition unit;
a second obtaining unit, configured to obtain, when the first monitoring unit monitors insertion information according to the obtained file descriptor for the device manager, a device object of a device corresponding to the monitored insertion information;
a fourth judging unit, configured to judge whether the device object acquired by the second acquiring unit is a USB device;
a first ending unit configured to end when the fourth determination unit determines that the device object acquired by the second acquisition unit is not a USB device;
a third obtaining unit, configured to obtain a type attribute of the device when the fourth determining unit determines that the device object obtained by the second obtaining unit is a USB device;
a fifth judging unit, configured to judge whether the device is a hub device according to the type attribute of the device acquired by the third acquiring unit;
a second ending unit, configured to end when the fifth determining unit determines that the device is the hub device according to the type attribute of the device acquired by the third acquiring unit;
a sixth judging unit, configured to judge the operation type of the device when the fifth judging unit judges that the device is not a hub device according to the type attribute of the device acquired by the third acquiring unit;
a third ending unit configured to end when the sixth judging unit judges that the operation type of the apparatus is the pull-out operation;
the fourth acquiring unit is used for acquiring the serial number of the port connected with the hub and the upper computer, acquiring the serial number of the port on the hub and acquiring the equipment path of the equipment when the sixth judging unit judges that the operation type of the equipment is the insertion operation;
and the second monitoring unit is used for monitoring the insertion event of the Bluetooth intelligent key device according to the serial numbers of the connection ports of the hub and the upper computer, the serial numbers of the ports on the hub, the acquired device path and the operation type, which are acquired by the fourth acquisition unit.
A first obtaining module 805, configured to obtain, when the monitoring module 802 monitors an insertion event of the bluetooth smart key device, a bluetooth smart key device identifier, where the bluetooth smart key device identifier is used for connecting the bluetooth smart key device with the mobile terminal;
further, in this embodiment, the first obtaining module 805 is specifically configured to generate a bluetooth smart key device identifier of the bluetooth smart key device according to a preset rule, and set the generated bluetooth smart key device identifier to the bluetooth smart key device.
Further, in this embodiment, the first obtaining module 805 is specifically configured to generate a bluetooth name of the bluetooth smart key device according to the hub number, the port number on the hub, and the machine number, and set the generated bluetooth smart key device identifier to the bluetooth smart key device through the USB interface 801.
A first sending module 803, configured to send the identifier of the bluetooth smart key device obtained by the first obtaining module 805 to the mobile terminal;
a first receiving module 804, configured to receive status test data sent by a bluetooth smart key device;
further, in this embodiment, the first receiving module 804 is further configured to receive status test data sent by the bluetooth smart key device through the mobile terminal.
Furthermore, in this embodiment, the first obtaining module 805 is specifically configured to obtain the identifier of the bluetooth smart key device from the bluetooth smart key device.
Further, in this embodiment, the first obtaining module 805 is specifically configured to obtain a MAC address from the bluetooth smart key device;
and the first sending module 803 is further configured to send, to the mobile terminal, the MAC address obtained by the first obtaining module 805 from the bluetooth smart key device.
A first determining module 806, configured to determine, when the first receiving module 804 receives the status test data, whether the received status test data is the same as the preset success data;
a display module 807, configured to display a test success message when the first determining module 806 determines that the received status test data is the same as the preset success data; and is further configured to display a test failure message when the first determining module 806 determines that the received status test data is different from the preset success data.
Further, in this embodiment, the upper computer further includes an updating module and a deleting module;
an updating module, configured to update the first mobile terminal list according to the second mobile terminal list when the monitoring module 802 monitors an insertion event of the bluetooth intelligent key device;
a deleting module, configured to delete the list information corresponding to the mobile terminal in the first mobile terminal list from the second mobile terminal list after the display module 807 displays the test success information and the test failure information.
Further, in this embodiment, the update module specifically includes: the device comprises a first judging unit, a second judging unit, a third judging unit, a first deleting unit, a second deleting unit and an error reporting unit;
a first judging unit, configured to judge whether all list information in the second mobile terminal list exists in the first mobile terminal list when the monitoring module 802 monitors an insertion event of the bluetooth intelligent key device;
a first deletion unit configured to delete, in the second mobile terminal list, list information of the second mobile terminal list that does not exist in the first mobile terminal list when the first judgment unit judges that all the list information in the second mobile terminal list does not exist in the first mobile terminal list;
a second deleting unit configured to delete list information of the second mobile terminal list existing in the first mobile terminal list from the first mobile terminal list when the first judging unit judges that all the list information of the second mobile terminal list exists in the first mobile terminal list;
the second judging unit is used for judging whether the first mobile terminal list is empty or not after the second deleting unit deletes the list information of the second mobile terminal list in the first mobile terminal list;
the first judging unit is further used for judging whether all list information in the second mobile terminal list exists in the first mobile terminal list or not when the second judging unit judges that the first mobile terminal list is not empty;
the third judging unit is used for adding one to the operation times when the second judging unit judges that the first mobile terminal list is empty, and judging whether the added operation times is greater than an operation error time threshold value or not;
an error reporting unit, configured to report an error when the third determining unit determines that the increased operation times are greater than the operation error time threshold;
the first judging unit is further configured to judge whether all list information in the second mobile terminal list exists in the first mobile terminal list when the third judging unit judges that the increased operation times are not greater than the operation error time threshold.
Further, the upper computer in this embodiment further includes a third determining module and a second ending module;
a third determining module, configured to determine, when the monitoring module 802 monitors an insertion event of the bluetooth smart key device, whether the bluetooth smart key device executing the insertion event meets a preset requirement according to a preset vendor identifier and a preset product device identifier;
the first obtaining module 805 is further configured to obtain an identifier of the bluetooth smart key device when the third determining module determines, according to the preset vendor identifier and the preset product device identifier, that the bluetooth smart key device executing the insertion event meets the preset requirement;
and the second ending module is used for ending when the third judging module judges that the Bluetooth intelligent key equipment executing the inserting event does not meet the preset requirement according to the preset supplier identification and the product equipment identification.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
Example ten
A mobile terminal according to a tenth embodiment of the present invention is, as shown in fig. 11, includes a second receiving module 901, a second sending module 902, a searching module 903, and a second determining module 904;
a second receiving module 901, configured to receive the identifier of the bluetooth intelligent key device sent by the upper computer;
further, in this embodiment, the identifier of the bluetooth smart key device sent by the upper computer and received by the second receiving module 901 is a bluetooth name of the bluetooth smart key device.
A searching module 903, configured to search for a bluetooth smart key device having the bluetooth smart key device identifier received by the second receiving module 901;
a second determining module 904, configured to determine whether the searching module 903 searches for a bluetooth smart key device having the bluetooth smart key device identifier received by the second receiving module 901;
a first ending module 905, configured to end when the second determining module 904 determines that the searching module 903 does not search for the bluetooth smart key device having the bluetooth smart key device identifier received by the second receiving module 901;
a second sending module 902, configured to send function test data to the bluetooth smart key device by connecting with the bluetooth smart key device when the second determining module 904 determines that the searching module 903 searches for the bluetooth smart key device having the received bluetooth smart key device identifier;
further, the second receiving module 901 in this embodiment receives test status success data sent by the bluetooth intelligent key device;
the second sending module 902 is further configured to send status test data to the bluetooth smart key device when the second receiving module 901 receives the test status success data sent by the bluetooth smart key device.
Further, in this embodiment, the identifier of the bluetooth smart key device sent by the upper computer and received by the second receiving module 901 is the MAC address of the bluetooth smart key device.
Further, the second sending module 902 in this embodiment is further configured to send a connection request to the bluetooth smart key device;
a second receiving module 901, configured to receive a successful connection response sent by the bluetooth intelligent key device;
the second sending module 902 is further configured to send the function test data to the bluetooth smart key device when the second receiving module 901 receives a successful connection response sent by the bluetooth smart key device.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
EXAMPLE eleven
An eleventh embodiment of the present invention provides a bluetooth intelligent key device, as shown in fig. 12, including a first generating module 101, a third sending module 103, a third receiving module 102, and a broadcasting module 104;
a broadcasting module 104, configured to broadcast a bluetooth smart key device identifier;
further, in this embodiment, the third receiving module 102 is further configured to receive a bluetooth name of a bluetooth intelligent key device set by the upper computer through the USB interface 801;
the broadcasting module 104 is specifically configured to broadcast the bluetooth name of the bluetooth smart key device received by the third receiving module 102.
The third receiving module 102 is configured to receive, through connection with the mobile terminal, the function test data sent by the mobile terminal;
the first generating module 101 is configured to generate state test data when the third receiving module 102 receives the function test data sent by the mobile terminal;
the third sending module 103 is configured to send the state test data generated by the first generating module 101 to the upper computer;
further, in this embodiment, the third sending module 103 is further configured to send the successful status test data generated by the first generating module 101 to the upper computer.
Further, in this embodiment, the broadcasting module 104 is specifically configured to broadcast the MAC address of the preset bluetooth smart key device.
Further, in this embodiment, the apparatus further includes a second generating module;
the third receiving module 102 is further configured to receive request connection information sent by the mobile terminal;
the second generating module is configured to connect with the mobile terminal to generate a successful connection response when the third receiving module 102 receives the connection request information sent by the mobile terminal;
the third sending module 103 is further configured to send the successful connection response generated by the second generating module to the mobile terminal;
the third receiving module 102 is further configured to send the successful connection response generated by the second generating module when the third sending module 103 sends the successful connection response.
Compared with the prior art, the invention has the following advantages: when the upper computer detects that the Bluetooth intelligent secret key device is inserted, the upper computer sets a Bluetooth name for the Bluetooth intelligent secret key device, then the Bluetooth intelligent secret key device broadcasts a new Bluetooth name, the upper computer informs the mobile terminal to connect the Bluetooth intelligent secret key device with the new Bluetooth name through the USB interface for testing, and when the upper computer receives a function test result returned by the Bluetooth intelligent secret key device or the mobile terminal, the upper computer judges whether the detection is successful; the upper computer can simultaneously schedule a plurality of mobile terminals to detect the Bluetooth intelligent key equipment, so that the problem of interference generated when the Bluetooth intelligent key equipment is detected is effectively solved, and the detection efficiency and the production efficiency are improved.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (30)

1. A method for preventing interference is provided, an upper computer is connected with a mobile terminal and is connected with a Bluetooth intelligent secret key device through a USB interface, and the method is characterized by comprising the following steps:
step R1: when the upper computer monitors an insertion event of the Bluetooth intelligent key device, the upper computer acquires a Bluetooth intelligent key device identifier and sends the acquired Bluetooth intelligent key device identifier to a mobile terminal, wherein the Bluetooth intelligent key device identifier is used for connecting the Bluetooth intelligent key device with the mobile terminal;
step R2: the mobile terminal receives the Bluetooth intelligent key equipment identification sent by the upper computer;
step R3: the mobile terminal searches the Bluetooth intelligent key equipment with the received Bluetooth intelligent key equipment identification, judges whether the Bluetooth intelligent key equipment with the received Bluetooth intelligent key equipment identification is searched, if so, executes the step R4, otherwise, finishes;
step R4: the Bluetooth intelligent key equipment is connected with the mobile terminal and receives the function test data sent by the mobile terminal;
step R5: when the Bluetooth intelligent secret key equipment receives the function test data, the Bluetooth intelligent secret key equipment generates state test data and sends the generated state test data to the upper computer;
step R6: when the upper computer receives the state test data, the upper computer judges whether the received state test data is the same as preset successful data, if so, test success information is displayed, and otherwise, test failure information is displayed;
the method further comprises a step T before the step R3: the Bluetooth intelligent key equipment broadcasts a Bluetooth intelligent key equipment identifier;
in step R1, the monitoring, by the upper computer, of the insertion event of the bluetooth smart key device specifically includes:
step D1: when the upper computer monitors the insertion information according to the acquired file descriptor for the device manager, the upper computer acquires a device object of the device corresponding to the monitored insertion information, judges whether the acquired device object is a USB device, if so, executes the step D2, otherwise, ends;
step D2: the upper computer acquires the type attribute of the equipment, judges whether the equipment is hub equipment or not according to the acquired type attribute of the equipment, if so, the operation is finished, otherwise, the step D3 is executed;
step D3: the upper computer judges the operation type of the equipment, if the operation type is the plug-in operation, the step D4 is executed, if the operation type is the plug-out operation, the operation is finished;
step D4: the upper computer acquires the serial numbers of the connection ports of the hub and the upper computer, acquires the serial numbers of the connection ports of the hub and the equipment path of the equipment, and monitors the insertion event of the Bluetooth intelligent key equipment according to the serial numbers of the connection ports of the hub and the upper computer, the serial numbers of the connection ports of the hub, the acquired equipment path and the operation type;
in step R1, the upper computer acquires a bluetooth intelligent key device identifier, specifically:
step A: the upper computer generates a Bluetooth intelligent key device identifier of the Bluetooth intelligent key device according to a preset rule, and sets the generated Bluetooth intelligent key device identifier to the Bluetooth intelligent key device;
the step A specifically comprises the following steps: and the upper computer generates a Bluetooth name of the Bluetooth intelligent secret key equipment according to the serial number of the hub, the port serial number and the machine number on the hub, and sets the generated Bluetooth intelligent secret key equipment identification to the Bluetooth intelligent secret key equipment through a USB interface.
2. The method according to claim 1, wherein said step R5 is in particular: when the Bluetooth intelligent secret key equipment receives the function test data, the Bluetooth intelligent secret key equipment generates state test data and sends the generated state test data to the mobile terminal; the mobile terminal receives the state test data sent by the Bluetooth intelligent key device and sends the received state test data to the upper computer;
the step R6 specifically includes: when the upper computer receives the state test data sent by the mobile terminal, the upper computer judges whether the received state test data is the same as preset successful data, if so, test success information is displayed, and otherwise, test failure information is displayed.
3. The method according to claim 2, wherein in step R1, the upper computer acquires a bluetooth smart key device identifier, and sends the acquired bluetooth smart key device identifier to the mobile terminal, specifically:
and B: the upper computer acquires the Bluetooth intelligent key device identification from the Bluetooth intelligent key device and sends the acquired Bluetooth intelligent key device identification to the mobile terminal.
4. The method according to claim 3, wherein step B is specifically: and the upper computer acquires the MAC address from the Bluetooth intelligent key device and sends the acquired MAC address to the mobile terminal.
5. The method of claim 1, wherein in R1, before the host computer obtains an identification of the bluetooth smart key device when the host computer monitors for an insertion event of the bluetooth smart key device, further comprising: the upper computer updates the first mobile terminal list according to the second mobile terminal list;
in step R6, the method further includes, after the displaying the test success information and the display test failure information:
step R7: and the upper computer deletes the list information corresponding to the mobile terminal in the first mobile terminal list from the second mobile terminal list.
6. The method of claim 5, wherein the host computer updates the first mobile terminal list according to the second mobile terminal list, and specifically comprises:
step C1: the upper computer judges whether all list information in the second mobile terminal list exists in the first mobile terminal list, if so, the step C3 is executed, otherwise, the step C2 is executed;
step C2: the upper computer deletes list information of the second mobile terminal list, which does not exist in the first mobile terminal list, in the second mobile terminal list, and executes step C3;
step C3: the upper computer deletes list information of the second mobile terminal list in the first mobile terminal list, and executes the step C4;
step C4: and the upper computer judges whether the first mobile terminal list is empty, adds one to the operation times when the first mobile terminal list is empty, judges whether the added operation times is greater than an operation error time threshold value, reports an error if the operation times is greater than the operation error time threshold value, returns to the step R1 if the operation times is greater than the operation error time threshold value, and executes the step R1 when the first mobile terminal list is not empty.
7. The method according to claim 1, wherein step T is specifically: the Bluetooth intelligent key device receives the Bluetooth name of the Bluetooth intelligent key device set by the upper computer through a USB interface, and the Bluetooth intelligent key device broadcasts the received Bluetooth name of the Bluetooth intelligent key device.
8. The method according to claim 1, wherein step T is specifically: and the Bluetooth intelligent secret key equipment broadcasts a preset MAC address of the Bluetooth intelligent secret key equipment.
9. A system for preventing interference comprises an upper computer, a mobile terminal and Bluetooth intelligent key equipment, and is characterized in that the upper computer comprises a USB interface, a monitoring module, a first sending module, a first receiving module, a first obtaining module, a first judging module and a display module;
the mobile terminal comprises a second receiving module, a second sending module, a searching module, a second judging module and a first ending module;
the Bluetooth intelligent key device comprises a first generating module, a third sending module, a third receiving module and a broadcasting module;
the USB interface is used for connecting the upper computer with the Bluetooth intelligent key device and transmitting data between the upper computer and the Bluetooth intelligent key device;
the monitoring module is used for monitoring an insertion event of the Bluetooth intelligent secret key device;
the first acquisition module is used for acquiring a Bluetooth intelligent key device identifier when the monitoring module monitors an insertion event of the Bluetooth intelligent key device, wherein the Bluetooth intelligent key device identifier is used for connecting the Bluetooth intelligent key device with the mobile terminal;
the first sending module is configured to send the identifier of the bluetooth intelligent key device acquired by the first acquiring module to the mobile terminal;
the second receiving module is configured to receive the identifier of the bluetooth intelligent key device sent by the first sending module;
the broadcast module is used for broadcasting the Bluetooth intelligent secret key equipment identification;
the searching module is used for searching the Bluetooth intelligent secret key equipment with the Bluetooth intelligent secret key equipment identification received by the second receiving module;
the second judging module is configured to judge whether the searching module searches for the bluetooth smart key device having the bluetooth smart key device identifier received by the second receiving module;
the first termination module is configured to terminate the search when the second determination module determines that the search module does not search for the bluetooth smart key device having the bluetooth smart key device identifier received by the second reception module;
the second sending module is configured to send function test data to the bluetooth smart key device by connecting with the bluetooth smart key device when the second determining module determines that the search module searches for the bluetooth smart key device having the received bluetooth smart key device identifier;
the third receiving module is used for receiving the function test data sent by the second sending module by connecting with the mobile terminal;
the first generating module is configured to generate state test data when the third receiving module receives the functional test data sent by the second sending module;
the third sending module is used for sending the state test data generated by the first generating module to the upper computer;
the first receiving module is configured to receive the status test data sent by the third sending module;
the first judging module is configured to, when the first receiving module receives the status test data sent by the third sending module, judge whether the received status test data is the same as preset success data;
the display module is used for displaying the test success information when the first judging module judges that the received state test data is the same as the preset success data; the first judging module is also used for displaying test failure information when judging that the received state test data is different from preset success data;
the monitoring module specifically comprises a first monitoring unit, a second monitoring unit, a first obtaining unit, a second obtaining unit, a third obtaining unit, a fourth obtaining unit, a first ending unit, a second ending unit, a third ending unit, a fourth judging unit, a fifth judging unit and a sixth judging unit;
the first obtaining unit is used for obtaining the file descriptor for the device manager;
the first monitoring unit is used for monitoring the insertion information according to the file descriptor for the equipment manager acquired by the first acquiring unit;
the second obtaining unit is configured to obtain, when the first monitoring unit monitors insertion information according to the obtained file descriptor for the device manager, a device object of a device corresponding to the insertion information monitored by the first monitoring unit;
the fourth judging unit is configured to judge whether the device object acquired by the second acquiring unit is a USB device;
the first ending unit is configured to end when the fourth judging unit judges that the device object acquired by the second acquiring unit is not a USB device;
the third obtaining unit is configured to obtain a type attribute of the device when the fourth determining unit determines that the device object obtained by the second obtaining unit is the USB device;
the fifth judging unit is configured to judge whether the device is a hub device according to the type attribute of the device acquired by the third acquiring unit;
the second ending unit is configured to end when the fifth determining unit determines that the device is the hub device according to the type attribute of the device acquired by the third acquiring unit;
the sixth judging unit is configured to judge the operation type of the device when the fifth judging unit judges that the device is not a hub device according to the type attribute of the device acquired by the third acquiring unit;
the third ending unit is used for ending when the sixth judging unit judges that the operation type of the equipment is the pulling-out operation;
the fourth obtaining unit is configured to, when the sixth determining unit determines that the operation type of the device is an insertion operation, obtain a serial number of a port where the hub is connected to the upper computer, obtain a serial number of a port on the hub, and obtain a device path of the device;
the second monitoring unit is used for monitoring an insertion event of the Bluetooth intelligent secret key device according to the serial numbers of the connection ports of the hub and the upper computer, the serial numbers of the ports on the hub, the obtained device path and the operation type, which are obtained by the fourth obtaining unit;
the first obtaining module is specifically configured to generate a bluetooth smart key device identifier of a bluetooth smart key device according to a preset rule, and set the generated bluetooth smart key device identifier to the bluetooth smart key device;
the first obtaining module is specifically configured to generate a bluetooth name of the bluetooth intelligent key device according to the hub number, the port number on the hub, and the machine number, and set the generated bluetooth intelligent key device identifier to the bluetooth intelligent key device through the USB interface.
10. The system of claim 9, wherein the third sending module is further configured to send the status test data generated by the first generating module to a mobile terminal;
the second receiving module is further configured to receive the status test data sent by the third sending module;
the second sending module is further used for sending the state test data received by the second receiving module to the upper computer;
the first receiving module is further configured to receive the status test data sent by the second sending module;
the first judging module is further configured to judge whether the state test data sent by the second sending module and received by the first receiving module is the same as preset success data.
11. The system according to claim 10, wherein the first obtaining module is specifically configured to obtain the identifier of the bluetooth smart key device from the bluetooth smart key device when the monitoring module monitors an insertion event of the bluetooth smart key device;
the first sending module is specifically configured to send the first obtaining module to obtain the identifier of the bluetooth smart key device from the bluetooth smart key device to the mobile terminal.
12. The system according to claim 11, wherein the first obtaining module is specifically configured to obtain a MAC address from the bluetooth smart key device;
the first sending module is further configured to send the MAC address acquired by the first acquiring module to the mobile terminal.
13. The system of claim 9, wherein the upper computer further comprises an update module and a delete module;
the updating module is used for updating the first mobile terminal list according to the second mobile terminal list when the monitoring module monitors the insertion event of the Bluetooth intelligent key device;
the deleting module is configured to delete the list information corresponding to the mobile terminal in the first mobile terminal list from the second mobile terminal list after the display module displays the test success information and the test failure information.
14. The system of claim 13, wherein the update module specifically comprises: the device comprises a first judging unit, a second judging unit, a third judging unit, a first deleting unit, a second deleting unit and an error reporting unit;
the first judging unit is used for judging whether all list information in the second mobile terminal list exists in the first mobile terminal list or not when the monitoring module monitors an insertion event of the Bluetooth intelligent key device;
the first deleting unit is configured to delete, in the second mobile terminal list, list information that does not exist in the first mobile terminal list in the second mobile terminal list when the first judging unit judges that all the list information in the second mobile terminal list does not exist in the first mobile terminal list;
the second deleting unit is configured to delete the list information of the second mobile terminal list in the first mobile terminal list when the first judging unit judges that all the list information in the second mobile terminal list exists in the first mobile terminal list;
the second determining unit is configured to determine whether the first mobile terminal list is empty or not after the second deleting unit deletes list information of the second mobile terminal list in the first mobile terminal list;
the first determining unit is further configured to determine whether all list information in a second mobile terminal list exists in the first mobile terminal list when the second determining unit determines that the first mobile terminal list is not empty;
the third judging unit is configured to add one to the operation frequency when the second judging unit judges that the first mobile terminal list is empty, and judge whether the added operation frequency is greater than an operation error frequency threshold;
the error reporting unit is used for reporting an error when the third judging unit judges that the increased operation times are greater than the operation error time threshold;
the first determining unit is further configured to determine whether all list information in the second mobile terminal list exists in the first mobile terminal list when the third determining unit determines that the increased operation frequency is not greater than the operation error frequency threshold.
15. The system of claim 9, wherein the third receiving module is further configured to receive a bluetooth name of the bluetooth smart key device set by the upper computer through a USB interface;
the broadcast module is specifically configured to broadcast the bluetooth name of the bluetooth smart key device received by the third receiving module.
16. The system of claim 9, wherein the broadcast module is specifically configured to broadcast a MAC address of a preset bluetooth smart key device.
17. The upper computer in the system according to claim 9, wherein the upper computer comprises a USB interface, a monitoring module, a first sending module, a first receiving module, a first obtaining module, a first judging module and a display module;
the USB interface is used for connecting the upper computer with the Bluetooth intelligent key device and transmitting data between the upper computer and the Bluetooth intelligent key device;
the monitoring module is used for monitoring an insertion event of the Bluetooth intelligent secret key device;
the first acquisition module is used for acquiring a Bluetooth intelligent key device identifier when the monitoring module monitors an insertion event of the Bluetooth intelligent key device, wherein the Bluetooth intelligent key device identifier is used for connecting the Bluetooth intelligent key device with the mobile terminal;
the first sending module is used for sending the Bluetooth intelligent secret key equipment identifier obtained by the first obtaining module to a mobile terminal;
the first receiving module is configured to receive the status test data sent by the bluetooth intelligent key device;
the first judging module is used for judging whether the received state test data is the same as preset successful data or not when the first receiving module receives the state test data;
the display module is used for displaying the test success information when the first judging module judges that the received state test data is the same as the preset success data; the first judging module is also used for displaying test failure information when judging that the received state test data is different from the preset success data;
the monitoring module specifically comprises: the monitoring device comprises a first monitoring unit, a second monitoring unit, a first obtaining unit, a second obtaining unit, a third obtaining unit, a fourth obtaining unit, a first ending unit, a second ending unit, a third ending unit, a fourth judging unit, a fifth judging unit and a sixth judging unit;
the first obtaining unit is used for obtaining the file descriptor for the device manager;
the first monitoring unit is used for monitoring the insertion information according to the file descriptor for the equipment manager acquired by the first acquiring unit;
the second obtaining unit is used for obtaining the device object of the device corresponding to the monitored insertion information when the first monitoring unit monitors the insertion information according to the obtained file descriptor for the device manager;
the fourth judging unit is configured to judge whether the device object acquired by the second acquiring unit is a USB device;
the first ending unit is configured to end when the fourth judging unit judges that the device object acquired by the second acquiring unit is not a USB device;
the third obtaining unit is configured to obtain a type attribute of the device when the fourth determining unit determines that the device object obtained by the second obtaining unit is the USB device;
the fifth judging unit is configured to judge whether the device is a hub device according to the type attribute of the device acquired by the third acquiring unit;
the second ending unit is configured to end when the fifth determining unit determines that the device is the hub device according to the type attribute of the device acquired by the third acquiring unit;
the sixth judging unit is configured to judge the operation type of the device when the fifth judging unit judges that the device is not a hub device according to the type attribute of the device acquired by the third acquiring unit;
the third ending unit is used for ending when the sixth judging unit judges that the operation type of the equipment is the pulling-out operation;
the fourth obtaining unit is configured to, when the sixth determining unit determines that the operation type of the device is an insertion operation, obtain a serial number of a port where the hub is connected to the upper computer, obtain a serial number of a port on the hub, and obtain a device path of the device;
the second monitoring unit is used for monitoring an insertion event of the Bluetooth intelligent secret key device according to the serial numbers of the connection ports of the hub and the upper computer, the serial numbers of the ports on the hub, the obtained device path and the operation type, which are obtained by the fourth obtaining unit;
the first obtaining module is specifically configured to generate a bluetooth smart key device identifier of a bluetooth smart key device according to a preset rule, and set the generated bluetooth smart key device identifier to the bluetooth smart key device;
the first obtaining module is specifically configured to generate a bluetooth name of the bluetooth intelligent key device according to the hub number, the port number on the hub, and the machine number, and set the generated bluetooth intelligent key device identifier to the bluetooth intelligent key device through the USB interface.
18. The upper computer in the system according to claim 17, wherein the first receiving module is further configured to receive the status test data sent by the mobile terminal.
19. The host computer in the system according to claim 18, wherein the first obtaining module is specifically configured to obtain the identifier of the bluetooth smart key device from the bluetooth smart key device.
20. The upper computer in the system according to claim 19, wherein the first obtaining module is specifically configured to obtain a MAC address from a bluetooth smart key device;
the first sending module is further configured to send the MAC address acquired by the first acquiring module from the bluetooth smart key device to the mobile terminal.
21. The upper computer in the system according to claim 17, wherein the upper computer further comprises an update module and a delete module;
the updating module is used for updating the first mobile terminal list according to the second mobile terminal list when the monitoring module monitors the insertion event of the Bluetooth intelligent key device;
and the deleting module is used for deleting the list information corresponding to the mobile terminal in the first mobile terminal list from the second mobile terminal list after the display module displays the test success information and the test failure information.
22. The upper computer in the system according to claim 21, wherein the update module specifically includes: the device comprises a first judging unit, a second judging unit, a third judging unit, a first deleting unit, a second deleting unit and an error reporting unit;
the first judging unit is used for judging whether all list information in the second mobile terminal list exists in the first mobile terminal list or not when the monitoring module monitors an insertion event of the Bluetooth intelligent key device;
the first deleting unit is configured to delete, in the second mobile terminal list, list information that does not exist in the first mobile terminal list in the second mobile terminal list when the first judging unit judges that all the list information in the second mobile terminal list does not exist in the first mobile terminal list;
the second deleting unit is configured to delete the list information of the second mobile terminal list in the first mobile terminal list when the first judging unit judges that all the list information in the second mobile terminal list exists in the first mobile terminal list;
the second determining unit is configured to determine whether the first mobile terminal list is empty or not after the second deleting unit deletes list information of the second mobile terminal list in the first mobile terminal list;
the first determining unit is further configured to determine whether all list information in a second mobile terminal list exists in the first mobile terminal list when the second determining unit determines that the first mobile terminal list is not empty;
the third judging unit is configured to add one to the operation frequency when the second judging unit judges that the first mobile terminal list is empty, and judge whether the added operation frequency is greater than an operation error frequency threshold;
the error reporting unit is used for reporting an error when the third judging unit judges that the increased operation times are greater than the operation error time threshold;
the first judging unit is further configured to judge whether all list information in the second mobile terminal list exists in the first mobile terminal list when the third judging unit judges that the increased operation frequency is not greater than the operation error frequency threshold.
23. The upper computer in the system according to claim 17, further comprising a third determining module and a second ending module;
the third judging module is used for judging whether the Bluetooth intelligent secret key equipment executing the inserting event meets the preset requirement or not according to the preset supplier identification and the product equipment identification when the monitoring module monitors the inserting event of the Bluetooth intelligent secret key equipment;
the first obtaining module is further configured to obtain an identifier of the bluetooth smart key device when the third determining module determines, according to a preset vendor identifier and a preset product device identifier, that the bluetooth smart key device executing the insertion event meets a preset requirement;
the second ending module is further configured to end when the third determining module determines, according to the preset vendor identifier and the preset product device identifier, that the bluetooth smart key device executing the insertion event does not meet the preset requirement.
24. The method of claim 17, wherein the host computer is connected to the mobile terminal and to the bluetooth smart key device via a USB interface, and the method comprises:
step S1: when the upper computer monitors an insertion event of the Bluetooth intelligent key device, the upper computer acquires a Bluetooth intelligent key device identifier and sends the acquired Bluetooth intelligent key device identifier to a mobile terminal, wherein the Bluetooth intelligent key device identifier is used for connecting the Bluetooth intelligent key device with the mobile terminal;
step S2: when the upper computer receives the state test data sent by the Bluetooth intelligent secret key equipment, the upper computer judges whether the received state test data is the same as preset successful data, if so, test successful information is displayed, and otherwise, test failed information is displayed;
in step S1, the monitoring, by the upper computer, of the insertion event of the bluetooth smart key device specifically includes:
step D1: when the upper computer monitors the insertion information according to the acquired file descriptor for the device manager, the upper computer acquires a device object of the device corresponding to the monitored insertion information, judges whether the acquired device object is a USB device, if so, executes the step D2, otherwise, ends;
step D2: the upper computer acquires the type attribute of the equipment, judges whether the equipment is hub equipment or not according to the acquired type attribute of the equipment, if so, the operation is finished, otherwise, the step D3 is executed;
step D3: the upper computer judges the operation type of the equipment, if the operation type is the plug-in operation, the step D4 is executed, if the operation type is the plug-out operation, the operation is finished;
step D4: the upper computer acquires the serial numbers of the connection ports of the hub and the upper computer, acquires the serial numbers of the connection ports of the hub and the equipment path of the equipment, and monitors the insertion event of the Bluetooth intelligent key equipment according to the serial numbers of the connection ports of the hub and the upper computer, the serial numbers of the connection ports of the hub, the acquired equipment path and the operation type;
in step S1, the upper computer acquires a bluetooth intelligent key device identifier, specifically:
step A: the upper computer generates a Bluetooth intelligent key device identifier of the Bluetooth intelligent key device according to a preset rule, and sets the generated Bluetooth intelligent key device identifier to the Bluetooth intelligent key device;
the step A specifically comprises the following steps: and the upper computer generates a Bluetooth name of the Bluetooth intelligent secret key equipment according to the serial number of the hub, the port serial number and the machine number on the hub, and sets the generated Bluetooth intelligent secret key equipment identification to the Bluetooth intelligent secret key equipment through a USB interface.
25. The method for operating an upper computer in a system according to claim 24, wherein the step S2 specifically includes: when the upper computer receives the state test data sent by the Bluetooth intelligent secret key equipment through the mobile terminal, the upper computer judges whether the received state test data is the same as preset successful data, if so, test successful information is displayed, and if not, test failed information is displayed.
26. The method of operating an upper computer in the system according to claim 25, wherein in step S1, the upper computer obtains a bluetooth smart key device identifier, and sends the obtained bluetooth smart key device identifier to the mobile terminal, specifically:
and B: the upper computer acquires the Bluetooth intelligent key device identification from the Bluetooth intelligent key device and sends the acquired Bluetooth intelligent key device identification to the mobile terminal.
27. The method for operating an upper computer in a system according to claim 26, wherein the step B specifically comprises: and the upper computer acquires the MAC address from the Bluetooth intelligent key equipment and sends the acquired MAC address to the mobile terminal.
28. The method of claim 24, wherein in S1, when the host monitors an insertion event of the bluetooth smart key device, and before the host obtains an identifier of the bluetooth smart key device, the method further comprises:
the upper computer updates the first mobile terminal list according to the second mobile terminal list;
in step S2, the method further includes, after the displaying the test success information and the display test failure information:
step S3: and the upper computer deletes the list information corresponding to the mobile terminal in the first mobile terminal list from the second mobile terminal list.
29. The method for operating an upper computer in a system according to claim 28, wherein the upper computer updates the first mobile terminal list according to the second mobile terminal list, specifically comprising:
step C1: the upper computer judges whether all list information in the second mobile terminal list exists in the first mobile terminal list, if so, the step C3 is executed, otherwise, the step C2 is executed;
step C2: the upper computer deletes list information of the second mobile terminal list, which does not exist in the first mobile terminal list, in the second mobile terminal list, and executes step C3;
step C3: the upper computer deletes list information of the second mobile terminal list in the first mobile terminal list, and executes the step C4;
step C4: and the upper computer judges whether the first mobile terminal list is empty, adds one to the operation times when the first mobile terminal list is empty, judges whether the added operation times is greater than an operation error time threshold value, reports an error if the operation times is greater than the operation error time threshold value, returns to the step S1 if the operation times is greater than the operation error time threshold value, and executes the step S1 when the first mobile terminal list is not empty.
30. The method of claim 24, wherein in step S1, before the host computer obtains the identifier of the bluetooth smart key device when the host computer monitors an insertion event of the bluetooth smart key device, the method further comprises: and the upper computer judges whether the Bluetooth intelligent secret key equipment executing the insertion event meets the preset requirement or not according to the preset supplier identification and the product equipment identification, if so, the upper computer acquires the Bluetooth intelligent secret key equipment identification, and if not, the operation is finished.
CN201711453468.6A 2017-12-28 2017-12-28 Method and system for preventing interference Active CN108174376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711453468.6A CN108174376B (en) 2017-12-28 2017-12-28 Method and system for preventing interference

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711453468.6A CN108174376B (en) 2017-12-28 2017-12-28 Method and system for preventing interference

Publications (2)

Publication Number Publication Date
CN108174376A CN108174376A (en) 2018-06-15
CN108174376B true CN108174376B (en) 2021-01-01

Family

ID=62518942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711453468.6A Active CN108174376B (en) 2017-12-28 2017-12-28 Method and system for preventing interference

Country Status (1)

Country Link
CN (1) CN108174376B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354628A (en) * 2016-08-12 2017-01-25 北京小米移动软件有限公司 Payment app test method and device thereof
CN206181385U (en) * 2016-11-21 2017-05-17 深圳市丰禾原电子科技有限公司 A test system for bluetooth function test and NFC message read -write

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8351898B2 (en) * 2009-01-28 2013-01-08 Headwater Partners I Llc Verifiable device assisted service usage billing with integrated accounting, mediation accounting, and multi-account
US8014295B2 (en) * 2009-07-14 2011-09-06 Ixia Parallel packet processor with session active checker
US8868971B2 (en) * 2009-08-31 2014-10-21 Comsonics, Inc. Wireless diagnostic system
CN103561478A (en) * 2013-10-10 2014-02-05 华为终端有限公司 Method and device for automatically achieving wireless connection between devices
CN105809948A (en) * 2014-12-29 2016-07-27 西安Tcl软件开发有限公司 Automatic testing method and system for infrared control equipment
CN105159848B (en) * 2015-07-07 2018-06-22 江苏惠通集团有限责任公司 USB device control method, device and system
CN105554905A (en) * 2015-12-10 2016-05-04 飞天诚信科技股份有限公司 Method and device for achieving connection between intelligent secret key device and upper computer Bluetooth
CN105680960B (en) * 2015-12-29 2018-08-10 深圳市金溢科技股份有限公司 A kind of Bluetooth card reader automated testing method, test host computer and test system
CN105678152B (en) * 2016-01-19 2018-06-05 飞天诚信科技股份有限公司 A kind of method and device with intelligent cipher key equipment communication
CN106375947A (en) * 2016-11-21 2017-02-01 深圳市丰禾原电子科技有限公司 Test system for Bluetooth function test and NFC information reading-writing
CN106841975A (en) * 2016-12-14 2017-06-13 新智数字科技有限公司 A kind of test system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354628A (en) * 2016-08-12 2017-01-25 北京小米移动软件有限公司 Payment app test method and device thereof
CN206181385U (en) * 2016-11-21 2017-05-17 深圳市丰禾原电子科技有限公司 A test system for bluetooth function test and NFC message read -write

Also Published As

Publication number Publication date
CN108174376A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN110191450B (en) Service connection establishing method, Bluetooth main device, chip and Bluetooth system
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
CN103597805A (en) Techniques for facilitating interoperation between an accessory and multiple devices
KR100651429B1 (en) Method for displaying process of synchronization
CN110389901B (en) ARM industrial personal computer testing method and device, computer equipment and storage medium
CN103078953B (en) The method of matching is carried out between a kind of networked devices
CN103986615A (en) Testing method and device
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN104572188A (en) System updating method and device for mobile equipment
CN112423368A (en) Gateway, intelligent device, mobile terminal, network access method and network access auxiliary method and system
KR101853812B1 (en) Method for generating electronic appliance identifier and managing information by using the electronic appliance identifier
CN102111728A (en) Network connection management module and method of mobile terminal
CN108174376B (en) Method and system for preventing interference
CN104125593A (en) Information processing method and electronic equipment
CN105187651A (en) Method for adding peripheral equipment to mobile phone app
CN110908881A (en) Method and device for sending buried point data, electronic equipment and computer readable storage medium
CN105357078A (en) Detection method and system of network state of intelligent equipment
CN114158111B (en) Remote network management method, device and computer readable storage medium
CN105163335B (en) A kind of network access management method, server, mobile terminal and system
CN106100904A (en) Equipment method of attachment and equipment connection system
CN112118420A (en) Automatic configuration method and device for monitoring system
CN104657152A (en) Data transmission management method and electronic equipment
CN112399242A (en) Mobile network connection method, device, equipment and medium based on television
CN111786837A (en) System and method for wirelessly modifying configuration parameters of KNX (Konnex) equipment

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