CN108966190A - Water power stake and method, equipment and storage medium for process instruction - Google Patents

Water power stake and method, equipment and storage medium for process instruction Download PDF

Info

Publication number
CN108966190A
CN108966190A CN201810664342.1A CN201810664342A CN108966190A CN 108966190 A CN108966190 A CN 108966190A CN 201810664342 A CN201810664342 A CN 201810664342A CN 108966190 A CN108966190 A CN 108966190A
Authority
CN
China
Prior art keywords
instruction
channel
instructions
water power
queue
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.)
Pending
Application number
CN201810664342.1A
Other languages
Chinese (zh)
Inventor
李康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sojourn Sifang Technology Co Ltd
Original Assignee
Beijing Sojourn Sifang Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sojourn Sifang Technology Co Ltd filed Critical Beijing Sojourn Sifang Technology Co Ltd
Priority to CN201810664342.1A priority Critical patent/CN108966190A/en
Publication of CN108966190A publication Critical patent/CN108966190A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

This application discloses water power stake and for the method, equipment and storage medium of process instruction.Wherein, this method comprises: receiving multiple instruction respectively by multiple channels;Multiple instruction is arranged in instruction queue;And to being operated below the execution instructions to be performed in instruction queue: determining whether instructions to be performed be the executable instruction that can be used in executing;And in the case where it is executable instruction that judgement is instructions to be performed, execute executable instruction.To which the disclosure is instructed by the reception of independently operated multiple signal transmission passages, and carries out unified processing to the signal of this multiple signal path with the processing method that multichannel instructs, and each channel is complementary to one another, and provides relatively reliable communication link.

Description

Water power stake and method, equipment and storage medium for process instruction
Technical field
This application involves outdoor water and electricity supplies, in particular to a kind of water power stake and for the side of process instruction Method, equipment and storage medium.
Background technique
Water power stake is the reliable water power supplying products of a intelligence, needs to receive the instruction of server to provide intelligent water Power supply service.The ability of cable network connection is provided due to not having usually in the use environment of water power stake, so water power stake It needs to establish communication connection between server by wireless network.Compared to cable network, wireless network have it is bigger can Energy property appearance can not provide the case where being stably connected with, this provides the quality of service for water power stake is directly influenced.In order to give water power Stake provides relatively reliable communication link, needs to realize two kinds of communications of 2G network and bluetooth.But 2G network communication It needs two sets of independent systems to realize with Bluetooth communication, needs to solve the problems, such as how to allow two systems being capable of coordinate operation.
It is recited above how to allow two systems can coordinate operation aiming at the problem that, at present not yet propose effective solution Scheme.
Summary of the invention
The embodiment of the present disclosure provides a kind of water power stake and processing method and intelligent water supply power supply to multichannel instruction System, at least to solve the problems, such as recited above how to allow two systems being capable of coordinate operation.
According to the first aspect of the disclosure, a kind of method for process instruction is provided, comprising: pass through multiple channels Receive multiple instruction;Multiple instruction is arranged in instruction queue;And to the execution instructions to be performed in instruction queue below Operation: determine whether instructions to be performed be the executable instruction that can be used in executing;And determining that instructions to be performed is that can hold In the case where row instruction, executable instruction is executed.
According to the another aspect of the disclosure, a kind of water power stake is provided, including processor and memory, memory include The program of storage, wherein following operation is executed by processor in program operation: passing through mobile communications network channel reception first Instruction;The second instruction is received by Bluetooth channels;First instruction and the second instruction are arranged in instruction queue;And to instruction It is operated below execution instructions to be performed in queue: determining whether instructions to be performed be the executable instruction that can be used in executing; And in the case where it is executable instruction that judgement is instructions to be performed, execute executable instruction.
According to the another aspect of the disclosure, a kind of system for water and electricity supply, including server and water power are provided Stake, water power stake include processor and memory, and memory includes the program of storage, wherein are held in program operation by processor The following operation of row: the first instruction is received from server by mobile communications network channel;It is connect by Bluetooth channels from terminal device Receive the second instruction;First instruction and the second instruction are arranged in instruction queue;And to instructions to be performed in instruction queue It executes following operation: determining whether instructions to be performed be the executable instruction that can be used in executing;And determining pending finger It enables in the case where being executable instruction, executes executable instruction.
According to the another aspect of the disclosure, a kind of storage medium is provided.The storage medium includes the program of storage.Its In, any of the above one method is executed by processor in program operation.
According to the another aspect of the disclosure, providing a kind of equipment for process instruction includes: command reception module, For receiving multiple instruction from multiple equipment respectively by multiple channels;Instruction arrangement module, for multiple instruction to be arranged in In instruction queue;And command process module, for being operated below the execution instructions to be performed in instruction queue: determining wait hold Whether row instruction is the executable instruction that can be used in executing;And the case where it is executable instruction that judgement is instructions to be performed Under, execute executable instruction.
According to the another aspect of the disclosure, a kind of equipment for process instruction is provided, comprising: processor;And Memory is connect with processor, for providing the instruction for handling following processing step for processor: by multiple channels respectively from Multiple equipment receives multiple instruction;Multiple instruction is arranged in instruction queue;And to instructions to be performed in instruction queue It executes following operation: determining whether instructions to be performed be the executable instruction that can be used in executing;And determining pending finger It enables in the case where being executable instruction, executes executable instruction.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the schematic diagram of arithmetic unit described in 1 in accordance with an embodiment of the present disclosure;
Fig. 2 is the main view of water power stake described in 1 in accordance with an embodiment of the present disclosure;
Fig. 3 is the schematic diagram for being used for the system of water and electricity supply described in 1 in accordance with an embodiment of the present disclosure;
Fig. 4 is the schematic diagram for being used for the communication of system of water and electricity supply described in 1 in accordance with an embodiment of the present disclosure;
Fig. 5 is the flow chart described in 1 first aspect for the method for process instruction in accordance with an embodiment of the present disclosure;
Fig. 6 is the schematic diagram of the logic unit of each equipment in the system of 1 water and electricity supply in accordance with an embodiment of the present disclosure;
Fig. 7 is the schematic diagram for being used for the equipment of process instruction described in 2 in accordance with an embodiment of the present disclosure;And
Fig. 8 is the schematic diagram for being used for the equipment of process instruction described in 2 in accordance with an embodiment of the present disclosure.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present disclosure, the technical solution in the embodiment of the present disclosure is carried out clear, complete Site preparation description, it is clear that described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Below Description only actually at least one exemplary embodiment be it is illustrative, never as to the disclosure and its application or making Any restrictions.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, belong to the disclosure protection range.
It should be noted that term used herein above is merely to describe specific embodiment, and be not intended to restricted root According to the illustrative embodiments of the application.As used herein, unless the context clearly indicates otherwise, otherwise singular Also it is intended to include plural form, additionally, it should be understood that, when in the present specification using term "comprising" and/or " packet Include " when, indicate existing characteristics, step, operation, device, component and/or their combination.
Unless specifically stated otherwise, positioned opposite, the digital table of the component and step that otherwise illustrate in these embodiments Up to the unlimited the scope of the present disclosure processed of formula and numerical value.Simultaneously, it should be appreciated that for ease of description, each portion shown in attached drawing The size divided not is to draw according to actual proportionate relationship.For technology, side known to person of ordinary skill in the relevant Method and equipment may be not discussed in detail, but in the appropriate case, and technology, method and apparatus should be considered as authorizing specification A part.In shown here and discussion all examples, any occurrence should be construed as merely illustratively, rather than As limitation.Therefore, the other examples of exemplary embodiment can have different values.It should also be noted that similar label and word Mother indicates similar terms in following attached drawing, therefore, once it is defined in a certain Xiang Yi attached drawing, then in subsequent attached drawing It does not need that it is further discussed.
Embodiment 1
According to the present embodiment, a kind of method for process instruction is provided, it should be noted that in the flow chart of attached drawing The step of showing can execute in a computer system such as a set of computer executable instructions, although also, in flow chart In show logical order, but in some cases, shown or described step can be executed with the sequence for being different from herein Suddenly.
Embodiment of the method provided by the embodiment of the present application 1 can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.Fig. 1 shows a kind of operation dress for realizing the method for being used for process instruction described in the present embodiment The hardware block diagram set.As shown in Figure 1, arithmetic unit 10 may include that (processor 110 can for one or more processors 110 To include but is not limited to the processing unit of Micro-processor MCV or programmable logic device FPGA etc.), for storing data and journey The memory 120 that sequence instructs and mobile communications network channel 130 and Bluetooth channels 140 for communication function.Wherein, As the example in mobile communications network channel 130, the channel 2G can be, be also possible to the channel 3G or 4G.In addition, arithmetic unit 10 also may include multiple other communication channels.
It is to be noted that processor 110 and/or other data processing circuits may be generally referred to as " number herein According to processing circuit ".The data processing circuit all or part of can be presented as software, hardware, firmware or any other combination. In addition, data processing circuit can be single independent processing module or its all or part of being integrated in arithmetic unit 10 In any one in his element.As involved in the embodiment of the present application, the data processing circuit is as a kind of processor It controls (such as the selection for the variable resistance end path being connect with interface).
Memory 120 can be used for storing the software program and module of application software, such as being used in the embodiment of the present disclosure Corresponding program instruction/the data storage device of the method for process instruction, processor 120 are stored in memory 120 by operation Software program and module realized above-mentioned for process instruction thereby executing various function application and data processing Method.Memory 120 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 120 can further comprise The memory remotely located relative to processor 102, these remote memories can pass through network connection to arithmetic unit 10.On The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Refering to what is shown in Fig. 1, the channels such as mobile communications network channel 130 and Bluetooth channels 140 for receive instruction (such as 141) first instruction 131 and second instructs, and return instruction implementing result.
Fig. 2 shows the main view of the water power stake 100 of example as the arithmetic unit 10 for process instruction, ginsengs It examines shown in Fig. 1, the water power stake 100 of the present embodiment includes the tap 101a and 101b for providing a user water source, and to user The power outlet 102 of power supply is provided.To which water power stake 100 is provided outdoors with water and electricity consumption.Since water power stake 100 mentions outdoors For water and electricity consumption, therefore it is required that water power stake 100 has stability and reliability, to avoid that cannot supply water when needed to user Power supply.
Fig. 3 shows the system for water and electricity supply including water power stake 100.Refering to what is shown in Fig. 3, the system includes water power Stake 100 and server 200.Wherein server 200 is sent to water power stake 100 by long interface channel and is instructed, and user is whole End 300 can be communicated by internet with server 200.
Fig. 4 shows the schematic diagram of the communication between description water power stake 100, server 200 and user terminal 300.Ginseng It examines shown in Fig. 4, when user needs to operate water power stake 100, using the network channel 320 of user terminal 300 to service Device 200 sends the request of control water power stake 100, and server 200 receives the request by the channel HTTP 220, and is connected by long It connects road 210 and sends corresponding control instruction to water power stake 100.Water power stake 100 by mobile communications network channel 130 (for example, Can be the channel 2G) instruction is received, and the instruction is executed by processor 110.
But in some cases, due to network facet, server 200 may not be able to pass through long interface channel 210 send instruction to the water power stake 100.In this case, server 200 can send out the instruction by the channel HTTP 220 It send to user terminal 300.User terminal 300 receives the instruction by network channel 320, and utilizes Bluetooth channels 310 to water Electric stake 100 sends instruction.Water power stake 100, which is received, receives the instruction by Bluetooth channels 140, and is executed by processor 110 The instruction.
The redundant operation of whole system may be implemented in setting in this way, even cannot pass through length in server 200 Interface channel 210 can will also be referred in the case where sending instruction to water power stake 100 by the Bluetooth channels 310 of user terminal 300 Order passes to water power stake.To realize stable control of the user to water power stake, the stability of system is enhanced.
But so, also it is easy to produce corresponding problem.Sometimes server 200 can be connected long by spells Switch between channel 210 and the channel HTTP 220 to send instruction.Especially in the case where network environment is unstable, server 200 may be after sending an instruction to mobile communications network channel 130 by long interface channel 210, and can be by identical finger It enables and is sent to water power stake 100 by the Bluetooth channels 310 of user terminal 300.Or server 200 can constantly pass through two differences Channel send different instructions.Therefore water power stake 100 can constantly pass through mobile communications network channel 130 and Bluetooth channels 140 Receive similar and different instruction.Therefore in this case, since the instruction in two channels cannot be coordinated, it is easy to lead The work disorder of water power stake 100 is caused, or even more serious failure occurs.
Currently, the problem of being unable to instruction of the effective coordination from two channels for water power stake 100, still there are no effective Solution.
In order to solve technical problem set out above, as the first aspect of the present embodiment, provides a kind of handle and refer to The method of order.The processor 110 of this method water power stake 100 shown in Fig. 4 executes, can also be as shown in Fig. 1 The processor 110 of arithmetic unit 10 execute.Refering to what is shown in Fig. 5, this method comprises:
S502: multiple instruction is received respectively by multiple channels;
S504: multiple instruction is arranged in instruction queue;And
S506: to being operated below the execution instructions to be performed in instruction queue: determining whether instructions to be performed be that can use In the executable instruction of execution;And in the case where it is executable instruction that judgement is instructions to be performed, execute executable instruction.
With reference to shown in Fig. 1 and 4, the processor 110 of arithmetic unit 10 or water power stake 100 passes through mobile communications network channel 130 and Bluetooth channels 140 receive instruction, such as the first instruction is received by mobile communications network channel 130 and passes through indigo plant Tooth channel 140 receives the second instruction (that is, receiving multiple instruction respectively by multiple channels).
Then, received multiple instruction is arranged in instruction queue by processor 110;And 100 pairs of instruction teams of processor It is operated below execution instructions to be performed in column: determining whether instructions to be performed be the executable instruction that can be used in executing;With And in the case where it is executable instruction that judgement is instructions to be performed, execute executable instruction.For example, processor 110 may determine that Whether the instruction in instruction queue is the either illegal instruction of duplicate instruction, if it is considered to being duplicate instruction or illegal Instruction, then cannot be determined as executable instruction.Only processor 110 determine it is instructions to be performed for executable instruction the case where Under, just execute the instruction.
In the present embodiment, design in this way can use the concept in instruction queue masking instruction channel.Namely It says, the instruction no matter received from which channel will be all arranged in instruction queue, unified in instruction queue by processor 110 Instruction determined and handled, and no longer pay close attention to which channel the instruction is from.To design in this way, can solve Cooperation problem between certainly multiple channels, avoids the logical miss due to caused by the independent work in multiple channels.
In addition, although an example using water power stake 100 as arithmetic unit 10 in the present embodiment illustrates the disclosure Technical solution.But the technical solution of the disclosure is without being limited thereto.And the technical solution of the disclosure is also not necessarily limited to from mobile communication Network channel and the instruction of the two channel receptions of Bluetooth channels.As long as it is related to the arithmetic unit instructed from multiple channel receptions, It is suitable for method described in embodiment of the disclosure.
Optionally, this method further include: after executing executable instruction, determine the channel for receiving executable instruction;With And via identified channel, send the response message about executable instruction.
Refering to what is shown in Fig. 4, the processor 110 of water power stake 100 is after having executed instruction, needing tell the server 200, this refers to The implementing result of order or feedback server 200 instruction have been finished.In order to realize the operation, processor 110 needs The channel for receiving the instruction is determined from mobile communications network channel 130 and Bluetooth channels 140, then utilizes identified channel Implementing result is sent to server 200.
Specifically, if the instruction be it is received by mobile communications network channel 130, it is logical by mobile communications network Response message is sent to server 200 by road 130, and server 200 receives the response message, confirmation by long interface channel 210 The instruction execution finishes.
If the instruction be it is received by Bluetooth channels 140, response message is sent to use by Bluetooth channels 140 Family terminal 300, user terminal 300 receive response message by Bluetooth channels 310, and pass through network channel 320 for response message It is sent to server 200.Server 200 receives the response message by the channel HTTP 220, to confirm that instruction execution finishes.
In addition, processor 110 can for example be determined according to the information stored inside instruction items corresponding in instruction queue Receive the channel of the instruction, naturally it is also possible to determine the channel for receiving the instruction by other means.
To, in this way can using multichannel receive instruction in the case where, reasonably coordinate to instruct into The channel of row response, so as to avoid the disorder of the communication between server and water power stake 100.
Optionally, in the non-serviceable situation in identified channel, another channel pair is selected from multiple channels It is instructions to be performed to be responded.
For example, although processor 110 determines the response sent by mobile communications network channel 130 to instruction, If the connection between the discovery mobile communications network channel 130 of processor 110 and server 200 is unavailable and can not be by this It when channel sends response, then can be communicated by Bluetooth channels 140 with user terminal 300, to will be responded by Bluetooth channels 140 300 are sent to the user terminal, then server 200 is sent to by user terminal 300.Vice versa.Thus by this design, The response and feedback to instruction can be realized by way of redundancy, enhance the stability of whole system.
Optionally, method further include determine it is described it is instructions to be performed be not executable instruction in the case where, determine receive Channel instructions to be performed, and via identified channel, send about response message instructions to be performed.
As mentioned above, processor 110 determines instructions to be performed in instruction queue, when processor 110 is sentenced When the fixed instruction is not executable instruction, then the instruction is not executed.But in this case, it is still desirable to be sent out to server 200 The response message about the instruction is sent, so that the instruction of tell the server 200 is not carried out.
Specifically, if the instruction be it is received by mobile communications network channel 130, it is logical by mobile communications network Response message is sent to server 200 by road 130, and server 200 receives the response message, confirmation by long interface channel 210 The instruction is not executed.
If the instruction be it is received by Bluetooth channels 140, response message is sent to use by Bluetooth channels 140 Family terminal 300, user terminal 300 receive response message by Bluetooth channels 310, and pass through network channel 320 for response message It is sent to server 200.Server 200 receives the response message by the channel HTTP 220, to confirm that instruction is not held Row.
To, in this way can using multichannel receive instruction in the case where, reasonably coordinate to instruct into The channel of row response, so as to avoid the disorder of the communication between server and water power stake 100.
It optionally, further include selecting another from multiple channels in the non-serviceable situation in identified channel Channel sends the response message.To in this way, response to instruction and anti-can be realized by way of redundancy Feedback, enhances the stability of whole system.
To can use instruction queue masking instruction channel according to method described in the first aspect of the present embodiment Concept.That is, the instruction no matter received from which channel, will all be arranged in instruction queue, unified by processor 110 Instruction in instruction queue is determined and handled, and no longer pays close attention to which channel the instruction is from.To in this way Design, can solve the cooperation problem between multiple channels, avoid the logic due to caused by the independent work in multiple channels It is chaotic.
In addition, according to the second aspect of the present embodiment, providing a kind of water power stake 100 with reference to shown in Fig. 3 and Fig. 4, wrap Include processor 110 and memory 120.Memory 120 includes the program of storage, wherein in program operation by the processor Execute following operation:
The first instruction is received by mobile communications network channel 130;
The second instruction is received by Bluetooth channels 140;
First instruction and the second instruction are arranged in instruction queue;And
To being operated below the execution instructions to be performed in instruction queue: determining whether instructions to be performed be that can be used in executing Executable instruction;And in the case where it is executable instruction that judgement is instructions to be performed, execute the executable instruction.
The content with reference to described in the first aspect of the present embodiment, water power stake is due to passing through mobile communications network channel 130 It receives and instructs with Bluetooth channels 140, therefore realize the redundant operation of whole system, even cannot pass through length in server 200 Interface channel 210 can will also be referred in the case where sending instruction to water power stake 100 by the Bluetooth channels 310 of user terminal 300 Order passes to water power stake.To realize stable control of the user to water power stake, the stability of system is enhanced.But such one Come, is also easy to produce corresponding problem.Due to that cannot be coordinated to the instruction in two channels, it is easy to cause water power stake 100 Work disorder, or even more serious failure occurs.
And water power stake 100 described in the second aspect of the present embodiment, it can use instruction queue masking instruction channel Concept.That is, the instruction no matter received from which channel, will all be arranged in instruction queue, by unified pair of processor 110 Instruction in instruction queue is determined and is handled, and no longer pays close attention to which channel the instruction is from.Thus in this way Design, can solve the cooperation problem between multiple channels, avoid the logic due to caused by the independent work in multiple channels mixed Disorderly.
Optionally, when program is run, processor 110 also executes following operation after executing executable instruction: from movement The channel for receiving executable instruction is determined in communication network channel 130 and Bluetooth channels 140;And via identified channel, Send the response message about executable instruction.
As described in the present embodiment first aspect, the processor 110 of water power stake 100 needs after having executed instruction The implementing result of 200 instruction of tell the server or feedback server 200 instruction have been finished.The water of the present embodiment Electric stake 100 can reasonably coordinate the channel responded to instruction, to keep away in the case where receiving instruction using multichannel The disorder of the communication between server and water power stake 100 is exempted from.
Optionally, when program is run, processor 110 also executes following operation: in the non-serviceable feelings in identified channel Under condition, another channel is selected to send the response message from mobile communications network channel 130 and Bluetooth channels 140.From And by this design, response and feedback to instruction can be realized by way of redundancy, enhance the stabilization of whole system Property.
When optionally program is run, processor 110 also executes following operation: determining that instructions to be performed is not executable finger In the case where order, is determined from mobile communications network channel and Bluetooth channels and receive channel instructions to be performed, and via institute Determining channel is sent about response message instructions to be performed.To be received in this way using multichannel In the case where instruction, coordinate the channel responded to instruction, reasonably so as to avoid between server and water power stake 100 The disorder of communication.
Optionally, when program is run, processor 110 also executes following operation: in the non-serviceable feelings in identified channel Under condition, another channel is selected to send the response message from mobile communications network channel and Bluetooth channels.To pass through This design can realize response and feedback to instruction by way of redundancy, enhance the stability of whole system.
To which the water power stake that the present embodiment the second aspect provides can use instruction queue and shield the general of instruction path It reads.That is, the instruction no matter received from which channel, will all be arranged in instruction queue, it is unified to finger by processor 110 It enables the instruction in queue be determined and handled, and no longer pays close attention to which channel the instruction is from.To setting in this way Meter, can solve the cooperation problem between multiple channels, avoids the logical miss due to caused by the independent work in multiple channels.
In addition, according to the third of the present embodiment aspect, being provided a kind of for confession of supplying water with reference to shown in Fig. 3 and 4 The system of electricity, including server 200 and water power stake 100.Water power stake includes processor 110 and memory 120, and memory 120 wraps Include the program of storage, wherein following operation is executed by processor 110 in program operation:
The first instruction is received from server 200 by mobile communications network channel 130;
The second instruction is received from terminal device 300 by Bluetooth channels 140;
First instruction and the second instruction are arranged in instruction queue;And
To being operated below the execution instructions to be performed in instruction queue: determining whether instructions to be performed be that can be used in executing Executable instruction;And in the case where it is executable instruction that judgement is instructions to be performed, execute executable instruction.
To which in the system according in terms of the third of the present embodiment, water power stake 100 can use instruction queue screen Cover the concept of instruction path.That is, the instruction no matter received from which channel, will all be arranged in instruction queue, by Reason device 110 is unified to be determined and is handled to the instruction in instruction queue, and no longer pays close attention to which channel the instruction is from.From And design in this way, can solve the cooperation problem between multiple channels, avoid the independent work due to multiple channels and Caused logical miss.
Optionally, when program is run, processor 110 also executes following operation after executing executable instruction: from movement The channel for receiving executable instruction is determined in communication network channel 130 and Bluetooth channels 140;And via identified channel, Send the response message about executable instruction.To which the water power stake 100 of the present embodiment can receive instruction using multichannel In the case where, coordinate the channel responded to instruction, reasonably so as to avoid the communication between server and water power stake 100 Disorder.
Optionally, when program is run, processor 110 also executes following operation: in the non-serviceable feelings in identified channel Under condition, another channel is selected to send response message from mobile communications network channel 130 and Bluetooth channels 140.To logical This design is crossed, response and feedback to instruction can be realized by way of redundancy, enhances the stability of whole system.
Optionally, when program is run, processor 110 also executes following operation: determining that instructions to be performed is not executable In the case where instruction, following operation is executed: determining that reception is instructions to be performed from mobile communications network channel and Bluetooth channels Channel;And it via identified channel, sends about response message instructions to be performed.To the water power stake of the present embodiment 100 can reasonably coordinate the channel responded to instruction in the case where receiving instruction using multichannel, so as to avoid The disorder of communication between server and water power stake 100.
Optionally, when program is run, processor 110 also executes following operation: in the non-serviceable feelings in identified channel Under condition, another channel is selected to ring to instructions to be performed from mobile communications network channel 130 and Bluetooth channels 140 It answers.To realize response and feedback to instruction by way of redundancy, enhance whole system by this design Stability.
Fig. 6 is shown according to the logical schematic in each method, apparatus in the intelligence system in terms of the present embodiment third. With reference to what described above and logical schematic shown in fig. 6, system described in the present embodiment is supplemented as follows Illustrate:
Water power stake 100: campsite under deployment online is responsible for providing the Intelligent hardware of water power to caravan, receives and processing comes from In the request instruction of user terminal and water power stake service.
Server 200: being deployed in computer room, keeps heartbeat and service with Intelligent hardware, and will turn from the request of business Chemical conversion instruction, is handed down to intelligent water power stake.
User terminal 300: user is serviced by mobile phone terminal using terminal, can pass through mobile communications network (such as 2G Network) and bluetooth two ways water power stake is manipulated.
The title of each logic unit in structural schematic diagram:
Logic unit in water power stake:
Mobile communications network channel: can be 2G network channel, and main wireless network accesses channel in water power stake, pass through Long connection is kept between wireless network and server, is received and is executed the instruction from server.
Bluetooth channels: it is connect indirectly as the supplement of wireless network by establishing bluetooth connection with user terminal in water power stake Receive the instruction issued by server and execution.
Instruction queue: the instruction from mobile communications network channel and Bluetooth channels can all enter the same instruction queue It is uniformly processed, in this way to the operation shield specifically executed instruction the concept of instruction path, realizes the unification of logic.
Instruction determine: the instruction in entry instruction queue first carries out a series of judgement before being performed, for repeat, it is non- The instruction of method is directly responded accordingly, and the instruction that should be executed is executed.Instruction determines that can solve two leads to Cooperation problem between road, avoids the logical miss due to caused by the independent work in two channels.
Instruction execution: executing instruction in queue needs instruction to be executed by judgement.Instruction execution is not need to be concerned about Which channel reception instruction is from.
Instruction response: to server response instruction when instruction execution is completed or directly obtained result after determining As a result.
Channel selecting: it needs first to carry out channel selecting to instruction response before sending instruction response.From Bluetooth channels Instruction is responded by Bluetooth channels, and the instruction from 2G network channel is responded by 2G network channel.If a wherein channel It is unavailable, then it replaces sending response by another available channel.
Logic unit in server:
Instruct and generate: server is sent to water power stake execution according to the corresponding instruction of business demand generation and mentions as user For servicing accordingly.
Long interface channel: long interface channel is the communication channel directly established with water power stake, the finger issued by this channel Enabling directly to be received by the 2G network channel of water power stake.
The channel HTTP: the channel HTTP is the communication channel between server and user terminal, and server can be logical by instruction HTTP channel response is crossed to user terminal, instruction is relayed into water power stake by user terminal, when long interface channel is unavailable It also can successful execution instruction using this channel.
Instruction is completed: the result that water power stake executes instruction can pass through long interface channel or HTTP channel reception, server The case where understanding water power stake by instruction response contents, executes completion.
Logic unit in user terminal:
Network channel: user terminal, usually smart phone, having a variety of networking modes can carry out between server Network communication, by sending request data or instruction to the channel HTTP of server.
Bluetooth channels: user terminal forms bluetooth after establishing connection by the blue tooth interface and water power stake blue tooth interface of itself The instruction obtained from server can be sent to water power stake by Bluetooth channels, while receive water power stake direct instruction by channel Response afterwards.
To which in the system according in terms of the third of the present embodiment, water power stake 100 can use instruction queue screen Cover the concept of instruction path.That is, the instruction no matter received from which channel, will all be arranged in instruction queue, by Reason device 110 is unified to be determined and is handled to the instruction in instruction queue, and no longer pays close attention to which channel the instruction is from.From And design in this way, can solve the cooperation problem between multiple channels, avoid the independent work due to multiple channels and Caused logical miss.
In addition, refering to what is shown in Fig. 1, providing a kind of storage medium 120 according to the 4th of the present embodiment the aspect.Storage Medium 120 includes the program of storage, wherein is executed by processor 110 according to the present embodiment first aspect in program operation In any one described in method.
In conclusion water power stake 100 can use instruction queue masking instruction channel according to the technical solution of the present embodiment Concept.That is, the instruction no matter received from which channel, will all be arranged in instruction queue, unified by processor 110 Instruction in instruction queue is determined and handled, and no longer pays close attention to which channel the instruction is from.To in this way Design, can solve the cooperation problem between multiple channels, avoid the logic due to caused by the independent work in multiple channels It is chaotic.
Embodiment 2
Fig. 7 shows the equipment 700 that process instruction is used for according to the embodiment of the present disclosure 2, which is and implementation The corresponding equipment of method described in first aspect in example 1.Refering to what is shown in Fig. 7, the equipment 700 includes: command reception module 710, for receiving multiple instruction from multiple equipment respectively by multiple channels;Instruction arrangement module 720, is used for multiple instruction It is arranged in instruction queue;And command process module 730, for being grasped below the execution instructions to be performed in instruction queue Make: determining whether instructions to be performed be the executable instruction that can be used in executing;And determining that instructions to be performed is executable In the case where instruction, executable instruction is executed.
Optionally, equipment 700 further include: first passage determining module, for determining the channel for receiving executable instruction;With And first sending module, for sending the response message about executable instruction via identified channel.
Optionally, the first sending module further include: first passage selecting unit, for that cannot be used in identified channel In the case where, select another channel to send response message from multiple channels.
Optionally, equipment 700 further include: second channel determining module, for determining that instructions to be performed is not executable In the case where instruction, executes following operation: determining and receive channel instructions to be performed;And it via identified channel, sends About response message instructions to be performed.
Optionally, second channel determining module further include: second channel selecting unit, being used for cannot in identified channel In the case where use, another channel is selected to send response message from multiple channels.
Optionally, command reception module 710 includes: the first receiving unit, for passing through mobile communications network channel from clothes Business device receives the first instruction;And second receiving unit, for receiving the second instruction from terminal device by Bluetooth channels.
In conclusion equipment 700 can use the concept in instruction queue masking instruction channel according to the present embodiment.Also It is to say, the instruction no matter received from which channel will be all arranged in instruction queue, unified in instruction queue by equipment 700 Instruction determined and handled, and no longer pay close attention to which channel the instruction is from.To design in this way, can solve Cooperation problem between certainly multiple channels, avoids the logical miss due to caused by the independent work in multiple channels.
Embodiment 3
Fig. 8 shows the schematic diagram according to the embodiment of the present disclosure 2 for the equipment 800 of process instruction.The equipment 800 is corresponding with method described in the first aspect of embodiment 1.Refering to what is shown in Fig. 8, the equipment 800 includes: processor 810;With And memory 820, it is connect with processor 810, for providing the instruction for handling following processing step for processor 810: by more A channel receives multiple instruction respectively;Multiple instruction is arranged in instruction queue;And to the pending finger in instruction queue It enables and executes following operation: determining whether instructions to be performed be the executable instruction that can be used in executing;And it is pending in judgement In the case that instruction is executable instruction, executable instruction is executed.
Optionally, memory 820 also provides the instruction including processing step once: determining after executing executable instruction Receive the channel of executable instruction;And via identified channel, send the response message about executable instruction
Optionally, memory 820 also provides the instruction including processing step once: non-serviceable in identified channel In the case of, select another channel to send the response message from multiple channels.
Optionally, memory 820 also provides the instruction including processing step once: determining that instructions to be performed is not that can hold In the case where row instruction, determines and receive channel instructions to be performed;And it via identified channel, sends about pending finger The response message of order.
Optionally, memory 820 also provides the instruction including processing step once: non-serviceable in identified channel In the case of, select another channel to send the response message from multiple channels.
Optionally, receive the operation of multiple instruction respectively by multiple channels, comprising: by mobile communications network channel from Server receives the first instruction;And the second instruction is received from terminal device by Bluetooth channels.
In conclusion equipment 800 can use the concept in instruction queue masking instruction channel according to the present embodiment.Also It is to say, the instruction no matter received from which channel will be all arranged in instruction queue, unified in instruction queue by equipment 800 Instruction determined and handled, and no longer pay close attention to which channel the instruction is from.To design in this way, can solve Cooperation problem between certainly multiple channels, avoids the logical miss due to caused by the independent work in multiple channels.
Above-mentioned embodiment of the present disclosure serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
In above-described embodiment of the disclosure, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of unit, only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of unit or module, It can be electrical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the disclosure can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the disclosure whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only the preferred embodiment of the disclosure, it is noted that for the ordinary skill people of the art For member, under the premise of not departing from disclosure principle, several improvements and modifications can also be made, these improvements and modifications are also answered It is considered as the protection scope of the disclosure.

Claims (10)

1. a kind of method for process instruction characterized by comprising
Multiple instruction is received respectively by multiple channels;
The multiple instruction is arranged in instruction queue;And
To being operated below the execution instructions to be performed in described instruction queue:
Determine it is described it is instructions to be performed whether be can be used in execute executable instruction;
And
Determine it is described it is instructions to be performed be executable instruction in the case where, execute the executable instruction.
2. the method according to claim 1, wherein further include executed after executing the executable instruction with Lower operation:
Determine the channel for receiving the executable instruction;And
Via identified channel, the response message about the executable instruction is sent.
3. according to the method described in claim 2, it is characterized by further comprising: in the non-serviceable situation in identified channel Under, select another channel to send the response message from the multiple channel.
4. the method according to claim 1, wherein further include: determine it is described it is instructions to be performed be not that can hold In the case where row instruction, following operation is executed:
It determines and receives the channel instructions to be performed;And
Via identified channel, send about the response message instructions to be performed.
5. according to the method described in claim 4, it is characterized by further comprising: in the non-serviceable situation in identified channel Under, select another channel to send the response message from the multiple channel.
6. the method according to claim 1, wherein receive the operation of multiple instruction respectively by multiple channels, Include:
The first instruction is received from server by mobile communications network channel;And
The second instruction is received from terminal device by Bluetooth channels.
7. a kind of water power stake (100), including processor (110) and memory (120), the memory includes the program of storage, Wherein, following operation is executed by the processor when described program is run:
The first instruction (131) is received by mobile communications network channel (130);
The second instruction (141) is received by Bluetooth channels (140);
First instruction (131) and second instruction (141) are arranged in instruction queue;And
To being operated below the execution instructions to be performed in described instruction queue:
Determine it is described it is instructions to be performed whether be can be used in execute executable instruction;
And
Determine it is described it is instructions to be performed be executable instruction in the case where, execute the executable instruction.
8. a kind of system (200) for water and electricity supply, including server (200) and water power stake (100), the water power stake It (100) include processor (110) and memory (120), the memory (120) includes the program of storage, wherein in the journey Following operation is executed by the processor (110) when sort run:
The first instruction is received from the server (200) by mobile communications network channel (130);
The second instruction is received from terminal device (300) by Bluetooth channels (140);
First instruction and second instruction are arranged in instruction queue;And
To being operated below the execution instructions to be performed in described instruction queue:
Determine it is described it is instructions to be performed whether be can be used in execute executable instruction;
And
Determine it is described it is instructions to be performed be executable instruction in the case where, execute the executable instruction.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When as processor perform claim require any one of 1 to 6 described in method.
10. a kind of equipment (700) for process instruction, it is characterised in that: include:
Command reception module (710), for receiving multiple instruction from multiple equipment respectively by multiple channels;
Instruction arrangement module (720), for the multiple instruction to be arranged in instruction queue;
And
Command process module (730), for being operated below the execution instructions to be performed in described instruction queue:
Determine it is described it is instructions to be performed whether be can be used in execute executable instruction;And
Determine it is described it is instructions to be performed be executable instruction in the case where, execute the executable instruction.
CN201810664342.1A 2018-06-25 2018-06-25 Water power stake and method, equipment and storage medium for process instruction Pending CN108966190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810664342.1A CN108966190A (en) 2018-06-25 2018-06-25 Water power stake and method, equipment and storage medium for process instruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810664342.1A CN108966190A (en) 2018-06-25 2018-06-25 Water power stake and method, equipment and storage medium for process instruction

Publications (1)

Publication Number Publication Date
CN108966190A true CN108966190A (en) 2018-12-07

Family

ID=64486644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810664342.1A Pending CN108966190A (en) 2018-06-25 2018-06-25 Water power stake and method, equipment and storage medium for process instruction

Country Status (1)

Country Link
CN (1) CN108966190A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025653A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Enterprise service bus and message processing method thereof
US20120163199A1 (en) * 2010-12-23 2012-06-28 Peter Marbach System and method for controlling data transmission in a multihop wireless network
CN102917357A (en) * 2011-08-05 2013-02-06 国民技术股份有限公司 Authentication method and device
CN103064807A (en) * 2012-12-17 2013-04-24 福建星网锐捷网络有限公司 Multi-channel direct memory access controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025653A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Enterprise service bus and message processing method thereof
US20120163199A1 (en) * 2010-12-23 2012-06-28 Peter Marbach System and method for controlling data transmission in a multihop wireless network
CN102917357A (en) * 2011-08-05 2013-02-06 国民技术股份有限公司 Authentication method and device
CN103064807A (en) * 2012-12-17 2013-04-24 福建星网锐捷网络有限公司 Multi-channel direct memory access controller

Similar Documents

Publication Publication Date Title
CN104735143B (en) A kind of lot control system and method based on smart home cloud platform
CN104093050B (en) The controlled decision-making technique and device of controlled terminal based on multiple intelligent remote controllers
CN109640310A (en) Data transfer control method and Related product
CN103973522B (en) Smart home system and its monitoring method
CN107770269B (en) A kind of service response method and its terminal
CN104200644B (en) Equipment remote-control method, function terminal and intelligent terminal
CN103561049A (en) Method for processing terminal scheduling request, system thereof and device thereof
CN108800446A (en) Communication means in air-conditioning system and air-conditioning system between unit
CN105871995A (en) Method for controlling intelligent device by router and the router
CN103139271A (en) System and method of controlling communication between terminals
CN110601934A (en) Method and device for establishing binding relationship between binding switch equipment and switch equipment
CN103685775A (en) Intelligent home system and method based on call center
CN105491431B (en) Control system for LED television complete machine
CN110933170A (en) Multi-device linkage control method and device of ZigBee gateway and storage medium
CN107529207A (en) Network communication method and device
CN106161500A (en) The communication module of a kind of remote wireless control electric equipment and control method
CN104950853A (en) Intelligent control system
CN102710612A (en) Method and devices for achieving multilateral interactive communication application
CN107040498A (en) With screen method and terminal
CN108966190A (en) Water power stake and method, equipment and storage medium for process instruction
CN106533851A (en) Control system based on mesh network technology
CN109921969A (en) A kind of communication means applied to smart home
CN108900416A (en) A kind of network communication optimal path acquisition methods based on mathematical model
CN104426752A (en) Data sharing system between master inverter and slave inverter
CN105204811B (en) Multi-path control system and method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207