Security protection method and device, electronic equipment and storage medium
By entering the security protection detection mode when the positioning device of the electronic device is in an abnormal state, the problem of abnormal position of the electronic device is judged and dealt with, the security risks caused by limited user experience and failure of wireless security technology are solved, and more efficient security protection is achieved.
Patent Information
- Application Number
- CN202510134669.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-06
- Publication Date
- 2025-05-02
AI Technical Summary
The existing electronic equipment experience prototypes have a small user experience range due to the limitations of wired ropes, which affects the user experience; and when wireless security technology fails or is abnormal, it will pose huge security risks.
When the positioning device of the electronic device is in an abnormal state, it enters the security protection detection mode, initializes the position information and connection status information, and determines whether the electronic device is in a preset area, and executes an abnormality processing strategy if it is external.
It realizes that when the positioning device is abnormal, the position of the electronic device is accurately judged and the abnormal handling strategy is implemented, which improves the safety protection effect of the electronic device and reduces safety hazards.
Smart Images

Figure CN119922489A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of protection technology, and specifically to a security protection method, device, electronic device and storage medium. Background Art
[0002] At present, when various electronic devices are sold in stores, a certain number of trial prototypes will be placed for consumers to actually experience. In related technologies, these trial prototypes are usually connected to wired ropes to achieve safety protection functions. However, this protection method is limited by the length of the wired ropes, and the range of activities for consumers during the experience is small, and the experience process is limited, which affects the user experience. Some stores also use wireless technologies such as video surveillance technology and audio positioning technology for security protection. When these wireless security technologies are in operation, they can have a wider range of use during the user experience, and the trial experience process is better. However, once this type of wireless security technology fails or an abnormality occurs during use, it will pose a huge safety hazard. Summary of the invention
[0003] The present application provides a security protection method, device, electronic device and storage medium to at least partially improve the above-mentioned technical problems.
[0004] In a first aspect, an embodiment of the present application provides a security protection method applied to an electronic device, wherein the electronic device includes a positioning device, and the method includes entering a security protection detection mode when the positioning device is in an abnormal state, initializing the location information and connection status information of the electronic device; if at least one of the location information and the connection status information meets a preset condition, determining whether the electronic device is outside a preset area; when the electronic device is outside the preset area, executing an exception handling strategy.
[0005] In a second aspect, an embodiment of the present application further provides a security protection device, which is applied to an electronic device, wherein the electronic device includes a positioning device, and the security protection device includes an information initialization module, a position determination module, and an exception handling module. The information initialization module is used to enter a security protection detection mode when the positioning device is in an abnormal state, and initialize the position information and connection status information of the electronic device. The position determination module is used to determine whether the electronic device is outside a preset area if at least one of the position information and the connection status information meets a preset condition. The exception handling module is used to execute an exception handling strategy when the electronic device is outside the preset area.
[0006] In a third aspect, an embodiment of the present application further provides an electronic device, including a positioning device, a processor and a memory, wherein the processor is electrically connected to the positioning device; the memory is coupled to the processor; and the memory stores instructions, which, when executed by the processor, enable the processor to execute the aforementioned method.
[0007] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the aforementioned method.
[0008] The security protection method, device, electronic device and storage medium provided in the embodiments of the present application can use the positioning device in the electronic device to accurately locate and realize the security protection of the electronic device. When the positioning device is in an abnormal state, it enters the security protection detection mode, and accurately determines whether the current position of the electronic device is within the preset area by judging the location information and connection status information of the initialized electronic device. If the electronic device is outside the preset area, the abnormality handling strategy is executed, thereby realizing the security protection of the electronic device.
[0009] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0011] Figure 1 It is a structural schematic diagram of an electronic device shown in an embodiment of the present application.
[0012] Figure 2 It is a schematic diagram of the layout structure of a store shown in an embodiment of the present application.
[0013] Figure 3 It is a flow chart of a security protection method shown in an embodiment of the present application.
[0014] Figure 4 It is a flow chart of another security protection method provided in an embodiment of the present application.
[0015] Figure 5 It is a flow chart of another security protection method provided in an embodiment of the present application.
[0016] Figure 6 It is a flowchart of an abnormal scene determination method provided in an embodiment of the present application.
[0017] Figure 7 It is a flow chart of another security protection method provided in an embodiment of the present application.
[0018] Figure 8 It is a structural block diagram of a safety protection device provided in an embodiment of the present application.
[0019] Fig. 9 It is a structural block diagram of another safety protection device provided in an embodiment of the present application.
[0020] Fig.10 It is a structural block diagram of another safety protection device provided in an embodiment of the present application.
[0021] Fig.11 It is a structural block diagram of another safety protection device provided in an embodiment of the present application.
[0022] Fig.12 It is a structural block diagram of an electronic device provided in an embodiment of the present application.
[0023] Fig.13 It is a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] In the related art, stores used to display and sell electronic devices usually display one or more electronic devices. In some stores, these electronic devices usually use wired anti-theft systems, but such wired anti-theft systems will limit the actual experience of users when experiencing electronic devices. Wireless anti-theft systems can greatly improve the user experience of store users and have become a major trend. However, when these wireless security technologies are in operation, the user experience process can have a wider range of use and a better trial experience process. However, once such wireless security technologies fail or abnormalities occur during use, they will pose a huge safety hazard.
[0026] See also Figure 1 , Figure 1The structure of an electronic device 100 is shown. The electronic device 100 includes a housing 101, and the electronic device also includes a positioning device 103. The positioning device 103 can be one or more of an AR positioning device, a radio frequency fingerprint positioning device, an audio positioning device, a UWB positioning device, a Bluetooth positioning device, etc., and this embodiment does not limit this. It can be understood that according to the different wireless positioning technologies adopted, the positioning device 103 can have different hardware structures. For example, if the positioning device 103 adopts audio positioning technology, the positioning device 103 includes a microphone. If the positioning device 103 adopts Bluetooth positioning technology, the positioning device includes a Bluetooth module. If the positioning device 103 adopts UWB positioning technology, the positioning device includes a UWB tag. This embodiment does not limit the specific structure of the positioning device 103.
[0027] The electronic device 100 may further include a display screen 102, wherein the display screen 102 is disposed on the housing 101 and may be used for human-computer interaction. The display screen 102 may be any type of display screen 102 such as LCD, LED, OLED, QLED, etc. The display screen 102 may display a display interface for human-computer interaction with a user, and may receive operation instructions from the user.
[0028] In some embodiments, the electronic device 100 may further include an inertial measurement unit 105, which may be, for example, a gyroscope, an acceleration sensor, an inertial sensor, etc., which is not limited here. And the inertial measurement unit 105 may be one, two or more. The inertial measurement unit 105 may measure the attitude information of the electronic device 100 (for example, the attitude angle between the electronic device 100 and the horizontal plane, the attitude angle between the electronic device 100 and the vertical plane, etc.), and acceleration information. The electronic device 100 may further include a processor and a memory, the processor may be electrically connected to the positioning device, the display screen 102, and the inertial measurement unit 105, and receive information from the positioning device, the display screen 102, and the inertial measurement unit 105, and process it, the memory may store instructions, and the instructions may be called and executed by the processor.
[0029] The electronic device 100 may further include a communication module 104, which is used to communicate with an external device. The communication module 104 may include one or more of a Bluetooth module, a WiFi module, an infrared communication module, a UWB communication module, a mobile communication module, etc., which is not limited in this embodiment. In addition, the electronic device 100 may also include various sensors, such as proximity sensors, light sensors, AI sensors, etc.
[0030] Figure 2A schematic diagram of a store 200 is shown, in which a plurality of electronic devices 100, a designated device 201, and a WiFi device 202 are included. The designated device 201 can communicate with the electronic device 100 through Bluetooth communication, mobile network communication, infrared communication, and other communication methods. At the same time, both the electronic device 100 and the designated device 201 can be connected to the WiFi device so that the electronic device 100 and the designated device 201 are connected to the same network. The designated device 201 can be a mobile phone, a tablet computer, a computer, a wearable device, and other types of devices, which are not limited in this embodiment.
[0031] A preset area 203 may also be set in the store 200, and the preset area 203 may be a store showroom area. The location information within the preset area 203 is fixed, and the location information set within the preset area 203 may be collected in advance and stored in the electronic device 100 and / or the designated device 201, or may also be stored in a cloud server. After obtaining the location information of the electronic device 100, the positioning device 103 in the electronic device 100 may determine whether the electronic device 100 is within the preset area 203 by comparing it with the location information set within the preset area 203.
[0032] See also Figure 3 This embodiment provides a security protection method, which can be applied to the above-mentioned electronic device. The security protection method may include the following steps S110-S130.
[0033] Step S110: When the positioning device is in an abnormal state, enter the safety protection detection mode to initialize the location information and connection status information of the electronic device.
[0034] The positioning device is in an abnormal state, which means that the positioning device cannot work normally. At this time, the positioning device cannot obtain the location information of the electronic device or the location information of the electronic device collected is significantly different from the actual location. When the positioning device is in an abnormal state, it indicates that the current security protection method of positioning through the positioning device is no longer feasible, so it enters the security protection detection mode. The security protection detection mode is used to determine whether the current electronic device has an abnormal condition, such as being taken away or hidden.
[0035] The location information of the electronic device refers to the location information collected by the positioning device. Since the positioning device is in an abnormal state at this time, the location information of the electronic device cannot be collected. Initializing the location information of the electronic device refers to using the location information collected by the positioning device for the last time as the current location information.
[0036] The connection status information refers to the connection status between the electronic device and other communication devices in the store. The connection status can be connected, connectable, unconnectable or not found, etc., where connected means that the current electronic device is in a connected state with other communication devices, connectable means that the current electronic device is in a state where it can connect with other communication devices, but is not connected, not found means that the current electronic device has not found other communication devices and cannot be connected, and unconnectable means that the electronic device can find other communication devices, but the distance is far, the signal is weak, and a stable connection cannot be established. Other communication devices can be routers, devices with Bluetooth communication functions, devices with infrared communication functions, etc. In electronic equipment display stores, electronic devices should always be within the location of the store under normal circumstances. At this time, the communication module of the electronic device can communicate and connect with other communication devices in the store or can scan other communication devices.
[0037] Initializing the connection status information refers to obtaining the connection status of the current electronic device and other communication devices. By initializing the connection status information, the connection status of the current electronic device and other communication devices can be determined as a judgment condition of the current position of the electronic device.
[0038] It should be noted that in this embodiment, when the positioning device is in a normal state, there is no need to enter the safety protection detection mode. At this time, the positioning device obtains the location information of the electronic device, and after determining the location information, it can provide safety protection for the electronic device. For example, when the location information of the electronic device is outside the store, it can be determined that there is a safety protection problem with the electronic device. At this time, the electronic device can send an alarm message to the store to remind the staff to intervene in time. Or when the location information of the electronic device is outside the preset area, it can be determined that there is a safety protection problem with the electronic device. Among them, the alarm information can be voice information, vibration information, light flashing information, etc., which is not limited in this embodiment.
[0039] Step S120: If at least one of the location information and the connection status information meets a preset condition, determine whether the electronic device is outside a preset area.
[0040] The preset area may refer to an area determined artificially. For example, in a more specific implementation, the preset area may be the location area of a store. In another more specific implementation, the preset area may be an electronic fence area. When the electronic device is in the preset area, it indicates that the current electronic device is in a safe state. When the electronic device is outside the preset area, it indicates that the current electronic device is in an unsafe state and may be stolen.
[0041] The preset condition may be a pre-set condition for determining the location of the electronic device. Both the location information and the connection status information can be used to determine the location of the electronic device, so only at least one of the location information and the connection status information needs to meet the preset condition to determine that the electronic device is outside the preset area. It is understandable that at least one of the location information and the connection status information meets the preset condition, and determining whether the electronic device is outside the preset area means that: the location information meets the preset condition or the connection status information meets the preset condition, or both the location information and the connection status information meet the preset condition.
[0042] In a more specific implementation, the preset condition may include a first preset condition and a second preset condition, the first preset condition may refer to the location information being outside a preset area, and the second preset condition may refer to the connection status between the electronic device and other communication devices being undiscovered or unconnectable. When at least one of the first preset condition and the second preset condition is satisfied, it can be determined that the preset condition is satisfied, that is, the electronic device is outside the preset area at this time.
[0043] For example, in a more specific embodiment, the electronic device has a communication module, which may be a Bluetooth module. A Bluetooth communication device may be set within the range of the store. When the electronic device is within the normal range of the store, the communication module may establish a Bluetooth connection with the Bluetooth communication device, i.e., it is in a connected state, or may scan the Bluetooth communication device, i.e., it is in a connectable state. When the electronic device is outside the normal range of the store, the communication module is beyond the range for connecting with the Bluetooth communication device, i.e., it is in an undiscovered state. When the communication module is in an undiscovered state, it can be determined that the second preset condition is met, i.e., the electronic device is outside the preset area at this time.
[0044] In another more specific embodiment, the electronic device has a communication module, which can be a WiFi module. A router can be set up within the store. When the electronic device is within the normal range of the store, the WiFi module can establish a communication connection with the router, that is, it is in a connected state, or it can scan the network of the router, but the signal is weak and a stable connection cannot be established, that is, it is in an unconnectable state. When the electronic device is outside the normal range of the store, the WiFi module exceeds the range for connecting to the router's network and cannot scan the router's network signal, that is, it is in an undiscovered state. When the communication module is in an undiscovered state, it can be determined that the second preset condition is met, that is, the electronic device is outside the preset area at this time.
[0045] In another more specific embodiment, the electronic device has a communication module, which may be an infrared communication module. An infrared communication device may be set within the store. When the electronic device is within the normal range of the store, the infrared communication module may establish an infrared communication connection with the infrared communication device, i.e., it is in a connected state, or may scan the infrared communication device, i.e., it is in a connectable state. When the electronic device is outside the normal range of the store, the communication module is beyond the range for connecting with the infrared communication device, i.e., it is in an undiscovered state. When the infrared communication module is in an undiscovered state, it can be determined that the second preset condition is met, i.e., the electronic device is outside the preset area at this time.
[0046] In another more specific embodiment, when the location information is outside the preset area, it can be determined that the first preset condition is met, that is, the electronic device is outside the preset area at this time.
[0047] When it is determined that the electronic device is outside the preset area, step S130 is executed.
[0048] Step S130: Execute the exception handling strategy.
[0049] When an electronic device is outside the preset area, by executing the exception handling strategy, the staff can be notified that the current electronic device may have a security problem, such as theft. The exception handling strategy can include a variety of processing methods, as long as it can ensure that the staff can be notified that the current electronic device may have a security problem.
[0050] In a more specific embodiment, executing the exception handling strategy may be controlling the electronic device to send a prompt message, and the prompt message may be a voice message such as a ringing bell, a voice broadcast, etc. The prompt message may also be a pop-up window message, such as a pop-up window reminder displayed on a display screen. In other embodiments, the prompt message may also be sent to a designated device through a communication module, and the designated device may refer to other terminal devices in the store. In this case, the prompt message may also be a pop-up window message and be displayed on the designated device. In other embodiments, the prompt message may also be a vibration reminder, and the vibration reminder may be on the electronic device or on the designated device, which is not limited in this embodiment. In other embodiments, the prompt message may also be a photoelectric flashing signal, such as controlling the flash of the electronic device to turn on. Similarly, the photoelectric flashing signal may be on the electronic device or on the designated device, which is not limited in this embodiment.
[0051] In another more specific implementation, executing the exception handling strategy may be controlling the electronic device to enter a locked state, after which the electronic device cannot be operated. In another more specific implementation, executing the exception handling strategy may be calling a designated device, that is, when executing the exception handling strategy, a communication connection request may be initiated to the designated device, and the communication connection request may protect the information of the electronic device, such as identity information, SIM card account information, etc. When the designated device receives the communication connection request, it rings to alert the staff, and the staff can determine the electronic device that currently initiates the communication connection request based on the communication connection request, and know that the electronic device is already outside the preset area.
[0052] By executing the exception handling strategy, the staff can be notified that the current electronic device is outside the preset area and may have been stolen and needs to be stopped in time. After executing the exception handling strategy, the staff will know the current status of the electronic device and can recover the electronic device and manually restore the status of the positioning device. Therefore, in some embodiments, refer to Figure 4 , after step S130, step S140 may also be executed.
[0053] Step S140: Exit the safety protection detection mode.
[0054] When the electronic device returns to the preset area and the abnormal state of the positioning device has been eliminated, the safety protection detection mode can be exited. On the one hand, it can save the power consumption of the electronic device, and on the other hand, it can also reduce the memory resource usage of the electronic device, so that other users will experience the electronic device more smoothly.
[0055] The security protection method provided in the embodiment of the present application can use the positioning device in the electronic device to accurately locate and realize the security protection of the electronic device. When the positioning device is in an abnormal state, it enters the security protection detection mode, and accurately determines whether the current position of the electronic device is within the preset area by judging the location information and connection status information of the initialized electronic device. If the electronic device is outside the preset area, the abnormality handling strategy is executed, thereby realizing the security protection of the electronic device.
[0056] Based on the above security protection method, the present application embodiment also provides another security protection method, see Figure 5 , the security protection method provided in this embodiment may also include the following steps S210 to S260. It should be understood that in the security protection method of this embodiment, there are the same or corresponding implementation steps as those in the above embodiment. The specific description of these same or corresponding implementation steps can refer to the contents provided in the above embodiment, and this embodiment will not be repeated.
[0057] Step S210: When the positioning device is in an abnormal state, enter the safety protection detection mode to initialize the location information and connection status information of the electronic device.
[0058] Step S220: If at least one of the location information and the connection status information meets a preset condition, determine whether the electronic device is outside a preset area.
[0059] When the electronic device is outside the preset area, step S230 is executed, and when the electronic device is within the preset area, step S240 is executed.
[0060] Step S230: Execute the exception handling strategy.
[0061] Step S240: Acquire scene status information of the electronic device, and determine whether the scene status information is an abnormal scene.
[0062] Scene state information refers to the scene state of the current electronic device. The scene state may refer to the current dynamic scene or static scene of the electronic device. The dynamic scene may be a moving state, a fast moving state, a shaking state, etc. Static scenes are, for example, image acquisition scenes, game mode scenes, and blocked scenes. Among these scene information, some scenes belong to normal scenes. Normal scenes refer to scenes that normally occur when consumers try out the experience. For example, the image acquisition scene indicates that the user may currently be experiencing the camera function of the electronic device; the game mode scene indicates that the user may currently be experiencing the electronic device scene in the game mode, such as heating, smoothness, etc.; the mobile scene indicates that the user may currently be experiencing the screen stability of the electronic device in the mobile scene, etc. Abnormal scenes refer to scenes that will not normally occur when consumers try out the experience. For example, the fast moving scene indicates that the user may be holding the electronic device and running fast, which may be suspected of snatching; the shaking scene indicates that the user may be holding the electronic device and shaking the electronic device quickly, which may be suspected of artificially destroying the electronic device; the blocked scene may indicate that the current electronic device is hidden by the user, which may be suspected of theft.
[0063] By judging the scene status information of the electronic device, it is determined whether an abnormal scene occurs, and step S230 can be executed when an abnormal scene occurs. When no abnormal scene occurs, it indicates that the current user is trying out the electronic device normally, so step S250 is executed.
[0064] Figure 6 A more specific implementation method of determining whether the scene status information is an abnormal scene is shown, including steps S241-S243.
[0065] Step S241: Acquire device parameters of the electronic device.
[0066] Device parameters refer to various parameters of electronic devices, and device parameters can characterize various states of electronic devices. In some embodiments, device parameters may include, for example, at least one of light-sensitive light intensity parameters, signal strength parameters, attitude angle parameters, acceleration parameters, and angular velocity parameters. The light-sensitive light intensity parameters may be obtained by a light sensor, a proximity sensor, etc. of the electronic device, the signal strength parameters may be obtained by a communication module of the electronic device, and the attitude angle parameters, acceleration parameters, angular velocity parameters, etc. may be obtained by an inertial measurement unit and a gyroscope of the electronic device. It is understandable that in some other embodiments, device parameters may also be other parameters, such as image parameters obtained from images captured by an image acquisition device.
[0067] Step S242: Determine whether the device parameters of the electronic device are abnormal.
[0068] After obtaining the device parameters, the values of the device parameters are sensed and compared with the normal values of the device parameters to determine whether the device parameters are abnormal. The normal values of the device parameters can be pre-stored locally in the electronic device or in a cloud server. After obtaining the device parameters of the electronic device, a query request is sent to the cloud server to obtain the normal values of the device parameters for comparison to determine whether the device parameters are abnormal.
[0069] Exemplarily, in a more specific implementation, the light sensitivity intensity parameters of the current electronic device can be obtained through the sensor of the electronic device, where the sensor can be a proximity sensor and / or an AI sensor and / or a light sensor, to determine whether the light sensitivity intensity parameters of the current electronic device change from strong to weak and whether the current light sensitivity intensity parameters meet the state of being in a pocket. When it is determined that the light sensitivity intensity parameters meet the pocket state, that is, the blocked state, the device parameters of the electronic device are determined to be abnormal.
[0070] In another more specific implementation, the acceleration parameters and attitude angle parameters of the electronic device can be obtained through an inertial measurement unit to determine whether the electronic device is in a fast-moving state. If it is determined that the electronic device is in a fast-moving state, it is determined that the device parameters of the electronic device are abnormal.
[0071] In another more specific implementation, the acceleration parameters and attitude angle parameters of the electronic device are obtained through an inertial measurement unit to determine whether the electronic device is in a shaking state. If it is determined that the electronic device may be in a shaking state, further, the signal strength parameters of the current electronic device can be obtained through the communication module. If it is found that the signal strength parameters do not change much, it can be determined that the current electronic device is being violently shaken, and it can be determined that the device parameters of the electronic device are abnormal.
[0072] In another more specific implementation, the signal strength parameters of the current electronic device can be obtained through the communication module. If it is found that the signal strength parameters change from strong to weak and then disappear, it can be determined that the current electronic device is gradually moving away from a preset area or is gradually moving away from other communication devices in the store within the preset area, and the device parameters of the electronic device can be determined to be abnormal.
[0073] It is understandable that the above-mentioned embodiments of the method for determining device parameter abnormality of an electronic device are merely exemplary, and in actual processes, the scenarios shown in the above-mentioned embodiments may exist simultaneously or partially simultaneously, and this embodiment does not limit this.
[0074] When it is determined that the device parameter of the electronic device is abnormal, step S243 is executed. Step S243: Determine that the scene state information is in an abnormal scene. When it is determined that the scene state information is in an abnormal scene, step S230 may be executed.
[0075] Step S250: Obtain the first duration of the positioning device entering the abnormal state.
[0076] When the electronic device is not in an abnormal scene, it indicates that the current scene state of the electronic device is in a normal scene, and the user may be experiencing the use of the electronic device normally, but the positioning device is still in an abnormal state. Therefore, the first duration of the positioning device entering the abnormal state can be obtained at this time, and the first duration can be obtained from the time when the positioning device is determined to enter the abnormal state. After step S250, step S260 can be executed.
[0077] Step S260: Determine whether the first duration is greater than or equal to a preset duration.
[0078] The preset duration may be a preset duration threshold. In some implementations, the preset duration may be, for example, 3-5 minutes, etc. Of course, in some other implementations, the preset duration may also be other values, which is not limited in this embodiment.
[0079] When the first duration is long, it means that the positioning device has not been restored for a long time, and there may be a fault and a safety hazard, which needs to be eliminated by the store staff as soon as possible. Therefore, when the first duration is greater than or equal to the preset duration, step S230 can be executed to remind the store staff to eliminate the possible fault as soon as possible.
[0080] In some implementations, step S230 performed after step S260 may be performed on other communication devices or designated devices in the store. In this case, step S230 may be: sending information to the designated device, the information including the electronic device information and the information that the positioning device enters an abnormal state.
[0081] The security protection method provided in the embodiment of the present application can use the positioning device in the electronic device to perform precise positioning to achieve security protection for the electronic device. When the positioning device is in an abnormal state, it enters the security protection detection mode, and accurately determines whether the current position of the electronic device is within the preset area by judging the location information and connection status information of the initialized electronic device. If the electronic device is outside the preset area, the abnormality handling strategy is executed to achieve the security protection of the electronic device. At the same time, when the electronic device is within the preset area, by determining the scene status information of the electronic device, if the electronic device is in an abnormal scene, the abnormality handling strategy can also be executed, thereby timely reminding the staff to better protect the electronic device.
[0082] Based on the above security protection method, the present application embodiment also provides another security protection method, see Figure 7 , the security protection method provided in this embodiment may also include the following steps S310 to S370. It should be understood that in the security protection method of this embodiment, there are the same or corresponding implementation steps as those in the above embodiment. The specific description of these same or corresponding implementation steps can refer to the contents provided in the above embodiment, and this embodiment will not be repeated.
[0083] Step S310: Obtain the detection result of the positioning device or the application permission of the positioning device, and determine whether the positioning device is in an abnormal state according to the detection result or the application permission.
[0084] During the use of the electronic device, the positioning device is configured to continuously, periodically or intermittently obtain the location information of the electronic device. In this process, in one case, when the positioning device enters an abnormal state, it will cause the location information obtained by the electronic device to deviate or fail to obtain the location information of the electronic device. Therefore, it can be determined whether the positioning device is in an abnormal state based on the detection result of the positioning device, and the detection result refers to the location information of the electronic device obtained by the positioning device. Specifically, when the positioning device cannot obtain the detection result, it can be determined that the positioning device is in an abnormal state, and when there is a large deviation between the detection result obtained by the positioning device and the previous detection result, it can be determined that the positioning device is in an abnormal state.
[0085] In another case, the positioning device may be manually turned off or the positioning authority may be canceled, resulting in the positioning device being unable to obtain the location information of the electronic device. For example, the location information acquisition authority of the electronic device is manually turned off. Therefore, in this process, the application authority of the positioning device can be obtained. The application authority refers to the various access rights required by the positioning device during operation or operation. The application authority of each application of the electronic device usually used for user experience is pre-set. Therefore, under normal circumstances, the application authority of the positioning device should remain unchanged. If the application authority of the positioning device obtained is changed, it can be determined that the positioning device has entered an abnormal state. In another embodiment, if the application authority of the positioning device obtained lacks the authority to obtain location information, it can also be determined that the positioning device has entered an abnormal state.
[0086] When it is determined that the positioning device enters an abnormal state, step S320 may be executed.
[0087] Step S320: Enter the safety protection detection mode and initialize the location information and connection status information of the electronic device.
[0088] Step S330: If at least one of the location information and the connection status information meets the preset condition, determine whether the electronic device is outside the preset area. If it is determined that the electronic device is outside the preset area, execute step S340; if it is determined that the electronic device is within the preset area, execute step S360.
[0089] Step S340: Execute the exception handling strategy.
[0090] Step S350: Exit the safety protection detection mode.
[0091] In some cases, the reason why the positioning device enters an abnormal state may not be caused by human factors or the device itself, but may be caused by the weakening of the communication signal in the store area, the interruption of the WiFi signal, etc. These non-human factors may also cause the positioning device to enter an abnormal state for a short time. At the same time, when the electronic device is in the preset area, it indicates that there is no safety protection problem with the electronic device at present. If the positioning device enters an abnormal state due to non-human factors, the positioning device will automatically switch from the abnormal state to the normal state after the external conditions are restored. At this time, step S360 can be executed.
[0092] Step S360: Obtain a second time duration for the positioning device to switch to the normal state.
[0093] In another more specific implementation, the detection result of the positioning device or the application permission of the positioning device can also be obtained, and according to the detection result or the application permission, it is determined whether the positioning device has entered a normal state. For example, in a more specific implementation, when the positioning device changes from being unable to obtain the location information of the electronic device to re-acquiring the location information of the electronic device, it can be determined that the positioning device has entered a normal state. In another more specific implementation, when the application permission of the positioning device changes from being modified to being restored to the default value, it can be determined that the positioning device has entered a normal state.
[0094] The second time period can be obtained by starting from when it is determined that the positioning device enters the normal state. It can be understood that during the second time period, the positioning device is in the normal state.
[0095] Step S370: Determine whether the second duration is greater than or equal to the preset duration.
[0096] When the second duration is greater than or equal to the preset duration, it indicates that the positioning device has recovered to a normal state in a relatively long period of time and has been stably in a normal state, indicating that the possible external fault of the positioning device has been eliminated, so the location information of the electronic device can continue to be obtained through the positioning device to achieve the safety protection of the electronic device. Therefore, if it is determined that the second duration is greater than or equal to the preset duration, step S350 can be executed. This can reduce power consumption and improve the user's trial experience.
[0097] Here, the preset duration may be a preset duration threshold. In some implementations, the preset duration may be, for example, 3-5 minutes, etc. Of course, in some other implementations, the preset duration may also be other values, which is not limited in this embodiment.
[0098] The security protection method provided in the embodiment of the present application can use the positioning device in the electronic device to perform precise positioning to achieve security protection for the electronic device. When the positioning device is in an abnormal state, it enters the security protection detection mode, and accurately determines whether the current position of the electronic device is within the preset area by judging the location information and connection status information of the initialized electronic device. If the electronic device is outside the preset area, the abnormality handling strategy is executed to achieve the security protection of the electronic device. At the same time, when the electronic device is within the preset area, by judging whether the electronic device is switched back to the normal state and obtaining the time after switching back to the normal state, when it is determined that the positioning device of the electronic device has returned to the normal state, the security protection detection mode is exited to reduce power consumption and improve the user's trial experience.
[0099] See also Figure 8This embodiment also provides a safety protection device 400, which can be applied to the aforementioned electronic device 100. The electronic device 100 includes a positioning device 103. The safety protection device 400 includes an information initialization module 410, a position determination module 420 and an exception handling module 430.
[0100] The information initialization module 410 is used to enter the safety protection detection mode and initialize the location information and connection status information of the electronic device when the positioning device 103 is in an abnormal state. The information initialization module 410 can also exit the safety protection detection mode. The location determination module 420 is used to determine whether the electronic device is outside the preset area if at least one of the location information and the connection status information meets the preset conditions.
[0101] The exception handling module 430 is used to execute an exception handling strategy when the electronic device is outside a preset area. In some embodiments, the exception handling module can issue a prompt message or control the electronic device to enter a locked state or call a specified device.
[0102] In some embodiments, see Fig. 9 The safety protection device 400 may further include a scene state determination module 440, which is used to obtain scene state information of the electronic device when the electronic device is in a preset area, and determine whether the scene state information is an abnormal scene. In some embodiments, the scene state determination module 440 may obtain device parameters of the electronic device; determine whether the device parameters of the electronic device are abnormal, and if the device parameters are abnormal, determine that the scene state information is in an abnormal scene.
[0103] In some embodiments, see Fig.10 The safety protection device 400 may further include a duration acquisition module 450, which is used to acquire a first duration for the positioning device to enter an abnormal state, or the duration acquisition module 450 may further be used to acquire a second duration for the positioning device to switch to a normal state.
[0104] In some embodiments, see Fig.11 The safety protection device 400 may further include a positioning device detection module 460. The positioning device detection module 460 may be used to obtain a detection result of the positioning device or an application permission of the positioning device, and determine whether the positioning device is in an abnormal state according to the detection result or the application permission.
[0105] The safety protection device provided in the embodiment of the present application can use the positioning device in the electronic device to accurately locate and realize the safety protection of the electronic device. When the positioning device is in an abnormal state, it enters the safety protection detection mode, and accurately determines whether the current position of the electronic device is within the preset area by judging the location information and connection status information of the initialized electronic device. If the electronic device is outside the preset area, the abnormality handling strategy is executed, thereby realizing the safety protection of the electronic device.
[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0107] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0108] See also Fig.12 This embodiment further provides an electronic device 500, and the aforementioned safety protection method can be applied to the electronic device 500 of this embodiment. The electronic device includes a positioning device 507, a communication module 508, an inertial measurement unit 505, an optical sensor 506, and one or more (only one is shown in the figure) processors 502 and a memory 504 coupled to each other.
[0109] The positioning device 507, the communication module 508, the inertial measurement unit 505, and the optical sensor 506 are all electrically connected to the processor 502, and can perform predetermined operations under the control of the processor 502. Among them, the positioning device 507 is used to obtain the location information of the electronic device, the communication module 508 is used to communicate with external devices, such as WiFi devices, Bluetooth devices, other designated devices, etc., and the inertial measurement unit 505 is used to measure the acceleration information, attitude angle information, etc. of the electronic device. The optical sensor 506 can be used to collect the light intensity in the environment.
[0110] The memory 504 stores a program that can execute the contents of the aforementioned embodiments, and the processor 302 can execute the program stored in the memory 504 .
[0111] Among them, the processor 502 may include one or more processing cores. The processor 502 uses various interfaces and lines to connect various parts within the entire electronic device 500, and executes various functions and processes data of the electronic device 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 504, and calling data stored in the memory 504. Optionally, the processor 502 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 502 can integrate one or a combination of a central processing unit (CPU), a graphics processor (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 502, but may be implemented separately through a communication chip.
[0112] The memory 504 may include a random access memory (RAM) or a read-only memory (ROM). The memory 504 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 504 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 500 during use. It is understandable that the head mounted device 500 in the present application may be a wearable device (for example, a head mounted device (HMD) such as electronic glasses, electronic clothes, electronic bracelets, electronic necklaces, electronic tattoos, electronic devices 500 or smart watches).
[0113] The electronic device 500 can also be any one of a plurality of electronic devices 500, including but not limited to cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation instruments, calculators, programmable remote controls, pagers, laptop computers, desktop computers, printers, netbook computers, personal digital assistants (PDAs), portable multimedia players (PMPs), Moving Picture Experts Group (MPEG-1 or MPEG-2) Audio Layer 3 (MP3) players, portable medical devices, and digital cameras and combinations thereof.
[0114] See also Fig.13 , an embodiment of the present application provides a structural block diagram of a computer-readable storage medium. The computer-readable medium 1000 stores program code, and the program code can be called by a processor to execute the photography control method described in any of the above method embodiments. The computer-readable storage medium 1000 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. Optionally, the computer-readable storage medium 1000 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 1000 has a storage space for a program code 1100 that executes any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 1100 can be compressed, for example, in an appropriate form.
[0115] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A safety protection method, characterized in that: Applied to an electronic device, the electronic device includes a positioning device, and the method includes: When the positioning device is in an abnormal state, entering a safety protection detection mode, initializing the location information and connection status information of the electronic device; If at least one of the location information and the connection status information meets a preset condition, determining whether the electronic device is outside a preset area; When the electronic device is outside the preset area, an exception handling strategy is executed.
2. The method according to claim 1, characterized in that The preset conditions include: The location information is outside the preset area; or The electronic device cannot search for the designated communication device in the preset area; or The connection state between the electronic device and the designated communication device in the preset area is disconnected.
3. The method according to claim 1, characterized in that The method further comprises: When the electronic device is within the preset area, acquiring scene state information of the electronic device, and determining whether the scene state information is an abnormal scene; If so, execute the exception handling strategy.
4. The method according to claim 3, characterized in that The acquiring the scene state information of the electronic device and determining whether the scene state information is an abnormal scene includes: Acquiring device parameters of the electronic device; Determine whether a device parameter of the electronic device is abnormal; if the device parameter is abnormal, determine that the scene state information is in an abnormal scene.
5. The method according to claim 4, characterized in that The device parameters include at least one of a photosensitivity intensity parameter, a signal strength parameter, an attitude angle parameter, an acceleration parameter, and an angular velocity parameter.
6. The method according to claim 3, characterized in that The method further comprises: If the scene status information is not an abnormal scene, a first duration of the positioning device entering an abnormal state is obtained, and if the first duration is greater than or equal to a preset duration, the abnormality handling strategy is executed.
7. The method according to any one of claims 1 to 6, characterized in that: The execution exception handling strategy includes: Send out a prompt message or control the electronic device to enter a locked state or call a designated device.
8. The method according to claim 7, characterized in that After executing the exception handling strategy, the method further includes: exiting the security protection detection mode.
9. The method according to claim 1, characterized in that: The method further comprises: When the electronic device is within the preset area, determining whether the positioning device switches from an abnormal state to a normal state; If so, obtain a second time duration for the positioning device to switch to the normal state, and if the second time duration is greater than or equal to the preset time duration, exit the safety protection detection mode.
10. The method according to any one of claims 1 to 6, characterized in that: When the positioning device is in an abnormal state, before entering the safety protection detection mode, the method further includes: A detection result of the positioning device or an application permission of the positioning device is obtained, and according to the detection result or the application permission, it is determined whether the positioning device is in an abnormal state.
11. A safety protection device, characterized in that: Applied to electronic equipment, the electronic equipment includes a positioning device, the device includes: An information initialization module, used to enter a safety protection detection mode and initialize the location information and connection status information of the electronic device when the positioning device is in an abnormal state; a location determination module, configured to determine whether the electronic device is outside a preset area if at least one of the location information and the connection status information satisfies a preset condition; and The exception handling module is used to execute an exception handling strategy when the electronic device is outside the preset area.
12. An electronic device, characterized in that: include: Positioning device; A processor, the processor being electrically connected to the positioning device; as well as a memory coupled to the processor; The memory stores instructions, which, when executed by the processor, enable the processor to perform the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 10.