CN107402866B - External equipment protection method of electronic equipment and electronic equipment - Google Patents

External equipment protection method of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN107402866B
CN107402866B CN201710547824.4A CN201710547824A CN107402866B CN 107402866 B CN107402866 B CN 107402866B CN 201710547824 A CN201710547824 A CN 201710547824A CN 107402866 B CN107402866 B CN 107402866B
Authority
CN
China
Prior art keywords
electronic equipment
section
connecting wire
electronic device
wire
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
CN201710547824.4A
Other languages
Chinese (zh)
Other versions
CN107402866A (en
Inventor
陈安然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201710547824.4A priority Critical patent/CN107402866B/en
Publication of CN107402866A publication Critical patent/CN107402866A/en
Application granted granted Critical
Publication of CN107402866B publication Critical patent/CN107402866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/85Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Telephone Function (AREA)

Abstract

An external device protection method of an electronic device and the electronic device are provided, the method comprises: detecting whether the electronic device is moved; if the electronic equipment is moved, identifying whether the electronic equipment is connected with an external device in a wired mode; if the electronic equipment is connected with external equipment in a wired mode, judging whether the moving speed of the electronic equipment reaches a preset threshold value; and if the speed of the electronic equipment which is moved reaches a preset threshold value, controlling the electronic equipment to execute an alarm operation. By implementing the embodiment of the invention, the damage to the external equipment in wired connection with the electronic equipment can be avoided.

Description

External equipment protection method of electronic equipment and electronic equipment
Technical Field
The invention relates to the technical field of electronic equipment, in particular to a method for protecting external equipment of electronic equipment and the electronic equipment.
Background
At present, electronic devices such as smart phones and tablet computers have become essential products for people to live, and earphones, chargers and the like are the most common external devices for electronic devices such as smart phones and tablet computers. In daily life, if a user does not pay attention to a connecting line (such as an earphone cord and a USB cord) for connecting the electronic device and the external device when moving the electronic device, the connecting line is easily broken, and the external device is damaged.
Disclosure of Invention
The embodiment of the invention discloses an external device protection method of electronic equipment and the electronic equipment, which can avoid damage to the external device connected with the electronic equipment in a wired mode.
The first aspect of the embodiments of the present invention discloses a method for protecting an external device of an electronic device, where the method includes:
detecting whether the electronic device is moved;
if the electronic equipment is moved, identifying whether the electronic equipment is connected with external equipment by a connecting wire;
if the electronic equipment is connected with external equipment through a connecting line, judging whether the moving speed of the electronic equipment reaches a preset threshold value;
and if the speed of the electronic equipment which is moved reaches a preset threshold value, controlling the electronic equipment to execute an alarm operation.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the controlling the electronic device to perform the warning operation, the method further includes:
and controlling the electronic equipment to be disconnected from the connecting line between the electronic equipment and the external equipment.
As an optional implementation manner, in the first aspect of the embodiments of the present invention, the connection lines include a first section of connection lines and a second section of connection lines, a first end of the first section of connection lines is electrically connected to the electronic device, and a first end of the second section of connection lines is electrically connected to the external device; a convex transmission line terminal is exposed in the central area of the end surface of the second end of the first section of connecting line, and an energized solenoid of a built-in iron core surrounding the convex transmission line terminal is arranged on the end surface of the second end of the first section of connecting line; the energizing solenoid of the built-in iron core is electrically connected with the electronic equipment through the first end of the first section of connecting wire by the outer connecting wire of the first section of connecting wire, and the outer connecting wire of the first section of connecting wire and the transmission wire where the convex transmission wire terminal is positioned are electrically isolated from each other; the center area of the end face of the second end of the second section of connecting line is exposed with a concave transmission line terminal, the end face of the second end of the second section of connecting line is provided with an iron-cobalt-nickel ring piece surrounding the concave transmission line terminal, and when the power-on solenoid of the built-in iron core is powered on by the electronic equipment through the outer side connecting line of the first section of connecting line to generate a magnetic field to attract the iron-cobalt-nickel ring piece, the convex transmission line terminal is in fit contact with the concave transmission line terminal.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the controlling the electronic device to disconnect a connection line with the external device includes:
and controlling the electronic equipment to be disconnected, and electrifying the electrified solenoid of the built-in iron core through the connection of the outer side of the first section of connecting wire so as to drive the electrified solenoid of the built-in iron core to stop generating a magnetic field and separate the magnetic field from the iron-cobalt-nickel ring piece, so that the convex transmission wire terminal and the concave transmission wire terminal are in contact and separated in an inosculating manner, and the disconnection of the connecting wire between the electronic equipment and the external equipment is realized.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the controlling the electronic device to perform an alert operation includes:
and controlling the electronic equipment to execute any one or more of a buzzing warning operation, a vibration warning operation or a sound effect warning operation.
A second aspect of an embodiment of the present invention discloses an electronic device, including:
a detection unit for detecting whether the electronic device is moved;
the identification unit is used for identifying whether the electronic equipment is connected with external equipment by a connecting wire or not when the detection unit detects that the electronic equipment is moved;
the judging unit is used for judging whether the moving speed of the electronic equipment reaches a preset threshold value or not when the identifying unit identifies that the electronic equipment is connected with external equipment through a connecting line;
and the first control unit is used for controlling the electronic equipment to execute warning operation when the judging unit judges that the moving speed of the electronic equipment reaches a preset threshold value.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the method further includes:
and the second control unit is used for controlling the electronic equipment to disconnect the connection line with the external equipment after the first control unit controls the electronic equipment to execute the warning operation.
As an optional implementation manner, in the first aspect of the embodiments of the present invention, the connection lines include a first section of connection lines and a second section of connection lines, a first end of the first section of connection lines is electrically connected to the electronic device, and a first end of the second section of connection lines is electrically connected to the external device; a convex transmission line terminal is exposed in the central area of the end surface of the second end of the first section of connecting line, and an energized solenoid of a built-in iron core surrounding the convex transmission line terminal is arranged on the end surface of the second end of the first section of connecting line; the energizing solenoid of the built-in iron core is electrically connected with the electronic equipment through the first end of the first section of connecting wire by the outer connecting wire of the first section of connecting wire, and the outer connecting wire of the first section of connecting wire and the transmission wire where the convex transmission wire terminal is positioned are electrically isolated from each other; the center area of the end face of the second end of the second section of connecting line is exposed with a concave transmission line terminal, the end face of the second end of the second section of connecting line is provided with an iron-cobalt-nickel ring piece surrounding the concave transmission line terminal, and when the power-on solenoid of the built-in iron core is powered on by the electronic equipment through the outer side connecting line of the first section of connecting line to generate a magnetic field to attract the iron-cobalt-nickel ring piece, the convex transmission line terminal is in fit contact with the concave transmission line terminal.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, a manner in which the second control unit controls the electronic device to disconnect a connection line between the electronic device and the external device is specifically:
the second control unit controls the electronic equipment to be disconnected and energizes the energized solenoid of the built-in iron core through the connection of the outer side of the first section of connecting wire, so that the energized solenoid of the built-in iron core is driven to stop generating a magnetic field to be separated from the iron cobalt nickel ring piece, the convex transmission wire terminal and the concave transmission wire terminal are in contact and separated in an inosculating mode, and the disconnection of the connecting wire between the electronic equipment and the external equipment is achieved.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, a manner in which the first control unit controls the electronic device to perform the warning operation is specifically:
the first control unit controls the electronic equipment to execute any one or more of buzzer warning operation, vibration warning operation or sound effect warning operation.
A third aspect of an embodiment of the present invention discloses an electronic device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the external equipment protection method of the electronic equipment disclosed by the first aspect of the embodiment of the invention.
A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium, which stores a computer program, where the computer program enables a computer to execute the method for protecting an external device of an electronic device disclosed in the first aspect of the embodiments of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when the electronic equipment is detected to be moved, whether the electronic equipment is connected with the external equipment through the connecting line or not can be identified, if the electronic equipment is connected with the external equipment through the connecting line, whether the moving speed of the electronic equipment reaches the preset threshold or not can be judged, and if the moving speed of the electronic equipment reaches the preset threshold, the electronic equipment can be controlled to execute the warning operation. Therefore, by implementing the embodiment of the invention, the situation that the connecting line (such as an earphone line and a USB line) for connecting the electronic equipment and the external equipment is pulled off without attention by a user when the electronic equipment is moved can be prevented, so that the external equipment in wired connection with the electronic equipment can be prevented from being damaged.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for protecting an external device of an electronic device according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating another method for protecting an external device of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an electronic device connected to an external device through a connection line according to an embodiment of the disclosure;
fig. 4 is an end view of the second end x2 of the first segment of the connection line a according to the embodiment of the present invention;
FIG. 5 is a schematic end view of the second end y2 of the second connecting wire b according to the embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of another electronic device disclosed in the 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.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses an external device protection method of electronic equipment and the electronic equipment, which can avoid damage to the external device connected with the electronic equipment in a wired mode. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for protecting an external device of an electronic device according to an embodiment of the present invention. The method for protecting the external device of the electronic device depicted in fig. 1 is suitable for an electronic device such as a smart phone and a tablet computer, which can be connected to the external device through a connection line (e.g., an earphone line and a USB line), and the embodiment of the present invention is not limited thereto. The operating system of the electronic device may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Black Berry operating system, a Windows Phone8 operating system, and the like. As shown in fig. 1, the method for protecting an external device of an electronic device may include the following steps:
101. the electronic device detects whether the electronic device is moved, if the electronic device is moved, step 102 is executed; if the electronic device is not moved, the flow is ended.
In the embodiment of the present invention, the electronic device may utilize the acceleration sensor to detect whether the electronic device is moved, and if the electronic device is moved, step 102 is executed; if the electronic device is not moved, the flow is ended.
102. The electronic device identifies whether the electronic device is connected with the external device through the connecting line, and if the electronic device is connected with the external device through the connecting line, step 103 is executed; if the electronic equipment is not connected with the external equipment through the connecting line, the process is ended.
103. The electronic device judges whether the moving speed of the electronic device reaches a preset threshold value, and if the moving speed of the electronic device reaches the preset threshold value, the step 104 is executed; if the moving speed of the electronic equipment does not reach the preset threshold value, the flow is ended.
104. The electronic equipment controls the electronic equipment to execute warning operation.
As an alternative implementation, the manner in which the electronic device controls the electronic device to perform the warning operation may be:
the electronic device controls the electronic device to perform any one or more of a buzzing warning operation, a vibration warning operation or a sound warning operation, which is not limited in the embodiments of the present invention.
In the method described in fig. 1, when it is detected that the electronic device is moved, it may be identified whether the electronic device is connected to the external device through the connection line, and if the electronic device is connected to the external device through the connection line, it may be determined whether the speed at which the electronic device is moved reaches a preset threshold, and if the speed at which the electronic device is moved reaches the preset threshold, the electronic device may be controlled to perform an alarm operation. Therefore, in the method described in fig. 1, it is possible to prevent the user from inadvertently pulling out the connection line (e.g., an earphone line or a USB line) for connecting the electronic device and the external device when moving the electronic device, so as to prevent the external device connected to the electronic device via a cable from being damaged.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another method for protecting an external device of an electronic device according to an embodiment of the present invention. As shown in fig. 2, the method for protecting an external device of an electronic device may include the following steps:
201. the electronic device detects whether the electronic device is moved, and if the electronic device is moved, step 202 is executed; if the electronic device is not moved, the flow is ended.
In the embodiment of the present invention, the electronic device may utilize the acceleration sensor to detect whether the electronic device is moved, and if the electronic device is moved, step 202 is executed; if the electronic device is not moved, the flow is ended.
202. The electronic device identifies whether the electronic device is connected with the external device through the connecting line, and if the electronic device is connected with the external device through the connecting line, step 203 is executed; if the electronic equipment is not connected with the external equipment through the connecting line, the process is ended.
203. The electronic device judges whether the moving speed of the electronic device reaches a preset threshold value, and if the moving speed of the electronic device reaches the preset threshold value, step 204 is executed; if the moving speed of the electronic equipment does not reach the preset threshold value, the flow is ended.
204. The electronic equipment controls the electronic equipment to execute warning operation.
As an alternative implementation, the manner in which the electronic device controls the electronic device to perform the warning operation may be:
the electronic device controls the electronic device to perform any one or more of a buzzing warning operation, a vibration warning operation or a sound warning operation, which is not limited in the embodiments of the present invention.
205. The electronic equipment controls the electronic equipment to disconnect the connection wire with the external equipment.
Referring to fig. 3, fig. 3 is a schematic diagram of an electronic device connected to an external device through a connection line according to an embodiment of the disclosure. As shown in fig. 3, the connection lines include a first connection line a and a second connection line b, the first end x1 of the first connection line a is electrically connected with the electronic device, and the first end y1 of the second connection line b is electrically connected with the external device; the second end x2 of the first segment of the connection line a is electrically connected with the second end y2 of the second segment of the connection line b.
Referring to fig. 4, fig. 4 is an end view of the second end x2 of the first segment of the connection line a according to the embodiment of the disclosure. As shown in fig. 4, the central region of the end surface of the second end x2 of the first segment of the connecting wire a is exposed with a convex transmission line terminal s1, and the end surface of the second end x2 of the first segment of the connecting wire a is provided with an energizing solenoid s2 of an internal iron core surrounding the convex transmission line terminal s 1; wherein the energizing solenoid s2 of the built-in iron core is electrically connected to the electronic device through the first end x1 of the first segment of the connecting wire a by the outer connecting wire (not shown in the figure) of the first segment of the connecting wire a, and the outer connecting wire of the first segment of the connecting wire a and the transmission line where the convex transmission line terminal s1 is located are electrically isolated from each other.
Referring to fig. 5, fig. 5 is an end view of the second end y2 of the second connecting wire b according to the embodiment of the disclosure. As shown in fig. 5, the concave transmission line terminal s3 is exposed in the central region of the end surface of the second end y2 of the second section of the connection line b, and the iron-cobalt-nickel ring member s4 surrounding the concave transmission line terminal s3 is arranged on the end surface of the second end y2 of the second section of the connection line b, when the energization solenoid s2 with the built-in iron core is energized by the electronic device through the outer side connection line of the first section of the connection line a to generate a magnetic field to attract the iron-cobalt-nickel ring member s4, the convex transmission line terminal s1 is in fit contact with the concave transmission line terminal s 3.
In addition to fig. 3 to 5, in step 205, the method for the electronic device to control the electronic device to disconnect the connection line with the external device may be:
the electronic device can control the electronic device to disconnect the connection wire between the electronic device and the external device by connecting the outer side of the first section of the connection wire a to electrify the electrifying solenoid s2 of the built-in iron core so as to drive the electrifying solenoid s2 of the built-in iron core to stop generating the magnetic field to separate from the iron-cobalt-nickel ring piece s4, so that the male transmission line terminal s1 is separated from the female transmission line terminal s3 in a matched contact manner.
In daily life, when a user needs to connect the electronic device with an external device (such as a charger) through a connecting line, the user can electrically connect the first end x1 of the first section of the connecting line a with the electronic device, and at the moment, the electronic device can electrify the energizing solenoid s2 of the built-in iron core surrounding the convex transmission line terminal s1, which is arranged on the end surface of the second end x2 of the first section of the connecting line a, through the connecting line outside the first section of the connecting line a, so that the energizing solenoid s2 of the built-in iron core can generate a magnetic field; on the basis, a user can electrically connect the first end y1 of the second section of the connecting wire b with the external device, and the end face of the second end y2 of the second section of the connecting wire b is close to the end face of the second end x2 of the first section of the connecting wire a, so that the energized solenoid s2 of the built-in iron core arranged on the end face of the second end x2 of the first section of the connecting wire a and surrounding the male transmission wire s1 can attract each other with the iron-cobalt-nickel ring part s4 arranged on the end face of the second end y2 of the second section of the connecting wire b and surrounding the female transmission wire s3, so that the male transmission wire terminal s1 is in fit contact with the female transmission wire terminal s3 to form a transmission line, and normal transmission between the electronic device and the external device is realized.
Therefore, in the method described in fig. 2, it is possible to prevent the user from inadvertently pulling out the connection line (e.g., an earphone line or a USB line) for connecting the electronic device and the external device when moving the electronic device, so as to prevent the external device connected to the electronic device via a cable from being damaged.
EXAMPLE III
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. As shown in fig. 6, the electronic device may include:
a detection unit 601 for detecting whether the electronic device is moved;
an identifying unit 602, configured to identify whether the electronic device is connected to an external device through a connection line when the detecting unit 601 detects that the electronic device is moved;
a determining unit 603, configured to determine whether a moving speed of the electronic device reaches a preset threshold value when the identifying unit 602 identifies that the electronic device is connected to the external device through a connection line;
a first control unit 604, configured to control the electronic device to perform an alarm operation when the determining unit 603 determines that the speed at which the electronic device is moved reaches the preset threshold.
As an alternative implementation, the electronic device shown in fig. 6 may further include:
and the second control unit 605 is configured to control the electronic device to disconnect the connection line with the external device after the first control unit 604 controls the electronic device to perform the warning operation.
Referring to fig. 3, fig. 3 is a schematic diagram of an electronic device connected to an external device through a connection line according to an embodiment of the disclosure. As shown in fig. 3, the connection lines include a first connection line a and a second connection line b, the first end x1 of the first connection line a is electrically connected with the electronic device, and the first end y1 of the second connection line b is electrically connected with the external device; the second end x2 of the first segment of the connection line a is electrically connected with the second end y2 of the second segment of the connection line b.
Referring to fig. 4, fig. 4 is an end view of the second end x2 of the first segment of the connection line a according to the embodiment of the disclosure. As shown in fig. 4, the central region of the end surface of the second end x2 of the first segment of the connecting wire a is exposed with a convex transmission line terminal s1, and the end surface of the second end x2 of the first segment of the connecting wire a is provided with an energizing solenoid s2 of an internal iron core surrounding the convex transmission line terminal s 1; wherein the energizing solenoid s2 of the built-in iron core is electrically connected to the electronic device through the first end x1 of the first segment of the connecting wire a by the outer connecting wire (not shown in the figure) of the first segment of the connecting wire a, and the outer connecting wire of the first segment of the connecting wire a and the transmission line where the convex transmission line terminal s1 is located are electrically isolated from each other.
Referring to fig. 5, fig. 5 is an end view of the second end y2 of the second connecting wire b according to the embodiment of the disclosure. As shown in fig. 5, the concave transmission line terminal s3 is exposed in the central region of the end surface of the second end y2 of the second section of the connection line b, and the iron-cobalt-nickel ring member s4 surrounding the concave transmission line terminal s3 is arranged on the end surface of the second end y2 of the second section of the connection line b, when the energization solenoid s2 with the built-in iron core is energized by the electronic device through the outer side connection line of the first section of the connection line a to generate a magnetic field to attract the iron-cobalt-nickel ring member s4, the convex transmission line terminal s1 is in fit contact with the concave transmission line terminal s 3.
On the basis of fig. 3 to 5, the manner of controlling the electronic device to disconnect the connection line with the external device by the second control unit 605 may be:
the second control unit 605 may control the electronic device to disconnect the connection line between the electronic device and the external device by disconnecting the external connection s3 of the first segment of the connection line a to energize the energizing solenoid s2 of the internal core to drive the energizing solenoid s2 of the internal core to stop generating the magnetic field to separate from the ferrocobalnickle ring s4, so that the male transmission line terminal s1 is separated from the mating contact of the female transmission line terminal s 3.
In this embodiment of the present invention, the first control unit 604 may control the electronic device to perform any one or more of a buzzer warning operation, a vibration warning operation, and a sound warning operation, which is not limited in the embodiment of the present invention.
Example four
Referring to fig. 7, fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the disclosure. As shown in fig. 7, the electronic device may further include:
a memory 701 in which executable program code is stored;
a processor 702 coupled to the memory 701;
the processor 702 calls the executable program code stored in the memory 701 to execute the external device protection method of any one of the electronic devices in fig. 1 to 2.
It should be noted that the electronic device shown in fig. 7 may further include a peripheral interface (such as an earphone interface and a USB interface), a power supply, an input key, a camera, a speaker, a screen, an RF circuit, a Wi-Fi module, a bluetooth module, a sensor, and other components that are not shown, which is not described in detail in this embodiment.
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program, wherein the computer program enables a computer to execute a method for protecting an external device of any one of electronic devices shown in figures 1-2.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by instructions associated with a program, which may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), compact disc-Read-Only Memory (CD-ROM), or other Memory, magnetic disk, magnetic tape, or magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
The external device protection method for the electronic device and the electronic device disclosed in the embodiments of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the embodiments above is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (4)

1. An external device protection method for an electronic device, the method comprising:
detecting whether the electronic device is moved;
if the electronic equipment is moved, identifying whether the electronic equipment is connected with external equipment by a connecting wire;
if the electronic equipment is connected with external equipment through a connecting line, judging whether the moving speed of the electronic equipment reaches a preset threshold value;
if the speed of the electronic equipment which is moved reaches a preset threshold value, controlling the electronic equipment to execute warning operation;
the connecting wires comprise a first section of connecting wire and a second section of connecting wire, the first end of the first section of connecting wire is electrically connected with the electronic equipment, and the first end of the second section of connecting wire is electrically connected with the external equipment; a convex transmission line terminal is exposed in the central area of the end surface of the second end of the first section of connecting line, and an energized solenoid of a built-in iron core surrounding the convex transmission line terminal is arranged on the end surface of the second end of the first section of connecting line; the energizing solenoid of the built-in iron core is electrically connected with the electronic equipment through the first end of the first section of connecting wire by the outer connecting wire of the first section of connecting wire, and the outer connecting wire of the first section of connecting wire and the transmission wire where the convex transmission wire terminal is positioned are electrically isolated from each other; a concave transmission line terminal is exposed in the central area of the end face of the second end of the second section of connecting line, an iron-cobalt-nickel ring piece surrounding the concave transmission line terminal is arranged on the end face of the second end of the second section of connecting line, and when an electrified solenoid of the built-in iron core is electrified by the electronic equipment through the outer connecting line of the first section of connecting line to generate a magnetic field to attract the iron-cobalt-nickel ring piece mutually, the convex transmission line terminal is in fit contact with the concave transmission line terminal;
the method further comprises the following steps:
and controlling the electronic equipment to be disconnected, and electrifying the electrified solenoid of the built-in iron core through the connection of the outer side of the first section of connecting wire so as to drive the electrified solenoid of the built-in iron core to stop generating a magnetic field and separate the magnetic field from the iron-cobalt-nickel ring piece, so that the convex transmission wire terminal and the concave transmission wire terminal are in contact and separated in an inosculating manner, and the disconnection of the connecting wire between the electronic equipment and the external equipment is realized.
2. The external device protection method according to claim 1, wherein the controlling the electronic device to perform an alert operation includes:
and controlling the electronic equipment to execute any one or more of vibration warning operation or sound warning operation.
3. An electronic device, characterized in that the electronic device comprises:
a detection unit for detecting whether the electronic device is moved;
the identification unit is used for identifying whether the electronic equipment is connected with external equipment by a connecting wire or not when the detection unit detects that the electronic equipment is moved;
the judging unit is used for judging whether the moving speed of the electronic equipment reaches a preset threshold value or not when the identifying unit identifies that the electronic equipment is connected with external equipment through a connecting line;
the first control unit is used for controlling the electronic equipment to execute warning operation when the judging unit judges that the moving speed of the electronic equipment reaches a preset threshold value;
the connecting wires comprise a first section of connecting wire and a second section of connecting wire, the first end of the first section of connecting wire is electrically connected with the electronic equipment, and the first end of the second section of connecting wire is electrically connected with the external equipment; a convex transmission line terminal is exposed in the central area of the end surface of the second end of the first section of connecting line, and an energized solenoid of a built-in iron core surrounding the convex transmission line terminal is arranged on the end surface of the second end of the first section of connecting line; the energizing solenoid of the built-in iron core is electrically connected with the electronic equipment through the first end of the first section of connecting wire by the outer connecting wire of the first section of connecting wire, and the outer connecting wire of the first section of connecting wire and the transmission wire where the convex transmission wire terminal is positioned are electrically isolated from each other; a concave transmission line terminal is exposed in the central area of the end face of the second end of the second section of connecting line, an iron-cobalt-nickel ring piece surrounding the concave transmission line terminal is arranged on the end face of the second end of the second section of connecting line, and when an electrified solenoid of the built-in iron core is electrified by the electronic equipment through the outer connecting line of the first section of connecting line to generate a magnetic field to attract the iron-cobalt-nickel ring piece mutually, the convex transmission line terminal is in fit contact with the concave transmission line terminal;
and the second control unit is used for controlling the electronic equipment to be disconnected after the first control unit controls the electronic equipment to execute the warning operation, electrifying the electrified solenoid of the built-in iron core through the connection of the outer side of the first section of connecting wire so as to drive the electrified solenoid of the built-in iron core to stop generating a magnetic field and separate the electrified solenoid from the iron cobalt nickel ring piece, so that the convex transmission wire terminal and the concave transmission wire terminal are in contact and separated in an inosculating manner, and the disconnection of the connecting wire between the electronic equipment and the external equipment is realized.
4. The electronic device according to claim 3, wherein the first control unit controls the electronic device to perform the warning operation by:
the first control unit controls the electronic equipment to execute any one or more of vibration warning operation or sound effect warning operation.
CN201710547824.4A 2017-07-06 2017-07-06 External equipment protection method of electronic equipment and electronic equipment Active CN107402866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710547824.4A CN107402866B (en) 2017-07-06 2017-07-06 External equipment protection method of electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710547824.4A CN107402866B (en) 2017-07-06 2017-07-06 External equipment protection method of electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN107402866A CN107402866A (en) 2017-11-28
CN107402866B true CN107402866B (en) 2020-11-03

Family

ID=60404982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710547824.4A Active CN107402866B (en) 2017-07-06 2017-07-06 External equipment protection method of electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN107402866B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204706725U (en) * 2015-05-13 2015-10-14 李陶 A kind of charging data line
CN105007356A (en) * 2015-07-30 2015-10-28 Tcl移动通信科技(宁波)有限公司 Method and system for preventing battery output current from being hopped and mobile terminal
CN105825153A (en) * 2016-03-17 2016-08-03 广东欧珀移动通信有限公司 Method and device for protecting mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204706725U (en) * 2015-05-13 2015-10-14 李陶 A kind of charging data line
CN105007356A (en) * 2015-07-30 2015-10-28 Tcl移动通信科技(宁波)有限公司 Method and system for preventing battery output current from being hopped and mobile terminal
CN105825153A (en) * 2016-03-17 2016-08-03 广东欧珀移动通信有限公司 Method and device for protecting mobile terminal

Also Published As

Publication number Publication date
CN107402866A (en) 2017-11-28

Similar Documents

Publication Publication Date Title
CN110571759B (en) Charging protection method and device
KR102584438B1 (en) Device for adjusting path of power and operation method thereof
KR102343269B1 (en) Wearable Electronic Device
CN104832446A (en) Method and device for controlling fan
US20170257072A1 (en) Intelligent audio output devices
US20220028233A1 (en) Security system with kill switch functionality
KR20150020997A (en) Electronic device for controlling display based on accessory device information, method thereof, and associated accessory device
CN105527850B (en) Power off based reminding method and device
US11163289B2 (en) Control device, terminal device, cradle, notification system, control method, and storage medium
EP2961197B1 (en) Apparatus and method for preventing malfunction in an electronic device
CN113068114B (en) Wireless earphone anti-lost method and related product
KR100695081B1 (en) Method for Preventing Loss of Electrical Equipment Using Short Distance Wireless Communications and Mobile Communication Terminal Therefor
KR20200101035A (en) Electronic device and method for transmitting wireless power based on detecting foreign object in electronic device
US10027156B2 (en) Electronic apparatus and charging method
CN105279897A (en) Vehicle alarming method and device
CN107402866B (en) External equipment protection method of electronic equipment and electronic equipment
CN112398187A (en) Wearable device, charging control method, and storage medium
US20190379776A1 (en) Control device, terminal device, cradle, notification system, control method, and storage medium
KR20200100976A (en) Method for wireless power charging and electronic device using the same
CN105141785A (en) Telephone answering method and device
KR20190137523A (en) Method and an electronic apparatus for preventing corrosion of audio jacks
US10616390B2 (en) Control device, terminal device, cradle, notification system, control method, and storage medium
CN111866691A (en) State detection method and device of wireless earphone and earphone
US9716532B2 (en) Power receiver, method of controlling power receiver, and program
CN104780274A (en) Terminal

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