WO2020258919A1 - 一种自动复位的智能鱼缸控制方法、装置和存储介质 - Google Patents
一种自动复位的智能鱼缸控制方法、装置和存储介质 Download PDFInfo
- Publication number
- WO2020258919A1 WO2020258919A1 PCT/CN2020/078293 CN2020078293W WO2020258919A1 WO 2020258919 A1 WO2020258919 A1 WO 2020258919A1 CN 2020078293 W CN2020078293 W CN 2020078293W WO 2020258919 A1 WO2020258919 A1 WO 2020258919A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- sent
- execution
- main control
- control chip
- 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.)
- Ceased
Links
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
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
-
- 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/24—Pc safety
- G05B2219/24065—Real time diagnostics
Definitions
- the invention relates to the field of intelligent fish tanks, in particular to an automatic reset intelligent fish tank control method, device and storage medium.
- the purpose of the present invention is to provide an automatic reset smart fish tank control method, device and storage medium, which can prevent the main control chip process from being stuck causing the equipment to fail to work and ensure the normal operation of the smart fish tank.
- the present invention provides an automatic reset intelligent fish tank control method, which includes the following steps:
- Step S1 The main control chip obtains device control information, where the device control information includes the execution device, execution time, and information to be sent;
- Step S2 the main control chip sorts the device control information according to the execution time, and obtains the device control information ranked first;
- Step S3 The main control chip obtains the operation duration for sending the information to be sent to the execution device and a preset overflow duration, and adds the operation duration to the overflow duration to obtain the execution duration.
- the main control chip counts down according to the execution time, and sends the information to be sent;
- Step S4 If the information to be sent is completed and the countdown is not completed, the main control chip stops timing, obtains the device control information that is ranked next according to the execution time, and executes step S3, if the countdown is completed and If the sending of the information to be sent is not completed, the main control chip performs a reset operation, obtains the information to be sent that has not been sent, and executes step S3.
- the main control chip performs timing according to the execution time, and sends the to-be-sent information to the execution device after the timing is completed; if the execution time is equal to 0, the execution time The device sends the information to be sent.
- the main control chip detects a manual operation signal in the process of timing according to the execution time, the main control chip sends the information to be sent to the execution device and keeps the timing, and after the timing is completed, it sends the message to the execution The device sends the message to be sent.
- the manual operation signal includes a high-level signal sent by a physical button and a wireless control signal sent by a client connected through a wireless module.
- the execution device includes an external device and a parameter sensor.
- the present invention provides an automatic reset smart fish tank control device, including the following devices:
- Device control information acquisition device used for the main control chip to acquire device control information, where the device control information includes the execution device, execution time and information to be sent;
- the first device control information acquiring device is used for the main control chip to sort the device control information according to the execution time, and obtain the device control information ranked first;
- a sending device for information to be sent configured for the main control chip to obtain the operation duration for sending the information to be sent to the execution device and a preset overflow duration, and add the operation duration to the overflow duration to obtain Execution time length, the main control chip counts down according to the execution time length, and sends the information to be sent;
- a device for checking the completion of information to be sent is configured to, if the information to be sent is completed and the countdown is not completed, the main control chip stops timing, obtains the device control information arranged next according to the execution time and executes the waiting Send the operation performed by the information sending device, if the countdown is completed and the sending of the information to be sent is not completed, the main control chip performs a reset operation, obtains the unsent information to be sent and executes the information sending device The operation performed.
- the device control information acquisition device further includes: a timing device, configured to, if the execution time is greater than 0, the main control chip will time according to the execution time, and send the to-be-sent information to the execution device after the timing is completed ; If the execution time is equal to 0, send the to-be-sent information to the execution device.
- a timing device configured to, if the execution time is greater than 0, the main control chip will time according to the execution time, and send the to-be-sent information to the execution device after the timing is completed ; If the execution time is equal to 0, send the to-be-sent information to the execution device.
- the device for sending information to be sent further includes: a manual operation signal response device, configured to: if a manual operation signal is detected by the main control chip during timing according to the execution time, the main control chip The execution device sends the information to be sent and keeps timing, and sends the information to be sent to the execution device after the timing is completed.
- a manual operation signal response device configured to: if a manual operation signal is detected by the main control chip during timing according to the execution time, the main control chip The execution device sends the information to be sent and keeps timing, and sends the information to be sent to the execution device after the timing is completed.
- the present invention provides an automatic reset smart fish tank control device, which includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores data that can be executed by the at least one control processor. Instruction, the instruction is executed by at least one control processor, so that the at least one control processor can execute the automatic reset smart fish tank control method described above.
- the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make the computer execute the automatic reset smart fish tank control method described above.
- the present invention also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer , Make the computer execute the intelligent fish tank control method with automatic reset as described above.
- the present invention adopts an automatic reset intelligent fish tank control method, device and storage medium, and the main control chip obtains equipment control information arranged in time sequence ,
- the device control information includes the execution device and the corresponding to-be-sent information, and the execution time is obtained based on the operation time of sending the to-be-sent information to the execution device and the preset overflow time. If the transmission is completed within the execution time, it is determined The process of the main control chip is running normally, otherwise it is judged that the main control chip is stuck. At this time, the main control chip is reset, and the execution of the main control chip is judged by the countdown of the execution time, so as to realize the automatic identification process stuck. Ensure the normal operation of the smart fish tank.
- Fig. 1 is a flowchart of an automatic reset smart fish tank control method according to the first embodiment of the present invention
- FIG. 2 is a schematic diagram of an automatic reset smart fish tank control device according to the second embodiment of the present invention.
- Fig. 3 is a schematic structural diagram of an automatic reset smart fish tank control device provided in the third embodiment of the present invention.
- the first embodiment of the present invention provides an automatic reset smart fish tank control method, including the following steps:
- Step S1 The main control chip obtains device control information, where the device control information includes the execution device, execution time, and information to be sent;
- Step S2 the main control chip sorts the device control information according to the execution time, and obtains the device control information ranked first;
- Step S3 The main control chip obtains the operation duration for sending the information to be sent to the execution device and a preset overflow duration, and adds the operation duration to the overflow duration to obtain the execution duration.
- the main control chip counts down according to the execution time, and sends the information to be sent;
- Step S4 If the sending of the information to be sent is completed and the countdown is not completed, the main control chip stops timing, obtains the next device control information according to the execution time, and executes step S3, if the countdown is completed and If the sending of the information to be sent is not completed, the main control chip performs a reset operation, obtains the information to be sent that has not been sent, and executes step S3.
- the execution device can be any type of device, such as a sensor for detecting water temperature or an aeration pump for increasing oxygen, etc., which can be used in a smart fish tank, and will not be repeated here.
- the information to be sent in this embodiment is preferably a start control signal for the execution device, such as starting sensor detection data or starting an aeration pump for aeration, and may also include specific control information, such as continuous aeration pump Work for 20 seconds, and the specific information to be sent can be adjusted according to the actual operation method of the device.
- the device control information can be arranged in any order, for example, manually arranged in order or arranged in the order of addition. In this embodiment, it is preferably arranged in chronological order, with the starting time of the main control chip as the starting time.
- the overflow duration described in step S3 can be any value. For example, when the operation duration is 100 milliseconds and the overflow duration is set to 20 milliseconds, the execution duration will be 120 milliseconds. If the main control is within 120 milliseconds If the chip fails to complete the sending of the information to be sent, it is determined that the program is stuck, and the main control chip is reset.
- step S4 when the next device control information sorted by execution time is acquired in step S4 and step S3 is executed, since different execution devices correspond to different operation durations, the execution duration needs to be reacquired. It is understandable that when the countdown is completed and the sending of the information to be sent is not completed, it is determined that the main control chip is stuck in the process, and after the main control chip is reset, the countdown is restarted according to the obtained execution time to avoid stuck After losing the process, ensure the complete operation of the smart fish tank.
- the main control chip counts the time according to the execution time, and sends the to-be-sent information to the execution device after the timing is completed; if the The execution time is equal to 0, and the to-be-sent information is sent to the execution device.
- the execution time is preferably expressed by a numerical value, in milliseconds. For example, when the main control is activated 10 seconds after the oxygen increase is performed, the execution time corresponding to the oxygen increase pump is 10.
- the main control chip if the main control chip detects a manual operation signal in the process of timing according to the execution time, the main control chip sends the information to be sent to the execution device and keeps Timing, sending the information to be sent to the execution device after timing is completed.
- the smart fish tank in order to increase the interest of the smart fish tank, the smart fish tank usually sets a manual control mode to control the execution device.
- the main control chip directly sends the waiting device to the execution device after receiving the manual operation signal.
- Sending information because manual control has a certain temporary nature, if the automatic control process is interrupted and timed again after manual control, it is easy to cause inter-process interference and jamming, so this embodiment responds to manual operation signals to send information to be sent It is an independent process and keeps timing when the manual operation signal is executed to avoid affecting the automatic execution process of the main control chip.
- the manual operation signal includes a high-level signal sent by a physical button and a wireless control signal sent by a client connected through a wireless module.
- the manual operation signal may include any type of source, and in this embodiment, it is preferably a physical button and a wireless control signal.
- the physical buttons can include any type of buttons, such as capacitive buttons, touch buttons, etc., which can realize button functions, such as switching and adjusting the brightness of the colorful lights in the smart fish tank through the touch buttons, or
- the feeding device is controlled by the capacitive button for feeding, etc.
- the wireless module can be a Bluetooth module or a wireless network module, which can realize connection control. This embodiment takes the Bluetooth module as an example.
- the user installs the client through the smart device and selects the execution device from the client. And set the parameters to generate a manual control signal to the main control chip for execution.
- the device control information in the main control chip can preferably be edited and parameterized through the client, for example, the feeding time and quantity are set, and the specific setting method can be adjusted according to actual use.
- the execution device includes an external device and a parameter sensor.
- the execution device can be any device related to the smart fish tank, such as aeration pumps, feeders and filtering devices, etc., and can also be parameter sensors, such as water temperature sensors, temperature and humidity sensors, and TDS sensors for detecting water quality. And so on, the specific equipment can be adjusted according to actual usage requirements.
- the second embodiment of the present invention also provides an automatically reset smart fish tank control device, in the automatically reset smart fish tank control device 2000, including but not limited to: equipment control information acquisition device 2100, the first equipment Control information acquisition device 2200, to-be-sent information sending device 2300, and to-be-sent information completion checking device 2400.
- the device control information obtaining device 2100 is used for the main control chip to obtain device control information, and the device control information includes the execution device, execution time, and information to be sent;
- the first device control information obtaining device 2200 is used for the main control chip to sort the device control information according to the execution time, and obtain the device control information ranked first;
- the information to be sent sending device 2300 is used for the main control chip to obtain the operation duration of sending the information to be sent to the execution device and the preset overflow duration, and add the operation duration to the overflow duration to obtain Execution time length, the main control chip counts down according to the execution time length, and sends the information to be sent;
- the device 2400 for checking the completion of the information to be sent is configured to, if the information to be sent is completed and the countdown is not completed, the main control chip stops timing, obtains the device control information arranged next according to the execution time, and executes the waiting The operation performed by the sending information sending device 2300. If the countdown is completed and the sending of the information to be sent is not completed, the main control chip performs a reset operation to obtain the unsent information to be sent and execute the sending device for the information to be sent 2300 operations performed.
- the device control information acquiring device further includes: a timing device 2110, configured to: if the execution time is greater than 0, the main control chip will time according to the execution time, and after the timing is completed The execution device sends the information to be sent; if the execution time is equal to 0, the information to be sent is sent to the execution device.
- a timing device 2110 configured to: if the execution time is greater than 0, the main control chip will time according to the execution time, and after the timing is completed The execution device sends the information to be sent; if the execution time is equal to 0, the information to be sent is sent to the execution device.
- another embodiment of the present invention further includes: a manual operation signal response device 2210, configured to: if the main control chip detects a manual operation signal during the timing according to the execution time, the main control chip The execution device sends the information to be sent and keeps timing, and sends the information to be sent to the execution device after the timing is completed.
- a manual operation signal response device 2210 configured to: if the main control chip detects a manual operation signal during the timing according to the execution time, the main control chip The execution device sends the information to be sent and keeps timing, and sends the information to be sent to the execution device after the timing is completed.
- the third embodiment of the present invention also provides an automatically reset smart fish tank control device.
- the automatically reset smart fish tank control device 3000 can be any type of smart terminal, such as a mobile phone, a tablet computer, a personal computer, etc. .
- the automatically reset intelligent fish tank control device 3000 includes: one or more control processors 3001 and a memory 3002.
- one control processor 3001 is taken as an example.
- control processor 3001 and the memory 3002 may be connected through a bus or in other ways.
- connection through a bus is taken as an example.
- the memory 3002 as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as those corresponding to the automatic reset smart fish tank control device in the embodiment of the present invention Program instructions/modules, for example, the device control information acquiring device 2100 and the first device control information acquiring device 2200 shown in FIG. 2.
- the control processor 3001 executes various functional applications and data processing of the automatic reset smart fish tank control device 2000 by running non-transitory software programs, instructions and modules stored in the memory 3002, that is, realizing the automatic reset of the above method embodiment Intelligent fish tank control method.
- the memory 3002 may include a program storage area and a data storage area.
- the program storage area may store an operating system and an application program required by at least one function; Data etc.
- the memory 3002 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid state storage devices.
- the memory 3002 may optionally include memories remotely set with respect to the control processor 3001, and these remote memories may be connected to the automatically reset smart fish tank control device 3000 via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
- the one or more modules are stored in the memory 3002, and when executed by the one or more control processors 3001, the automatic reset smart fish tank control method in the above method embodiment is executed, for example, the above description is executed Steps S1 to S4 of the method in FIG. 1 realize the functions of the devices 2100-2400 in FIG. 2.
- the embodiment of the present invention also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors, for example, as shown in FIG. 3
- One control processor 3001 executes the above-mentioned one or more control processors 3001 to execute the automatic reset smart fish tank control method in the above-mentioned method embodiment, for example, to execute the above-described method steps S1 to S4 in FIG. 1 , To realize the functions of the devices 2100-2400 in FIG. 2.
- the device embodiments described above are merely illustrative, and the devices described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network devices. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- each implementation manner can be implemented by means of software plus a general hardware platform.
- All or part of the processes in the methods of the above-mentioned embodiments can be implemented by computer programs instructing relevant hardware.
- the programs can be stored in a computer-readable storage medium, and the program is executed At this time, it may include the process of the embodiment of the above method.
- the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Farming Of Fish And Shellfish (AREA)
Abstract
本发明公开了一种自动复位的智能鱼缸控制方法、装置和存储介质。主控芯片获取时间顺序排列的设备控制信息,设备控制信息中包括执行设备和对应的待发送信息,并根据将待发送信息发送至执行设备的操作时长和预先设定的溢出时长得出执行时长,若在执行时长内完成发送,则判定主控芯片的进程正常运行,否则判定为主控芯片卡死,此时对主控芯片进行复位操作,通过执行时长的倒计时对主控芯片的执行情况进行判断,实现了自动识别进程卡死,确保了智能鱼缸的正常运作。
Description
本发明涉及智能鱼缸领域,特别是一种自动复位的智能鱼缸控制方法、装置和存储介质。
随着生活水平的提高,养鱼成为了越来越多人的兴趣爱好,传统的鱼缸仅仅能作为容器,对水质和供氧量还需要人手控制对应的设备,操作比较复杂。为了解决这个问题,市面上出现了智能鱼缸,在鱼缸中设置主控芯片,实现了诸如增氧泵和喂食器等设备的自动控制,但是对于智能鱼缸而言,诸如喂食和增氧等操作需要定时完成,现有方案并不能对主控芯片的运行状况进行判断,若主控芯片出现程序卡死等情况,到了设定的时间无法正常向设备发送控制指令,很容易导致智能鱼缸的正常运作出现问题,甚至导致鱼死亡,造成不必要的损失。
发明内容
为了克服现有技术的不足,本发明的目的在于提供一种自动复位的智能鱼缸控制方法、装置和存储介质,能够避免主控芯片进程卡死导致设备无法工作,确保智能鱼缸的正常运作。
本发明解决其问题所采用的技术方案是:第一方面,本发明提供 了一种自动复位的智能鱼缸控制方法,包括以下步骤:
步骤S1,主控芯片获取设备控制信息,所述设备控制信息包括执行设备、执行时间和待发送信息;
步骤S2,所述主控芯片将所述设备控制信息按照执行时间排序,并获取排序在首位的设备控制信息;
步骤S3,所述主控芯片获取将所述待发送信息发送至所述执行设备的操作时长和预先设定的溢出时长,将所述操作时长加上所述溢出时长得出执行时长,所述主控芯片根据所述执行时长进行倒计时,并发送所述待发送信息;
步骤S4,若所述待发送信息完成发送且所述倒计时未完成,则所述主控芯片停止计时,获取按照执行时间排列在下一位的设备控制信息并执行步骤S3,若所述倒计时完成且所述待发送信息的发送未完成,所述主控芯片执行复位操作,获取未发送的待发送信息并执行步骤S3。
进一步,若所述执行时间大于0,所述主控芯片根据所述执行时间进行计时,计时完成后向所述执行设备发送所述待发送信息;若所述执行时间等于0,向所述执行设备发送所述待发送信息。
进一步,若所述主控芯片根据所述执行时间进行计时的过程中检测到手动操作信号,所述主控芯片向所述执行设备发送待发送信息,并保持计时,计时完成后向所述执行设备发送待发送信息。
进一步,所述手动操作信号包括实体按键发送的高电平信号和通 过无线模块连接的客户端发送的无线控制信号。
进一步,所述执行设备包括外接设备和参数传感器。
第二方面,本发明提供了一种自动复位的智能鱼缸控制装置,包括以下装置:
设备控制信息获取装置,用于主控芯片获取设备控制信息,所述设备控制信息包括执行设备、执行时间和待发送信息;
首位设备控制信息获取装置,用于所述主控芯片将所述设备控制信息按照执行时间排序,并获取排序在首位的设备控制信息;
待发送信息发送装置,用于所述主控芯片获取将所述待发送信息发送至所述执行设备的操作时长和预先设定的溢出时长,将所述操作时长加上所述溢出时长得出执行时长,所述主控芯片根据所述执行时长进行倒计时,并发送所述待发送信息;
待发送信息完成检验装置,用于若所述待发送信息完成发送且所述倒计时未完成,则所述主控芯片停止计时,获取按照执行时间排列在下一位的设备控制信息并执行所述待发送信息发送装置所执行的操作,若所述倒计时完成且所述待发送信息的发送未完成,所述主控芯片执行复位操作,获取未发送的待发送信息并执行所述待发送信息发送装置所执行的操作。
进一步,所述设备控制信息获取装置还包括:定时装置,用于若执行时间大于0,所述主控芯片根据所述执行时间进行计时,计时完成后向所述执行设备发送所述待发送信息;若所述执行时间等于0, 向所述执行设备发送所述待发送信息。
进一步,所述待发送信息发送装置还包括:手动操作信号响应装置,用于若所述主控芯片根据所述执行时间进行计时的过程中检测到手动操作信号,所述主控芯片向所述执行设备发送待发送信息,并保持计时,计时完成后向所述执行设备发送待发送信息。
第三方面,本发明提供了一种自动复位的智能鱼缸控制设备,包括至少一个控制处理器和用于与至少一个控制处理器通信连接的存储器;存储器存储有可被至少一个控制处理器执行的指令,指令被至少一个控制处理器执行,以使至少一个控制处理器能够执行如上所述的自动复位的智能鱼缸控制方法。
第四方面,本发明提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于使计算机执行如上所述的自动复位的智能鱼缸控制方法。
第五方面,本发明还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使计算机执行如上所述的自动复位的智能鱼缸控制方法。
本发明实施例中提供的一个或多个技术方案,至少具有如下有益效果:本发明采用了一种自动复位的智能鱼缸控制方法、装置和存储介质,主控芯片获取时间顺序排列的设备控制信息,设备控制信息中包括执行设备和对应的待发送信息,并根据将待发送信息发送至执行 设备的操作时长和预先设定的溢出时长得出执行时长,若在执行时长内完成发送,则判定主控芯片的进程正常运行,否则判定为主控芯片卡死,此时对主控芯片进行复位操作,通过执行时长的倒计时对主控芯片的执行情况进行判断,实现了自动识别进程卡死,确保了智能鱼缸的正常运作。
下面结合附图和实例对本发明作进一步说明。
图1是本发明实施例一提供的一种自动复位的智能鱼缸控制方法的流程图;
图2是本发明实施例二提供的一种自动复位的智能鱼缸控制装置的装置示意图;
图3是本发明实施例三提供的一种自动复位的智能鱼缸控制设备的结构示意图。
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。
需要说明的是,如果不冲突,本发明实施例中的各个特征可以相互结合,均在本发明的保护范围之内。另外,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描 述的步骤。
参照图1,本发明的第一实施例提供了一种自动复位的智能鱼缸控制方法,包括以下步骤:
步骤S1,主控芯片获取设备控制信息,所述设备控制信息包括执行设备、执行时间和待发送信息;
步骤S2,所述主控芯片将所述设备控制信息按照执行时间排序,并获取排序在首位的设备控制信息;
步骤S3,所述主控芯片获取将所述待发送信息发送至所述执行设备的操作时长和预先设定的溢出时长,将所述操作时长加上所述溢出时长得出执行时长,所述主控芯片根据所述执行时长进行倒计时,并发送所述待发送信息;
步骤S4,若所述待发送信息完成发送且所述倒计时未完成,则所述主控芯片停止计时,获取按照执行时间排序在下一位的设备控制信息并执行步骤S3,若所述倒计时完成且所述待发送信息的发送未完成,所述主控芯片执行复位操作,获取未发送的待发送信息并执行步骤S3。
其中,在本实施例中,执行设备可以是任意类型的设备,例如检测水温的传感器或用于增加氧气的增氧泵等,能够用于智能鱼缸即可,在此不再赘述。可以理解的是,本实施例中的待发送信息优选为对执行设备的启动控制信号,例如启动传感器检测数据或启动增氧泵进行增氧,还可以包括具体的控制信息,例如增氧泵持续工作20秒, 具体的待发送信息根据实际设备的操作方法调整即可。
其中,需要说明的是,设备控制信息可以按照任意顺序排列,例如手动编排顺序或者按照添加的顺序排列,本实施例中优选按照时间顺序排列,以主控芯片的启动时间为起始时间,主控芯片获取的设备控制信息中的执行时间,例如增氧泵在主控芯片启动10秒后执行20秒增氧工作,则增氧泵执行的时间为主控芯片启动10秒后,能够根据时间顺序执行,能够更加贴合鱼缸的实际使用场景,确保每个操作正常执行。
其中,需要说明的是,步骤S3中所述的溢出时长可以是任意数值,例如操作时长为100毫秒时,设定溢出时长为20毫秒,则执行时长为120毫秒,若在120毫秒内主控芯片未能完成待发送信息的发送,则判定为程序卡死,对主控芯片进行复位操作。
其中,需要说明的是,步骤S4中获取按照执行时间排序在下一位的设备控制信息并执行步骤S3时,由于不同的执行设备对应的操作时长不同,因此需要对执行时长进行重新获取。可以理解的是,倒计时完成且所述待发送信息的发送未完成时,判定为主控芯片出现进程卡死的情况,对主控芯片复位后根据已经获取的执行时长重新进行倒计时,避免卡死后丢失进程,确保智能鱼缸操作的完整。
进一步,本发明的另一个实施例中,若所述执行时间大于0,所述主控芯片根据所述执行时间进行计时,计时完成后向所述执行设备发送所述待发送信息;若所述执行时间等于0,向所述执行设备发送 所述待发送信息。
其中,需要说明的是,为了便于主控芯片计时,执行时间优选通过数值表示,单位为毫秒,例如主控启动10秒后执行增氧,则增氧泵所对应的执行时间为10。
进一步,本发明的另一个实施例中,若所述主控芯片根据所述执行时间进行计时的过程中检测到手动操作信号,所述主控芯片向所述执行设备发送待发送信息,并保持计时,计时完成后向所述执行设备发送待发送信息。
其中,需要说明的是,为了提高智能鱼缸的趣味性,智能鱼缸通常会设置手动控制模式对执行设备进行控制,在本实施例中,主控芯片接收到手动操作信号后直接向执行设备发送待发送信息,由于手动控制具有一定的临时性,若手动控制后对自动控制的进程进行中断并重新计时,很容易出现进程之间干扰和卡死,因此本实施例响应手动操作信号发送待发送信息为独立进程,执行手动操作信号时保持计时,避免对主控芯片自动执行的流程造成影响。
进一步,本发明的另一个实施例中,所述手动操作信号包括实体按键发送的高电平信号和通过无线模块连接的客户端发送的无线控制信号。
其中,手动操作信号可以包括任意类型的来源,本实施例优选为实体按键和无线控制信号。可以理解的是,实体按键可以包括任意类型的按键,例如电容按键、触控按键等,能够实现按键功能即可,例 如通过触控按键对智能鱼缸中的彩灯等进行开关和亮度调节,或者通过电容按键控制喂食装置进行喂食等。可以理解的是,无线模块可以是蓝牙模块,也可以是无线网络模块,能够实现连接控制即可,本实施例以蓝牙模块为例,用户通过智能设备安装客户端,从客户端中选取执行设备并且设定参数生成手动控制信号至主控芯片中执行。可以理解的是,本实施例优选可以通过客户端对主控芯片中的设备控制信息进行编辑参数设定,例如设定喂食时间和数量等,具体的设定方式根据实际使用调整即可。
进一步,本发明的另一个实施例中,所述执行设备包括外接设备和参数传感器。
其中,需要说明的是,执行设备可以是任意与智能鱼缸相关的设备,例如增氧泵、喂食器和过滤装置等,也可以是参数传感器,例如水温传感器,温湿度传感器和检测水质的TDS传感器等,具体设备根据实际使用需求调整即可。
参照图2,本发明的第二实施例还提供了一种自动复位的智能鱼缸控制装置,在该自动复位的智能鱼缸控制装置2000中,包括但不限于:设备控制信息获取装置2100、首位设备控制信息获取装置2200、待发送信息发送装置2300和待发送信息完成检验装置2400。
其中,设备控制信息获取装置2100用于主控芯片获取设备控制信息,所述设备控制信息包括执行设备、执行时间和待发送信息;
首位设备控制信息获取装置2200用于所述主控芯片将所述设备 控制信息按照执行时间排序,并获取排序在首位的设备控制信息;
待发送信息发送装置2300用于所述主控芯片获取将所述待发送信息发送至所述执行设备的操作时长和预先设定的溢出时长,将所述操作时长加上所述溢出时长得出执行时长,所述主控芯片根据所述执行时长进行倒计时,并发送所述待发送信息;
待发送信息完成检验装置2400用于若所述待发送信息完成发送且所述倒计时未完成,则所述主控芯片停止计时,获取按照执行时间排列在下一位的设备控制信息并执行所述待发送信息发送装置2300执行的操作,若所述倒计时完成且所述待发送信息的发送未完成,所述主控芯片执行复位操作,获取未发送的待发送信息并执行所述待发送信息发送装置2300所执行的操作。
进一步,本发明的另一个实施例中所述设备控制信息获取装置还包括:定时装置2110,用于若执行时间大于0,所述主控芯片根据所述执行时间进行计时,计时完成后向所述执行设备发送所述待发送信息;若所述执行时间等于0,向所述执行设备发送所述待发送信息。
进一步,本发明的另一个实施例中还包括:手动操作信号响应装置2210,用于若所述主控芯片根据所述执行时间进行计时的过程中检测到手动操作信号,所述主控芯片向所述执行设备发送待发送信息,并保持计时,计时完成后向所述执行设备发送待发送信息。
需要说明的是,由于本实施例中的自动复位的智能鱼缸控制装置与上述的自动复位的智能鱼缸控制方法基于相同的发明构思,因此, 方法实施例中的相应内容同样适用于本装置实施例,此处不再详述。
参照图3,本发明的第三实施例还提供了一种自动复位的智能鱼缸控制设备,该自动复位的智能鱼缸控制设备3000可以是任意类型的智能终端,例如手机、平板电脑、个人计算机等。
具体地,该自动复位的智能鱼缸控制设备3000包括:一个或多个控制处理器3001和存储器3002,图3中以一个控制处理器3001为例。
控制处理器3001和存储器3002可以通过总线或者其他方式连接,图3中以通过总线连接为例。
存储器3002作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态性计算机可执行程序以及模块,如本发明实施例中的自动复位的智能鱼缸控制设备对应的程序指令/模块,例如,图2中所示的设备控制信息获取装置2100和首位设备控制信息获取装置2200。控制处理器3001通过运行存储在存储器3002中的非暂态软件程序、指令以及模块,从而执行自动复位的智能鱼缸控制装置2000的各种功能应用以及数据处理,即实现上述方法实施例的自动复位的智能鱼缸控制方法。
存储器3002可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据自动复位的智能鱼缸控制装置2000的使用所创建的数据等。此外,存储器3002可以包括高速随机存取存储器,还可以包括 非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器3002可选包括相对于控制处理器3001远程设置的存储器,这些远程存储器可以通过网络连接至该自动复位的智能鱼缸控制设备3000。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
所述一个或者多个模块存储在所述存储器3002中,当被所述一个或者多个控制处理器3001执行时,执行上述方法实施例中的自动复位的智能鱼缸控制方法,例如,执行以上描述的图1中的方法步骤S1至步骤S4,实现图2中的装置2100-2400的功能。
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个控制处理器执行,例如,被图3中的一个控制处理器3001执行,可使得上述一个或多个控制处理器3001执行上述方法实施例中的自动复位的智能鱼缸控制方法,例如,执行以上描述的图1中的方法步骤S1至步骤S4,实现图2中的装置2100-2400的功能。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的装置可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络装置上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现。本领域技术人 员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ReadOnly Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上是对本发明的较佳实施进行了具体说明,但本发明并不局限于上述实施方式,熟悉本领域的技术人员在不违背本发明精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。
Claims (10)
- 一种自动复位的智能鱼缸控制方法,其特征在于,包括以下步骤:步骤S1,主控芯片获取设备控制信息,所述设备控制信息包括执行设备、执行时间和待发送信息;步骤S2,所述主控芯片将所述设备控制信息按照执行时间排序,并获取排序在首位的设备控制信息;步骤S3,所述主控芯片获取将所述待发送信息发送至所述执行设备的操作时长和预先设定的溢出时长,将所述操作时长加上所述溢出时长得出执行时长,所述主控芯片根据所述执行时长进行倒计时,并发送所述待发送信息;步骤S4,若所述待发送信息完成发送且所述倒计时未完成,则所述主控芯片停止计时,获取按照执行时间排列在下一位的设备控制信息并执行步骤S3,若所述倒计时完成且所述待发送信息的发送未完成,所述主控芯片执行复位操作,获取未发送的待发送信息并执行步骤S3。
- 根据权利要求1所述的一种自动复位的智能鱼缸控制方法,其特征在于:若所述执行时间大于0,所述主控芯片根据所述执行时间进行计时,计时完成后向所述执行设备发送所述待发送信息;若所述执行时间等于0,向所述执行设备发送所述待发送信息。
- 根据权利要求2所述的一种自动复位的智能鱼缸控制方法,其特征在于:若所述主控芯片根据所述执行时间进行计时的过程中检测到手 动操作信号,所述主控芯片向所述执行设备发送待发送信息,并保持计时,计时完成后向所述执行设备发送待发送信息。
- 根据权利要求3所述的一种自动复位的智能鱼缸控制方法,其特征在于:所述手动操作信号包括实体按键发送的高电平信号和通过无线模块连接的客户端发送的无线控制信号。
- 根据权利要求1所述的一种自动复位的智能鱼缸控制方法,其特征在于:所述执行设备包括外接设备和参数传感器。
- 一种自动复位的智能鱼缸控制装置,其特征在于,包括以下装置:设备控制信息获取装置,用于主控芯片获取设备控制信息,所述设备控制信息包括执行设备、执行时间和待发送信息;首位设备控制信息获取装置,用于所述主控芯片将所述设备控制信息按照执行时间排序,并获取排序在首位的设备控制信息;待发送信息发送装置,用于所述主控芯片获取将所述待发送信息发送至所述执行设备的操作时长和预先设定的溢出时长,将所述操作时长加上所述溢出时长得出执行时长,所述主控芯片根据所述执行时长进行倒计时,并发送所述待发送信息;待发送信息完成检验装置,用于若所述待发送信息完成发送且所述倒计时未完成,则所述主控芯片停止计时,获取按照执行时间排列在下一位的设备控制信息并执行所述待发送信息发送装置所执行的操作,若所述倒计时完成且所述待发送信息的发送未完成,所述主控芯片执行复位操作,获取未发送的待发送信息并执行所述待发送信息发送装 置所执行的操作。
- 根据权利要求6所述的一种自动复位的智能鱼缸控制装置,其特征在于,所述设备控制信息获取装置还包括:定时装置,用于若执行时间大于0,所述主控芯片根据所述执行时间进行计时,计时完成后向所述执行设备发送所述待发送信息;若所述执行时间等于0,向所述执行设备发送所述待发送信息。
- 根据权利要求7所述的一种自动复位的智能鱼缸控制装置,其特征在于,所述待发送信息发送装置还包括:手动操作信号响应装置,用于若所述主控芯片根据所述执行时间进行计时的过程中检测到手动操作信号,所述主控芯片向所述执行设备发送待发送信息,并保持计时,计时完成后向所述执行设备发送待发送信息。
- 一种自动复位的智能鱼缸控制设备,其特征在于:包括至少一个控制处理器和用于与所述至少一个控制处理器所通信连接的存储器;所述存储器存储有可被所述至少一个控制处理器执行的指令,所述指令被所述至少一个控制处理器执行,以使所述至少一个控制处理器能够执行如权利要求1-5任一项所述的一种自动复位的智能鱼缸控制方法。
- 一种计算机可读存储介质,其特征在于:所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如权利要求1-5任一项所述的一种自动复位的智能鱼缸控制方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910547538.7 | 2019-06-24 | ||
| CN201910547538.7A CN110262452A (zh) | 2019-06-24 | 2019-06-24 | 一种自动复位的智能鱼缸控制方法、装置和存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020258919A1 true WO2020258919A1 (zh) | 2020-12-30 |
Family
ID=67920633
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/078293 Ceased WO2020258919A1 (zh) | 2019-06-24 | 2020-03-06 | 一种自动复位的智能鱼缸控制方法、装置和存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110262452A (zh) |
| WO (1) | WO2020258919A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110262452A (zh) * | 2019-06-24 | 2019-09-20 | 五邑大学 | 一种自动复位的智能鱼缸控制方法、装置和存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN203575355U (zh) * | 2013-09-30 | 2014-05-07 | 李佳艳 | 一种自动喂鱼控制电路及装置 |
| CN106844084A (zh) * | 2017-03-16 | 2017-06-13 | 北京新能源汽车股份有限公司 | 一种程序控制方法、装置及汽车 |
| CN107506251A (zh) * | 2017-07-25 | 2017-12-22 | 青岛海信电器股份有限公司 | 对智能设备进行复位的方法及装置 |
| CN206930935U (zh) * | 2017-06-12 | 2018-01-26 | 河南工业大学 | 一种新型鱼缸定时换水控制装置 |
| CN110262452A (zh) * | 2019-06-24 | 2019-09-20 | 五邑大学 | 一种自动复位的智能鱼缸控制方法、装置和存储介质 |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06343194A (ja) * | 1993-06-01 | 1994-12-13 | Nec Corp | 監視制御装置 |
| CN201401703Y (zh) * | 2009-03-02 | 2010-02-10 | 叶小纬 | Led鱼缸照明系统 |
| US8775882B2 (en) * | 2010-12-28 | 2014-07-08 | Stmicroelectronics International N.V. | Testing circuits |
| CN103580941B (zh) * | 2012-08-01 | 2018-01-30 | 研祥智能科技股份有限公司 | 网络看门狗及其实现方法 |
| CN104486176B (zh) * | 2014-12-18 | 2019-03-12 | 广东美的厨房电器制造有限公司 | 家电、独立通信模块和通信方法以及控制系统 |
| CN205485897U (zh) * | 2016-02-19 | 2016-08-17 | 深圳中电长城信息安全系统有限公司 | 一种基于计算机主板的复位电路 |
| CN108173913A (zh) * | 2017-12-19 | 2018-06-15 | 国网安徽省电力公司信息通信分公司 | 一种电力故障指示器的lte无线专网通信装置及方法 |
-
2019
- 2019-06-24 CN CN201910547538.7A patent/CN110262452A/zh active Pending
-
2020
- 2020-03-06 WO PCT/CN2020/078293 patent/WO2020258919A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN203575355U (zh) * | 2013-09-30 | 2014-05-07 | 李佳艳 | 一种自动喂鱼控制电路及装置 |
| CN106844084A (zh) * | 2017-03-16 | 2017-06-13 | 北京新能源汽车股份有限公司 | 一种程序控制方法、装置及汽车 |
| CN206930935U (zh) * | 2017-06-12 | 2018-01-26 | 河南工业大学 | 一种新型鱼缸定时换水控制装置 |
| CN107506251A (zh) * | 2017-07-25 | 2017-12-22 | 青岛海信电器股份有限公司 | 对智能设备进行复位的方法及装置 |
| CN110262452A (zh) * | 2019-06-24 | 2019-09-20 | 五邑大学 | 一种自动复位的智能鱼缸控制方法、装置和存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110262452A (zh) | 2019-09-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105162928B (zh) | 调节移动终端屏幕亮度的方法和装置 | |
| CN106055077A (zh) | 一种基于唤醒锁的处理方法及装置 | |
| US20190228770A1 (en) | Voice control method, device, and computer storage medium | |
| CN104750483A (zh) | 一种控制终端闹钟的方法及装置 | |
| CN108650418A (zh) | 疲劳提醒方法、装置、智能终端和存储介质 | |
| CN105808301A (zh) | 一种用于移动终端的定时开启应用的系统和方法 | |
| CN110556115A (zh) | 基于多控制终端的iot设备控制方法、控制终端及存储介质 | |
| CN106453930B (zh) | 一种点亮移动终端屏幕的方法及移动终端 | |
| CN106776511A (zh) | 一种编辑文档保存方法及装置 | |
| WO2020258919A1 (zh) | 一种自动复位的智能鱼缸控制方法、装置和存储介质 | |
| WO2026045495A1 (zh) | 舱驾融合控制方法、系统、车辆及存储介质 | |
| CN104102498B (zh) | 一种移动终端及其开机方法 | |
| CN109165114A (zh) | 应用程序无响应的处理方法、装置、存储介质及智能终端 | |
| CN107920304B (zh) | 用于无线麦克风的报警方法、系统、麦克风及存储介质 | |
| CN111290565A (zh) | Doze模式的控制方法、装置、终端及存储介质 | |
| WO2017032146A1 (zh) | 一种文件分享方法及装置 | |
| CN105739686A (zh) | 一种移动终端的控制方法及装置 | |
| CN105259746B (zh) | 降低智能手表功耗的方法和系统 | |
| CN104182264B (zh) | 一种eMMC的开机优化方法及其装置 | |
| US20160252954A1 (en) | Control apparatus | |
| CN106547577A (zh) | 一种微控制器芯片烧录的方法和装置 | |
| CN105142023A (zh) | 唤醒待机电视的方法及装置 | |
| CN113873122A (zh) | 双闪摄像头独立闪光控制方法、系统、装置及存储介质 | |
| CN106658471A (zh) | 用户识别模块配置方法及装置 | |
| US20210329767A1 (en) | Activating a light source in dependence on previous power cycle duration |
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: 20832649 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: 20832649 Country of ref document: EP Kind code of ref document: A1 |