CN111800780B - Method, device and equipment for adjusting working state and storage medium - Google Patents

Method, device and equipment for adjusting working state and storage medium Download PDF

Info

Publication number
CN111800780B
CN111800780B CN202010622045.8A CN202010622045A CN111800780B CN 111800780 B CN111800780 B CN 111800780B CN 202010622045 A CN202010622045 A CN 202010622045A CN 111800780 B CN111800780 B CN 111800780B
Authority
CN
China
Prior art keywords
state
electronic devices
electronic
instruction
unlocking
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
CN202010622045.8A
Other languages
Chinese (zh)
Other versions
CN111800780A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010622045.8A priority Critical patent/CN111800780B/en
Publication of CN111800780A publication Critical patent/CN111800780A/en
Application granted granted Critical
Publication of CN111800780B publication Critical patent/CN111800780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Abstract

The embodiment of the application provides a method, a device, equipment and a storage medium for adjusting a working state, wherein the method comprises the following steps: determining a first electronic equipment set based on a preset screening condition; sending an interlocking instruction to a first electronic device in the first set of electronic devices; the interlock instruction is used for enabling the first electronic equipment to determine whether to adjust the working state to the locking state or not based on the interlock instruction; determining a second subset of electronic devices in the first set of electronic devices that adjust the operating state to a locked state; if the first number of the second electronic devices in the second electronic device subset is larger than or equal to a first threshold value, adjusting the current working state of the current device to the locking state; sending information characterizing the locked state to the second subset of electronic devices.

Description

Method, device and equipment for adjusting working state and storage medium
Technical Field
The present invention relates to electronic device control technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting a working state.
Background
At present, more and more students have own mobile phones, but the students do not necessarily have strong self-control capability in class and when needing to put down the mobile phones, and are easy to be addicted in various software information of the mobile phones. For the management of the mobile phones of students, in the related technology, a teacher educational administration main control computer controls the student terminals to enter teaching education states such as learning, examination, attendance checking and the like.
Disclosure of Invention
In view of this, the technical solution of the embodiment of the present application is implemented as follows:
the embodiment of the application provides a method for adjusting a working state, which comprises the following steps:
determining a first electronic equipment set based on a preset screening condition;
sending an interlocking instruction to a first electronic device in the first set of electronic devices; the interlock instruction is used for enabling the first electronic equipment to determine whether to adjust the working state to the locking state or not based on the interlock instruction;
determining a second subset of electronic devices in the first set of electronic devices that adjust the operating state to a locked state;
if the first number of the second electronic devices in the second electronic device subset is larger than or equal to a first threshold value, adjusting the current working state of the current device to the locking state;
sending information characterizing the locked state to the second subset of electronic devices.
The embodiment of the application provides a device for adjusting working condition, the device for adjusting working condition includes:
the first determining module is used for determining a first electronic equipment set based on a preset screening condition;
a first sending module, configured to send an interlock instruction to a first electronic device in the first set of electronic devices; the interlock instruction is used for enabling the first electronic equipment to determine whether to adjust the working state to the locking state or not based on the interlock instruction;
a second determining unit, configured to determine, in the first set of electronic devices, a second subset of electronic devices that adjust the operating state to a locked state;
a first adjusting module, configured to adjust the current working state of the current device to the locked state if the first number of the second electronic devices in the second subset of electronic devices is greater than or equal to a first threshold;
a second sending module, configured to send information characterizing the locked state to the second subset of electronic devices.
An embodiment of the present application provides an electronic device, which at least includes: a controller and a storage medium configured to store executable instructions, wherein:
the controller is configured to execute stored executable instructions configured to perform the method of adjusting an operating condition as described above.
Correspondingly, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute the above-provided method for adjusting an operating state.
The embodiment of the application provides a method, a device, equipment and a storage medium for adjusting working states, wherein in a plurality of electronic equipment, any electronic equipment can determine a first electronic equipment set meeting a screening condition through a preset screening condition, and adjust the number of second electronic equipment with the working states being locked according to an interlocking instruction in the first electronic equipment set, and adjust the working state of the current electronic equipment to be locked.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a method for adjusting a working state according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another implementation of the method for adjusting the working state according to the embodiment of the present application;
fig. 3 is a schematic flowchart of another implementation of the method for adjusting the working state according to the embodiment of the present application;
fig. 4 is an interlocking timing chart of an adjustment method of an operating state according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart of another implementation of the method for adjusting a working state according to the embodiment of the present application;
fig. 6 is a schematic structural diagram of an adjustment apparatus for an operating state according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of the electronic device according to the embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
The electronic device may be implemented in various forms. For example, the electronic devices described in the present application may include devices such as a mobile phone, a tablet computer, a notebook computer, a palm top computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a desktop computer, a server, and the like.
While the following description will be made taking a mobile electronic device as an example, those skilled in the art will appreciate that the configuration according to the embodiment of the present application can be applied to a fixed type electronic device in addition to elements particularly used for moving purposes.
An embodiment of the present application provides a method for adjusting a working state, and fig. 1 is a schematic flow chart illustrating an implementation of the method for adjusting a working state provided in the embodiment of the present application, where as shown in fig. 1, the method for adjusting a working state includes the following steps:
step S101: and determining a first electronic device set based on a preset screening condition.
Here, the preset filtering condition may be that the same local area network is running the same specified application, or that a user of the electronic device is in accordance with a social relationship. The network form of the local area network may be a Wireless network (WIFI network), a WIFI local area network, a bluetooth 4.1 local area network, a 2.4g Zigbee (Zigbee) local area network, or a general Wireless packet service (4-GPRS) network, etc. The current electronic equipment initiates searching according to the preset screening condition, and searches for the electronic equipment meeting the preset screening condition. In one example, when a plurality of electronic devices are in the same social scene, such as when a classroom is in class, any electronic device in the classroom sends a search for electronic devices in the same local area network, or any electronic device searches for electronic devices using the same check-in application, and the searched first electronic device forms a first electronic device set.
Step S102: and sending an interlocking instruction to a first electronic device in the first electronic device set.
Here, the interlock instruction is configured to cause the first electronic device to determine whether to adjust the operating state to the locked state based on the interlock instruction. The locked state means that the electronic device cannot use the electronic device to install at least part of the application. In some realizable embodiments, the interlock instruction refers to an instruction that can adjust the lock state of the current electronic device, i.e., the electronic device determining the first set of electronic devices, and the electronic devices in the first set of electronic devices from the common lock state to the interlock state. The interlock instruction may also be to adjust the operating state of an application other than the basic applications such as the phone and the contact on the electronic device to the interlock state. The normal locking state refers to a method for each electronic device to automatically adjust the working state according to a preset password. The interlocking state means that after the electronic device adjusts the working state of the electronic device to the locking state, the electronic device cannot unlock according to a preset password, and the electronic device can start unlocking only after other electronic devices send unlocking instructions for authorization.
In some realizable embodiments, after the first electronic device in the first set of electronic devices receives the interlock instruction, if the first electronic device determines to respond to the interlock instruction, the first electronic device sends feedback information of the response instruction to the electronic device sending the interlock instruction.
Step S103: determining a second subset of electronic devices in the first set of electronic devices that adjust the operating state to a locked state.
Here, the locked state refers to a state in which the operating state is adjusted to an interlocked state after the interlocking instruction is responded, and the interlocked state is a state in which the unlocking cannot be directly performed according to a preset password but the unlocking can be performed only by acquiring the unlocking authorization of other electronic devices when the unlocking process is performed.
Step S104: and if the first quantity of the second electronic equipment in the second electronic equipment subset is larger than or equal to a first threshold value, adjusting the current working state of the current equipment to the locking state.
Here, the first threshold may be an equal proportion of one nth of the number of first electronic devices in the first set of electronic devices, where N is a positive integer. And when the number of the second electronic equipment is more than or equal to one of N minutes, the current equipment adjusts the current working state to the locking state. For example, after responding to the interlock instruction, the second electronic device feeds back the information that the working state is adjusted to the locked state to the current device, and the current device determines the first number of the second electronic device according to the number of the received feedback information, and when the first number is greater than or equal to one-third of the number of the first electronic device, the current device also adjusts the current working state of the current device to the locked state, that is, the interlock state.
Step S105: sending information characterizing the locked state to the second subset of electronic devices.
Here, after the current device adjusts its own working state to the locked state, i.e., the interlock state, it sends a feedback information of the locked state to the second subset of electronic devices.
In the embodiment of the application, in the plurality of electronic devices, any electronic device determines a first electronic device set meeting a screening condition through a preset screening condition, and adjusts the number of second electronic devices with working states being locked states according to an interlocking instruction in the first electronic device set, and adjusts the working states of the current electronic devices to be locked states.
In some embodiments, step S101 may also be implemented by:
and determining a first electronic equipment set of which the communication distance with the current equipment is smaller than a preset distance according to a preset time period.
Here, the preset duration period may be set according to a period of the scene state of the electronic device. For example, when the electronic device is in a classroom, the preset time period may be set to every 50 minutes according to the user's class schedule. The fact that the communication distance between the electronic equipment and the current equipment is smaller than the preset distance means that the electronic equipment and the current equipment are located in the same local area network, and the network form of the local area network is not limited to a wireless network (WIFI network), a WIFI local area network, a Bluetooth 4.1 local area network, a 2.4g ZigBee local area network or a general wireless packet service network.
Therefore, the electronic device can periodically and automatically determine the set of electronic devices in the same local area network with the electronic device under a certain application scene.
On the basis of the embodiment shown in fig. 1, the present application further provides a method for adjusting the operating state. Referring to fig. 2, fig. 2 is another schematic flow chart of the implementation of the adjustment method of the working state provided in the embodiment of the present application, and the steps shown in fig. 2 will be described.
Step S201: determining a second number of the first electronic devices.
Step S202: and determining the ratio of the first number to the second number according to the first number and the second number.
Here, the ratio of the first number to the second number of the first electronic device is obtained according to a proportional relationship between the first number of the second electronic device and the second number of the first electronic device.
Step S203: and if the ratio meets a preset threshold value, determining the value of the zone bit of the locking process of the current equipment.
Here, the preset threshold may be set to be equal to or greater than one-N, N being a positive integer. When the duty ratio meets the preset threshold, it indicates that the working states of the second electronic device responding to the instruction and the current device need to be adjusted to the locked state, i.e. the interlocking state. The locking process refers to the locking mode of the current device: a normal mode or an interlock mode. The normal mode refers to locking or unlocking according to a preset password. The interlock mode means that unlocking can be performed only when unlocking authorization of other electronic equipment is received when unlocking is started.
The flag bit of the locking procedure is used to indicate the mode of the locking procedure of the current device. When the locking process of the current equipment is in a common locking mode, the value of the flag bit of the locking process is 0; when the locking process of the current device is in the interlock mode, the flag bit of the locking process has a value of 1. In an example, if the preset threshold is set to be equal to or greater than one third, when the duty ratio is equal to or greater than one third, the number of the second electronic devices that respond to the interlock instruction and adjust the operating state to the locked state, that is, the interlock state, satisfies the threshold, and at this time, the value of the flag bit of the locking process of the current device is checked.
Step S204: and when the value of the zone bit is a preset value, modifying the value of the zone bit so as to enable the current equipment to be in the locking state.
Here, when the value of the flag bit is a preset value 0, it indicates that the locking flow of the current device is in a normal locking mode, and at this time, the locking flow needs to be switched to an interlocking mode, and the value of the flag bit is modified to be 1, so that the current device is in the locking state, that is, the interlocking state. When the value of the flag bit is 1, it indicates that the locking process of the current device is already in the interlock mode, and at this time, the value of the flag bit does not need to be modified.
In this way, when the ratio of the number of the second electronic devices responding to the interlock instruction satisfies the preset threshold, the value of the flag bit of the locking process of the current device is adjusted, and the working state of the current device is adjusted to the interlock state.
After the current device is locked, the information of the locked state needs to be sent to other electronic devices, so that the other electronic devices modify the unlocking process according to the state of the current device.
And sending the confirmation information of the locking state to the second electronic equipment so that the second electronic equipment adjusts the value of the flag bit of the locking process according to the confirmation information and changes the unlocking process of the second electronic equipment.
Here, after the current device adjusts the operating state to the locked state, that is, the interlocked state, confirmation information of the locked state is generated and transmitted to the second electronic device. And after receiving the confirmation information of the locking state, the second electronic device checks the value of the flag bit of the locking process, and when the value of the flag bit is 0, the second electronic device adjusts the value of the flag bit to be 1 so as to adjust the locking mode of the second electronic device to be the interlocking mode, thereby changing the unlocking process of the second electronic device, so that the second electronic device can perform unlocking operation only when receiving unlocking authorization.
Therefore, after the second electronic device receives the confirmation information sent by the current device, the unlocking process of the electronic device can be automatically adjusted by adjusting the value of the zone bit of the locking process, and the mutual supervision effect among the electronic devices is realized.
In an implementation manner, the operating state of the electronic device in the locked state needs to be adjusted to the unlocked state, and the operating state of the electronic device can be adjusted from the locked state to the unlocked state through the following steps:
the method comprises the following steps: and receiving an unlocking instruction sent by any second electronic equipment in the second electronic equipment subset.
Here, the unlocking instruction is used for causing the electronic device responding to the unlocking instruction to determine whether to adjust the locking state to the unlocking state based on the interlocking instruction.
When the activity performed in the application scene where the electronic device is located is finished, the electronic device needs to adjust the working state to the unlocked state. At this time, any one of the plurality of electronic devices in the locked state, that is, the interlocked state may send an unlocking instruction, so that the electronic device responding to the unlocking instruction determines whether to adjust the current operating state from the locked state to the unlocked state.
Step two: and responding to the unlocking instruction, and adjusting the current equipment from the locking state to the unlocking state.
Here, the unlocked state means that the function of any application on the electronic device can be used after the operating state of the electronic device is switched to the unlocked state. In some examples, the unlock state may also be a state in which the lock state, that is, the interlock state of the electronic device is adjusted to a normal unlock state, that is, the electronic device may be unlocked according to a preset password.
In this way, any electronic device in the locked state can initiate an unlocking instruction, so that the working state of the electronic device responding to the unlocking instruction is adjusted to be the unlocked state.
In some embodiments, when the scene state in which the electronic device is currently located is ended, the operating state of the electronic device in the interlocking state needs to be adjusted to the unlocking state. On the basis of the embodiment shown in fig. 1, the present application further provides a method for adjusting the operating state. Referring to fig. 3, fig. 3 is a schematic flow chart of another implementation of the method for adjusting the working state according to the embodiment of the present application, and the following description is made with reference to the steps shown in fig. 3:
step S301: determining a time at which the current device is in the locked state.
Here, the time when the operating state of the current device is adjusted to the locked state is determined.
Step S302: and determining the effective duration for representing the locking state by taking the moment as the starting moment.
Here, the effective duration of the electronic device in the locked state may be set according to the starting time that is the time when the current operating state of the device is adjusted to the locked state. In some examples, the validity period may be set to 45 minutes.
Step S303: and carrying the effective duration to the interlocking instruction.
Here, the valid duration is carried in the interlock instruction, so that the valid duration is transmitted at the same time when the interlock instruction is transmitted to the other electronic device.
Step S304: determining the duration of the current device in the locked state;
here, the time length of the current device in the locked state is calculated according to the starting time which is the time when the working state of the current device is adjusted to the locked state.
Step S305: and if the duration is greater than or equal to the effective duration, sending an unlocking instruction to the second electronic equipment.
Here, the unlocking instruction is used for adjusting the second electronic equipment responding to the unlocking instruction from the locking state to the unlocking state;
step S306: and if the number of third electronic devices responding to the unlocking instruction in the second electronic devices is larger than or equal to a second number threshold, adjusting the second electronic devices from the locked state to the unlocked state.
Here, the second number threshold may be set to one of N parts of the number of the second electronic devices in the second electronic device, N being a positive integer. And if the number of the third electronic devices responding to the unlocking instruction is larger than or equal to a second number threshold, which indicates that the electronic devices meeting the number threshold agree to adjust the working state to the unlocking state, adjusting the working state of the second electronic device in the special locking subject to the unlocking state.
In some implementation manners, when the unlocking instruction is sent, the value of the flag bit of the locking flow of the current device is modified to 0, so that the locking flow of the current device is modified to a common unlocking flow, and the unlocking can be performed according to a preset password. And after the working state of the third electronic device is adjusted to be the unlocking state, the third electronic device modifies the value of the flag bit of the locking flow to be 0, so that the locking flow of the second electronic device is modified to be a common unlocking flow, and the unlocking can be carried out according to a preset password.
Therefore, when the time length of the locking state of the electronic equipment reaches the preset time length, the unlocking instruction can be automatically sent, and the working state of the electronic equipment in the locking state can be automatically adjusted to be the unlocking state according to the number of the electronic equipment responding to the unlocking instruction.
In some embodiments, when at least one of the electronic devices in the locked state does not satisfy the preset filtering condition, such as: when the electronic equipment leaves the same local area network environment, the working state of the electronic equipment is automatically adjusted from the locking state to the unlocking state.
And if at least one piece of second electronic equipment is detected and does not meet the preset screening condition, sending an unlocking instruction to the at least one piece of electronic equipment.
Here, when the electronic device is in a locked state, the current device detects in real time whether each electronic device satisfies a preset screening condition, and if any one of the second electronic devices in the locked state does not satisfy the screening condition previously determined for the first electronic device, if the screening condition is not in the same local area network as the current device or the used applications are different, an unlocking instruction is sent to the electronic device, so that the electronic device modifies the value of the flag bit of the locking flow to 0 according to the unlocking instruction, and adjusts the working state from the locked state, that is, the interlocked state, to the unlocked state.
Therefore, whether each electronic device meets the preset screening condition or not can be monitored in real time in the locking state, and when the electronic device does not meet the screening condition, an unlocking instruction is automatically sent to the electronic device, so that the working state of the electronic device is automatically adjusted.
The embodiment of the application provides a method for adjusting a working state, so as to adjust the working state of an electronic device. Fig. 4 is an interlocking timing chart of an adjustment method of an operating state according to an embodiment of the present application, and will be described with reference to the steps shown in fig. 4.
Step S401: the current device initiates a search for information of a first electronic device in the same local area network.
Here, one of the electronic devices in the same application scenario, as shown in fig. 4, device 1 initiates a search for information of a first electronic device, such as device 2 and device 3, in the same local area network; in the case of a non-local area network, interlocking devices may be added manually.
Step S402: the current device sends an interlocking instruction to the searched first electronic device.
Here, the interlock instruction is sent to the searched first electronic device by way of a socket (socket) or the like, but not limited thereto.
Step S403: the first electronic equipment sends the first feedback information to the current equipment.
Here, the first electronic device that receives the interlock instruction feeds back response information to the current device that sent the interlock instruction.
Step S404: and the current equipment adjusts the value of the zone bit of the locking process according to the first feedback information.
Here, after the current device receives all the feedback information as a response interlock instruction, the value of the flag bit of the locking flow is adjusted to 1, the unlocking flow is changed, and meanwhile, interlock confirmation information is sent to the first electronic device.
Step S405: the first electronic equipment adjusts the value of the flag bit of the locking process.
Here, the first electronic device determines the value of the flag bit of the locking process according to the received confirmation information, and adjusts the value of the flag bit to 1 to change the unlocking process, so that the first electronic device can only unlock according to the unlocking authorization sent by other electronic devices when performing subsequent unlocking operations.
Step S406: in an interlocked state.
Here, all the electronic devices are in an interlocked state.
Step S407: the current device sends an unlocking instruction to the first electronic device.
Step S408: the first electronic equipment returns the second feedback information.
Here, the first electronic device feeds back feedback information in response to the unlock instruction to the current device.
Step S409: and the current equipment adjusts the value of the zone bit of the locking process according to the second feedback information.
Here, after the current device receives all the feedback information as a response unlocking instruction, the value of the flag bit of the locking flow is adjusted to be 0, the unlocking flow is changed, and the unlocking flow is adjusted to be a common unlocking flow, so that the electronic device can be unlocked according to a preset password. And simultaneously, sending unlocking confirmation information to the first electronic equipment.
Step S410: the first electronic equipment adjusts the value of the flag bit of the locking process.
Here, the first electronic device adjusts the value of the flag bit to 0 according to the received unlocking confirmation information, so as to change the unlocking flow to a common unlocking flow, and enable the first electronic device to unlock according to a preset password.
Step S411: in the unlocked state.
Here, all the electronic devices are in the unlocked state.
In some implementations, the interlock fails if any of the first set of electronic devices does not respond to the interlock instruction.
Under the same LAN, if any one of the electronic devices in the interlocked state leaves the same LAN environment, the device automatically releases the interlocked mode.
In some embodiments, a single lock mode may also be used to ensure that the electronic device cannot initiate unlocking during periods when the electronic device is not needed. In addition, the single-lock mode only sets the value of the flag bit of the locking process for the device to be locked to determine whether unlocking can be started.
In the embodiment of the application, in the multiple electronic devices, any electronic device can determine the first electronic device set in the same local area network, and adjust the current operating states of the electronic device and the first electronic device to the locked state according to the feedback information of the interlocking instruction in the first electronic device set, so that any electronic device can initiate the interlocking instruction in the multiple electronic devices, the current device and the electronic device responding to the interlocking instruction can enter the interlocking state, mutual supervision among the electronic devices is ensured, and the electronic devices cannot influence the work, study, communication and other lives of users.
An embodiment of the present application provides a method for adjusting a working state, and fig. 5 is a schematic diagram of a further implementation flow of the method for adjusting a working state provided in the embodiment of the present application, as shown in fig. 5, the method for adjusting a working state includes the following steps:
step S501: and starting.
Step S502: the electronic device in the interlocked state is determined.
Step S503: determining whether the electronic device is in an initial local area network.
Here, if the electronic device is in the initial local area network, step S504 is performed. If the electronic device is in different local area networks, step S506 is executed.
Step S504: it is determined whether the electronic device receives an unlock instruction.
Here, when the electronic device in the interlocked state is in the initial local area network, the unlocking instruction sent by the sending-end device may be received. If the electronic device does not receive the unlocking instruction, executing step S505; if an unlock instruction is received, step S506 is performed.
Step S505: the electronic device fails to unlock.
Step S506: the electronic equipment is successfully unlocked.
Here, when the electronic device in the interlock state leaves the initial local area network, the electronic device automatically releases the interlock state, and the unlocking is successful. When the electronic device in the interlocking state is still in the initial local area network, the electronic device may unlock according to the received unlocking instruction.
Step S507: and (5) stopping.
Therefore, when the electronic equipment is in the interlocking state, the unlocking mode can be determined according to the network state of the electronic equipment.
An embodiment of the present application provides an adjustment apparatus for an operating condition, and fig. 6 is a schematic structural diagram of the adjustment apparatus for an operating condition provided in the embodiment of the present application, and as shown in fig. 6, the adjustment apparatus 600 for an operating condition includes: a first determining module 601, a first sending module 602, a second determining module 603, a first adjusting module 604, and a second sending module 605, wherein:
the first determining module 601 is configured to determine a first electronic device set based on a preset screening condition;
the first sending module 602, configured to send an interlock instruction to a first electronic device in the first set of electronic devices; the interlock instruction is used for enabling the first electronic equipment to determine whether to adjust the working state to the locking state or not based on the interlock instruction;
the second determining module 603 is configured to determine, in the first set of electronic devices, a second subset of electronic devices that adjust the operating state to a locked state;
the first adjusting module 604 is configured to adjust the current working state of the current device to the locked state if the first number of the second electronic devices in the second subset of electronic devices is greater than or equal to a first threshold;
the second sending module 605 is configured to send the information representing the locking state to the second subset of electronic devices.
In the above apparatus, the first determining module 601 is further configured to determine, according to a preset duration period, a first electronic device set whose communication distance with the current device is smaller than a preset distance.
In the above apparatus, the first adjusting module 604 includes:
a first determining submodule for determining a second number of the first electronic devices;
a second determining submodule, configured to determine, according to the first number and the second number, a ratio of the first number to the second number;
a third determining submodule, configured to determine a value of a flag bit of the locking process of the current device if the ratio satisfies a preset threshold;
and the modification submodule is used for modifying the value of the zone bit when the value of the zone bit is a preset value so as to enable the current equipment to be in the locking state.
In the above apparatus, the first adjusting module 604 further includes:
and the sending submodule is used for sending the confirmation information of the locking state to the second electronic equipment so that the second electronic equipment adjusts the value of the zone bit of the locking process according to the confirmation information and changes the unlocking process of the second electronic equipment.
In the above apparatus, the apparatus further comprises:
the receiving module is used for receiving an unlocking instruction sent by any second electronic equipment in the second electronic equipment subset; the unlocking instruction is used for enabling the electronic equipment responding to the unlocking instruction to determine whether to adjust the locking state into the unlocking state or not based on the interlocking instruction;
and the second adjusting module is used for responding to the unlocking instruction and adjusting the current equipment from the locking state to the unlocking state.
In the above apparatus, the apparatus further comprises:
a third determining module, configured to determine a time when the current device is in the locked state;
a fourth determining module, configured to determine, by using the time as a starting time, an effective duration for characterizing the locking state;
and the carrying module is used for carrying the effective duration to the interlocking instruction.
In the above apparatus, the apparatus further comprises:
a fifth determining module, configured to determine a duration that the current device is in the locked state;
the third sending module is used for sending an unlocking instruction to the second electronic equipment if the duration is greater than or equal to the effective duration; the unlocking instruction is used for adjusting the second electronic equipment responding to the unlocking instruction from the locking state to the unlocking state;
a third adjusting module, configured to adjust the second electronic device from the locked state to the unlocked state if, in the second electronic device, the number of third electronic devices responding to the unlocking instruction is greater than or equal to a second number threshold.
In the above apparatus, the apparatus further comprises:
and the fourth sending module is used for sending an unlocking instruction to at least one electronic device if at least one electronic device in the second electronic devices is detected not to meet the preset screening condition.
The embodiment of the present application further provides an electronic device, where the electronic device includes modules, and sub-modules and units included in the modules, and the sub-modules and the units may be implemented by a processor in the electronic device; of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a central processing unit, a microprocessor, a digital signal processor, a field programmable gate array, or the like.
Correspondingly, an embodiment of the present application provides an electronic device, fig. 7 is a schematic view of a composition structure of the electronic device provided in the embodiment of the present application, and as shown in fig. 7, the electronic device 700 at least includes: a controller 701 and a storage medium 702 configured to store executable instructions, wherein:
the controller 701 is configured to execute stored executable instructions for implementing the provided method of adjustment of the operating state.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A method of adjusting an operating condition, the method comprising:
determining a first electronic equipment set based on a preset screening condition;
sending an interlocking instruction to a first electronic device in the first set of electronic devices; the interlock instruction is used for enabling the first electronic equipment to determine whether to adjust the working state to the locking state or not based on the interlock instruction;
determining a second subset of electronic devices in the first set of electronic devices that adjust the operating state to a locked state;
if the first number of the second electronic devices in the second electronic device subset is larger than or equal to a first threshold value, adjusting the current working state of the current device to the locking state;
sending information characterizing the locked state to the second subset of electronic devices;
determining the duration of the current device in the locked state;
if the duration is greater than or equal to the effective duration, an unlocking instruction is sent to the second electronic equipment; the unlocking instruction is used for at least adjusting the second electronic equipment responding to the unlocking instruction from the locking state to the unlocking state;
and if the number of third electronic devices responding to the unlocking instruction in the second electronic devices is larger than or equal to a second number threshold, adjusting the second electronic devices from the locked state to the unlocked state.
2. The method of claim 1, wherein determining the first set of electronic devices based on a preset screening condition comprises:
and determining a first electronic equipment set of which the communication distance with the current equipment is smaller than a preset distance according to a preset time period.
3. The method of claim 1, wherein said adjusting the current operating state of the current device to the locked state if the first number of second electronic devices in the second subset of electronic devices is greater than or equal to a first threshold value comprises:
determining a second number of the first electronic devices;
determining the ratio of the first number to the second number according to the first number and the second number;
if the ratio meets a preset threshold value, determining the value of a zone bit of a locking process of the current equipment;
and when the value of the zone bit is a preset value, modifying the value of the zone bit so as to enable the current equipment to be in the locking state.
4. The method of claim 3, further comprising:
and sending the confirmation information of the locking state to the second electronic equipment so that the second electronic equipment adjusts the value of the flag bit of the locking process according to the confirmation information and changes the unlocking process of the second electronic equipment.
5. The method of claim 1, further comprising:
receiving an unlocking instruction sent by any second electronic equipment in the second electronic equipment subset; the unlocking instruction is used for enabling the electronic equipment responding to the unlocking instruction to determine whether to adjust the locking state into the unlocking state or not based on the interlocking instruction;
and responding to the unlocking instruction, and adjusting the current equipment from the locking state to the unlocking state.
6. The method of claim 1, further comprising:
determining a time when the current device is in the locked state;
determining effective duration for representing the locking state by taking the moment as an initial moment;
and carrying the effective duration to the interlocking instruction.
7. The method of claim 1, after said adjusting the current operating state of the current device to the locked state if the first number of second electronic devices in the subset of second electronic devices is greater than or equal to a first threshold, the method further comprising:
and if at least one piece of second electronic equipment is detected and does not meet the preset screening condition, sending an unlocking instruction to the at least one piece of electronic equipment.
8. An adjustment device of an operating condition, the adjustment device of the operating condition comprising:
the first determining module is used for determining a first electronic equipment set based on a preset screening condition;
a first sending module, configured to send an interlock instruction to a first electronic device in the first set of electronic devices; the interlock instruction is used for enabling the first electronic equipment to determine whether to adjust the working state to the locking state or not based on the interlock instruction;
a second determining module, configured to determine, in the first set of electronic devices, a second subset of electronic devices that adjust the operating state to a locked state;
a first adjusting module, configured to adjust a current working state of the current device to the locked state if the first number of the second electronic devices in the second subset of electronic devices is greater than or equal to a first threshold;
a second sending module, configured to send information characterizing the locking state to the second subset of electronic devices;
the second adjusting module is used for determining the duration of the current equipment in the locking state; if the duration is greater than or equal to the effective duration, an unlocking instruction is sent to the second electronic equipment; the unlocking instruction is used for at least adjusting the second electronic equipment responding to the unlocking instruction from the locking state to the unlocking state; and if the number of third electronic devices responding to the unlocking instruction in the second electronic devices is larger than or equal to a second number threshold, adjusting the second electronic devices from the locked state to the unlocked state.
9. A computer-readable storage medium having stored thereon computer-executable instructions configured to perform the method of adjusting an operating condition as provided in any one of claims 1 to 7.
CN202010622045.8A 2020-06-30 2020-06-30 Method, device and equipment for adjusting working state and storage medium Active CN111800780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010622045.8A CN111800780B (en) 2020-06-30 2020-06-30 Method, device and equipment for adjusting working state and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010622045.8A CN111800780B (en) 2020-06-30 2020-06-30 Method, device and equipment for adjusting working state and storage medium

Publications (2)

Publication Number Publication Date
CN111800780A CN111800780A (en) 2020-10-20
CN111800780B true CN111800780B (en) 2021-09-14

Family

ID=72811077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010622045.8A Active CN111800780B (en) 2020-06-30 2020-06-30 Method, device and equipment for adjusting working state and storage medium

Country Status (1)

Country Link
CN (1) CN111800780B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262778A (en) * 2012-05-23 2016-01-20 日立麦克赛尔株式会社 Mobile terminal and control method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660812A (en) * 2015-02-09 2015-05-27 联想(北京)有限公司 Information processing method and electronic equipment
CN105975828B (en) * 2016-04-29 2020-03-03 北京小米移动软件有限公司 Unlocking method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262778A (en) * 2012-05-23 2016-01-20 日立麦克赛尔株式会社 Mobile terminal and control method thereof

Also Published As

Publication number Publication date
CN111800780A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
US20210192021A1 (en) Managing grouped student devices with timed locks
US9537999B2 (en) Automatic switching of modes and mode control capabilities on a wireless communication device
EP3132377B1 (en) Using a mobile device to restrict focus and perform operations at another mobile device
US8923891B2 (en) Intelligent location tagging for deterministic device behavior
CN100508492C (en) System for using local wireless network to control a device within range of the network
CN107005831A (en) Periphery perceives networking data path
CN103096426A (en) Automatic ad-hoc network creation and coalescing using WPS
De Rosa et al. Disconnection prediction in mobile ad hoc networks for supporting cooperative work
CN106022128B (en) Method, device and mobile terminal for detection procedure access authority
CN108449723B (en) Intercom equipment sharing method, intercom equipment and computer readable medium
US20190018657A1 (en) Techniques to configure a web-based application for bot configuration
CN104270520A (en) Network management method and system based on mobile terminal
US20190180534A1 (en) Automated attendee monitoring and guidance system
CN108304297B (en) Method and device for remotely controlling student mobile terminal
CN103473827A (en) Classroom automatic attendance method, system and server
CN105447400B (en) A kind of terminal applies access control method, device, system and relevant device
CN111800780B (en) Method, device and equipment for adjusting working state and storage medium
EP3171608B1 (en) Playing device grouping control method and user terminal
CN108810892A (en) A kind of wireless network management method, smart machine and router
CN108401018B (en) Method and device for supervising student mobile terminal by multi-mode strategy
CN110611903B (en) Equipment binding method, device, equipment and storage medium
Nahrstedt et al. Mobile Learning Communities-Are We There Yet?
US7698244B2 (en) Electronic butler for providing application services to a user
CN102799405A (en) Display processing method, equipment and system
US10070275B1 (en) Device and method for deploying a plurality of mobile devices

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