CN109254913B - Device sharing method and device, electronic device and computer storage medium - Google Patents

Device sharing method and device, electronic device and computer storage medium Download PDF

Info

Publication number
CN109254913B
CN109254913B CN201810918316.7A CN201810918316A CN109254913B CN 109254913 B CN109254913 B CN 109254913B CN 201810918316 A CN201810918316 A CN 201810918316A CN 109254913 B CN109254913 B CN 109254913B
Authority
CN
China
Prior art keywords
user
shared
sharing
equipment
group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810918316.7A
Other languages
Chinese (zh)
Other versions
CN109254913A (en
Inventor
韩竞竞
李欣
龙慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810918316.7A priority Critical patent/CN109254913B/en
Publication of CN109254913A publication Critical patent/CN109254913A/en
Application granted granted Critical
Publication of CN109254913B publication Critical patent/CN109254913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Abstract

The application relates to the technical field of terminal equipment, and discloses an equipment sharing method, an equipment sharing device, electronic equipment and a computer readable storage medium, wherein the equipment sharing method comprises the following steps: receiving a device sharing request of any user; determining shared equipment in a user group to which any user belongs according to the received equipment sharing request; and performing equipment sharing among users in the same group based on the shared equipment. According to the method, any user can share the shared equipment in the user group to which the user belongs according to the requirement, namely, the user can share the terminal equipment shared by other users in the same group with the user, and the shared terminal equipment is fully utilized, so that the utilization rate of the terminal equipment is improved, and idle waste of equipment resources is effectively avoided.

Description

Device sharing method and device, electronic device and computer storage medium
Technical Field
The present application relates to the technical field of terminal devices, and in particular, to a device sharing method and apparatus, an electronic device, and a computer storage medium.
Background
With the development of terminal technology, the performance of terminal equipment becomes better and better, so more and more applications start to emerge. The user may use various applications to perform desired operations, such as playing games through a game application, playing audio and video through a video application, searching through a browser application, querying for information, and the like.
Before the application is developed and released online formally, the application needs to be tested, and the application can be online only after the test is completed without any problem, wherein the application needs to be tested on different types of terminal equipment because the types, operating systems and the like of different types of terminal equipment have certain differences. In order to facilitate the testing of the application program, a testing platform allowing the terminal devices of various different models to be accessed can be provided, so that a tester can access the terminal devices of various different models to the testing platform to complete the testing of a certain application program to be tested.
However, after the tester completes the test of a certain application program to be tested, the batch of terminal devices with different models may be in an idle state, resulting in low device utilization rate and wasted device resources.
Disclosure of Invention
The object of the present application is to solve at least one of the above-mentioned technical drawbacks, in particular the low equipment utilization.
In a first aspect, a device sharing method is provided, including:
receiving a device sharing request of any user;
determining shared equipment in a user group to which any user belongs according to the received equipment sharing request;
and based on the shared equipment, executing equipment sharing among the users in the same group.
Specifically, before receiving the device sharing request of any user, the method further includes:
configuring sharing equipment corresponding to each user;
and determining a sharing equipment list according to a plurality of preset user groups, wherein the sharing equipment list comprises sharing equipment respectively corresponding to each user group.
Further, determining the shared device in the user group to which any user belongs according to the received device sharing request includes:
determining a user group to which any user belongs according to user identification in a received equipment sharing request and inverted information of the user group relationship of any user;
and inquiring in the shared device list based on the user group to which any user belongs so as to determine the shared device in the user group to which any user belongs.
Further, the reverse information of the user co-group relationship of any user includes the user identifier of any user and the user identifiers of other users in the same group with any user.
Further, configuring the sharing devices respectively corresponding to the users includes:
acquiring equipment information of equipment to be shared of each user;
configuring sharing equipment corresponding to each user according to equipment information of equipment to be shared of each user;
the device information of the device to be shared includes at least one of: the number of devices to be shared; a device identifier of a device to be shared; the operating status of the device to be shared.
Further, still include:
determining non-shared equipment of any user;
sharing the non-shared equipment of any user to other users in the user group to which the user belongs so as to realize equipment sharing among users in the same group.
Further, the non-shared device comprises a private device and a device in a preset state;
the device in the preset state is a device which can be converted into a shared device when a preset condition is met.
Further, when the non-shared device is a private device, sharing the non-shared device of any user to other users in the user group to which the any user belongs includes:
receiving a private device sharing request of private devices of any user to be used;
and pushing the received private device sharing request, and sharing the private device of any user to other users in the user group to which the any user belongs when receiving confirmation information of the any user aiming at the private device sharing request.
Further, when the non-shared device is a device in a preset state, sharing the non-shared device of any user to other users in the user group to which the any user belongs, includes:
detecting whether a predetermined condition is satisfied;
and if the preset conditions are met, sharing the equipment in the preset state of any user to other users in the user group to which the any user belongs.
In a second aspect, an apparatus for sharing devices is provided, including:
the device comprises a receiving module, a sharing module and a sharing module, wherein the receiving module is used for receiving a device sharing request of any user;
the first determining module is used for determining shared equipment in a user group to which any user belongs according to the received equipment sharing request;
and the first sharing module is used for executing equipment sharing among users in the same group based on the sharing equipment.
Specifically, the system further comprises a configuration module and a second determination module;
the configuration module is used for configuring the sharing equipment corresponding to each user;
and the second determining module is used for determining a shared device list according to a plurality of preset user groups, wherein the shared device list comprises shared devices respectively corresponding to the user groups.
Further, the first determining module comprises a user grouping determining sub-module and a query sub-module;
the user grouping determination submodule is used for determining the user grouping to which any user belongs according to the user identification in the received equipment sharing request and the inverted information of the user group relationship of any user;
and the query submodule is used for querying in the shared device list based on the user group to which any user belongs so as to determine the shared devices in the user group to which any user belongs.
Further, the reverse information of the user co-group relationship of any user includes the user identifier of any user and the user identifiers of other users in the same group with any user.
Further, the configuration module comprises an acquisition submodule and a configuration submodule;
the obtaining submodule is used for obtaining the equipment information of the equipment to be shared of each user;
the configuration submodule is used for configuring the sharing equipment corresponding to each user according to the equipment information of the equipment to be shared of each user;
the device information of the device to be shared includes at least one of: the number of devices to be shared; a device identifier of a device to be shared; the running state of the device to be shared.
Further, the system also comprises a third determining module and a second sharing module;
a third determining module, configured to determine a non-shared device of any user;
the second sharing module is used for sharing the non-sharing equipment of any user to other users in the user group to which the user belongs so as to realize equipment sharing among users in the same group.
Further, the non-shared device comprises a private device and a device in a preset state;
the device in the preset state is a device capable of being converted into a shared device when a preset condition is met.
Further, when the non-shared device is a private device, the second shared module includes a private device sharing request sub-module and a private device sharing determination module;
the private equipment sharing request submodule is used for receiving a private equipment sharing request of private equipment of any user to be used;
and the private equipment sharing determining module is used for pushing the received private equipment sharing request and sharing the private equipment of any user to other users in the user group to which the any user belongs when receiving the confirmation information of the any user aiming at the private equipment sharing request.
Further, when the non-shared device is a device in a preset state, the second sharing module comprises a detection submodule and a preset state device sharing submodule;
the detection submodule is used for detecting whether a preset condition is met;
and the preset state device sharing submodule is used for sharing the device in the preset state of any user to other users in the user group to which the user belongs when a preset condition is met.
In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the device sharing method is implemented.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the device sharing method described above.
The device sharing method provided by the implementation of the application receives the device sharing request of any user, determines the sharing device in the user group to which any user belongs according to the received device sharing request, and provides a precondition guarantee for the subsequent execution of device sharing among users in the same group; based on the shared device, device sharing among users in the same group is executed, so that any user can share the shared device in the user group to which the user belongs according to the requirement, namely, any user can share the terminal device shared by other users in the same group with the user, and the shared terminal device is fully utilized, thereby improving the utilization rate of the terminal device and effectively avoiding idle waste of device resources.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a device sharing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a basic structure of a device sharing apparatus according to an embodiment of the present application;
fig. 3 is a detailed structural diagram of a device sharing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In general, if a tester a accesses a first batch of terminal devices with different models to the test platform, the test platform only allows a user a to use the first batch of terminal devices with different models, and if a tester B accesses a second batch of terminal devices with different models to the test platform, the test platform only allows a user B to use the second batch of terminal devices with different models. Therefore, after the tester a completes its testing task, the first batch of terminal devices of different models will be in an idle state and cannot be used by other testers, thereby resulting in low device utilization rate and waste of device resources.
The present application provides a device sharing method, apparatus, electronic device and computer-readable storage medium, which aim to solve the above technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
An embodiment of the present application provides an apparatus sharing method, as shown in fig. 1, including:
step S110, receiving a device sharing request of any user.
Specifically, when the workload of any User (for example, a tester a) accessing a plurality of different types of terminal devices of a test platform is saturated, or when a test of another type of terminal device in the test platform is temporarily required, any User may send a device sharing request for sharing a certain terminal device or several terminal devices to the test platform through a User Interface (UI) or a client, that is, the test platform receives the device sharing request of any User.
The testing platform comprises a server and more than one terminal device, the server is used for managing the terminal devices, the state of the terminal devices can be determined, tasks can be distributed, task results can be determined, and the like, and the terminal devices are used for testing the tasks to be tested.
Step S120, determining a shared device in the user group to which any user belongs according to the received device sharing request.
Specifically, after receiving a device sharing request of any user, the test platform determines, according to the received device sharing request, a user group to which the any user belongs, for example, determines that the user group to which the any user belongs is a P1 group, and determines, according to the user group (for example, the P1 group) to which the any user belongs, a shared device in the user group (for example, the P1 group), that is, determines a shared device in the user group to which the any user belongs.
Step S130, based on the shared device, executing device sharing among users in the same group
Specifically, after the test platform determines the shared device in the user group to which any user belongs, based on the determined shared device, device sharing among users in the same group is performed, that is, any user is allowed to use the shared device in the group to which the user belongs, that is, any user is allowed to use the shared device shared by other users in the group to which the user belongs.
Compared with the prior art, the device sharing method provided by the embodiment of the application receives the device sharing request of any user, determines the shared device in the user group to which any user belongs according to the received device sharing request, and provides a precondition guarantee for the subsequent execution of device sharing among users in the same group; based on the shared device, device sharing among users in the same group is executed, so that any user can share the shared device in the user group to which the user belongs according to the requirement, namely, any user can share the terminal device shared by other users in the same group with the user, and the shared terminal device is fully utilized, thereby improving the utilization rate of the terminal device and effectively avoiding idle waste of device resources.
Example two
The embodiment of the present application provides another possible implementation manner, and on the basis of the first embodiment, the method shown in the second embodiment is further included, wherein,
step S100 (not shown) and step S101 (not shown) are also included before step S110, wherein,
step S100: and configuring the sharing equipment corresponding to each user.
Step S101: determining a sharing device list according to a plurality of preset user groups, wherein the sharing device list comprises sharing devices respectively corresponding to the user groups.
Specifically, step S100 may specifically include step S1001 (not shown) and step S1002 (not shown), wherein,
step S1001: and acquiring the equipment information of the equipment to be shared of each user.
Step S1002: and configuring sharing equipment corresponding to each user according to the equipment information of the equipment to be shared of each user.
Wherein the device information of the device to be shared comprises at least one of: the number of devices to be shared; a device identifier of a device to be shared; the operating status of the device to be shared.
Further, step S101 may specifically include step S1011 (not shown in the figures) and step S1012 (not shown in the figures), wherein,
step S1011: and determining the user group to which any user belongs according to the user identification in the received equipment sharing request and the inverted information of the user group relationship of any user.
Step S1012: and inquiring in the shared device list based on the user group to which any user belongs so as to determine the shared device in the user group to which any user belongs.
The reverse information of the user group relationship of any user comprises the user identification of any user and the user identifications of other users in the same group with any user.
In this embodiment of the application, the test platform may perform corresponding user grouping in advance according to a received grouping request of any user, for example, if any user a wants to combine with user B and user C into one group, any user a may send a request message to the test platform through the UI or the client to combine with user B and user C into one group, and after the test platform receives the request message, any user a, user B and user C are grouped into one group, such as a P1 group. For another example, if any user D wants to combine with the user E into one group, any user D may send a request message to the test platform through the UI or the client, and after the test platform receives the request message, the test platform divides any user D and user E into one group, such as a P2 group. Any user F and user G are grouped into a group, such as a P3 group, for example, based on a request message that any user F wants to group with user G.
Specifically, if a user a, a user B, a user C, a user D, and a user E respectively access a batch of terminal devices of different models in a test platform, when the user completes a test task or currently does not use some terminal devices (e.g., device 1, device 2, device 3, device 4, device 5, etc.) temporarily, the terminal devices temporarily not used may be configured as devices to be shared, and may notify the test platform through a notification message, after receiving the notification message, the test platform obtains device information of the devices to be shared of each user, for example, obtains the number of the devices to be shared of each user, a device identifier of the devices to be shared of each user, and an operation state of the devices to be shared of each user, and then the test platform configures the sharing devices corresponding to each user according to the device information of the devices to be shared of each user, that is to configure the sharing devices corresponding to each user.
Further, the test platform determines, according to a plurality of preset user groups, for example, the above-mentioned P1 group, P2 group, and the like, a shared device list including shared devices corresponding to the user groups, that is, a shared device list including shared devices corresponding to the user groups, for example, the shared device list includes shared devices corresponding to the P1 group, shared devices corresponding to the P2 group, and shared devices corresponding to the P3 group, where the shared devices corresponding to the P1 group are shared devices contributed by the user a, the user B, and the user C in the P1 group, the shared devices corresponding to the P2 group are shared devices contributed by the user D and the user E in the P2 group, and the shared devices corresponding to the P3 group are shared devices contributed by the user F and the user G in the P3 group.
Further, after receiving the device sharing request of any user a, the test platform determines, according to the user identifier (for example, a _ ID) in the received device sharing request, the user group to which the any user a belongs through the user group relationship inverted information of the any user a, for example, according to the user identifier a _ ID of the user a, through the user group relationship inverted information of the user a, the user group to which the any user a belongs is determined to be the P1 group. The reverse information of the user-group relationship of any user includes a user identifier of any user and user identifiers of other users in the same group as any user, that is, the reverse information of the group relationship of the user a includes a user identifier a _ ID of the user a, a user identifier (B _ ID) of a user B in the same group as the user a, and a user identifier (C _ ID) of a user C in the same group as the user a, that is, the reverse information of the user-group relationship is used to indicate which users belong to the same group.
Further, after determining that the user group to which any user a belongs is a P1 group, the user group P1 to which any user a belongs may be queried in the shared device list, so as to obtain the shared device corresponding to the P1 group in the shared device list, and further determine the shared device in the user group P1 to which any user a belongs, thereby laying a foundation for subsequently implementing device sharing among users in the same group.
By the method in the embodiment of the application, the sharing equipment corresponding to each user can be efficiently configured, the user group to which any user belongs can be simply, conveniently and quickly found out, and then the sharing equipment in the user group is determined, namely the sharing equipment sharable by any user can be quickly and accurately determined, so that a foundation is laid for subsequently realizing equipment sharing among users in the same group, the user can share the terminal equipment shared by other users in the same group with the user, the equipment utilization rate is improved, and idle waste of equipment resources is avoided.
EXAMPLE III
The embodiment of the present application provides another possible implementation manner, and on the basis of the second embodiment, the method shown in the third embodiment is further included, wherein,
further comprises a step S140 (not shown) and a step S150 (not shown), wherein,
step S140: the unshared devices of any user are determined.
Step S150: sharing the non-shared equipment of any user to other users in the user group to which the user belongs so as to realize equipment sharing among users in the same group.
The non-shared device comprises a private device and a device in a preset state, wherein the device in the preset state can be converted into a shared device when a preset condition is met.
Specifically, when the non-shared device is a private device, step S150 may include step S1501 (not labeled) and step S1502 (not labeled), wherein,
step S1501: receiving a private device sharing request of private devices of any user to be used;
step S1502: and pushing the received private device sharing request, and sharing the private device of any user to other users in the user group to which the any user belongs when receiving confirmation information of the any user aiming at the private device sharing request.
Further, when the non-shared device is a device in a preset state, the step S150 may include steps S1503 (not shown) and S1504 (not shown), wherein,
step S1503: detecting whether a predetermined condition is satisfied;
step S1504: and if the preset conditions are met, sharing the equipment in the preset state of any user to other users in the user group to which the any user belongs.
Specifically, if the user D and the user E respectively access a batch of terminal devices of different models in the test platform, for example, the user D accesses the device 1, the device 1', and the device 1 ", and the user E accesses the device 2, the device 2', and the device 2", when the user D completes a test task or currently does not use some terminal devices (for example, the device 1 '), the user D may configure the terminal devices as shared devices according to the method of the second embodiment, so as to be used by the user E in the user group to which the user D belongs, and at the same time, the user D may configure the device 1 and the device 1 "as non-shared devices according to needs, where the non-shared devices include a private device and a device in a preset state, and the device in the preset state is a device capable of being converted into a shared device when a predetermined condition is met, that is, the user D may configure the device 1 and the device 1" as private devices and/or devices in the preset state according to needs, for example, the user D may configure the device 1 "as a private device in the preset state, and further may configure the device 1" as a device in the preset state according to needs.
Further, when the workload of the terminal device accessed by the user E and the workload of the shared device in the user group to which the user E belongs are saturated and the user E needs other terminal devices to complete the test task, the test platform may determine the non-shared device of the user D and share the non-shared device of the user D to the user E in the user group to which the user D belongs, so as to implement device sharing among users in the same group.
Further, when the non-shared device is a private device, for example, the user D configures the device 1 and the device 1 ″ as the private device as required, at this time, the user E may send a private device sharing request to the test platform for using the private device of the user D, that is, the test platform receives the private device sharing request of the private device of the user E for using the user D, then the test platform pushes the received private device sharing request, and when confirmation information of the user D for the private device sharing request is received, the private device of the user D is shared to the user E in the user group to which the user D belongs, for example, the test platform pushes the received private device sharing request to a UI or a client corresponding to the user D, that is, the test platform forwards the private device sharing request to the user D, after the user D sees the private device sharing request, the private device 1 may be configured as required, for example, the private device 1 is configured to be allowed to be used by the user E, and when the user D configures the private device 1 to be allowed to be used by the user E, corresponding confirmation information is fed back to the test platform, wherein the number of the private devices allowed to be carried in the confirmation information, and the number of the private device and the test platform id and the user D confirms the user E's belonging to the user D.
Further, when the non-shared device is a device in a preset state, for example, the user D configures the device 1 ″ as a device in a preset state as required, at this time, the test platform may detect whether a predetermined condition is met, and if the predetermined condition is met, share the device in the preset state of the user D (for example, the device 1') to the user E in the user group to which the user D belongs. The predetermined condition may be that the workload of the terminal device is saturated, or that the remaining test task amount is greater than a preset threshold. For example, the test platform detects that the workload of the terminal device accessed by the user E belonging to the same group as the user D and the workload of the shared device in the user group to which the user E belongs are both saturated, and for example, the test platform detects that the user E still has a test task amount greater than a preset threshold value to be tested.
Further, when the test platform detects that a predetermined condition is met, the device (such as the device 1 ") configured in the preset state by the user D can be automatically converted into a shared device, and the device in the preset state is shared with the user E belonging to the same group as the user D, so as to implement device sharing among users in the same group.
By the method, the private equipment and the equipment in the preset state between the users in the same group can be shared, so that any user can use the private equipment and the equipment in the preset state of other users in the same group with the user as required, the utilization rate of the terminal equipment is further improved, and the equipment resource is effectively prevented from being idle.
Example four
Fig. 2 is a schematic structural diagram of an apparatus sharing device according to an embodiment of the present disclosure, as shown in fig. 2, the apparatus 20 may include a receiving module 21, a first determining module 22, and a first sharing module 23, wherein,
the receiving module 21 is configured to receive a device sharing request of any user;
the first determining module 22 is configured to determine, according to the received device sharing request, a shared device in a user group to which any user belongs;
the first sharing module 23 is configured to perform device sharing among users in the same group based on the shared device.
In particular, the apparatus further comprises a configuration module 24 and a second determination module 25, as shown in fig. 3, wherein,
the configuration module 24 is configured to configure a sharing device corresponding to each user;
the second determining module 25 is configured to determine a shared device list according to a plurality of preset user groups, where the shared device list includes shared devices corresponding to each user group.
Further, the first determining module 22 comprises a user grouping determining sub-module 221 and a querying sub-module 222, as shown in fig. 3, wherein,
the user grouping determination sub-module 221 is configured to determine, according to the user identifier in the received device sharing request, a user group to which any user belongs through the user group relationship inverted information of any user;
the query submodule 222 is configured to perform a query in the shared device list based on the user group to which any user belongs, so as to determine a shared device in the user group to which any user belongs.
Further, the reverse information of the user co-group relationship of any user includes the user identifier of any user and the user identifiers of other users in the same group with any user.
Further, the configuration module 24 includes an obtaining sub-module 241 and a configuration sub-module 242, as shown in fig. 3, wherein,
the obtaining submodule 241 is configured to obtain device information of devices to be shared of each user;
the configuration sub-module 242 is configured to configure, according to the device information of the device to be shared of each user, a sharing device corresponding to each user;
the device information of the device to be shared includes at least one of: the number of devices to be shared; a device identifier of a device to be shared; the running state of the device to be shared.
Further, the apparatus further comprises a third determining module 26 and a second sharing module 27, as shown in fig. 3, wherein,
the third determining module 26 is used for determining the unshared device of any user;
the second sharing module 27 is configured to share the non-shared device of any user to other users in the user group to which the any user belongs, so as to implement device sharing among users in the same group.
Further, the non-shared device comprises a private device and a device in a preset state;
the equipment in the preset state can be converted into the equipment for sharing when meeting the preset condition.
Further, when the non-shared device is a private device, the second shared module 27 includes a private device sharing request sub-module 271 and a private device sharing determination module 272, as shown in fig. 3, wherein,
the private device sharing request sub-module 271 is configured to receive a private device sharing request of a private device of any user to be used;
the private device sharing determination module 272 is configured to push the received private device sharing request, and when receiving confirmation information of any user for the private device sharing request, share the private device of any user to other users in the user group to which the any user belongs.
Further, when the non-shared device is a device in a preset state, the second sharing module 27 includes a detection sub-module 273 and a preset-state device sharing sub-module 274, as shown in fig. 3, wherein,
the detection sub-module 273 is configured to detect whether a predetermined condition is satisfied;
the preset-state device sharing sub-module 274 is configured to share the device in the preset state of any user to other users in the user group to which the any user belongs when a predetermined condition is satisfied.
Compared with the prior art, the device provided by the embodiment of the application receives the equipment sharing request of any user, determines the shared equipment in the user group to which any user belongs according to the received equipment sharing request, and provides a precondition guarantee for the subsequent execution of equipment sharing among users in the same group; based on the shared equipment, equipment sharing among users in the same group is executed, so that any user can share the shared equipment in the user group to which the user belongs according to the requirement, namely, any user can share the terminal equipment shared by other users in the same group with the user, and the shared terminal equipment is fully utilized, thereby improving the utilization rate of the terminal equipment and effectively avoiding idle waste of equipment resources.
EXAMPLE seven
An embodiment of the present application provides an electronic device, as shown in fig. 4, an electronic device 400 shown in fig. 4 includes: a processor 401 and a memory 403. Wherein the processor 401 is coupled to the memory 403, such as via a bus 402. Further, the electronic device 400 may also include a transceiver 404. It should be noted that the transceiver 404 is not limited to one in practical applications, and the structure of the electronic device 400 is not limited to the embodiment of the present application.
The processor 401 is applied to the embodiment of the present application, and is configured to implement the functions of the first determining module and the first sharing module shown in fig. 2. The transceiver 404 includes a receiver and a transmitter, and the transceiver 404 is applied in the embodiment of the present application to realize the functions of the receiving module shown in fig. 2.
The processor 401 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 401 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 402 may include a path that transfers information between the above components. The bus 402 may be a PCI bus or EISA bus, etc. The bus 402 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Memory 403 may be, but is not limited to, ROM or other type of static storage device that can store static information and instructions, RAM or other type of dynamic storage device that can store information and instructions, EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 403 is used for storing application program codes for executing the scheme of the application, and the execution is controlled by the processor 401. The processor 401 is configured to execute application program codes stored in the memory 403 to implement the actions of the device sharing apparatus provided by the embodiment shown in fig. 2.
The electronic device provided by the embodiment of the application comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and when the processor executes the program, compared with the prior art, the electronic device can realize that: receiving an equipment sharing request of any user, determining shared equipment in a user group to which the user belongs according to the received equipment sharing request, and providing a precondition guarantee for subsequently executing equipment sharing among users in the same group; based on the shared device, device sharing among users in the same group is executed, so that any user can share the shared device in the user group to which the user belongs according to the requirement, namely, any user can share the terminal device shared by other users in the same group with the user, and the shared terminal device is fully utilized, thereby improving the utilization rate of the terminal device and effectively avoiding idle waste of device resources.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method shown in the first embodiment. Compared with the prior art, the method comprises the steps of receiving an equipment sharing request of any user, determining shared equipment in a user group to which the user belongs according to the received equipment sharing request, and providing a precondition guarantee for the subsequent execution of equipment sharing among users in the same group; based on the shared device, device sharing among users in the same group is executed, so that any user can share the shared device in the user group to which the user belongs according to the requirement, namely, any user can share the terminal device shared by other users in the same group with the user, and the shared terminal device is fully utilized, thereby improving the utilization rate of the terminal device and effectively avoiding idle waste of device resources.
The computer-readable storage medium provided by the embodiment of the application is suitable for any embodiment of the method. And will not be described in detail herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a few embodiments of the present application and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present application, and that these improvements and modifications should also be considered as the protection scope of the present application.

Claims (16)

1. A device sharing method, comprising:
configuring sharing equipment corresponding to each user;
determining a sharing equipment list according to a plurality of preset user groups, wherein the sharing equipment list comprises sharing equipment respectively corresponding to each user group;
receiving a device sharing request of any user;
determining shared equipment in a user group to which any user belongs according to the received equipment sharing request;
based on the shared device, performing device sharing among users in the same group;
the determining, according to the received device sharing request, the shared device in the user group to which the any user belongs includes:
determining a user group to which any user belongs according to the user identification in the received equipment sharing request and the inverted information of the user group relationship of any user;
and inquiring in the shared device list based on the user group to which any user belongs so as to determine the shared devices in the user group to which any user belongs.
2. The method according to claim 1, wherein the reverse information of the user co-group relationship of any user includes a user identifier of the any user and user identifiers of other users in the same group as the any user.
3. The method according to claim 2, wherein the configuring the shared devices respectively corresponding to the users includes:
acquiring equipment information of equipment to be shared of each user;
configuring sharing equipment corresponding to each user according to the equipment information of the equipment to be shared of each user;
the device information of the device to be shared includes at least one of: the number of devices to be shared; a device identifier of a device to be shared; the operating status of the device to be shared.
4. The method according to any one of claims 1-3, further comprising:
determining non-shared equipment of any user;
and sharing the non-shared equipment of any user to other users in the user group to which the user belongs so as to realize equipment sharing among users in the same group.
5. The method of claim 4, wherein the non-shared device comprises a private device and a device in a preset state;
the equipment in the preset state can be converted into shared equipment when meeting preset conditions.
6. The method according to claim 5, wherein when the non-shared device is a private device, sharing the non-shared device of any user to other users in the user group to which the any user belongs comprises:
receiving a private device sharing request of private devices of any user to be used;
pushing the received private device sharing request, and sharing the private device of any user to other users in the user group to which the any user belongs when receiving the confirmation information of the private device sharing request of any user.
7. The method according to claim 6, wherein when the unshared device is in a preset state, the sharing the unshared device of the any user to the other users in the user group to which the any user belongs includes:
detecting whether a predetermined condition is satisfied;
and if the preset conditions are met, sharing the equipment in the preset state of any user to other users in the user group to which the any user belongs.
8. An apparatus for sharing a device, comprising:
the configuration module is used for configuring the sharing equipment corresponding to each user;
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a shared device list according to a plurality of preset user groups, and the shared device list comprises shared devices corresponding to the user groups;
the device comprises a receiving module, a sharing module and a sharing module, wherein the receiving module is used for receiving a device sharing request of any user;
a second determining module, configured to determine, according to the received device sharing request, a shared device in a user group to which the any user belongs;
the first sharing module is used for executing equipment sharing among users in the same group based on the sharing equipment;
the first determining module comprises a user grouping determining sub-module and a query sub-module;
the user grouping determination submodule is used for determining the user grouping to which any user belongs according to the user identification in the received equipment sharing request and the inverted information of the user group relationship of any user;
the query submodule is configured to perform query in the shared device list based on the user group to which the any user belongs, so as to determine a shared device in the user group to which the any user belongs.
9. The apparatus according to claim 8, wherein the reverse information of the user co-group relationship of any user includes a user identifier of the any user and user identifiers of other users co-group with the any user.
10. The apparatus of claim 8, wherein the configuration module comprises an acquisition sub-module and a configuration sub-module;
the obtaining submodule is used for obtaining the equipment information of the equipment to be shared of each user;
the configuration sub-module is used for configuring the sharing equipment corresponding to each user according to the equipment information of the equipment to be shared of each user;
the device information of the device to be shared includes at least one of: the number of devices to be shared; a device identifier of a device to be shared; the running state of the device to be shared.
11. The apparatus according to any one of claims 8-10, further comprising a third determining module and a second sharing module;
the third determining module is configured to determine a non-shared device of any user;
the second sharing module is configured to share the non-shared device of any user to other users in the user group to which the user belongs, so as to implement device sharing among users in the same group.
12. The apparatus according to claim 11, wherein the non-shared device comprises a private device and a device in a preset state;
the equipment in the preset state can be converted into shared equipment when meeting preset conditions.
13. The apparatus according to claim 12, wherein when the non-shared device is a private device, the second shared module comprises a private device sharing request sub-module and a private device sharing determination module;
the private device sharing request submodule is used for receiving a private device sharing request of private devices of any user to be used;
the private device sharing determining module is configured to push the received private device sharing request, and share the private device of any user to other users in the user group to which the user belongs when receiving confirmation information of the user for the private device sharing request.
14. The apparatus according to claim 12, wherein when the non-shared device is a device in a preset state, the second sharing module comprises a detection submodule and a preset-state device sharing submodule;
the detection submodule is used for detecting whether a preset condition is met;
and the preset state device sharing submodule is used for sharing the preset state device of any user to other users in the user group to which the user belongs when a preset condition is met.
15. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the device sharing method of any one of claims 1-7 when executing the program.
16. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the device sharing method of any one of claims 1 to 7.
CN201810918316.7A 2018-08-13 2018-08-13 Device sharing method and device, electronic device and computer storage medium Active CN109254913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810918316.7A CN109254913B (en) 2018-08-13 2018-08-13 Device sharing method and device, electronic device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810918316.7A CN109254913B (en) 2018-08-13 2018-08-13 Device sharing method and device, electronic device and computer storage medium

Publications (2)

Publication Number Publication Date
CN109254913A CN109254913A (en) 2019-01-22
CN109254913B true CN109254913B (en) 2022-11-04

Family

ID=65049191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810918316.7A Active CN109254913B (en) 2018-08-13 2018-08-13 Device sharing method and device, electronic device and computer storage medium

Country Status (1)

Country Link
CN (1) CN109254913B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960652A (en) * 2019-02-13 2019-07-02 平安科技(深圳)有限公司 Sharing method, device, storage medium and the computer equipment of test equipment
CN110061997B (en) * 2019-04-25 2021-08-10 安徽网极信息科技有限公司 Intelligent account and password management system for browser
CN111950821B (en) * 2019-05-15 2023-07-25 腾讯科技(深圳)有限公司 Test method, device and server
CN110602187A (en) * 2019-08-29 2019-12-20 深圳市新系区块链技术有限公司 Terminal sharing method, device and equipment
CN114268513B (en) * 2021-11-23 2023-10-24 青岛海尔科技有限公司 Data sharing method, device, electronic equipment, storage medium and product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017088383A1 (en) * 2015-11-26 2017-06-01 乐视控股(北京)有限公司 Method, apparatus and system for playing live video
CN107911437A (en) * 2017-11-10 2018-04-13 广州视睿电子科技有限公司 Method, apparatus, electronic equipment and the storage medium of Screen sharing
CN107943687A (en) * 2017-10-30 2018-04-20 北京奇虎科技有限公司 A kind of collaborative share method, apparatus, server and storage medium
CN108023945A (en) * 2017-11-30 2018-05-11 福建中金在线信息科技有限公司 A kind of method and apparatus of information sharing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017088383A1 (en) * 2015-11-26 2017-06-01 乐视控股(北京)有限公司 Method, apparatus and system for playing live video
CN107943687A (en) * 2017-10-30 2018-04-20 北京奇虎科技有限公司 A kind of collaborative share method, apparatus, server and storage medium
CN107911437A (en) * 2017-11-10 2018-04-13 广州视睿电子科技有限公司 Method, apparatus, electronic equipment and the storage medium of Screen sharing
CN108023945A (en) * 2017-11-30 2018-05-11 福建中金在线信息科技有限公司 A kind of method and apparatus of information sharing

Also Published As

Publication number Publication date
CN109254913A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN109254913B (en) Device sharing method and device, electronic device and computer storage medium
KR102152556B1 (en) Service processing and consensus method and device
US20170331867A1 (en) Method, device and system for pushing file
CN106712981B (en) Node change notification method and device
CN108121511B (en) Data processing method, device and equipment in distributed edge storage system
CN107291750B (en) Data migration method and device
CN111176803B (en) Service processing method, device, server and storage medium
CN109391512A (en) A kind of service issuing method, device and electronic equipment
CN111569431A (en) Game engine resource processing method, electronic device and computer readable storage medium
CN114036031B (en) Scheduling system and method for resource service application in enterprise digital middleboxes
CN112148477A (en) Service process processing method, electronic device and storage medium
CN111694639A (en) Method and device for updating address of process container and electronic equipment
CN114640657A (en) Multi-registration center fusion method and device
CN109032779B (en) Task processing method and device, computer equipment and readable storage medium
CN111092956A (en) Resource synchronization method, device, storage medium and equipment
CN109558249B (en) Control method and device for concurrent operation
CN106790323B (en) Resource discovery method and device
CN110134461B (en) Universal processing method and device for data interaction
CN111857548B (en) Data reading method, device and system
CN111405313B (en) Method and system for storing streaming media data
CN112559565A (en) Abnormity detection method, system and device
CN112650710A (en) Data migration sending method and device, storage medium and electronic device
CN108255820B (en) Method and device for data storage in distributed system and electronic equipment
CN110677497A (en) Network medium distribution method and device
CN114979153B (en) Load balancing method, computer equipment and storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant