WO2022017052A1 - 用于共享设备指令控制的方法、装置及设备 - Google Patents
用于共享设备指令控制的方法、装置及设备 Download PDFInfo
- Publication number
- WO2022017052A1 WO2022017052A1 PCT/CN2021/099463 CN2021099463W WO2022017052A1 WO 2022017052 A1 WO2022017052 A1 WO 2022017052A1 CN 2021099463 W CN2021099463 W CN 2021099463W WO 2022017052 A1 WO2022017052 A1 WO 2022017052A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- instruction
- issued
- shared
- current
- current instruction
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000005406 washing Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 230000001052 transient effect Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Definitions
- the present application relates to the field of smart home technology, for example, to a method, an apparatus, and a device for sharing device command control.
- IoT Internet of Things
- many devices can be shared, for example, TVs, air conditioners, washing machines, etc. can be shared in the case of co-living.
- Shared devices can communicate with IoT platform devices to realize functions such as user recharge, device control, and data feedback.
- Embodiments of the present disclosure provide a method, apparatus, and device for command control of shared devices, so as to solve the technical problem of command coupling of shared devices.
- the method includes:
- the thread state corresponding to the current instruction to be issued is modified to a locked state, and the current instruction to be issued is sent to the corresponding thread in the Internet of Things. shared equipment;
- the thread state corresponding to the current instruction to be issued is modified to a release state.
- the apparatus includes:
- the locking module is configured to modify the thread state corresponding to the current instruction to be issued to a locked state when it is determined that the current instruction to be issued is a setting shared service instruction, and send the current instruction to be issued To the corresponding shared devices in the Internet of Things;
- the release module is configured to modify the thread state corresponding to the current instruction to be issued to a release state when receiving the callback notification of the current instruction to be issued sent by the shared device.
- the apparatus for sharing device instruction control includes a processor and a memory storing program instructions, the processor is configured to execute the above-mentioned instructions for sharing device when executing the program instructions Control Method.
- the IoT platform device includes: the above-mentioned apparatus for sharing device command control.
- the method, device, and device for sharing device instruction control provided by the disclosed embodiments can achieve the following technical effects: the instruction for setting a shared service category can be locked when it is issued, so that it will not be affected by instructions of other categories, As a result, the instructions are overwritten and lost, which reduces the probability of shared business problems such as users failing to recharge the device and inaccurate timing, and improves the accuracy and applicability of the shared business.
- the instructions between the shared device and the IoT platform device are classified, so as to decouple different instructions and improve the accuracy of instruction execution.
- FIG. 1 is a schematic structural diagram of a system for sharing device instruction control provided by an embodiment of the present disclosure
- FIG. 2 is a schematic flowchart of a method for controlling a shared device instruction provided by an embodiment of the present disclosure
- FIG. 3 is a schematic flowchart of a method for controlling a shared device instruction provided by an embodiment of the present disclosure
- FIG. 4 is a schematic structural diagram of an apparatus for sharing device instruction control provided by an embodiment of the present disclosure
- FIG. 5 is a schematic structural diagram of an apparatus for sharing device instruction control provided by an embodiment of the present disclosure
- FIG. 6 is a schematic structural diagram of an apparatus for sharing device instruction control provided by an embodiment of the present disclosure.
- the character "/" indicates that the preceding and following objects are in an "or” relationship.
- A/B means: A or B.
- the term "and/or” is an associative relationship describing objects, indicating that three relationships can exist.
- a and/or B means: A or B, or, A and B three kinds of relationship.
- the instructions between the IoT platform device and the shared device are classified, so that different instructions are decoupled and the accuracy of instruction execution is improved.
- the instructions for setting the shared service category can be locked when they are issued, so that they will not be affected by other types of instructions, causing the instructions to be overwritten and lost. It increases the accuracy and applicability of shared services.
- FIG. 1 is a schematic structural diagram of an IoT system for sharing device instruction control provided by an embodiment of the present disclosure. As shown in FIG. 1 , the IoT system for sharing device instruction control includes: IoT platform device 100 , and one or more shared devices 200 .
- the shared device 200 may include smart home devices such as a TV, an air conditioner, a washing machine, and the like.
- the IoT platform device 100 can communicate with each shared device 200. Therefore, there are multiple instructions between the IoT platform device 100 and the shared device 200, wherein the instructions uploaded by the shared device 200 include: handshake instructions at set time intervals , that is, the heartbeat packet, and the status data information of the shared device.
- the instructions issued by the IoT platform device may include: user permission instructions, user order instructions, user control instructions, platform control instructions, and the like. There are multiple instructions between the IoT platform device 100 and the shared device 200 to implement functions such as user recharge, device control, and data feedback.
- the instructions between the IoT platform device and the shared device need to be classified, and the different instructions are decoupled to improve the accuracy of instruction execution.
- the IoT platform device locks the instructions for setting the shared service category when issuing instructions, so that the instructions will not be overwritten and lost, and the probability of shared service problems such as users failing to recharge the device and inaccurate timing is reduced. , which improves the accuracy and applicability of shared services.
- FIG. 2 is a schematic flowchart of a method for sharing device instruction control provided by an embodiment of the present disclosure.
- the process for sharing device command control includes:
- Step 201 In the case where it is determined that the current instruction to be issued is a set shared service instruction, modify the thread state corresponding to the current instruction to be issued to a locked state, and send the current instruction to be issued to the corresponding shared service in the Internet of Things. equipment.
- the value of the category flag bit in each instruction to be issued may be determined according to preset instruction classification information. For example, a category flag is added to each instruction to be issued.
- Table 1 is a correspondence between a class flag bit and an instruction class provided by an embodiment of the present disclosure.
- the value of the category flag bit in each instruction to be issued can be determined according to the relationship shown in Table 1. If the instruction to be issued is a user order instruction, the corresponding category flag value can be "001".
- the IoT platform device determining that the current instruction to be issued is the setting shared service instruction may include: reading the value of the category flag in the current instruction to be issued; setting the value of the category flag to a set value In the case of , it is determined that the current instruction to be issued is a setting shared service instruction.
- the shared service setting instructions may include: user order instructions, as shown in Table 1 As shown, "001" can be determined as the set value, so when the read type flag value is "001", it can be determined that the current instruction to be issued is the setting shared service instruction.
- the setting shared service instruction may include: user order instruction and user control instruction, as shown in Table 1, "001" and "010” may be determined as setting values, so that the read category flag value is " 001" or "010", it can be determined that the current instruction to be issued is the setting shared service instruction.
- the thread state corresponding to the current command to be issued can be changed to the locked state, that is, the current to be issued command is maintained. Instructions are issued in the thread and will not be overwritten or lost by other instructions.
- a thread status bit can be added to the instruction. Therefore, when it is determined that the current instruction to be issued is a setting shared service instruction, the thread status bit in the current instruction to be issued can be modified to "lock" "state. In this way, when "lock" is read, the current instruction to be issued can be kept in the issuing thread.
- the current instruction to be issued is an instruction between the IoT platform device and the shared device. Therefore, the current instruction to be issued can be sent to the corresponding shared device in the IoT.
- Step 202 in the case of receiving the callback notification of the current instruction to be issued sent by the shared device, modify the thread state corresponding to the current instruction to be issued to a released state.
- the command to be issued has been sent to the shared device, and the shared device can run according to the command, such as recharging, or controlling switches, adjusting operating parameters, and so on.
- the corresponding callback notification can be returned to the IoT platform device, such as: recharge information, or recharge failure information, or startup information, etc., that is, the callback notification can be successful operation information or unsuccessful operation information.
- the IoT platform device can receive the callback notification of the current instruction to be issued, so that the thread state corresponding to the current instruction to be issued can be changed to the released state, that is, the current instruction to be issued can be issued by the thread Released, it can be overwritten by other instructions, or simply discarded.
- the "lock" state in the thread state bit in the current instruction to be issued may be turned off, that is, released, and the "lock” state value may be deleted. Release the current instruction to be issued, and other instructions can continue to be applied.
- the instructions between the IoT platform device and the shared device are classified, so that different instructions are decoupled, and the accuracy of the instruction execution is improved.
- the instructions for setting the shared service category can be locked when they are issued, so that they will not be affected by other types of instructions, causing the instructions to be overwritten and lost. It increases the accuracy and applicability of shared services.
- sending the current instruction to be issued to the corresponding shared device in the Internet of Things includes: under the condition that the time between sending and receiving the heartbeat packet with the shared device is consistent with the current time, after delaying the first time, the next Send the current instruction to be issued to the corresponding shared device in the Internet of Things, and the first time matches the interval time of the heartbeat packet. It can be seen that when the current time of sending the command to be sent and the time of sending and receiving the heartbeat packet conflict, the sending can be delayed.
- the specific delay time that is, the first time, may be determined according to the interval between sending and receiving heartbeat packets. In this way, the conflict between the current instruction to be issued and the heartbeat packet is avoided, and the accuracy and applicability of the shared service are further improved.
- the IoT system for command control of shared devices may be as shown in FIG. 1 , where the shared devices may include smart home devices such as TVs, air conditioners, washing machines, and the like.
- the IoT platform device saves the correspondence between the category flag bits and instruction categories as shown in Table 1, and has determined the value of the category flag bits in each instruction to be issued according to Table 1.
- the shared device sends heartbeat packets at interval T0.
- FIG. 3 is a schematic flowchart of a method for controlling a shared device instruction provided by an embodiment of the present disclosure.
- the process for sharing device command control includes:
- Step 301 Read the value of the category flag in the instruction to be issued currently.
- Step 302 Determine whether the value of the category flag is the set value? If yes, go to step 303, otherwise, the process ends.
- step 303 determines whether the value of the category flag is "010”, if so, it is determined that the current instruction to be issued is a setting shared service instruction, and step 303 can be executed; otherwise, the current instruction to be issued can be processed according to the relevant technology, and this process ends .
- Step 303 Modify the thread state corresponding to the current instruction to be issued to a locked state.
- the thread status bit in the current instruction to be issued can be modified to the "lock" state. In this way, the current instruction to be issued will not be overwritten or discarded by other instructions.
- Step 304 Determine whether the time of the heartbeat packet between the sending, receiving and sharing devices is consistent with the current time? If yes, go to step 305; otherwise, go to step 306.
- step 305 is performed; otherwise, step 306 is performed.
- Step 305 Determine the first time according to the interval between sending and receiving heartbeat packets, and after delaying the first time, go to step 306 .
- Step 306 Send the current instruction to be sent to the corresponding shared device in the Internet of Things.
- Step 307 Determine whether the callback notification of the current instruction to be issued sent by the sharing device is received? If yes, go to step 308; otherwise, go back to step 307.
- Step 308 Modify the thread state corresponding to the current instruction to be issued to the release state.
- the current command to be issued has been received by the shared device, and the current command to be issued can be released in the issuing thread.
- the current command to be issued can be overwritten or discarded, and this process ends.
- the instruction for setting the shared service category can be locked when it is issued, so that it will not be affected by instructions of other categories, causing the instruction to be overwritten and lost, reducing the occurrence of the user's failure to recharge the device and the timing delay. It can improve the accuracy and applicability of shared services.
- the instructions between the shared device and the IoT platform device are classified to decouple different instructions, which improves the accuracy of instruction execution.
- the conflict between the sending and receiving of instructions can be resolved through delay, which further improves the instruction Accuracy of execution.
- an apparatus for sharing device command control can be constructed.
- FIG. 4 is a schematic structural diagram of an apparatus for sharing device instruction control provided by an embodiment of the present disclosure.
- the command control device for sharing equipment includes: a locking module 410 and a releasing module 420 .
- the locking module 410 is configured to modify the thread state corresponding to the current to-be-issued command to a locked state when it is determined that the current to-be-issued command is a set shared service command, and send the current to-be-issued command to the Internet of Things The corresponding shared device in .
- the release module 420 is configured to modify the thread state corresponding to the current to-be-issued instruction to the release state in the case of receiving the callback notification of the currently-to-be-issued instruction sent by the shared device.
- the method further includes: an assignment module, configured to determine the value of the category flag in each instruction to be issued according to preset instruction classification information.
- the locking module 410 is specifically configured to read the value of the category flag bit in the current instruction to be issued, and when the value of the category flag bit is a set value, determine that the current instruction to be issued is the set value Shared business instructions.
- the locking module 410 is specifically configured to issue the current instruction to be issued to the Internet of Things after a first time delay under the condition that the time of sending, receiving and sharing the heartbeat packet is consistent with the current time For the corresponding shared device in , the first time matches the interval time of the heartbeat packets.
- the apparatus for sharing device instruction control saves the correspondence between the category flag bits and instruction categories as shown in Table 1.
- FIG. 5 is a schematic structural diagram of an apparatus for sharing device instruction control provided by an embodiment of the present disclosure.
- the device for sharing device instruction control includes a locking module 410 , a releasing module 420 and an assignment module 430 , and the locking module 410 includes a determining unit 411 , a locking unit 412 and a issuing unit 413 .
- the assignment module 430 may determine the value of the category flag bit in each instruction to be issued according to Table 1.
- the value of the category flag in the current instruction to be issued is read, and when the value of the category flag is the set value, the determining unit 411 in the locking module 410 determines that the current instruction to be issued is the setting shared service instruction. Therefore, the locking unit 412 in the locking module 410 can modify the thread state corresponding to the current instruction to be issued to the locked state. If the time between sending and receiving heartbeat packets is consistent with the current time, the sending unit 413 in the locking module 410 can determine the first time according to the interval between sending and receiving heartbeat packets, and after delaying the first time, the sending unit 413 Send the current command to be issued to the corresponding shared device in the Internet of Things. Of course, if the time of the heartbeat packet between the sending and receiving and the sharing device is inconsistent with the current time, the sending unit 413 can immediately send the instruction to be sent to the corresponding sharing device in the Internet of Things.
- the release module 420 can modify the thread state corresponding to the current instruction to be issued to the released state, so that the current instruction to be issued is released in the issuing thread, and the current The pending command can be overwritten or discarded.
- the command control device for sharing equipment can determine that the issued command is an command for setting a shared service category, and can lock it when issuing it, so that the command will not be affected by other types of commands, causing the command to be
- the loss of coverage reduces the probability of shared business problems such as users failing to recharge the device and inaccurate timing, and improves the accuracy and applicability of the shared business.
- the instructions between the shared device and the IoT platform device are classified to decouple different instructions, which improves the accuracy of instruction execution.
- the conflict between the sending and receiving of instructions can be resolved through delay, which further improves the instruction Accuracy of execution.
- An embodiment of the present disclosure provides an apparatus for sharing device command control, the structure of which is shown in FIG. 6 and includes:
- a processor (processor) 1000 and a memory (memory) 1001 may also include a communication interface (Communication Interface) 1002 and a bus 1003 .
- the processor 1000 , the communication interface 1002 , and the memory 1001 can communicate with each other through the bus 1003 .
- Communication interface 1002 may be used for information transfer.
- the processor 1000 may invoke the logic instructions in the memory 1001 to execute the method for shared device instruction control of the above-mentioned embodiments.
- logic instructions in the memory 1001 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
- the memory 1001 can be used to store software programs and computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure.
- the processor 1000 executes the function application and data processing by running the program instructions/modules stored in the memory 1001, that is, implements the method for sharing device instruction control in the above method embodiments.
- the memory 1001 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal air conditioner, and the like.
- the memory 1001 may include high-speed random access memory, and may also include non-volatile memory.
- An embodiment of the present disclosure provides an apparatus for controlling shared device instructions, including: a processor and a memory storing program instructions, where the processor is configured to execute a method for controlling shared device instructions when executing the program instructions.
- An embodiment of the present disclosure provides an IoT platform device, including the above-mentioned device for sharing device instruction control.
- An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions are configured to execute the above-mentioned method for controlling instructions for sharing a device.
- An embodiment of the present disclosure provides a computer program product, where the computer program product includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions that, when executed by a computer, cause all The computer executes the above-mentioned control method for sharing device instructions.
- the above-mentioned computer-readable storage medium may be a transient computer-readable storage medium, and may also be a non-transitory computer-readable storage medium.
- the technical solutions of the embodiments of the present disclosure may be embodied in the form of software products, and the computer software products are stored in a storage medium and include one or more instructions for making a computer air conditioner (which may be a personal computer, a server, or a network air conditioner, etc.) to perform all or part of the steps of the methods described in the embodiments of the present disclosure.
- the aforementioned storage medium may be a non-transitory storage medium, including: U disk, removable hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
- a first element could be termed a second element, and similarly, a second element could be termed a first element, so long as all occurrences of "the first element” were consistently renamed and all occurrences of "the first element” were named consistently
- the “second element” can be renamed consistently.
- the first element and the second element are both elements, but may not be the same element.
- the terms used in this application are used to describe the embodiments only and not to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a” (a), “an” (an) and “the” (the) are intended to include the plural forms as well, unless the context clearly dictates otherwise. .
- the term “and/or” as used in this application is meant to include any and all possible combinations of one or more of the associated listings.
- the term “comprise” and its variations “comprises” and/or including and/or the like refer to stated features, integers, steps, operations, elements, and/or The presence of a component does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groupings of these.
- an element defined by the phrase “comprising a" does not preclude the presence of additional identical elements in the process, method, or air conditioner that includes the element.
- each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other.
- the methods, products, etc. disclosed in the embodiments if they correspond to the method sections disclosed in the embodiments, reference may be made to the descriptions of the method sections for relevant parts.
- the disclosed methods and products can be implemented in other ways.
- the apparatus embodiments described above are only illustrative.
- the division of the units may only be a logical function division.
- there may be other division methods for example, multiple units or components may be combined Either it can be integrated into another system, or some features can be omitted, or not implemented.
- the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
- each functional unit in the embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
- each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions.
- the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Quality & Reliability (AREA)
- Manufacturing & Machinery (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Selective Calling Equipment (AREA)
Abstract
一种用于共享设备指令控制的方法、装置及设备,涉及智能家居技术领域。用于共享设备指令控制的方法包括:步骤201:在确定当前待下发指令为设定共享业务指令的情况下,将当前待下发指令对应的线程状态修改为锁定状态,并将当前待下发指令发送给物联网中对应的共享设备;步骤202:在接收到共享设备发送的当前待下发指令的回调通知的情况下,将当前待下发指令对应的线程状态修改为释放状态。这样,及时锁定设定共享业务指令,不会被其他类别的指令影响,导致指令被覆盖丢失,提高了共享业务的准确性以及应用性。
Description
本申请基于申请号为202010721945.8、申请日为2020年07月24日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
本申请涉及智能家居技术领域,例如涉及用于共享设备指令控制的方法、装置及设备。
随着物联技术的发展,已进入了万物互联互通的时代了。并且,在多个设备组成的物联网中,很多设备都是可以共享的,例如:在合住的情况下,电视、空调、洗衣机等等都可以共享。共享设备可与物联网平台设备进行通讯,实现用户充值、设备控制以及数据反馈等功能。
但是,多用户共享使用设备,因此,共享设备可与物联网平台设备之间有很多指令,不同类别的指令是可以同时并发的,这样,用户充值指令、设备控制指令,以及设备状态反馈指令等多种不同的指令之间相互耦合,相互影响;并且,物联网平台设备接收到的回调信息后,会覆盖产生的指令,使得指令丢失,因此,会产生用户充值不到设备,计时不准等共享业务问题。
发明内容
为了对披露的实施例的一些方面有基本的理解,下面给出了简单的概括。所述概括不是泛泛评述,也不是要确定关键/重要组成元素或描绘这些实施例的保护范围,而是作为后面的详细说明的序言。
本公开实施例提供了一种用于共享设备指令控制的方法、装置和设备,以解决共享设备指令耦合的技术问题。
在一些实施例中,所述方法包括:
在确定当前待下发指令为设定共享业务指令的情况下,将所述当前待下发指令对应的线程状态修改为锁定状态,并将所述当前待下发指令发送给物联网中对应的共享设备;
在接收到所述共享设备发送的所述当前待下发指令的回调通知的情况下,将所述当前待下发指令对应的线程状态修改为释放状态。
在一些实施例中,所述装置包括:
锁定模块,被配置为在确定当前待下发指令为设定共享业务指令的情况下,将所述当前待下发指令对应的线程状态修改为锁定状态,并将所述当前待下发指令发送给物联网中对应的共享设备;
释放模块,被配置为在接收到所述共享设备发送的所述当前待下发指令的回调通知的情况 下,将所述当前待下发指令对应的线程状态修改为释放状态。
在一些实施例中,所述用于共享设备指令控制的装置,包括处理器和存储有程序指令的存储器,所述处理器被配置为在执行所述程序指令时,执行上述用于共享设备指令控制方法。在一些实施例中,所述物联网平台设备,包括:如上述用于共享设备指令控制的装置。公开实施例提供的用于共享设备指令控制的方法、装置和设备,可以实现以下技术效果:设定共享业务类别的指令,可以在下发时进行锁定,这样,不会被其他类别的指令影响,导致指令被覆盖丢失,减少了产生用户充值不到设备,计时不准等共享业务问题的几率,提高了共享业务的准确性以及应用性。并且,共享设备与物联网平台设备之间的指令进行分类,将不同指令之间解耦,提高了指令执行的准确性。
以上的总体描述和下文中的描述仅是示例性和解释性的,不用于限制本申请。
一个或多个实施例通过与之对应的附图进行示例性说明,这些示例性说明和附图并不构成对实施例的限定,附图中具有相同参考数字标号的元件示为类似的元件,附图不构成比例限制,并且其中:
图1是本公开实施例提供的一种用于共享设备指令控制系统的结构示意图;
图2是本公开实施例提供的一种用于共享设备指令控制方法的流程示意图;
图3是本公开实施例提供的一种用于共享设备指令控制方法的流程示意图;
图4是本公开实施例提供的一种用于共享设备指令控制装置的结构示意图;
图5是本公开实施例提供的一种用于共享设备指令控制装置的结构示意图;
图6是本公开实施例提供的一种用于共享设备指令控制装置的结构示意图。
为了能够更加详尽地了解本公开实施例的特点与技术内容,下面结合附图对本公开实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本公开实施例。在以下的技术描述中,为方便解释起见,通过多个细节以提供对所披露实施例的充分理解。然而,在没有这些细节的情况下,一个或多个实施例仍然可以实施。在其它情况下,为简化附图,熟知的结构和装置可以简化展示。
本公开实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开实施例的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。
除非另有说明,术语“多个”表示两个或两个以上。
本公开实施例中,字符“/”表示前后对象是一种“或”的关系。例如,A/B表示:A或B。术语“和/或”是一种描述对象的关联关系,表示可以存在三种关系。例如,A和/或B,表 示:A或B,或,A和B这三种关系。
本公开实施例中,在物联网(Internet of Things,IoT)系统中,物联网平台设备与共享设备之间的指令进行了分类,将不同指令之间解耦,提高了指令执行的准确性。并且,设定共享业务类别的指令,可以在下发时进行锁定,这样,不会被其他类别的指令影响,导致指令被覆盖丢失,减少了产生用户充值不到设备,计时不准等共享业务问题的几率,提高了共享业务的准确性以及应用性。
图1是本公开实施例提供的一种用于共享设备指令控制的物联网系统的结构示意图。如图1所示,用于共享设备指令控制的物联网系统包括:物联网平台设备100,以及一个或多个共享设备200。
共享设备200可包括:电视、空调、洗衣机等等智能家居设备。物联网平台设备100可与每个共享设备200进行通讯,因此,物联网平台设备100与共享设备200之间有多个指令,其中,共享设备200上传的指令包括:间隔设定时间的握手指令,即心跳包,以及,共享设备的状态数据信息。而物联网平台设备下发的指令可包括:用户权限指令、用户订单指令、用户控制指令、平台控制指令等等。通过物联网平台设备100与共享设备200之间有多个指令可实现用户充值、设备控制以及数据反馈等功能。
本公开实施例中,为确保一些共享业务指令不会被覆盖丢失,需对物联网平台设备与共享设备之间的指令进行了分类,将不同指令之间解耦,提高了指令执行的准确性。这样,物联网平台设备在下发指令时,对设定共享业务类别的指令进行锁定,从而,不会导致指令被覆盖丢失,减少了产生用户充值不到设备,计时不准等共享业务问题的几率,提高了共享业务的准确性以及应用性。
图2是本公开实施例提供的一种用于共享设备指令控制的方法的流程示意图。结合图1、图2,用于共享设备指令控制的过程包括:
步骤201:在确定当前待下发指令为设定共享业务指令的情况下,将当前待下发指令对应的线程状态修改为锁定状态,并将当前待下发指令发送给物联网中对应的共享设备。
本公开实施例中,物联网平台设备与共享设备之间有很多指令,其中,物联网平台设备下发的指令就有多种种类,包括:用户权限指令、用户订单指令、用户控制指令、平台下发指令等等。因此,在一些实施例中,可根据预设的指令分类信息,确定每个待下发指令中的类别标志位值。例如:在每个待下发指令中增加了类别标志位。
表1 是本公开实施例提供的一种类别标志位与指令类别之间的对应关系。
指令类别 | 类别标志位 |
用户权限指令 | 000 |
用户订单指令 | 001 |
用户控制指令 | 010 |
平台控制指令 | 011 |
… | … |
表1
这样,可根据表1所示的关系,确定每个待下发指令中的类别标志位值。如待下发指令为用户订单指令,则对应的类别标志位值即可为“001”。
从而,在一些实施例中,物联网平台设备确定当前待下发指令为设定共享业务指令可包括:读取当前待下发指令中的类别标志位值;在类别标志位值为设定值的情况下,确定当前待下发指令为设定共享业务指令。
由于在一些实施例中针对的是共享设备的控制,因此,可将一些与共享业务有关的指令确定为设定共享业务指令,例如:设定共享业务指令可包括:用户订单指令,如表1所示,可将“001”确定为设定值,从而,读取的类别标志位值为“001”时,即可确定当前待下发指令为设定共享业务指令。或者,设定共享业务指令可包括:用户订单指令和用户控制指令,如表1所示,可将“001”和“010”确定为设定值,从而,读取的类别标志位值为“001”或“010”时,即可确定当前待下发指令为设定共享业务指令。
由于当前待下发指令为设定共享业务指令,因此,该当前待下发指令不能被覆盖丢失,因此,可将当前待下发指令对应的线程状态修改为锁定状态,即保持当前待下发指令在下发线程中,不会被其他的指令覆盖,或者丢失。在一些实施例中,可在指令中增加线程状态位,因此,在确定当前待下发指令为设定共享业务指令的情况下,可将当前待下发指令中的线程状态位修改为“lock”状态。这样,读取到“lock”时,即可保持当前待下发指令在下发线程。
当然,当前待下发指令是物联网平台设备与共享设备之间指令,因此,可将当前待下发指令发送给物联网中对应的共享设备。
步骤202:在接收到共享设备发送的当前待下发指令的回调通知的情况下,将当前待下发指令对应的线程状态修改为释放状态。
当前待下发指令已发送给共享设备了,共享设备可根据指令进行运行,例如:充值,或者控制开关,调整运行参数等等。而共享设备运行后,可向物联网平台设备返回对应的回调通知,例如:已充值信息,或充值失败信息,或者,已启动信息等等,即回调通知可是运行成功信息或者运行不成功信息。这样,物联网平台设备可收到当前待下发指令的回调通知callback了,从而,可将当前待下发指令对应的线程状态修改为释放状态,即该当前待下发指令可被下发线程释放了,可以被其他的指令覆盖了,或者直接丢弃了。在一些实施例中,可将当前待下发指令中的线程状态位中的“lock”状态关闭,即释放,删除“lock”状态值。将当前待下发指令释放了,其他的指令就可继续应用了。
可见,本公开实施例中,物联网平台设备与共享设备之间的指令进行了分类,将不同指令之间解耦,提高了指令执行的准确性。并且,设定共享业务类别的指令,可以在下发时进行锁定,这样,不会被其他类别的指令影响,导致指令被覆盖丢失,减少了产生用户充值不到设备,计时不准等共享业务问题的几率,提高了共享业务的准确性以及应用性。
由于,物联网平台设备与共享设备之间有多个指令,不仅有物联网平台设备的下发指令,还有共享设备的上传指令,以及物联网平台设备与共享设备之间的握手指令,即心跳包。在一些实施例中,将当前待下发指令发送给物联网中对应的共享设备包括:在收发与共享设备之间心跳包的时间与当前时间一致的情况下,延时第一时间后,下发当前待下发指令给物联网中对应的共享设备,第一时间与心跳包的间隔时间匹配。可见,当下发当前待下发指令的当前时间与收发心跳包的时间冲突了,即可延时下发。具体延时的时长即第一时间可根据收发心跳包的间隔时间来确定。这样,避免了当前待下发指令与心跳包的冲突,进一步提高了共享业务的准确性以及应用性。
下面将操作流程集合到具体实施例中,举例说明本发明实施例提供的用于共享设备指令控制过程。
本实施例中,用于共享设备指令控制的物联网系统可如图1所示,其中,共享设备可包括:电视、空调、洗衣机等等智能家居设备。物联网平台设备保存了如表1所示的类别标志位与指令类别之间的对应关系,并已根据表1,确定了每个待下发指令中的类别标志位值。共享设备间隔T0时间发送心跳包。
图3是本公开实施例提供的一种用于共享设备指令控制方法的流程示意图。结合图1和图3,用于共享设备指令控制的过程包括:
步骤301:读取当前待下发指令中的类别标志位值。
步骤302:判断类别标志位值是否为设定值?若是,执行步骤303,否则,流程结束。
例如:类别标志位值是否为“010”,若是,确定当前待下发指令为设定共享业务指令,可执行步骤303,否则,可根据相关技术处理该当前待下发指令,本次流程结束。
步骤303:将当前待下发指令对应的线程状态修改为锁定状态。
例如:可将当前待下发指令中的线程状态位修改为“lock”状态。这样,当前待下发指令不会被其他指令覆盖或者被丢弃了。
步骤304:判断收发与共享设备之间心跳包的时间与当前时间是否一致?若是,执行步骤305,否则,执行步骤306。
若当前时间与收发心跳包的时间冲突了,即当前时间与收发心跳包的时间一致,执行步骤305,否则,执行步骤306。
步骤305:根据收发心跳包的间隔时间,确定第一时间,并延时第一时间后,转入步骤306。
步骤306:下发当前待下发指令给物联网中对应的共享设备。
步骤307:判断是否接收到共享设备发送的当前待下发指令的回调通知?若是,执行步骤308,否则,返回步骤307。
步骤308:将当前待下发指令对应的线程状态修改为释放状态。
当前待下发指令已被共享设备接收了,可在下发线程中释放当前待下发指令,当前待下发指令可被覆盖或者丢弃了,本次流程结束。
可见,本实施例中,设定共享业务类别的指令,可以在下发时进行锁定,这样,不会被其 他类别的指令影响,导致指令被覆盖丢失,减少了产生用户充值不到设备,计时不准等共享业务问题的几率,提高了共享业务的准确性以及应用性。并且,共享设备与物联网平台设备之间的指令进行分类,将不同指令之间解耦,提高了指令执行的准确性,另外,通过延时可解决指令收发之间的冲突,进一步提高了指令执行的准确性。
根据上述用于共享设备指令控制的过程,可构建一种用于共享设备指令控制的装置。
图4是本公开实施例提供的一种用于共享设备指令控制装置的结构示意图。该装置用于上述系统中,如图4所示,用于共享设备指令控制装置包括:锁定模块410和释放模块420。锁定模块410,被配置为在确定当前待下发指令为设定共享业务指令的情况下,将当前待下发指令对应的线程状态修改为锁定状态,并将当前待下发指令发送给物联网中对应的共享设备。
释放模块420,被配置为在接收到共享设备发送的当前待下发指令的回调通知的情况下,将当前待下发指令对应的线程状态修改为释放状态。
在一些实施例中,还包括:赋值模块,被配置为根据预设的指令分类信息,确定每个待下发指令中的类别标志位值。
在一些实施例中,锁定模块410,具体被配置为读取当前待下发指令中的类别标志位值,在类别标志位值为设定值的情况下,确定当前待下发指令为设定共享业务指令。
在一些实施例中,锁定模块410,具体被配置为在收发与共享设备之间心跳包的时间与当前时间一致的情况下,延时第一时间后,下发当前待下发指令给物联网中对应的共享设备,第一时间与心跳包的间隔时间匹配。
下面具体描述用于共享设备指令控制的装置的共享设备指令控制过程。
本实施例中,用于共享设备指令控制的装置中保存了如表1所示的类别标志位与指令类别之间的对应关系。
图5是本公开实施例提供的一种用于共享设备指令控制装置的结构示意图。如图5所示,用于共享设备指令控制装置包括:锁定模块410、释放模块420以及赋值模块430,而锁定模块410包括:确定单元411、锁定单元412以及下发单元413。
其中,赋值模块430可根据表1,确定了每个待下发指令中的类别标志位值。
这样,读取当前待下发指令中的类别标志位值,在类别标志位值为设定值的情况下,锁定模块410中的确定单元411确定当前待下发指令为设定共享业务指令。从而,锁定模块410中的锁定单元412可将当前待下发指令对应的线程状态修改为锁定状态。而若收发与共享设备之间心跳包的时间与当前时间一致时,锁定模块410中的下发单元413可根据收发心跳包的间隔时间,确定第一时间,并延时第一时间后,下发当前待下发指令给物联网中对应的共享设备。当然,若收发与共享设备之间心跳包的时间与当前时间不一致时,下发单元413即可立即下发当前待下发指令给物联网中对应的共享设备。
而接收到共享设备发送的当前待下发指令的回调通知后,释放模块420可将当前待下发指令对应的线程状态修改为释放状态,这样,在下发线程中释放当前待下发指令,当前待下 发指令可被覆盖或者丢弃了。
可见,本实施例中,用于共享设备指令控制装置可在确定下发指令是设定共享业务类别的指令,可以在下发时进行锁定,这样,不会被其他类别的指令影响,导致指令被覆盖丢失,减少了产生用户充值不到设备,计时不准等共享业务问题的几率,提高了共享业务的准确性以及应用性。并且,共享设备与物联网平台设备之间的指令进行分类,将不同指令之间解耦,提高了指令执行的准确性,另外,通过延时可解决指令收发之间的冲突,进一步提高了指令执行的准确性。
本公开实施例提供了一种用于共享设备指令控制的装置,其结构如图6所示,包括:
处理器(processor)1000和存储器(memory)1001,还可以包括通信接口(Communication Interface)1002和总线1003。其中,处理器1000、通信接口1002、存储器1001可以通过总线1003完成相互间的通信。通信接口1002可以用于信息传输。处理器1000可以调用存储器1001中的逻辑指令,以执行上述实施例的用于共享设备指令控制的方法。
此外,上述的存储器1001中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器1001作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器1000通过运行存储在存储器1001中的程序指令/模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的用于共享设备指令控制的方法。
存储器1001可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端空调的使用所创建的数据等。此外,存储器1001可以包括高速随机存取存储器,还可以包括非易失性存储器。
本公开实施例提供了一种用于共享设备指令控制装置,包括:处理器和存储有程序指令的存储器,处理器被配置为在执行程序指令时,执行用于共享设备指令控制方法。
本公开实施例提供了一种物联网平台设备,包括上述用于共享设备指令控制装置。
本公开实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述用于共享设备指令控制方法。
本公开实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述用于共享设备指令控制方法。
上述的计算机可读存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。
本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机空调(可以是个人计算机,服务器,或者网络空调等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、 随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。
以上描述和附图充分地示出了本公开的实施例,以使本领域的技术人员能够实践它们。其他实施例可以包括结构的、逻辑的、电气的、过程的以及其他的改变。实施例仅代表可能的变化。除非明确要求,否则单独的部件和功能是可选的,并且操作的顺序可以变化。一些实施例的部分和特征可以被包括在或替换其他实施例的部分和特征。本公开实施例的范围包括权利要求书的整个范围,以及权利要求书的所有可获得的等同物。当用于本申请中时,虽然术语“第一”、“第二”等可能会在本申请中使用以描述各元件,但这些元件不应受到这些术语的限制。这些术语仅用于将一个元件与另一个元件区别开。比如,在不改变描述的含义的情况下,第一元件可以叫做第二元件,并且同样第,第二元件可以叫做第一元件,只要所有出现的“第一元件”一致重命名并且所有出现的“第二元件”一致重命名即可。第一元件和第二元件都是元件,但可以不是相同的元件。而且,本申请中使用的用词仅用于描述实施例并且不用于限制权利要求。如在实施例以及权利要求的描述中使用的,除非上下文清楚地表明,否则单数形式的“一个”(a)、“一个”(an)和“所述”(the)旨在同样包括复数形式。类似地,如在本申请中所使用的术语“和/或”是指包含一个或一个以上相关联的列出的任何以及所有可能的组合。另外,当用于本申请中时,术语“包括”(comprise)及其变型“包括”(comprises)和/或包括(comprising)等指陈述的特征、整体、步骤、操作、元素,和/或组件的存在,但不排除一个或一个以上其它特征、整体、步骤、操作、元素、组件和/或这些的分组的存在或添加。在没有更多限制的情况下,由语句“包括一个…”限定的要素,并不排除在包括所述要素的过程、方法或者空调中还存在另外的相同要素。本文中,每个实施例重点说明的可以是与其他实施例的不同之处,各个实施例之间相同相似部分可以互相参见。对于实施例公开的方法、产品等而言,如果其与实施例公开的方法部分相对应,那么相关之处可以参见方法部分的描述。
本领域技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,可以取决于技术方案的特定应用和设计约束条件。所述技术人员可以对每个特定的应用来使用不同方法以实现所描述的功能,但是这种实现不应认为超出本公开实施例的范围。所述技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。本文所披露的实施例中,所揭露的方法、产品(包括但不限于装置、空调等),可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,可以仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。所述作为分离部件说明的单元可以 是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例。另外,在本公开实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
附图中的流程图和框图显示了根据本公开实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。在附图中的流程图和框图所对应的描述中,不同的方框所对应的操作或步骤也可以以不同于描述中所披露的顺序发生,有时不同的操作或步骤之间不存在特定的顺序。例如,两个连续的操作或步骤实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
Claims (10)
- 一种用于共享设备指令控制的方法,其特征在于,包括:在确定当前待下发指令为设定共享业务指令的情况下,将所述当前待下发指令对应的线程状态修改为锁定状态,并将所述当前待下发指令发送给物联网中对应的共享设备;在接收到所述共享设备发送的所述当前待下发指令的回调通知的情况下,将所述当前待下发指令对应的线程状态修改为释放状态。
- 根据权利要求1所述的方法,其特征在于,所述确定当前待下发指令为设定共享业务指令之前,还包括:根据预设的指令分类信息,确定每个待下发指令中的类别标志位值。
- 根据权利要求2所述的方法,其特征在于,所述确定当前待下发指令为设定共享业务指令包括:读取所述当前待下发指令中的类别标志位值;在所述类别标志位值为设定值的情况下,确定所述当前待下发指令为设定共享业务指令。
- 根据权利要求1、2或3所述的方法,其特征在于,所述将所述当前待下发指令发送给物联网中对应的共享设备包括:在收发与所述共享设备之间心跳包的时间与当前时间一致的情况下,延时第一时间后,下发所述当前待下发指令给物联网中对应的共享设备,所述第一时间与所述心跳包的间隔时间匹配。
- 一种用于共享设备指令控制的装置,其特征在于,锁定模块,被配置为在确定当前待下发指令为设定共享业务指令的情况下,将所述当前待下发指令对应的线程状态修改为锁定状态,并将所述当前待下发指令发送给物联网中对应的共享设备;释放模块,被配置为在接收到所述共享设备发送的所述当前待下发指令的回调通知的情况下,将所述当前待下发指令对应的线程状态修改为释放状态。
- 根据权利要求5所述的装置,其特征在于,还包括:赋值模块,被配置为根据预设的指令分类信息,确定每个待下发指令中的类别标志位值。
- 根据权利要求6所述的装置,其特征在于,所述锁定模块,具体被配置为读取所述当前待下发指令中的类别标志位值,在所述类别标志位值为设定值的情况下,确定所述当前待下发指令为设定共享业务指令。
- 根据权利要求5、6或7所述的装置,其特征在于,所述锁定模块,具体被配置为在收发与所述共享设备之间心跳包的时间与当前时间一致的情况下,延时第一时间后,下发所述当前待下发指令给物联网中对应的共享设备,所述第一时间与所述心跳包的间隔时间匹配。
- 一种用于共享设备指令控制的装置,该装置包括处理器和存储有程序指令的存储器,其特征在于,所述处理器被配置为在执行所述程序指令时,执行如权利要求1至4任一项 所述用于共享设备指令控制的方法。
- 一种物联网平台设备,其特征在于,包括:如权利要求5或9所述用于共享设备指令控制的装置。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010721945.8 | 2020-07-24 | ||
CN202010721945.8A CN112000019B (zh) | 2020-07-24 | 2020-07-24 | 用于共享设备指令控制的方法、装置及设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022017052A1 true WO2022017052A1 (zh) | 2022-01-27 |
Family
ID=73466584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/099463 WO2022017052A1 (zh) | 2020-07-24 | 2021-06-10 | 用于共享设备指令控制的方法、装置及设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112000019B (zh) |
WO (1) | WO2022017052A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114612015A (zh) * | 2022-05-09 | 2022-06-10 | 杰创智能科技股份有限公司 | 共享设备的控制方法、装置、电子设备及存储介质 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112000019B (zh) * | 2020-07-24 | 2024-04-26 | 青岛海尔空调器有限总公司 | 用于共享设备指令控制的方法、装置及设备 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106773749A (zh) * | 2016-11-15 | 2017-05-31 | 山东大学 | 物联网设备控制方法、控制端及系统 |
CN107087036A (zh) * | 2017-06-16 | 2017-08-22 | 深圳市斑点猫信息技术有限公司 | 物联网设备的数据同步方法、装置及系统 |
US20180191829A1 (en) * | 2016-12-29 | 2018-07-05 | Voxx International Corporation | System and method for internet of things and home automation using a vehicle |
CN109412833A (zh) * | 2018-09-11 | 2019-03-01 | 深圳数位科技有限公司 | 一种共享设备的管理系统及方法 |
US20190075024A1 (en) * | 2017-09-05 | 2019-03-07 | NGINX, Inc. | Multi-threaded server architecture supporting dynamic reconfiguration |
CN110611707A (zh) * | 2019-09-05 | 2019-12-24 | 深圳前海微众银行股份有限公司 | 一种任务调度的方法及装置 |
CN111371832A (zh) * | 2019-12-11 | 2020-07-03 | 添可智能科技有限公司 | 一种数据存储、检测方法及设备 |
CN112000019A (zh) * | 2020-07-24 | 2020-11-27 | 青岛海尔空调器有限总公司 | 用于共享设备指令控制的方法、装置及设备 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3760035B2 (ja) * | 1996-08-27 | 2006-03-29 | 松下電器産業株式会社 | 複数の命令流を独立に処理し、命令流単位に処理性能を柔軟に制御するマルチスレッドプロセッサ |
US6324624B1 (en) * | 1999-12-28 | 2001-11-27 | Intel Corporation | Read lock miss control and queue management |
US8984517B2 (en) * | 2004-02-04 | 2015-03-17 | Intel Corporation | Sharing idled processor execution resources |
GB2529899B (en) * | 2014-09-08 | 2021-06-23 | Advanced Risc Mach Ltd | Shared Resources in a Data Processing Apparatus for Executing a Plurality of Threads |
-
2020
- 2020-07-24 CN CN202010721945.8A patent/CN112000019B/zh active Active
-
2021
- 2021-06-10 WO PCT/CN2021/099463 patent/WO2022017052A1/zh active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106773749A (zh) * | 2016-11-15 | 2017-05-31 | 山东大学 | 物联网设备控制方法、控制端及系统 |
US20180191829A1 (en) * | 2016-12-29 | 2018-07-05 | Voxx International Corporation | System and method for internet of things and home automation using a vehicle |
CN107087036A (zh) * | 2017-06-16 | 2017-08-22 | 深圳市斑点猫信息技术有限公司 | 物联网设备的数据同步方法、装置及系统 |
US20190075024A1 (en) * | 2017-09-05 | 2019-03-07 | NGINX, Inc. | Multi-threaded server architecture supporting dynamic reconfiguration |
CN109412833A (zh) * | 2018-09-11 | 2019-03-01 | 深圳数位科技有限公司 | 一种共享设备的管理系统及方法 |
CN110611707A (zh) * | 2019-09-05 | 2019-12-24 | 深圳前海微众银行股份有限公司 | 一种任务调度的方法及装置 |
CN111371832A (zh) * | 2019-12-11 | 2020-07-03 | 添可智能科技有限公司 | 一种数据存储、检测方法及设备 |
CN112000019A (zh) * | 2020-07-24 | 2020-11-27 | 青岛海尔空调器有限总公司 | 用于共享设备指令控制的方法、装置及设备 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114612015A (zh) * | 2022-05-09 | 2022-06-10 | 杰创智能科技股份有限公司 | 共享设备的控制方法、装置、电子设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN112000019A (zh) | 2020-11-27 |
CN112000019B (zh) | 2024-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022017052A1 (zh) | 用于共享设备指令控制的方法、装置及设备 | |
US7103744B2 (en) | Binding a memory window to a queue pair | |
CA3026781C (en) | A method for tee access control and a mobile terminal for implementing the method | |
JP2020509690A (ja) | 業務検証方法および装置 | |
KR101516093B1 (ko) | 포트 공유 하드웨어를 통한 저장 장치들에의 대역외 액세스 | |
EP3816912B1 (en) | Blockchain-based transaction processing method and apparatus, and electronic device | |
CN108572876B (zh) | 一种读写锁的实现方法及装置 | |
WO2020232859A1 (zh) | 分布式存储系统、数据写入方法、装置和存储介质 | |
US20160043965A1 (en) | Accelerating and offloading lock access over a network | |
US20030217152A1 (en) | Resource sharing with database synchronization | |
JP7359061B2 (ja) | 中継装置 | |
US8174966B2 (en) | Switching program, switching method and duplex system | |
US20130238871A1 (en) | Data processing method and apparatus, pci-e bus system, and server | |
US9558149B2 (en) | Dual system | |
US7853713B2 (en) | Communication interface device and communication method | |
KR102620584B1 (ko) | 블록체인 기반 시스템에서 상태 db의 무결성을 보장하는 장치 및 그 방법 | |
KR20170117326A (ko) | 랜덤 액세스 메모리를 포함하는 하나 이상의 처리 유닛을 위한 직접 메모리 액세스 제어 장치 | |
WO2020119477A1 (zh) | 一种基于区块链的身份认证方法及终端设备 | |
US7565504B2 (en) | Memory window access mechanism | |
CN112379952B (zh) | 一种跨进程回调的实现方法 | |
CN107153580B (zh) | 获取队列精确状态的装置及其方法 | |
US11818173B2 (en) | Reducing memory footprint after TLS connection establishment | |
WO2019202888A1 (ja) | 排他制御システム及び排他制御方法 | |
US10795848B2 (en) | Dual way communication method, system, and master device thereof | |
CN112131238A (zh) | 一种交易状态机设计方法、处理装置和处理方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21845364 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21845364 Country of ref document: EP Kind code of ref document: A1 |