Method and system for remotely making an appointment to control a device based on a data command frame
Through the method based on data command frames, the problem of lack of remote reservation setting function in places such as spa pools is solved, and remote reservation control for places such as spa pools is realized, which improves the work efficiency and operation convenience of managers.
Patent Information
- Application Number
- CN202011457386.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-10
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2040-12-10
AI Technical Summary
The prior art lacks the time reservation management function for places such as spa pools, and especially the inability to set up remote reservations, resulting in inefficiency of managers.
Using a data command frame method, a data command frame is formed by setting bytes representing the appointment start working time point, a single working time, and the reservation situation of the entire work cycle, and sent to the device to realize remote reservation control.
Remote reservation settings for spa pools and other places are realized, which improves the work efficiency of managers, reduces the chance of errors, and provides a safer and more convenient operation method for management.
Smart Images

Figure CN114626564B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular to a method and system for remotely scheduling and controlling devices based on data command frames. Background Art
[0002] With the development of the economic society, the Internet Plus has been booming. Now when people pre-experience service consumption, they can conveniently schedule time by means of the Internet reservation function, and software for online reservation services has become very common.
[0003] SPA whirlpools are essential hot spring spa projects in many health clubs, high-class hotels, and hot spring resorts. With the improvement of people's living standards, various SPA whirlpools have emerged. SPA refers to using water resources in combination with bathing, massage, applying skin care products, and aromatherapy to promote metabolism and achieve a comfortable enjoyment of the body and mind by satisfying the human vision, taste, touch, smell, and thinking.
[0004] Currently, the existing technologies only solve the management of customer resources in the reservation scenario, and lack unified time management and reservation arrangements for the management of other SPA pools, etc. In addition, in current service information systems, various service resources are generally managed separately for the user's time management and the opening time management of the pool. There is a lack of a time reservation management function for the whirlpool, such as the reservation setting of the heating time, the time reservation setting of the filtration function, and the time reservation setting of the salt electrolysis function, etc., and the management of the whirlpool, etc. cannot be remotely reserved and set, which is extremely inconvenient for the management personnel and greatly reduces the work efficiency.
[0005] Therefore, there is an urgent need to provide a method for remotely scheduling and setting the time for places such as whirlpools and pools. Summary of the Invention
[0006] In order to solve the technical problems in the prior art, such as the lack of a time reservation management function for the pool and the inability to remotely reserve and set the management of the whirlpool, etc., which is extremely inconvenient for the management personnel, the present invention proposes a method for remotely scheduling and controlling devices based on data command frames to solve the above technical problems.
[0007] In one aspect, the present invention proposes a method for constructing a data command frame for remote control, including the following steps:
[0008] Set a first byte representing the start time point of the reservation work, and the first byte includes data bits representing the start time point of the reservation work;
[0009] Set the second byte representing the single working duration, where the single working duration represents the working duration of the device within a unit time period; set the reservation time start point and the working duration respectively, so that the MCU can perform reservation timing according to this time point and the working duration.
[0010] Set the third byte representing the reservation situation of the entire working cycle. The entire working cycle is divided into multiple unit time periods. The third byte includes multiple bits corresponding to multiple unit time periods respectively, and the value of each bit is assigned to determine whether the unit time period corresponding to each bit is reserved as a working time period; this byte can represent the reservation situation of the entire working cycle, and within 168 hours in a week or 24 hours in a day, the working intervals and non-working intervals can be set, and single reservation tasks or cyclic tasks can be set.
[0011] Combine the first byte, the second byte and the third byte to form a data command frame.
[0012] Preferably, among them, the data bits representing the reservation start working time point include the data bits representing hours and the data bits representing minutes, and the hours and minutes constitute the reserved start working time point. Such a setting can accurately start timing calculations down to the minute.
[0013] Preferably, among them, the entire working cycle is one week, and the unit time period is one day in a week, and the single working duration represents several hours in a day. Such a setting can well set cyclic reservation tasks in specific hour segments within a week, making the operation more simple and fast.
[0014] Preferably, among them, the entire working cycle is one week, and the unit time period is one hour, and the single working duration represents several minutes in an hour. Such a setting can well set cyclic reservation tasks in specific minute segments within a week, making the operation more simple and fast.
[0015] According to the second aspect of the present invention, a method for remotely reserving and controlling a device based on a data command frame is proposed. The method includes:
[0016] S301: Construct a data command frame by using the above-mentioned method for constructing a data command frame for remote control;
[0017] S302: Send the data command frame to the device; and
[0018] S303: After receiving the data command frame, the device parses the data command frame to periodically execute the working instructions in the data command frame.
[0019] Preferably, step S1 includes repeatedly constructing multiple data command frames to be used to implement multiple reservation working modes, and sending the multiple data command frames to the device in step S2.
[0020] According to a third aspect of the present invention, there is provided a computer-readable storage medium having one or more computer programs stored thereon, and when the one or more computer programs are executed by a computer processor, the above method is implemented.
[0021] According to a fourth aspect of the present invention, there is provided a remote reservation control system for a device based on a data command frame.
[0022] Construct a data command frame unit: configured to construct a data command frame by using the method for constructing a data command frame for remote control according to any one of claims 1-4.
[0023] A data frame sending unit: configured to send a data command frame to the device.
[0024] A data frame receiving unit: configured to parse the data command frame after the device receives the data command frame to periodically execute the work instruction in the data command frame.
[0025] The present invention provides a method for remotely reserving and controlling a device based on a data command frame. By setting a first byte representing the starting working time point of the reservation, a second byte representing the single working duration, and a third byte representing the reservation situation of the entire working cycle, the entire working cycle is divided into multiple unit time periods. The third byte includes multiple bits corresponding to the multiple unit time periods respectively, and the value of each bit is assigned to determine whether the unit time period corresponding to each bit is reserved as a working time period; combining the first byte, the second byte, and the third byte to form a data command frame, and sending the command frame to the device to achieve remote control. This method can perform remote reservation settings for the management of spa pools, etc., which is extremely inconvenient for managers, can greatly improve work efficiency, is safer and more convenient, and reduces the error probability. Brief Description of the Drawings
[0026] The drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The drawings illustrate the embodiments and, together with the description, are used to explain the principles of the present invention. Other embodiments and many of the expected advantages of the embodiments will be readily apparent as they become better understood by reference to the following detailed description. By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, objects, and advantages of the present application will become more apparent:
[0027] Figure 1 is an exemplary system architecture diagram to which the present application can be applied;
[0028] Figure 2 is a schematic diagram of communication between an MCU and a mobile terminal according to an embodiment of the present application;
[0029] Figure 3 is a flowchart of a construction method of a data command frame for remote control according to an embodiment of the present application;
[0030] Figure 4 is a flowchart of a method for remotely making a reservation and controlling a device based on a data command frame according to a specific embodiment of the present application;
[0031] Figure 5 is a framework diagram of a system for remotely making a reservation and controlling a device based on a data command frame according to a specific embodiment of the present application;
[0032] Figure 6 is the content of a reservation function and time data packet sent by a WIFI module according to an embodiment of the present application;
[0033] Figure 7 is a schematic structural diagram of a computer system of an electronic device suitable for implementing the embodiments of the present application. Detailed Embodiments
[0034] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related invention, rather than limiting the invention. Additionally, it should be noted that, for the sake of description, only parts related to the relevant invention are shown in the drawings.
[0035] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the drawings and embodiments.
[0036] Figure 1 An exemplary system architecture 100 of a method for remotely making a reservation and controlling a device based on a data command frame to which the embodiments of the present application can be applied is shown.
[0037] As Figure 1 shown, the system architecture 100 may include a data server 101, a network 102, and a main server 103. The network 102 is used to provide a medium for a communication link between the data server 101 and the main server 103. The network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.
[0038] The main server 103 may be a server that provides various services, such as a data processing server that processes the information uploaded by the data server 101. The data processing server may perform data processing for remote reservation.
[0039] It should be noted that the method for remotely scheduling and controlling a device based on a data command frame provided in the implementation of this application is generally executed by the main server 103. Correspondingly, the device for the method for remotely scheduling and controlling a device based on a data command frame is generally set in the main server 103.
[0040] It should be noted that the data server and the main server can be hardware or software. When it is hardware, it can be implemented as a distributed server cluster composed of multiple servers or as a single server. When it is software, it can be implemented as multiple software or software modules (such as software or software modules for providing distributed services), or as a single software or software module.
[0041] It should be understood that Figure 1 the numbers of the data server, the network, and the main server in
[0042] are merely illustrative. According to the implementation requirements, there can be any number of terminal devices, networks, and servers. Figure 2 As shown in
[0043] In a specific embodiment, Figure 3 a flowchart of a method for remotely scheduling and controlling a device based on a data command frame according to an embodiment of the present application is shown. The method includes the following steps:
[0044] S201: Set a first byte representing the scheduled start working time point, and the first byte includes data bits representing the scheduled start working time point. Among them, the data bits representing the scheduled start working time point include data bits representing hours and data bits representing minutes, and the hours and minutes constitute the scheduled start working time point. It should be understood that the first byte does not mean that there is only one byte. The data bits included in the first byte can be used to represent hours, the data bits included in the second byte can be used to represent minutes, or a single byte can include both data bits representing hours and data bits representing minutes.
[0045] S202: Set a second byte representing the single working duration, and the single working duration represents the working duration of the device within a unit time period;
[0046] S203: Set the third byte representing the reservation status of the entire working cycle. The entire working cycle is divided into multiple unit time periods. The third byte includes multiple bits corresponding to the multiple unit time periods respectively, and the value of each bit is assigned to determine whether the unit time period corresponding to each bit is reserved as a working time period;
[0047] In a first preferred solution, the entire working cycle is one week, and the unit time period is one day in a week. The single working duration represents several hours in a day.
[0048] In a second preferred solution, the entire working cycle is one week, and the unit time period is one hour. The single working duration represents several minutes in an hour.
[0049] S204: Combine the first byte, the second byte, and the third byte to form a data command frame.
[0050] It should be understood that Figure 3 there is no logical relationship of step sequence among S201 - S204, and any solution that only differs from the above in terms of sequence inconsistency is still included in the above solutions.
[0051] In a specific embodiment, as Figure 4 shown, a flowchart of a method for remotely reserving and controlling a device based on a data command frame includes:
[0052] S301: Construct a data command frame by using the above - mentioned method for constructing a data command frame for remote control;
[0053] S302: Send the data command frame to the device; and
[0054] S303: After receiving the data command frame, the device parses the data command frame to periodically execute the work instructions in the data command frame.
[0055] Preferably, step S301 includes repeatedly constructing multiple data command frames to implement multiple reservation working modes, and sending the multiple data command frames to the device in step 302.
[0056] As Figure 5 shown, a data command frame construction unit 401: configured to construct a data command frame by using the method for constructing a data command frame for remote control according to any one of claims 1 - 4; a data frame sending unit 402: configured to send the data command frame to the device; a data frame receiving unit 403: configured to, after the device receives the data command frame, parse the data command frame to periodically execute the work instructions in the data command frame.
[0057] As Figure 6As shown in the figure, the content of the reservation function and time data packet sent by the Wifi module to the MCU includes: Byte 5, which represents the byte setting the validity of the reservation start work. Among them, the data bit of the reservation start work time point is a special value (such as different modes of validity of different values like 0x66, 0X77, etc.), and 0x00 means off; and
[0058] The first byte includes Byte 6 and Byte 7. Among them, Byte 6 and Byte 7 contain the hour and minute in the time point of the first reservation and the representation of the hourly system of the time period corresponding to the reservation duration and the work duration. For example: when the special flag bit is 1, it means that the first byte will be calculated in the total weekly hour system of the time period, and when the hour flag bit is 0, it means that the first byte will be calculated in the 24-hour system of the time period.
[0059] Among them, the total weekly hour system: the reservation time is arranged in units of weeks for cyclic and single-work settings; the 24-hour system: the reservation time is arranged in units of days for cyclic and single-work time settings. According to requirements, one reservation information can be composed of one or several arrangements and combinations in units of days; the second byte 8 represents the working duration of the device within a unit time period. The information of Byte 6 and Byte 7 represents the hour and minute in the time point of the reservation and the representation of the hourly system of the time period corresponding to the reservation duration and the work duration, constituting the reserved start work time point.
[0060] The third byte 9 represents the byte of the reservation situation of the entire work cycle. The entire work cycle is divided into multiple unit time periods. The third byte 9 includes multiple bits corresponding to multiple unit time periods respectively, and the value of each bit is assigned to determine whether the unit time period corresponding to each bit is reserved as a working time period. For example, several bits in the third byte 9, such as: bit0-bit4 respectively represent within the interval of N days--(N + 1) days or within the interval of N weeks--(N + 1) weeks, a total of multiple interval work flag bits (N are 0, 1, 2, 3... respectively), and each bit represents the set non-working or working time zone in the corresponding time interval). In addition, there is one or more bits in the third byte 9 to represent the special flag bit of the overall reservation situation, indicating whether it is a no-reservation and single-reservation task or a cyclic reservation task.
[0061] This data packet can contain multiple reservation instructions. For example, byte11-byte15 represents the second reservation instruction, byte16-byte20 represents the third reservation instruction, byte21-byte25 represents the fourth reservation instruction... and so on for multiple reservation instructions. Different reservation instructions can be set simultaneously, that is, multiple reservation instructions can be set at one time and can be operated in parallel. The reserved time period will no longer be reserved repeatedly.
[0062] The following refers toFigure 7 , which shows a schematic structural diagram of a computer system 500 of an electronic device suitable for implementing the embodiments of the present application. Figure 7 The illustrated electronic device is merely an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.
[0063] As Figure 7 shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage section 508 into the random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0064] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as required. A removable medium 510, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as required so that a computer program read therefrom is installed into the storage section 508 as required.
[0065] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product that includes a computer program carried on a computer-readable storage medium, and the computer program includes program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 509, and / or installed from the removable medium 510. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the methods of the present application are performed. It should be noted that the computer-readable storage medium of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable storage medium other than the computer-readable storage medium, and the computer-readable storage medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0066] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0067] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks can occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0068] The modules described in the embodiments of this application can be implemented in software or in hardware.
[0069] As another aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium may be included in the electronic device described in the above embodiments; or it may exist separately without being assembled into the electronic device. The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by the electronic device, the electronic device is caused to: set a first byte representing the reserved start working time point, where the first byte includes data bits representing the reserved start working time point; set a second byte representing the single working duration, and the single working duration represents the working duration of the device within a unit time period; set a third byte representing the reservation situation of the entire working cycle, the entire working cycle is divided into multiple unit time periods, the third byte includes multiple bits corresponding to the multiple unit time periods respectively, and assign values to each bit to determine whether each unit time period corresponding to each bit is reserved as a working time period; combine the first byte, the second byte and the third byte to form a data command frame; and send the data command frame to the device.
[0070] The above description is only the preferred embodiment of the present application and the explanation of the applied technical principle. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present application.
Claims
1. A method for remotely reserving and controlling a device based on a data command frame, characterized in that It includes the following steps: S1. Construct a data command frame by using a method for constructing a data frame for remote control, specifically including: setting a first byte representing the reserved start working time point, and the first byte includes data bits representing the reserved start working time point; setting a second byte representing the single working duration, and the single working duration represents the working duration of the device within a unit time period; setting a third byte representing the reservation situation of the entire working cycle, the entire working cycle is divided into multiple unit time periods, the third byte includes multiple bits corresponding to the multiple unit time periods respectively, and assign values to each bit to determine whether the unit time period corresponding to each bit is reserved as a working time period; combine the first byte, the second byte and the third byte to construct the data command frame for remote control; S2. Send the data command frame to the device; and S3. After receiving the data command frame, the device parses the data command frame to periodically execute the working instructions in the data command frame.
2. The method for remotely reserving and controlling a device based on a data command frame according to claim 1, characterized in that Wherein, the data bits representing the reserved start working time point include data bits representing hours and data bits representing minutes, and the hours and the minutes constitute the reserved start working time point.
3. The method for remotely reserving and controlling a device based on a data command frame according to claim 1, characterized in that Wherein, the entire working cycle is one week, and the unit time period is one day in a week, and the single working duration represents several hours in the day.
4. The method for remotely reserving and controlling a device based on a data command frame according to claim 1, characterized in that Wherein, the entire working cycle is one week, and the unit time period is one hour, and the single working duration represents several minutes in one hour.
5. The method for remotely reserving and controlling a device based on a data command frame according to claim 1, characterized in that The step S1 includes repeatedly constructing multiple data command frames to implement multiple reserved working modes, and sending the multiple data command frames to the device in step S2.
6. A computer-readable storage medium, which, when executed by a computer, implements the method according to any one of claims 1-5.
7. A remote reservation control system for a device based on a data command frame, characterized in that The system includes: A data command frame construction unit: configured to construct a data command frame according to the following method: setting a first byte representing the reserved start working time point, and the first byte includes data bits representing the reserved start working time point; setting a second byte representing the single working duration, and the single working duration represents the working duration of the device within a unit time period; setting a third byte representing the reservation situation of the entire working cycle, the entire working cycle is divided into multiple unit time periods, the third byte includes multiple bits corresponding to the multiple unit time periods respectively, and assign values to each bit to determine whether the unit time period corresponding to each bit is reserved as a working time period; combine the first byte, the second byte and the third byte to construct the data command frame for remote control; A data frame sending unit: configured to send the data command frame to the device A data frame receiving unit: configured to, after the device receives the data command frame, parse the data command frame to periodically execute the working instructions in the data command frame.
Citation Information
Patent Citations
Seat reservation method and system
CN105184376A
Conference room reservation processing method and device, storage medium and equipment
CN109947514A