A device permission setting method and device, apparatus, and medium

By monitoring the IP address of diagnostic devices via a server and automatically changing their operating region, the problem of diagnostic devices being unusable due to incompatible IP addresses was resolved, thus improving the user experience.

CN116707936BActive Publication Date: 2026-06-05LAUNCH TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LAUNCH TECH CO LTD
Filing Date
2023-06-20
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

In existing technologies, diagnostic devices cannot be used because their IP addresses do not match the usage area, resulting in a degraded user experience.

Method used

The server monitors and diagnoses the device, obtains its target information, and determines whether the current IP address is compatible with the usage area. If it is not compatible, it determines whether the usage area can be changed to make it compatible based on preset conditions, thereby allowing the user to use the device in the area where the current IP address is located.

Benefits of technology

This reduces the problem of diagnostic devices being unusable due to IP addresses not matching the usage area, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116707936B_ABST
    Figure CN116707936B_ABST
Patent Text Reader

Abstract

The application discloses a device permission setting method and device, equipment and medium, relates to the computer technical field, and is applied to the server, and includes the following steps: after obtaining a use request issued by a user end for a target diagnostic device, target information of the target diagnostic device is obtained; a use area bound with the target diagnostic device is determined, and whether a current IP address in the target information conforms to the use area is judged; wherein the target diagnostic device only opens a use permission in the use area; if not, whether the use area can be changed to a target area where the current IP address is located based on a preset condition is judged, and if yes, the use area is changed. In the application, the server can automatically change the use area bound with the diagnostic device through judgment, which can reduce the problem that the diagnostic device cannot be used by the user due to the IP address not conforming to the use area, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, device, and medium for setting device permissions. Background Technology

[0002] Currently, to prevent the cross-regional distribution of diagnostic equipment, when a diagnostic device is taken outside its designated usage area, the user cannot use it normally because the device's IP address is no longer within the designated area. However, cross-regional distribution is an act of profit-seeking by certain distributors or intermediaries and has little to do with the user. Therefore, simply restricting usage by region would greatly impact the user experience.

[0003] In summary, how to reduce the problem of diagnostic devices becoming unusable due to IP addresses not matching the usage area, thereby improving the user experience, is a problem that needs to be solved. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a device permission setting method, apparatus, device, and medium that can reduce the problem of diagnostic devices being unusable due to IP addresses not conforming to the usage area, thereby improving the user experience. The specific solution is as follows:

[0005] Firstly, this application discloses a device permission setting method, applied to a server, including:

[0006] After receiving a usage request from the user terminal for the target diagnostic device, the target information of the target diagnostic device is obtained.

[0007] The usage area bound to the target diagnostic device is determined, and it is determined whether the current IP address in the target information matches the usage area; wherein, the target diagnostic device only has usage permissions enabled within the usage area;

[0008] If the conditions are not met, it is determined whether the usage area can be changed to the target area where the current IP address is located based on preset conditions. If so, the usage area is changed.

[0009] Optionally, determining whether the usage area can be changed to the target area where the current IP address is located based on preset conditions includes:

[0010] Determine whether the usage area and the target area where the current IP address is located belong to the same parent area;

[0011] If so, it is determined that the current usage area can be changed to the target area;

[0012] If not, it is determined that the area in use cannot be changed to the target area at present.

[0013] Optionally, determining whether the usage area can be changed to the target area where the current IP address is located based on preset conditions includes:

[0014] Determine whether the area of ​​use of the target diagnostic device has been changed;

[0015] If so, it is determined that the usage area cannot be changed to the target area where the current IP address is located;

[0016] If not, it is determined that the current usage area can be changed to the target area where the current IP address is located.

[0017] Optionally, determining whether the usage area can be changed to the target area where the current IP address is located based on preset conditions includes:

[0018] Determine whether the usage area and the target area where the current IP address is located belong to the same parent area, and determine whether the usage area of ​​the target diagnostic device has been changed;

[0019] If the usage area and the target area belong to the same parent area and the usage area of ​​the target diagnostic device has not been changed, then it is determined that the usage area can be changed to the target area; otherwise, it is determined that the usage area cannot be changed to the target area.

[0020] Optionally, after obtaining the usage request issued by the user terminal for the target diagnostic device, the process further includes:

[0021] Based on the usage request, the target diagnostic function that the user needs to use is determined, and it is determined whether the target diagnostic function has pre-set usage area restrictions.

[0022] If so, proceed to the step of obtaining the target information of the target diagnosis to determine whether the current IP address in the target information matches the usage area;

[0023] If not, respond to the usage request to allow the client to use the target diagnostic device.

[0024] Optionally, the target information may also include the diagnostic device serial number;

[0025] Accordingly, determining the usage area bound to the target diagnostic device includes:

[0026] The usage area associated with the target diagnostic device is determined based on the diagnostic device's serial number.

[0027] Optionally, the device permission setting method further includes:

[0028] Within a preset time period, acquire usage area change information for each diagnostic device, and count the number of changes for each usage area based on the usage area change information;

[0029] The statistical results are displayed on the preset interface.

[0030] Secondly, this application discloses a device permission setting apparatus, applied to a server, comprising:

[0031] The information acquisition module is used to acquire the target information of the target diagnostic device after receiving a usage request from the user terminal for the target diagnostic device.

[0032] The region determination module is used to determine the usage region bound to the target diagnostic device and to determine whether the current IP address in the target information matches the usage region; wherein, the target diagnostic device only has usage permissions enabled within the usage region;

[0033] The region change module is used to determine, based on preset conditions, whether the current region can be changed to the target region where the current IP address is located if the conditions are not met. If so, the region is changed.

[0034] Thirdly, this application discloses an electronic device, including:

[0035] Memory, used to store computer programs;

[0036] A processor is configured to execute the computer program to implement the steps of the aforementioned disclosed device permission setting method.

[0037] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the steps of the aforementioned disclosed device permission setting method.

[0038] As can be seen, this application, after receiving a user's request for use of a target diagnostic device, obtains the target information of the target diagnostic device; determines the usage region bound to the target diagnostic device; and judges whether the current IP address in the target information matches the usage region. The target diagnostic device only has usage permissions within the specified usage region. If it does not match, a preset condition is used to determine whether the usage region can be changed to the target region where the current IP address is located. If so, the usage region is changed. Therefore, this application monitors diagnostic devices through a server. After receiving a user's request for use of a target diagnostic device, the server obtains the target information of the target diagnostic device, determines the usage region bound to the target diagnostic device, and judges whether the current IP address in the target information matches the bound usage region. It should be noted that the target diagnostic device only has usage permissions within the specified usage region. Therefore, if it does not match, a preset condition is used to determine whether the usage region can be changed to the target region where the current IP address is located. If it can be changed, the usage region is changed, thereby enabling the user to use the target diagnostic device within the region where the current IP address is located. By implementing the above solution, the server can automatically change the usage region bound to the diagnostic device based on the judgment, which can reduce the problem of the diagnostic device being unusable by the user due to the IP address not being compatible with the usage region, thereby improving the user experience. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0040] Figure 1 This is a flowchart of a device permission setting method disclosed in this application;

[0041] Figure 2 This application discloses a specific method for setting device permissions.

[0042] Figure 3 This is a schematic diagram of the structure of a device permission setting device disclosed in this application;

[0043] Figure 4 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation

[0044] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0045] Currently, to prevent the unauthorized distribution of diagnostic equipment, when a device is taken outside its designated usage area, the user cannot use it because its IP address is no longer within the designated area. However, unauthorized distribution is often the work of distributors or intermediaries seeking profit and has little to do with the user. Therefore, simply restricting usage by region would significantly impact the user experience. To address this, this application discloses a device permission setting method, apparatus, device, and medium that can reduce the problem of diagnostic equipment being unusable due to IP addresses not matching the designated usage area, thereby improving the user experience.

[0046] See Figure 1 As shown in the figure, this application discloses a device permission setting method, applied to a server, the method including:

[0047] Step S11: After receiving the user's request for use of the target diagnostic device, the target information of the target diagnostic device is obtained.

[0048] In this embodiment, the server monitors the diagnostic device. After the diagnostic device is connected to the network, if a user wants to use the diagnostic function of a target diagnostic device, the user will send a usage request to the target diagnostic device. After the server receives the usage request sent by the user to the target diagnostic device, it will further obtain the target information of the target diagnostic device.

[0049] Step S12: Determine the usage area bound to the target diagnostic device, and determine whether the current IP address in the target information matches the usage area; wherein, the target diagnostic device only has usage permissions enabled within the usage area.

[0050] In this embodiment, the server further determines the usage region bound to the target diagnostic device and judges whether the current IP address in the target information matches the bound usage region. It is understood that diagnostic devices are typically restricted to use within a certain region; in this embodiment, this region is referred to as the usage region. The usage region has been pre-bound to the diagnostic device, and the diagnostic device can only be used within that usage region. If the diagnostic device is taken out of the usage region, then the diagnostic device's IP address will not match the usage region, and the user will not have permission to use the diagnostic device; that is, the user cannot use the diagnostic device normally at this time. For example, suppose the usage region pre-bound to the target diagnostic device is Shenzhen, but the current IP address of the diagnostic device is displayed as Xiamen, then it means that the current IP address does not match the usage region.

[0051] Step S13: If it does not meet the requirements, determine whether the usage area can be changed to the target area where the current IP address is located based on the preset conditions. If so, change the usage area.

[0052] In this embodiment, if the current IP address does not conform to the usage region, it is determined based on preset conditions whether the usage region can be changed to the target region where the current IP address is located. If it can be changed, the usage region is changed, thereby enabling the user to use the target diagnostic device in the region where the current IP address is located. In this way, through the above scheme, the server can automatically change the usage region bound to the diagnostic device by judging, which can reduce the problem of the diagnostic device being unusable by the user due to the IP address not conforming to the usage region, thereby improving the user experience.

[0053] In addition, if the current IP address matches the usage zone, the usage request will be responded to directly, allowing the client to use the target diagnostic device for diagnosis.

[0054] As can be seen, this application, after receiving a user's request for use of a target diagnostic device, obtains the target information of the target diagnostic device; determines the usage region bound to the target diagnostic device; and judges whether the current IP address in the target information matches the usage region. The target diagnostic device only has usage permissions within the specified usage region. If it does not match, a preset condition is used to determine whether the usage region can be changed to the target region where the current IP address is located. If so, the usage region is changed. Therefore, this application monitors diagnostic devices through a server. After receiving a user's request for use of a target diagnostic device, the server obtains the target information of the target diagnostic device, determines the usage region bound to the target diagnostic device, and judges whether the current IP address in the target information matches the bound usage region. It should be noted that the target diagnostic device only has usage permissions within the specified usage region. Therefore, if it does not match, a preset condition is used to determine whether the usage region can be changed to the target region where the current IP address is located. If it can be changed, the usage region is changed, thereby enabling the user to use the target diagnostic device within the region where the current IP address is located. By implementing the above solution, the server can automatically change the usage region bound to the diagnostic device based on the judgment, which can reduce the problem of the diagnostic device being unusable by the user due to the IP address not being compatible with the usage region, thereby improving the user experience.

[0055] See Figure 2 As shown, this application discloses a specific method for setting device permissions. Compared to the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically, it includes:

[0056] Step S21: After receiving the user's request for the target diagnostic device, determine the target diagnostic function that the user needs to use based on the request, and determine whether the target diagnostic function has pre-set usage area restrictions.

[0057] In this embodiment, after receiving a usage request from the user terminal for the target diagnostic device, the target diagnostic function required by the user terminal is determined based on the usage request, and it is determined whether the target diagnostic function has pre-set usage area restrictions. It is understood that in this embodiment, usage area restrictions may be set only for certain diagnostic functions of the diagnostic device, i.e., restricting their usage area, rather than restricting the usage area of ​​all diagnostic functions of the diagnostic device. For example, usage area restrictions may be set only for some intelligent diagnostic functions and special functions, while some basic diagnostic functions may not have usage area restrictions. In a specific implementation, a data table can be pre-established, in which all diagnostic functions recorded have usage area restrictions set. After determining the target diagnostic function required by the user terminal, it is determined whether the target diagnostic function is in the data table. If so, it can be determined that the target diagnostic function has usage area restrictions set, i.e., its usage area is restricted.

[0058] Step S22: If yes, then obtain the target information of the target diagnostic device; the target information includes the serial number of the diagnostic device.

[0059] In this embodiment, if the target diagnostic function is pre-set with usage area restrictions, the target information of the target diagnostic device is obtained. The target information may include, but is not limited to, the diagnostic device serial number and the current IP address of the diagnostic device.

[0060] Additionally, if the target diagnostic function does not have any usage area restrictions, it will directly respond to usage requests to allow the client to use the target diagnostic device for diagnosis.

[0061] Step S23: Determine the usage area bound to the target diagnostic device based on the diagnostic device serial number, and determine whether the current IP address in the target information matches the usage area; wherein, the target diagnostic device only has usage permissions enabled within the usage area.

[0062] In this embodiment, the serial number is a unique identifier for the diagnostic device. Therefore, the usage area bound to the target diagnostic device can be determined based on the diagnostic device serial number, and it can be determined whether the current IP address of the diagnostic device conforms to the usage area.

[0063] Step S24: If it does not meet the requirements, determine whether the usage area can be changed to the target area where the current IP address is located based on the preset conditions. If so, change the usage area.

[0064] In this embodiment, if the condition is not met, it is determined whether the current region can be changed to the target region where the current IP address is located based on preset conditions.

[0065] In a first specific implementation, the above-mentioned determination of whether the usage region can be changed to the target region where the current IP address is located based on preset conditions includes: determining whether the usage region and the target region where the current IP address is located belong to the same superior region; if so, it is determined that the usage region can be changed to the target region; if not, it is determined that the usage region cannot be changed to the target region. That is, in this embodiment, the preset condition can be determining whether the usage region and the target region where the current IP address is located belong to the same superior region. It can be understood that the scope of the usage region is usually limited to a certain city or a province, and the superior region here can be a country. Therefore, when the usage region and the target region where the current IP address is located are both within the same country, the usage region can be changed so that the user can use the target diagnostic device in the region where the current IP address is located; otherwise, the usage region cannot be changed. In this way, it is possible to prevent distributors or intermediaries from selling products purchased in China overseas.

[0066] In the second specific implementation, the above-mentioned determination of whether the usage area can be changed to the target area where the current IP address is located based on preset conditions includes: determining whether the usage area of ​​the target diagnostic device has been changed; if so, it is determined that the usage area cannot be changed to the target area where the current IP address is located; if not, it is determined that the usage area can be changed to the target area where the current IP address is located. That is, in this embodiment of the application, the preset condition can be determining whether the usage area of ​​the target diagnostic device has been changed, that is, whether the usage area of ​​the target diagnostic device has been changed. If so, the bound usage area is not allowed to be changed at present; if not, the usage area can be changed so that the user can use the target diagnostic device in the area where the current IP address is located. This condition is generally used when the user is a 4S store or repair shop. After the user buys the device from the dealer, they will use it in a fixed place. If the area is changed, it may be for other reasons that do not comply with the sales rules. Therefore, if the bound usage area of ​​the device has been changed, the usage area of ​​the device is not allowed to be changed this time.

[0067] In a third specific implementation, the step of determining whether the usage area can be changed to the target area where the current IP address is located based on preset conditions includes: determining whether the usage area and the target area where the current IP address is located belong to the same parent region, and determining whether the usage area of ​​the target diagnostic device has been changed; if the usage area and the target area belong to the same parent region and the usage area of ​​the target diagnostic device has not been changed, then it is determined that the usage area can be changed to the target area; otherwise, it is determined that the usage area cannot be changed to the target area. That is, the preset conditions can be both determining whether the usage area and the target area where the current IP address is located belong to the same parent region and determining whether the usage area of ​​the target diagnostic device has been changed. If the usage area and the target area belong to the same parent region and the usage area of ​​the target diagnostic device has not been changed, then it is determined that the usage area can be changed to the target area; otherwise, it is not allowed to change the usage area to the target area.

[0068] Furthermore, the above method also includes: acquiring usage area change information for each diagnostic device within a preset time period, and statistically analyzing the number of changes to each usage area based on the usage area change information; and displaying the statistical results on a preset interface. In this embodiment, usage area change information for each diagnostic device can be acquired within a preset time period, for example, acquiring usage area change information every month, statistically analyzing the number of changes to each usage area based on the usage area change information, and visually displaying the statistical results on a preset interface. The purpose is to allow relevant technical personnel to understand which original regions are most frequently changed. This indicates, on the one hand, that the distributors in that region are not strictly managed, and on the other hand, it can provide some sales information and management ideas. For example, if the original region Shenzhen is frequently changed to other provinces or cities, it indicates that the products held by the distributors in Shenzhen are frequently sold to other regions. At the same time, the proportion of changes to other regions can be used to determine whether it is necessary to expand sales in those regions, etc.

[0069] For a more detailed explanation of step S24, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0070] As can be seen, in this embodiment, usage area restrictions may be set only for certain diagnostic functions of the diagnostic device, i.e., restricting their usage area, rather than restricting the usage area of ​​all diagnostic functions of the diagnostic device. If the target diagnostic function does not have usage area restrictions, the usage request is directly responded to, allowing the client to use the target diagnostic device for diagnosis. If the target diagnostic function has pre-set usage area restrictions, the target information of the target diagnostic device is further obtained. The target information may include, but is not limited to, the diagnostic device serial number and the current IP address of the diagnostic device. The diagnostic device serial number is used to determine the usage area bound to the target diagnostic device, and the current IP address is used to determine whether it conforms to the usage area. Furthermore, when determining whether the usage area can be changed to the target area of ​​the current IP address based on preset conditions, the preset conditions may be whether the usage area and the target area of ​​the current IP address belong to the same parent region, whether the usage area of ​​the target diagnostic device has been changed, or a combination of both. Therefore, if the preset conditions are met, the usage area can be changed to the target area of ​​the current IP address, allowing the user to use the target diagnostic device in the region where the current IP address is located.

[0071] See Figure 3 As shown in the figure, this application discloses a device permission setting apparatus, applied to a server, the apparatus comprising:

[0072] The information acquisition module 11 is used to acquire the target information of the target diagnostic device after receiving a usage request from the user terminal for the target diagnostic device.

[0073] The region determination module 12 is used to determine the usage region bound to the target diagnostic device and to determine whether the current IP address in the target information matches the usage region; wherein, the target diagnostic device only has access within the usage region;

[0074] The region change module 13 is used to determine, based on preset conditions, whether the current region can be changed to the target region where the current IP address is located if the conditions are not met; if so, the region is changed.

[0075] As can be seen, this application, after receiving a user's request for use of a target diagnostic device, obtains the target information of the target diagnostic device; determines the usage region bound to the target diagnostic device; and judges whether the current IP address in the target information matches the usage region. The target diagnostic device only has usage permissions within the specified usage region. If it does not match, a preset condition is used to determine whether the usage region can be changed to the target region where the current IP address is located. If so, the usage region is changed. Therefore, this application monitors diagnostic devices through a server. After receiving a user's request for use of a target diagnostic device, the server obtains the target information of the target diagnostic device, determines the usage region bound to the target diagnostic device, and judges whether the current IP address in the target information matches the bound usage region. It should be noted that the target diagnostic device only has usage permissions within the specified usage region. Therefore, if it does not match, a preset condition is used to determine whether the usage region can be changed to the target region where the current IP address is located. If it can be changed, the usage region is changed, thereby enabling the user to use the target diagnostic device within the region where the current IP address is located. By implementing the above solution, the server can automatically change the usage region bound to the diagnostic device based on the judgment, which can reduce the problem of the diagnostic device being unusable by the user due to the IP address not being compatible with the usage region, thereby improving the user experience.

[0076] In some specific embodiments, the region changing module 13 may specifically include:

[0077] The first judgment unit is used to determine whether the usage area and the target area where the current IP address is located belong to the same superior area;

[0078] The first determination unit is used to determine whether the current usage area can be changed to the target area if the condition is met; otherwise, it determines that the current usage area cannot be changed to the target area.

[0079] In some specific embodiments, the region changing module 13 may specifically include:

[0080] The second judgment unit is used to determine whether the usage area of ​​the target diagnostic device has been changed.

[0081] The second determination unit is used to determine, if yes, that the usage area cannot be changed to the target area where the current IP address is located; if no, that the usage area can be changed to the target area where the current IP address is located.

[0082] In some specific embodiments, the region changing module 13 may specifically include:

[0083] The third judgment unit is used to determine whether the usage area and the target area where the current IP address is located belong to the same superior area, and to determine whether the usage area of ​​the target diagnostic device has been changed.

[0084] The third determination unit is used to determine if the usage area and the target area belong to the same superior area and the usage area of ​​the target diagnostic device has not been changed, and if so, to determine that the usage area can be changed to the target area; otherwise, to determine that the usage area cannot be changed to the target area.

[0085] In some specific embodiments, the information acquisition module 11 may further include:

[0086] The condition judgment unit is used to determine the target diagnostic function that the user needs to use based on the usage request, and to determine whether the target diagnostic function has pre-set usage area restrictions.

[0087] A jump unit is used to jump to the step of obtaining the target information of the target diagnosis if the target information is correct, so as to determine whether the current IP address in the target information matches the usage area.

[0088] A request-response unit is configured to respond to the use request if no, to allow the client to use the target diagnostic device.

[0089] In some specific embodiments, the target information also includes the diagnostic device serial number;

[0090] Accordingly, the region determination module 12 may specifically include:

[0091] The region determination unit is used to determine the usage region bound to the target diagnostic device based on the diagnostic device serial number.

[0092] In some specific embodiments, the device permission setting device further includes:

[0093] The information statistics unit is used to acquire usage area change information of each diagnostic device within a preset time period, and to count the number of changes of each usage area based on the usage area change information;

[0094] The results display unit is used to display statistical results on a preset interface.

[0095] Figure 4This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Specifically, it may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the device permission setting method performed by the electronic device disclosed in any of the foregoing embodiments.

[0096] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0097] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0098] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored on it include operating system 221, computer program 222 and data 223, etc., and the storage method can be temporary storage or permanent storage.

[0099] The operating system 221 manages and controls the various hardware devices and computer programs 222 on the electronic device 20 to enable the processor 21 to perform calculations and processing on the massive amounts of data 223 in the memory 22. The operating system 221 can be Windows, Unix, Linux, etc. The computer program 222, in addition to including a computer program capable of performing the device permission setting method disclosed in any of the foregoing embodiments, may further include computer programs capable of performing other specific tasks. The data 223 may include data received by the electronic device from external devices, as well as data collected by its own input / output interface 25.

[0100] Furthermore, embodiments of this application also disclose a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, it implements the method steps executed during the device permission setting process disclosed in any of the foregoing embodiments.

[0101] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0102] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0103] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0104] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0105] The above provides a detailed description of a device permission setting method, apparatus, device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for setting device permissions, characterized in that, Applied to servers, including: After receiving a usage request from the user terminal for the target diagnostic device, the target information of the target diagnostic device is obtained. The usage area bound to the target diagnostic device is determined, and it is determined whether the current IP address in the target information matches the usage area; wherein, the target diagnostic device only has usage permissions enabled within the usage area; If not, then based on preset conditions, it is determined whether the usage area can be changed to the target area where the current IP address is located. If so, the usage area is changed. The step of obtaining the user's request for use of the target diagnostic device further includes: Based on the usage request, the target diagnostic function that the user needs to use is determined, and it is determined whether the target diagnostic function has pre-set usage area restrictions. If so, proceed to the step of obtaining the target information of the target diagnosis to determine whether the current IP address in the target information matches the usage area; If not, then respond to the usage request to allow the client to use the target diagnostic device; The device permission setting method further includes: Within a preset time period, acquire usage area change information for each diagnostic device, and count the number of changes for each usage area based on the usage area change information; The statistical results are displayed on the preset interface.

2. The device permission setting method according to claim 1, characterized in that, The step of determining whether the usage region can be changed to the target region where the current IP address is located based on preset conditions includes: Determine whether the usage area and the target area where the current IP address is located belong to the same parent area; If so, it is determined that the current usage area can be changed to the target area; If not, it is determined that the area in use cannot be changed to the target area at present.

3. The device permission setting method according to claim 1, characterized in that, The step of determining whether the usage region can be changed to the target region where the current IP address is located based on preset conditions includes: Determine whether the area of ​​use of the target diagnostic device has been changed; If so, it is determined that the usage area cannot be changed to the target area where the current IP address is located; If not, it is determined that the current usage area can be changed to the target area where the current IP address is located.

4. The device permission setting method according to claim 1, characterized in that, The step of determining whether the usage region can be changed to the target region where the current IP address is located based on preset conditions includes: Determine whether the usage area and the target area where the current IP address is located belong to the same parent area, and determine whether the usage area of ​​the target diagnostic device has been changed; If the usage area and the target area belong to the same parent area and the usage area of ​​the target diagnostic device has not been changed, then it is determined that the usage area can be changed to the target area; otherwise, it is determined that the usage area cannot be changed to the target area.

5. The device permission setting method according to claim 1, characterized in that, The target information also includes the diagnostic device serial number; Accordingly, determining the usage area bound to the target diagnostic device includes: The usage area associated with the target diagnostic device is determined based on the diagnostic device's serial number.

6. A device permission setting device, characterized in that, Applied to servers, including: The information acquisition module is used to acquire the target information of the target diagnostic device after receiving a usage request from the user terminal for the target diagnostic device. The region determination module is used to determine the usage region bound to the target diagnostic device and to determine whether the current IP address in the target information matches the usage region; wherein, the target diagnostic device only has usage permissions enabled within the usage region; The region change module is used to determine whether the current region can be changed to the target region where the current IP address is located based on preset conditions if the conditions are not met; if so, the region is changed. The information acquisition module further includes: The condition judgment unit is used to determine the target diagnostic function that the user needs to use based on the usage request, and to determine whether the target diagnostic function has pre-set usage area restrictions. A jump unit is used to jump to the step of obtaining the target information of the target diagnosis if the target information is correct, so as to determine whether the current IP address in the target information matches the usage area. A request-response unit is configured to respond to the use request if no, to allow the client to use the target diagnostic device; The device permission setting device further includes: The information statistics unit is used to acquire usage area change information of each diagnostic device within a preset time period, and to count the number of changes of each usage area based on the usage area change information; The results display unit is used to display statistical results on a preset interface.

7. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the device permission setting method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, Used to store computer programs; wherein, when the computer programs are executed by a processor, they implement the steps of the device permission setting method as described in any one of claims 1 to 5.