Electronic fence safety management method based on OpenHarmony system and electronic equipment
By implementing the electronic fence security management method based on the OpenHarmony system on financial terminals, we build electronic fences including authorized areas and manage device locations in real time, solving the problems of illegal relocation of financial terminals and reliance on the Internet for location restrictions, improving security and user experience.
Patent Information
- Application Number
- CN202411562592.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-01-24
AI Technical Summary
In the prior art, financial terminals lack effective measures for illegal migration, resulting in reduced security of use and location restrictions rely on networking, which affects user experience when networking conditions are poor.
The electronic fence security management method based on the OpenHarmony system is used to obtain the initial position, determine the initial geographical location, build an electronic fence including the authority area, obtain the current location of the device in real time, and perform security management based on the authority area where the location is located to avoid errors caused by location errors. Fence range error.
Effectively improve the safety of the use of electronic equipment, avoid illegal migration, refine the management method, real -time location management does not rely on the network, and improves the user experience.
Smart Images

Figure CN119364370A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of terminal security, and in particular to an electronic fence security management method and electronic equipment based on an OpenHarmony system. Background Art
[0002] In order to ensure the safe use of terminals, especially financial terminals, the use area of the terminals is usually restricted to prevent illegal relocation; however, in the related art, financial terminals have no effective measures against illegal relocation, and illegal relocation still occurs, reducing the safety of financial terminals. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide an electronic fence safety management method and electronic equipment based on the OpenHarmony system, so as to improve the safety of the use of electronic equipment.
[0004] In order to solve the above technical problems, a technical solution adopted by the present invention is: An electronic fence security management method based on the OpenHarmony system is applied to electronic devices, and the method includes: Get the initialization position; determining an initial geographic location based on the initialization location; Building an electronic fence according to the initial geographic location, wherein the electronic fence includes a permission area; The current location of the electronic device is acquired in real time, and security management is performed according to the permission area where the current location is located.
[0005] In order to solve the above technical problems, another technical solution adopted by the present invention is: An electronic device includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, each step of the above-mentioned electronic fence security management method based on the OpenHarmony system is implemented.
[0006] The beneficial effects of the present invention are as follows: after obtaining the initialization position, the present application performs secondary confirmation based on the initialization position to determine the initial geographic location, and constructs an electronic fence based on the initial geographic location. The electronic fence includes different authority areas. The initial geographic location re-verifies the initialization position, thereby avoiding errors in the range of the electronic fence caused by position errors. The electronic fence includes authority areas, and the management method is refined. After the current position of the electronic device is obtained in real time, different security management is performed according to the different authority areas where the current position is located, thereby limiting the usable scope of the electronic device in different authority areas and improving the safety of the use of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 A flowchart of a method for managing electronic fence security based on the OpenHarmony system provided by an embodiment of the present invention; Figure 2 A schematic diagram of an electronic fence authority area provided by an embodiment of the present invention; Figure 3 A schematic diagram of a distributed architecture provided by an embodiment of the present invention; Figure 4 A flowchart of the steps of applying an electronic fence security management method based on the OpenHarmony system in an actual scenario provided by an embodiment of the present invention; Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0008] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0009] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0010] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0011] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0012] In order to ensure the security of the use of financial terminals and facilitate the traceability of transactions, the use of financial terminals is usually restricted to prevent illegal relocation. However, the related art lacks an effective method for limiting the location of the terminal. It is impossible to effectively prevent the illegal relocation of the terminal, so that the consumption location in the consumption record recorded by the terminal is inconsistent with the actual consumption location, resulting in false transactions.
[0013] For example, financial transaction terminals deployed on the market are often privately taken to other places by merchants or terminal maintenance providers for use. For example, a financial terminal registered for area A is taken to area B for use. When a user makes a purchase on the terminal, the bank backend receives information that the transaction was made by the merchant in area A, and the merchant information on the printed receipt is also from area A. However, in fact, the consumer did not consume in area A, but in area B, thus resulting in false transactions. At the same time, the security of such terminals cannot be guaranteed.
[0014] Furthermore, the method in the related art of limiting the terminal function by obtaining the current location of the terminal and comparing it with a preset usage range usually requires sending the current location of the terminal to the server background for judgment after connecting to the network, and requires interaction with the server. In the case of poor network conditions, the process of receiving the judgment result is delayed, affecting the user experience.
[0015] In order to solve the above problems, the present application provides an electronic fence security management method and electronic device based on the OpenHarmony system. The following specifically introduces an electronic fence security management method based on the OpenHarmony system of the present application.
[0016] The electronic fence security management method based on the OpenHarmony system in the present application can be used to limit the use range of electronic devices and prevent illegal movement of devices. The electronic device in the present application can be an electronic device using the OpenHarmony system.
[0017] The following specifically introduces the electronic fence security management method based on the OpenHarmony system in the present invention, and refers to the attached Figure 1 , including steps S110 to S140.
[0018] Step S110, obtaining the initialization position.
[0019] In one embodiment of the present application, when the electronic device is installed for the first time, the initialization data of the target area where the electronic device is located is obtained, which may include a merchant address, a UUID (universal unique identifier), a WiFi MAC (Media Access Control Address) of the electronic device, an identification code IMSI (International Mobile Subscriber Identity), etc. The merchant address is used as the initialization location.
[0020] Step S120, determining an initial geographic location based on the initialization location, includes: The initialization position is obtained, and it is determined whether the initialization position corresponds to the current device position. If so, the initialization position is determined as the initial geographic position. In this way, after the initialization position is obtained, it is confirmed whether it corresponds to the current position. For example, during installation, it can be manually confirmed on site whether the received initialization position corresponds to the current device position of the electronic device, thereby ensuring the accuracy of the initialization position and avoiding deviations in the subsequently determined electronic fence range.
[0021] In one embodiment of the present application, the current device location is determined based on the location of the base station or WiFi to which the electronic device is connected, based on the positioning background. Since the electronic device needs to communicate with the nearest base station or WiFi during networking, a more accurate current device location can be obtained. If the error between the current device location and the initialization location is within a preset range, the initialization location corresponds to the current device location. If not, an alarm is issued, indicating that the merchant address registered with the electronic device does not correspond to the current device location during the actual initialization process, and confirmation is required. Prevent the device from exceeding the corresponding merchant address during the initialization process. For example, the installation initialization personnel can confirm on-site during the installation initialization process whether the current device location corresponds to the initialization location.
[0022] Step S130: construct an electronic fence according to the initial geographical location, where the electronic fence includes an authority area.
[0023] The method for constructing an electronic fence according to the initial geographic location in step 130 of the present application includes steps 131 to 138: Step S131: Determine the density of positioning devices according to the initial geographical location.
[0024] In one embodiment of the present application, step S131 includes steps S1311 to S1313: Step S1311, obtaining city, district and street information according to the initial geographical location; Step S1312: Determine whether the initial geographical location belongs to an urban area or a suburban area according to the city, district and street information; Step S1313: If it is an urban area, the density of the marking and positioning devices is greater than or equal to the first preset value; if it is a suburban area, the density of the marking and positioning devices is less than the first preset value.
[0025] In this way, the corresponding administrative division information is obtained directly through the initial geographical location. Since the density of positioning devices is usually high in urban areas and low in areas outside urban areas, the estimated value of the positioning device density can be obtained more accurately based on the administrative division information, providing a relatively simple way to obtain the positioning device density.
[0026] Step S132: If the positioning device density is less than a first preset value, a first preset number of network positioning positions are collected.
[0027] Step S133: determine the position error according to the network positioning position and the initial geographical position.
[0028] In this way, when the density of positioning devices is less than a first preset value, by acquiring the network positioning position multiple times and calculating the error between the network positioning position and the initial geographical location, the approximate range of errors that may occur in the network positioning position when the density of positioning devices is low can be obtained. This allows the size of the error to be specifically considered when subsequently delineating the range of the electronic fence corresponding to the electronic device, thereby improving the accuracy of the electronic fence in controlling the position of the electronic device and avoiding misjudgment.
[0029] Step S134: Acquire initial electronic fence data.
[0030] In one embodiment of the present application, the initial electronic fence data includes authority areas, and different authority areas are at different distances from the initial geographic location; that is, with the initial geographic location as the center, different distances are used as radii to construct different authority areas to form the initial electronic fence, and the edge of the electronic fence is recorded as the radius from the initial geographic location, and the radius is used as the initial electronic fence data.
[0031] In this way, the permission area is constructed by the distance from the initial geographic location. Since the initial geographic location is fixed in the electronic device and cannot be changed after initialization, the electronic fence can be divided only by storing the distance. It takes up little storage space and is easy to compare, which simplifies the process of electronic device location control based on electronic fences.
[0032] In one embodiment of the present application, the permission area includes a permitted use area, a warning area, and a prohibited area.
[0033] In this way, the setting of electronic fences distinguishes multiple areas with different permissions, refines permission management, and sets a warning area as a transition. Electronic devices that exceed the permitted use area are warned first, providing customers with buffer time. If they continue to move away from the permitted use area in the warning area, they will reach the prohibited area and begin to restrict the functions of electronic devices, such as restricting the payment function of financial devices, to avoid illegal moving of devices.
[0034] In one embodiment of the present application, the distance between the outer edge of the allowed use area and the initial geographic location is smaller than the distance between the outer edge of the warning area and the initial geographic location, and the distance between the outer edge of the warning area and the initial geographic location is smaller than the distance between the outer edge of the prohibited area and the initial geographic location; that is, the warning area is set outside the allowed use area, and the prohibited area is outside the warning area; the warning area provides a transition for the electronic device after it exceeds the allowed use area; the inner edge of the warning area can directly adopt the outer edge of the allowed use area, and the prohibited area can directly use the outer edge of the warning area as the inner edge, and no outer edge is set, thereby further reducing the data to be stored.
[0035] Step S135: Obtain the first network positioning position when the position error is the largest, create a first electronic fence according to the first network positioning position and the initial electronic fence data, and obtain a first distance between the edge of the first electronic fence and the initial geographical location.
[0036] Step S136: Obtain a second network positioning position when the position error is minimum, create a second electronic fence according to the second network positioning position and the initial electronic fence data, and obtain a second distance between the edge of the second electronic fence and the initial geographical location.
[0037] Step S137: Obtain a second preset number of third network positioning positions from the remaining network positioning positions, create a third electronic fence according to the third network positioning positions and the initial electronic fence data, and obtain a third distance between the edge of the third electronic fence and the initial geographical location.
[0038] In this way, after collecting multiple network positioning positions, the first distance, second distance and third distance between the electronic fence constructed under the network positioning position with different position errors from the initial geographical location and the initial geographical location are obtained, and then the electronic fence data that should be set within the range specified by the initial electronic fence data under different position errors can be obtained. For example, the initial electronic fence data is that the allowed use area is 1000m, which means that if the current position of the obtained electronic device is within 1000m of the initial geographical location, it is allowed to be used. The first network positioning position obtained constructs the first electronic fence based on 1000m, and the distance between the edge of the first electronic fence and the initial geographical location is 1060m, which means that after an error occurs in the network positioning position, an electronic fence with a radius of 1060m needs to be constructed to avoid identifying electronic devices in the allowed use area as outside the allowed use area. It can be understood that because the setting of the electronic fence is based on the distance from the initial geographical location as the radius, the edge of the electronic fence is circular. No matter in which direction the network address location is offset from the initial geographical location, it is necessary to expand the range of the electronic fence to avoid the impact of the error; therefore, the distances from the edges of the first electronic fence, the second electronic fence, and the third electronic fence calculated here to the initial geographical location are all farther distances from the line connecting the initial geographical location and the edge of the electronic fence.
[0039] Moreover, in the process of building an electronic fence, after the electronic device determines the initial geographic location, it can be temporarily confirmed by on-site staff and other means that it has not moved. At this time, the initial geographic location can be used as the actual geographic location of the electronic device; the position error between the network positioning location obtained multiple times and the initial geographic location reflects the possible error range of the network positioning location, further reflecting the accuracy of the positioning.
[0040] Step S138: adjusting the initial electronic fence data according to the first distance, the second distance, and the third distance to construct an electronic fence.
[0041] In this way, the edge of the electronic fence is adjusted according to the error range of the network positioning position, reducing the misjudgment caused by the error between the network positioning position and the actual geographical location of the electronic position, and in the process of calculating and adjusting the edge of the electronic fence, the first distance and the second distance when the position error is maximum and minimum are taken, combined with the third distance of the second preset number, while considering the influence of the extreme value on the position error, the excessive influence of the extreme value is neutralized; the accuracy required for the management of the range of the electronic fence and the uncertainty caused by the position error are balanced.
[0042] In one embodiment of the present application, step S138, adjusting the initial electronic fence data according to the first distance, the second distance, and the third distance, and constructing the electronic fence includes: l=(x1+x2+nx3) / (2+n); In the formula, l represents the edge of the electronic fence; x1 represents the first distance; x2 represents the second distance; n represents the second preset number; and x3 represents the third distance. In this way, the average value of the edge value of the electronic fence under different error conditions is obtained by calculating the average value, and the average value of the error is directly considered as a parameter in the process of constructing the electronic fence. In the subsequent process of obtaining the current position of the electronic device in real time, there is no need to eliminate the error of the current position after each acquisition of the current position, because the influence of the position error has been considered in the process of configuring the electronic fence, so it can be directly compared with the edge of the electronic fence.
[0043] For example, if the sampling times are 6 times, the first distance x1 when the position error is the largest and the second distance x2 when the position error is the smallest are obtained, and the third distance of 4 normal ranges is obtained from the remaining distances. Then, the electronic fence is constructed including l=(x1+x2+4x3) / (2+4).
[0044] In one embodiment of the present application, step S136 includes: Step S1361, recording the distance as a positive number; the distance includes a first distance, a second distance and a third distance; Step S1362: construct an electronic fence using the calculated edge of the electronic fence as a radius.
[0045] In this way, if there is a position error between the network positioning position and the initial geographical location, since the electronic fence is constructed in a circular or annular area with the initial geographical location as the center and a fixed distance as the radius, the error in either direction requires an overall increase in the distance between the electronic fence and the initial geographical location; therefore, only the distance is taken as a positive number here, and the calculated edge of the electronic fence, that is, the distance between the electronic fence and the initial geographical location, can be directly used as the edge of the final electronic fence.
[0046] An electronic fence is constructed through steps S131 to S138, and the positioning device density is confirmed based on the initial geographic location of the electronic device, i.e., the current location confirmed by the electronic device during the initialization process. It can be seen that the higher the positioning device density, the more accurate the positioning result, and the closer the current location of the electronic device obtained is to the actual location. If the positioning device density is low, there will be a large error between the current location of the electronic device obtained and the actual location. It can be seen that in places with high positioning device density, a more accurate electronic fence range can be set, and in places with low positioning device density, it is necessary to increase the error of the range restricted by the electronic fence, so as to avoid the erroneous issuance of safety management measures caused by excessive error between the current location obtained and the actual location, and to avoid the situation where the user has not exceeded the restricted range but is mistakenly judged to have exceeded the restricted range, thereby affecting the normal use of the electronic device.
[0047] In the case of including multiple authority areas, the above steps S134 to S138 are executed for the edge of each authority area, and the edge construction of each authority area can be performed separately. The final electronic fence reference including multiple different authority areas Figure 2 For example, in step S134, the initial electronic fence data of the allowed area, warning area and prohibited area are determined respectively; and the subsequent steps S135-S138 are continued to be performed respectively for the allowed area, warning area and prohibited area, and finally the edges of the allowed area, warning area and prohibited area are obtained to construct the electronic fence.
[0048] Step S140: Acquire the current location of the electronic device in real time, and perform security management according to the authority area where the current location is located.
[0049] In one embodiment of the present application, step S140 includes: obtaining the current location of the electronic device in real time, determining whether the current location belongs to the warning range or the prohibited range, and if so, obtaining the target device connected to the electronic device through the Hongmeng distributed architecture, and issuing an alarm message through the target device. In this way, when the electronic device is in the warning range or the prohibited range, in addition to issuing an alarm on the electronic device itself, the target device connected to the electronic device is obtained through the Hongmeng distributed architecture, such as the communication device of the person in charge of the pre-bound electronic device, and an alarm message is also issued to the target device to prevent the electronic device from being taken out of the permitted use area without the knowledge of the person in charge.
[0050] Reference Figure 3 The electronic device of the present application can be connected to multiple target devices in a distributed manner, and both the electronic device and the multiple target devices use the OpenHarmony system. When an alarm message needs to be sent through a target device, a target device can be selected to send the alarm message, for example, Figure 3Target device 8 in. Distributed architecture first corresponds to distributed computing. Distributed computing divides a complete computing problem into small computing parts that can be implemented independently. It can use the parallel advantages of the distributed architecture to distribute the small computing parts to many networked computers participating in the calculation for processing, and finally integrate the calculation results of the small computing parts to obtain the total calculation result. Distributed architecture also includes distributed storage. Distributed storage stores data in a dispersed manner on multiple independent machines and devices, so that different machines and devices can specialize in different computing capabilities, thereby fully tapping the performance of the device. The biggest advantage of distributed computing is that it can utilize the computing power of distributed connected computers to reduce the execution burden of a single device and accelerate the execution process. Specifically in the implementation method of the present application, the terminal of the present application can be distributedly connected to other terminals, so that when its own function is not available, the capabilities of other terminals are called to process requests. The distributed connection of the present application can be connected in the form of a distributed soft bus.
[0051] A distributed soft bus is a physical bus similar to hardware that is software-based. All devices connected to it are operated in the form of software. It can be understood that software is a device, so that decentralized and distributed layout can be achieved in the form of software. Moreover, the most important feature is that devices in a distributed soft bus can call on the capabilities of other devices to process requests. For example, when a mobile phone and a computer are in a distributed connection, the mobile phone can use the high computing power of the computer to process pictures in the mobile phone, and the computer can use the high-definition camera of the mobile phone to take pictures, etc.
[0052] In one embodiment of the present application, if the permission area where the current location is located is a permitted use area, a green color is displayed on the display screen of the electronic device or no notification is made; If the permission area where the current location is located is a warning area, it will be displayed in orange or a warning notification will be displayed on the display screen of the electronic device.
[0053] In this way, when the electronic device is in the permitted use area, the use of the electronic device is not restricted, and a green color may be displayed on the display screen of the electronic device to prompt that the electronic device is in the permitted use area and can be used normally or without any prompt; if the electronic device is in the warning area, a more common warning color orange is displayed on the display screen to prompt the user that the permitted use area has been exceeded, or a warning notification is directly sent to warn the user that the permitted use area has been exceeded, prompting the user to return to the permitted use area as soon as possible, and the function of the electronic device may not be temporarily restricted in the warning area to provide the user with transition time. Among them, the location warning information can be sent to the terminal through the background, and after the electronic device receives the location warning information, a color or a warning notification is displayed on the display screen.
[0054] In one embodiment of the present application, if the permission area where the current location is located is a prohibited area, other electronic devices connected to the electronic device are obtained through the Hongmeng distributed architecture, and the received request is forwarded to the other electronic devices.
[0055] In this way, when an electronic device is in a prohibited area, it is unable to provide corresponding services because its own functions are restricted. The HarmonyOS distributed architecture is used here to forward the request received at this time to other electronic devices, and the other electronic devices are used to execute the request. Because the other electronic devices are in their corresponding allowed use areas, the corresponding requests can be correctly executed and the corresponding locations are also the locations of other electronic devices. In the case where the current electronic device is located in a prohibited area and is restricted from use, a method for processing requests that can retain the correct usage location is provided.
[0056] Among them, after confirming that the electronic device is located in the prohibited area, the electronic device can be locked and the use of the electronic device can be prohibited, thereby preventing illegal relocation of the device. In particular, it can effectively regulate the use of financial terminals, ensure the authenticity of financial transaction records, and thus ensure transaction security.
[0057] In one embodiment of the present application, it further includes: if an initialization command is received, verifying the authority of the initialization command, and if the verification is passed, re-executing steps S110-S130. In this way, when the current user gives up using the electronic device, the electronic device can also be applied for by other users, and the authority area included in the electronic fence is re-initialized, so that the electronic device can be used in different initial geographical locations.
[0058] The following is a detailed description of the application embodiments of the present application. The present application can apply the above solution to the Android system framework or OpenHarmony system. Figure 4 , including steps (1)-(7).
[0059] (1) During the initial installation process, the merchant obtains the initialization data of the target area when the terminal is first installed.
[0060] For example, the initialization data includes the merchant address, UUID, local WIFI MAC, identification code IMSI, etc. This step corresponds to the above step S110.
[0061] (2) Determine the geographical distribution characteristics of the area based on the initialization data.
[0062] For example, if the terminal is a Hongmeng device, the initialization data of the Hongmeng device is sent to the background to obtain specific information such as city, district, street, etc. At this time, the installer can check whether the initialization data is consistent with the actual installation location. If it is consistent, continue with step 1. If it is not consistent, re-execute (1). This step corresponds to the above step S120.
[0063] Determine whether the area is an urban area or a suburban area based on the information of the city, district, street, etc. For the geographical distribution of the suburban area, because the positioning error is large, this solution makes special treatment, and the range of the allowed use area, the range of the warning area, and the range of the prohibited area will be estimated by a three-point specific algorithm to calculate the most reasonable distance, to prevent the alarm information from being generated due to excessive positioning deviation caused by short-distance movement. This step corresponds to the above step S131.
[0064] (3) Calculate the initial geographical location of the terminal based on the geographical distribution characteristics of the terminal and a special algorithm.
[0065] Find the distance under the most pessimistic scenario, the distance under the most optimistic scenario, and the distance under normal scenario. For example, if the distance under normal scenario takes 4 values, then use (most pessimistic + most optimistic + 4*normal scenario) / 6 to calculate the most reasonable range.
[0066] The range of each permission area is calculated separately, and finally the edges corresponding to the permitted use area, the warning area and the prohibited area are obtained. This step corresponds to the above step S130.
[0067] (4) Manage the terminal location by authority area.
[0068] According to business needs, it can be divided into multiple permission areas for management, that is, different reminder methods are used when the terminal is in the allowed use area, warning area and prohibited area. In addition, the distributed characteristics of Hongmeng can be used. Other Hongmeng terminals within the same network range can issue corresponding reminders to terminals that are out of range, and the background can also issue reminders to terminals that are out of range. Multiple methods ensure that reminders are delivered in a timely manner. This step corresponds to the above step S140.
[0069] (5) When the terminal moves to the corresponding area, the background will take corresponding disposal measures.
[0070] During the movement, the current location information and regional characteristics will be obtained in real time and compared with the data at the time of merchant initialization. If it exceeds the set range, it means that it has moved to the corresponding area. This step corresponds to the above step S140.
[0071] Please refer to Figure 5 The present invention also provides an electronic device 300, including a memory 301 and a processor 302, and a computer program stored in the memory 301 and running on the processor 302. When the processor 302 executes the computer program, the various steps in the electronic fence security management method based on the OpenHarmony system as described above are implemented.
[0072] The beneficial effects of the electronic device of the present invention are the same as those of the above method and will not be described in detail here.
[0073] The above are only embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the specification and drawings of the present invention, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An electronic fence security management method based on the OpenHarmony system, characterized in that: Applied to electronic equipment, the method comprises: Get the initialization position; determining an initial geographic location based on the initialization location; Building an electronic fence according to the initial geographic location, wherein the electronic fence includes a permission area; The current location of the electronic device is acquired in real time, and security management is performed according to the permission area where the current location is located.
2. The electronic fence security management method based on the OpenHarmony system according to claim 1, characterized in that: Determining the initial geographic location based on the initialization location includes: The initialization position is obtained, and it is determined whether the initialization position corresponds to the current device position. If so, the initialization position is determined as the initial geographic position.
3. The electronic fence security management method based on the OpenHarmony system according to claim 1, characterized in that: The construction of an electronic fence according to the initial geographical location includes: Determining a positioning device density according to the initial geographical location; If the positioning device density is less than a first preset value, collecting a first preset number of network positioning positions; Determine a location error based on the network positioning location and the initial geographical location; Get initial geo-fence data; Obtaining a first network positioning position when the position error is the largest, creating a first electronic fence according to the first network positioning position and the initial electronic fence data, and obtaining a first distance between an edge of the first electronic fence and the initial geographical location; Acquire a second network positioning position when the position error is minimum, create a second electronic fence according to the second network positioning position and the initial electronic fence data, and obtain a second distance between the edge of the second electronic fence and the initial geographical location; Acquire a second preset number of third network positioning positions from the remaining network positioning positions, create a third electronic fence according to the third network positioning positions and the initial electronic fence data, and obtain a third distance between the edge of the third electronic fence and the initial geographical location; The initial electronic fence data is adjusted according to the first distance, the second distance and the third distance to construct an electronic fence.
4. The electronic fence security management method based on the OpenHarmony system according to claim 3 is characterized in that: The step of adjusting the edge of the initial electronic fence according to the first distance, the second distance, and the third distance to construct the electronic fence comprises: l=(x1+x2+nx3) / (2+n); In the formula, l represents the edge of the electronic fence; x1 represents the first distance; x2 represents the second distance; n represents the second preset number; and x3 represents the third distance.
5. The electronic fence security management method based on the OpenHarmony system according to claim 1, characterized in that: The permission area includes a permitted use area and a warning area, and performing security management according to the permission area where the current location is located includes: If the permission area where the current location is located is a permitted use area, a green color is displayed on the display screen of the electronic device or no notification is given; If the permission area where the current location is located is a warning area, orange or a warning notification is displayed on the display screen of the electronic device.
6. The electronic fence safety management method based on the OpenHarmony system according to claim 4 is characterized in that: The authority area includes a prohibited area, and performing security management according to the authority area where the current location is located includes: If the permission area where the current location is located is a prohibited area, other electronic devices connected to the electronic device are obtained through the Hongmeng distributed architecture, and the received request is forwarded to the other electronic devices.
7. The electronic fence safety management method based on the OpenHarmony system according to claim 3 is characterized in that: Determining the positioning device density according to the initialization position includes: Acquire city, district and street information according to the initial geographic location; Determining whether the initial geographical location belongs to an urban area or a suburban area according to the city, district and street information; If it belongs to an urban area, it is marked that the positioning device density is greater than or equal to a first preset value. If it belongs to a suburban area, it is marked that the positioning device density is less than the first preset value.
8. The electronic fence safety management method based on the OpenHarmony system according to claim 4, characterized in that: The edge of the electronic fence is recorded as a radius from the initial geographical location; The step of adjusting the edge of the initial electronic fence according to the first distance, the second distance, and the third distance to construct the electronic fence comprises: Recording the distance as a positive number; the distance includes a first distance, a second distance and a third distance; The electronic fence is constructed according to the calculated edge of the electronic fence as a radius.
9. The electronic fence safety management method based on the OpenHarmony system according to claim 5, characterized in that: The real-time acquisition of the current location of the electronic device and the execution of security management according to the permission area where the current location is located include: The current location of the electronic device is obtained in real time, and it is determined whether the current location belongs to the warning range or the prohibited range. If so, the target device connected to the electronic device is obtained through the Hongmeng distributed architecture, and an alarm message is issued through the target device.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the electronic fence security management method based on the OpenHarmony system described in any one of claims 1-9 is implemented.