CN113949728B - Method for synchronizing different platform devices, first platform and second platform - Google Patents

Method for synchronizing different platform devices, first platform and second platform Download PDF

Info

Publication number
CN113949728B
CN113949728B CN202111163743.7A CN202111163743A CN113949728B CN 113949728 B CN113949728 B CN 113949728B CN 202111163743 A CN202111163743 A CN 202111163743A CN 113949728 B CN113949728 B CN 113949728B
Authority
CN
China
Prior art keywords
instruction
platform
type
equipment
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111163743.7A
Other languages
Chinese (zh)
Other versions
CN113949728A (en
Inventor
史泽坤
王永永
李绍斌
宋德超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111163743.7A priority Critical patent/CN113949728B/en
Publication of CN113949728A publication Critical patent/CN113949728A/en
Application granted granted Critical
Publication of CN113949728B publication Critical patent/CN113949728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application provides a method for synchronizing devices of different platforms, a first platform and a second platform. The method comprises the following steps: the first platform receives the control information and generates an instruction according to the control information; the first platform judges the type of the instruction and sends the instruction to corresponding equipment according to the type of the instruction, wherein the type at least comprises a first type instruction and a second type instruction, the first type instruction is used for controlling the first equipment corresponding to the first platform, the second type instruction is used for controlling the second equipment corresponding to the second platform, the instruction is sent to the first equipment when the type of the instruction is the first type instruction, and the instruction is sent to the second equipment when the type of the instruction is the second type instruction. In the method, the first platform judges the type of the instruction, the equipment of each platform has different control rules, the different rules correspond to different instruction types, and the first platform sends the instruction to the corresponding equipment, so that one platform can control different equipment.

Description

Method for synchronizing different platform devices, first platform and second platform
Technical Field
The present application relates to the field of device synchronization, and in particular, to a method, a first platform, a second platform, a computer readable storage medium, a processor, and a processing system for device synchronization of different platforms.
Background
With the development of communication technology, mobile communication is continuously evolving from an analog communication system of 1G to a digital communication system of 2G, to 3G, 4G and forthcoming 5G. It is the pursuit of better and faster that is to make the communication technology continuously advancing. Currently, the demands of emerging industries such as hot big data, cloud computing, artificial intelligence, VR/AR, 4K/8K video, unmanned, etc. for 5G are urgent, because only 5G can meet the demands of these applications for high-rate, high-capacity and low-latency communications. Therefore, the 5G era will come to a new course of technological waves. The 5G has become the key point of future development of the communication industry, and the acceleration of the technical development, standard formulation and commercial popularization of the 5G has become the strategic consensus of the international and domestic society. Because of the wide application prospect of 5G, the 5G strategy is high in competing for the windy and cloudy battle. Enterprises in China have invested huge resources, develop and layout in the 5G technology and network application fields, and hope to occupy the dominant position of the whole industrial chain.
The synchronization of the devices is accompanied with the mutual synchronization of the devices of different platforms, and at the present of the popularization of cloud, the cloud interconnection devices are synchronized in a plurality of different synchronization modes, and as different control rules exist for the devices of each platform, if any, the devices of one platform can directly issue commands, and if any, the devices of one platform need to be checked, so that the devices of the other platform cannot be controlled, and the devices cannot correctly execute the commands issued by the platform.
Thus, the prior art has a problem that the device of one platform cannot be controlled by the other platform.
The above information disclosed in the background section is only for enhancement of understanding of the background art from the technology described herein and, therefore, may contain some information that does not form the prior art that is already known in the country to a person of ordinary skill in the art.
Disclosure of Invention
The main objective of the present application is to provide a method, a first platform, a second platform, a computer readable storage medium, a processor and a processing system for synchronizing devices of different platforms, so as to solve the problem that the device of one platform cannot be controlled by the other platform in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a method for synchronizing different platform devices, including: the first platform receives control information and generates an instruction according to the control information; the first platform judges the type of the instruction and sends the instruction to corresponding equipment according to the type of the instruction, wherein the type at least comprises a first type instruction and a second type instruction, the first type instruction is used for controlling first equipment corresponding to the first platform, the second type instruction is used for controlling second equipment corresponding to the second platform, the instruction is sent to the first equipment when the type of the instruction is the first type instruction, and the instruction is sent to the second equipment when the type of the instruction is the second type instruction.
Optionally, in a case that the type of the instruction is a second type of instruction, sending the instruction to the second device includes: and sending the instruction to the second platform so that the second platform sends the instruction to the second device.
Optionally, sending the instruction to the second platform, so that the second platform sends the instruction to the second device, including: and sending the instruction to the second platform so that the second platform transcodes the instruction and sends the transcoded instruction to the second device.
Optionally, the second class of instructions includes a check bit, sending the instructions to the second platform, so that the second platform sends the instructions to the second device, including: and sending the instruction to the second platform, so that the second platform sequentially decodes, verifies and transcodes the instruction, and sends the transcoded instruction to the second device.
Optionally, after the instruction is sent to the corresponding device according to the type of the instruction, the method further includes: and receiving state information of the first device or the second device for executing the instruction, wherein the state information is information of a state of the first device or the second device after a preset time is required by the first device or the second device for executing the instruction.
Optionally, in the case that the instruction is the second type instruction, receiving state information of the first device or the second device that executes the instruction includes: and receiving the state information sent by the second platform, wherein the state information sent by the second platform is the received state information of the second equipment.
According to another aspect of the embodiment of the present invention, there is also provided a method for synchronizing different platform devices, including: and under the condition that the type of the instruction is a second type instruction, the second platform receives the instruction sent by the first platform and sends the instruction to a second device, wherein the type at least comprises a first type instruction and the second type instruction, the first type instruction is used for controlling the first device corresponding to the first platform, and the second type instruction is used for controlling the second device corresponding to the second platform.
Optionally, the second platform receives the instruction sent by the first platform and sends the instruction to the second device, including: the second platform receives the instruction and transcodes the instruction; and the second platform sends the transcoded instruction to the second device.
Optionally, the second class of instructions includes check bits, and the second platform receives the instructions sent by the first platform and sends the instructions to the second device, including: the second platform receives the instruction sent by the first platform, and sequentially decodes, verifies and transcodes the instruction; and the second platform sends the transcoded instruction to the second device.
Optionally, after sending the instruction to the second device, the method includes: and receiving state information of the second device executing the instruction, and sending the state information to the first platform, wherein the state information is information of a state of the second device after a preset time is required by the second device to execute the instruction after the second device receives the instruction.
According to still another aspect of the embodiment of the present invention, there is also provided a first platform, including: the generating unit is used for receiving control information by the first platform and generating an instruction according to the control information; the processing unit is configured to determine a type of the instruction by using the first platform, and send the instruction to a corresponding device according to the type of the instruction, where the type at least includes a first type instruction and a second type instruction, the first type instruction is used to control the first device corresponding to the first platform, the second type instruction is used to control the second device corresponding to the second platform, where the type of the instruction is the first type instruction, the instruction is sent to the first device, and where the type of the instruction is the second type instruction, the instruction is sent to the second device.
According to still another aspect of the embodiment of the present invention, there is also provided a second platform, including: the transmission unit is used for receiving the instruction sent by the first platform by the second platform and sending the instruction to the second device under the condition that the type of the instruction is a second type instruction, wherein the type at least comprises a first type instruction and the second type instruction, the first type instruction is used for controlling the first device corresponding to the first platform, and the second type instruction is used for controlling the second device corresponding to the second platform.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program performs any one of the methods.
According to yet another aspect of the embodiments of the present invention, there is also provided a processor for running a program, where the program executes any one of the methods.
According to still another aspect of an embodiment of the present invention, there is also provided a processing system including: a first platform for performing any of the methods and a second platform for performing any of the methods.
In the embodiment of the invention, the first platform firstly receives the control information, generates the instruction according to the control information, then judges whether the instruction is a first type instruction or a second type instruction, wherein the first type instruction is used for controlling first equipment corresponding to the first platform, the second type instruction is used for controlling second equipment corresponding to the second platform, and the instruction is sent to the corresponding equipment. According to the method, the first platform generates the instruction according to the operation information of the user, judges the type of the instruction, equipment of each platform has different control rules, the different rules correspond to the different types of the instruction, and the first platform sends the instruction to the corresponding equipment according to the type of the instruction, so that the user can operate the equipment of the different platforms on one platform, and the synchronization of the different equipment by the one platform is realized, and the problem that the equipment of the one platform cannot be controlled by other platforms in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 illustrates a flow diagram of a method of synchronization of different platform devices according to one embodiment of the present application;
FIG. 2 illustrates a structural schematic diagram of a second square platform according to one embodiment of the present application;
FIG. 3 illustrates a flow chart of a method of synchronization of different platform devices according to one embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described in the background, in order to solve the above problem, in an exemplary embodiment of the present application, a method, a first platform, a second platform, a computer readable storage medium, a processor, and a processing system for synchronizing devices of different platforms are provided.
According to an embodiment of the application, a method for synchronizing different platform devices is provided.
FIG. 1 is a flow chart of a method of synchronization of different platform devices according to an embodiment of the present application. As shown in fig. 1, the method is applied in a first platform, and comprises the following steps:
step S101, a first platform receives control information and generates an instruction according to the control information;
step S102, the first platform determines the type of the instruction, and sends the instruction to a corresponding device according to the type of the instruction, where the type at least includes a first type instruction and a second type instruction, the first type instruction is used to control a first device corresponding to the first platform, the second type instruction is used to control a second device corresponding to the second platform, the instruction is sent to the first device when the type of the instruction is the first type instruction, and the instruction is sent to the second device when the type of the instruction is the second type instruction.
In the method, the first platform firstly receives the control information, generates the instruction according to the control information, then judges whether the instruction is a first type instruction or a second type instruction, wherein the first type instruction is used for controlling first equipment corresponding to the first platform, the second type instruction is used for controlling second equipment corresponding to the second platform, and the instruction is sent to the corresponding equipment. According to the method, the first platform generates the instruction according to the operation information of the user, judges the type of the instruction, equipment of each platform has different control rules, the different rules correspond to the different types of the instruction, and the first platform sends the instruction to the corresponding equipment according to the type of the instruction, so that the user can operate the equipment of the different platforms on one platform, and the synchronization of the different equipment by the one platform is realized, and the problem that the equipment of the one platform cannot be controlled by other platforms in the prior art is solved.
In a specific embodiment of the present application, the first platform and the second platform are different servers, each server controls a corresponding device, each device has different control rules, and each server generates a corresponding control instruction according to the different control rules.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
In one embodiment of the present application, in a case where the type of the instruction is an instruction of a second type, sending the instruction to the second device includes: and sending the instruction to the second platform so that the second platform sends the instruction to the second device. In this embodiment, in the case that the instruction is the second type instruction, the first platform forwards the instruction to the second platform, and the second platform sends the instruction to the second device, so that the second device can more accurately identify the sent instruction of the second platform, and the user can more accurately control the device.
In yet another embodiment of the present application, the sending the instruction to the second platform, so that the second platform sends the instruction to the second device includes: and sending the instruction to the second platform so that the second platform transcodes the instruction and sends the transcoded instruction to the second device. In this embodiment, the instructions for controlling the second device have different format requirements, and the second platform needs to transcode the instructions to a format recognizable by the second device, so that the second device can execute the commands more accurately.
In a specific embodiment of the present application, an API (application programming interface) protocol may be used to convert the above-mentioned instruction into a format that can be recognized by the second device, and in practical applications, other methods may also be used to convert the above-mentioned instruction into a corresponding format.
In another embodiment of the present application, the second type of instruction includes a check bit, the first type of instruction does not include a check bit, and the sending the instruction to the second platform, so that the second platform sends the instruction to the second device includes: and sending the instruction to the second platform so that the second platform sequentially decodes, verifies and transcodes the instruction, and sends the transcoded instruction to the second device. In this embodiment, the second platform decodes the instruction, extracts the check bit, then checks the check bit in the instruction, transcodes the instruction under the condition that the check is successful, converts the instruction into a format which can be recognized by the second device, and avoids the user from operating the second device by mistake, so that the control of the second device is more accurate.
In a specific embodiment of the present application, the check bit includes an account number and a password, and when the second platform checks the account number and the password successfully, the second platform performs transcoding and sends the transcoded instruction to the second device. Of course, in practical applications, the check bits may be other information, and those skilled in the art may choose the check bits according to practical situations.
In yet another embodiment of the present application, after the instruction is sent to the corresponding device according to the type of the instruction, the method further includes: and receiving state information of the first device or the second device for executing the instruction, wherein the state information is information of a state of the first device or the second device after a predetermined time is required for the first device or the second device to execute the instruction since the instruction is received. In this embodiment, the first device or the second device returns the status information to the first platform after the predetermined time, and the user can determine whether the first device or the second device executes the instruction or not according to the returned information, or check the situation after the first device or the second device executes the instruction, so that the user can operate the device according to the status information of the device, so that the operation of the user is more convenient, and the control is more accurate.
In still another embodiment of the present application, in a case where the instruction is the second type of instruction, receiving status information of the first device or the second device that executes the instruction includes: and receiving the state information sent by the second platform, wherein the state information sent by the second platform is the received state information of the second device. In this embodiment, the second device returns the state information to the second platform, and the second platform transcodes the state information of the second device and transmits the transcoded state information to the first platform, so that the state information of the second platform can be more accurately returned to the first platform, and thus, the user can control the second device more accurately.
In an exemplary embodiment of the present application, there is also provided a method for synchronizing devices of different platforms, where the method is applied in a second platform, and the method includes: and under the condition that the type of the instruction is a second type instruction, the second platform receives the instruction sent by the first platform and sends the instruction to the second device, wherein the type at least comprises a first type instruction and the second type instruction, the first type instruction is used for controlling the first device corresponding to the first platform, and the second type instruction is used for controlling the second device corresponding to the second platform.
In the above method, when the instruction is a second type instruction, the second platform first receives the instruction sent by the first platform, the first type instruction is used for controlling a first device corresponding to the first platform, the second type instruction is used for controlling a second device corresponding to the second platform, and then the second platform sends the instruction to the second device. According to the method, the first platform generates the instruction according to the operation information of the user, judges the type of the instruction, equipment of each platform has different control rules, the different rules correspond to different types of the instruction, the first platform sends the instruction to the corresponding second platform according to the type of the instruction, and the second platform sends the instruction to the corresponding second equipment, so that the user can operate the equipment of the different platforms on one platform, synchronization of the different equipment by one platform is achieved, and the problem that the equipment of one platform cannot be controlled by other platforms in the prior art is solved.
In a specific embodiment of the present application, the first platform and the second platform are different servers, each server controls a corresponding device, each device has different control rules, and each server generates a corresponding control instruction according to the different control rules.
In one embodiment of the present application, the second platform receives the instruction sent by the first platform, and sends the instruction to the second device, including: the second platform receives the instruction and transcodes the instruction; and the second platform sends the transcoded instruction to the second device. In this embodiment, the instructions for controlling the second device have different format requirements, and the second platform needs to transcode the instructions to a format recognizable by the second device, so that the second device can execute the commands more accurately.
In a specific embodiment of the present application, an API (application programming interface) protocol may be used to convert the above-mentioned instruction into a format that can be recognized by the second device, and in practical applications, other methods may also be used to convert the above-mentioned instruction into a corresponding format.
In yet another embodiment of the present application, the second type of instruction includes a check bit, the first type of instruction does not include a check bit, and the second platform receives the instruction sent by the first platform and sends the instruction to the second device, including: the second platform receives the instruction sent by the first platform and sequentially decodes, verifies and transcodes the instruction; and the second platform sends the transcoded instruction to the second device. In this embodiment, the second platform decodes the instruction, extracts the check bit, then checks the check bit in the instruction, transcodes the instruction under the condition that the check is successful, converts the instruction into a format which can be recognized by the second device, and avoids the user from operating the second device by mistake, so that the control of the second device is more accurate.
In a specific embodiment of the present application, the check bit includes an account number and a password, and when the second platform checks the account number and the password successfully, the second platform performs transcoding and sends the transcoded instruction to the second device. Of course, in practical applications, the check bits may be other information, and those skilled in the art may choose the check bits according to practical situations.
In yet another embodiment of the present application, after the instruction is sent to the second device, the method includes: and receiving state information of the second device executing the instruction, and transmitting the state information to the first platform, wherein the state information is information of a state of the second device after a predetermined time is required for the second device to execute the instruction from the time of receiving the instruction. In this embodiment, the second device returns the state information to the second platform, and the second platform transcodes the state information of the second device and transmits the transcoded state information to the first platform, so that the state information of the second platform can be more accurately returned to the first platform, and thus, the user can control the second device more accurately.
The embodiment of the application also provides a first platform, and it should be noted that the first platform of the embodiment of the application may be used to execute the method for synchronizing devices of different platforms provided by the embodiment of the application. The following describes a first platform provided in an embodiment of the present application.
Fig. 2 is a schematic diagram of a first platform according to an embodiment of the present application. As shown in fig. 2, the first platform includes:
A generating unit 10, configured to receive control information from a first platform, and generate an instruction according to the control information;
the processing unit 20 is configured to determine a type of the instruction by using the first platform, and send the instruction to a corresponding device according to the type of the instruction, where the type at least includes a first type instruction and a second type instruction, the first type instruction is used to control the first device corresponding to the first platform, the second type instruction is used to control the second device corresponding to the second platform, the instruction is sent to the first device when the type of the instruction is the first type instruction, and the instruction is sent to the second device when the type of the instruction is the second type instruction.
The first platform comprises a generating unit and a processing unit, wherein the generating unit is used for receiving control information by the first platform and generating an instruction according to the control information; the processing unit is configured to determine a type of the instruction by using the first platform, and send the instruction to a corresponding device according to the type of the instruction, where the type at least includes a first type instruction and a second type instruction, the first type instruction is used to control the first device corresponding to the first platform, the second type instruction is used to control the second device corresponding to the second platform, where the type of the instruction is the first type instruction, the instruction is sent to the first device, and where the type of the instruction is the second type instruction, the instruction is sent to the second device. In the first platform, the first platform generates the instruction according to the operation information of the user, judges the type of the instruction, and the equipment of each platform has different control rules, wherein the different rules correspond to the types of the different instructions, and the first platform sends the instruction to the corresponding equipment according to the types of the instruction, so that the user can operate the equipment of the different platforms on one platform, and the synchronization of the different equipment by one platform is realized, and the problem that the equipment of one platform cannot be controlled by other platforms in the prior art is solved.
In a specific embodiment of the present application, the first platform and the second platform are different servers, each server controls a corresponding device, each device has different control rules, and each server generates a corresponding control instruction according to the different control rules.
In an embodiment of the present application, the processing unit further includes a processing module, where the processing module is configured to send the instruction to the second platform, so that the second platform sends the instruction to the second device. In this embodiment, in the case that the instruction is the second type instruction, the first platform forwards the instruction to the second platform, and the second platform sends the instruction to the second device, so that the second device can more accurately identify the sent instruction of the second platform, and the user can more accurately control the device.
In yet another embodiment of the present application, the processing module further includes a first processing sub-module, where the first processing sub-module is configured to send the instruction to the second platform, so that the second platform transcodes the instruction, and send the transcoded instruction to the second device. In this embodiment, the instructions for controlling the second device have different format requirements, and the second platform needs to transcode the instructions to a format recognizable by the second device, so that the second device can execute the commands more accurately.
In a specific embodiment of the present application, an API (application programming interface) protocol may be used to convert the above-mentioned instruction into a format that can be recognized by the second device, and in practical applications, other methods may also be used to convert the above-mentioned instruction into a corresponding format.
In another embodiment of the present application, the second type of instruction includes a check bit, the first type of instruction does not include a check bit, the processing module includes a second processing sub-module, and the second processing sub-module is further configured to send the instruction to the second platform, so that the second platform decodes, checks and transcodes the instruction in sequence, and sends the transcoded instruction to the second device. In this embodiment, the second platform decodes the instruction, extracts the check bit, then checks the check bit in the instruction, transcodes the instruction under the condition that the check is successful, converts the instruction into a format which can be recognized by the second device, and avoids the user from operating the second device by mistake, so that the control of the second device is more accurate.
In a specific embodiment of the present application, the check bit includes an account number and a password, and when the second platform checks the account number and the password successfully, the second platform performs transcoding and sends the transcoded instruction to the second device. Of course, in practical applications, the check bits may be other information, and those skilled in the art may choose the check bits according to practical situations.
In still another embodiment of the present application, after the instruction is sent to the corresponding device according to the type of the instruction, the first platform further includes a receiving unit, where the receiving unit is configured to receive state information of the first device or the second device that executes the instruction, where the state information is information of a state of the first device or the second device after a predetermined time from receiving the instruction, where the predetermined time is a time required for the first device or the second device to execute the instruction. In this embodiment, the first device or the second device returns the status information to the first platform after the predetermined time, and the user can determine whether the first device or the second device executes the instruction or not according to the returned information, or check the situation after the first device or the second device executes the instruction, so that the user can operate the device according to the status information of the device, so that the operation of the user is more convenient, and the control is more accurate.
In still another embodiment of the present application, in a case where the instruction is the second type instruction, the receiving unit includes a receiving module, where the receiving module is configured to receive the status information sent by the second platform, and the status information sent by the second platform is the received status information of the second device. In this embodiment, the second device returns the state information to the second platform, and the second platform transcodes the state information of the second device and transmits the transcoded state information to the first platform, so that the state information of the second platform can be more accurately returned to the first platform, and thus, the user can control the second device more accurately.
In an exemplary embodiment of the present application, a second platform is further provided, where the second platform includes a transmission unit, where the transmission unit is configured to receive, when an instruction is of a second type, the instruction sent by the first platform and send the instruction to a second device, where the type includes at least a first type instruction and the second type instruction, where the first type instruction is used to control a first device corresponding to the first platform, and the second type instruction is used to control the second device corresponding to the second platform.
In a specific embodiment of the present application, the first platform and the second platform are different servers, each server controls a corresponding device, each device has different control rules, and each server generates a corresponding control instruction according to the different control rules.
The second platform comprises a transmission unit, and the transmission unit is used for receiving the instruction sent by the first platform and sending the instruction to the second device under the condition that the type of the instruction is a second type instruction, wherein the type at least comprises a first type instruction and the second type instruction, the first type instruction is used for controlling a first device corresponding to the first platform, and the second type instruction is used for controlling the second device corresponding to the second platform. In the second platform, the first platform generates the instruction according to the operation information of the user and judges the type of the instruction, the equipment of each platform has different control rules, the different rules correspond to the types of the different instructions, the first platform sends the instruction to the corresponding second platform according to the types of the instruction, and the second platform sends the instruction to the corresponding second equipment, so that the user can operate the equipment of the different platforms on one platform, and the synchronization of the different equipment by one platform is realized, and the problem that the equipment of one platform cannot be controlled by other platforms in the prior art is solved.
In one embodiment of the present application, the transmission unit includes a first transmission module and a sending module, where the transcoding module is configured to receive the instruction and transcode the instruction by using the second platform; the sending module is used for sending the transcoded instruction to the second device by the second platform. In this embodiment, the instructions for controlling the second device have different format requirements, and the second platform needs to transcode the instructions to a format recognizable by the second device, so that the second device can execute the commands more accurately.
In a specific embodiment of the present application, an API (application programming interface) protocol may be used to convert the above-mentioned instruction into a format that can be recognized by the second device, and in practical applications, other methods may also be used to convert the above-mentioned instruction into a corresponding format.
In yet another embodiment of the present application, the second type of instruction includes a check bit, the first type of instruction does not include a check bit, and the transmission unit includes a second transmission module, where the second transmission module is configured to receive the instruction sent by the first platform by using the second platform, and decode, check, and transcode the instruction in sequence; the sending module is configured to send the transcoded instruction to the second device by using the second platform. In this embodiment, the second platform decodes the instruction, extracts the check bit, then checks the check bit in the instruction, transcodes the instruction under the condition that the check is successful, converts the instruction into a format which can be recognized by the second device, and avoids the user from operating the second device by mistake, so that the control of the second device is more accurate.
In a specific embodiment of the present application, the check bit includes an account number and a password, and when the second platform checks the account number and the password successfully, the second platform performs transcoding and sends the transcoded instruction to the second device. Of course, in practical applications, the check bits may be other information, and those skilled in the art may choose the check bits according to practical situations.
In still another embodiment of the present application, the second platform further includes a transmitting unit, where the transmitting unit is configured to receive status information of the second device that executes the instruction, and transmit the status information to the first platform, where the status information is information of a status of the second device after a predetermined time from receiving the instruction, where the predetermined time is a time required for the second device to execute the instruction. In this embodiment, the second device returns the state information to the second platform, and the second platform transcodes the state information of the second device and transmits the transcoded state information to the first platform, so that the state information of the second platform can be more accurately returned to the first platform, and thus, the user can control the second device more accurately.
The first platform includes a processor and a memory, the generating unit, the processing unit, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The second platform comprises a processor and a memory, the transmission unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem that the equipment of one platform cannot be controlled by other platforms in the prior art is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a storage medium, and a program is stored on the storage medium, and the program is executed by a processor to realize the method for synchronizing different platform devices.
The embodiment of the invention provides a processor, which is used for running a program, wherein the method for synchronizing different platform devices is executed when the program runs.
The embodiment of the invention also provides a processing system, which comprises a first platform and a second platform, wherein the first platform is used for executing any one of the methods, and the second platform is used for executing any one of the methods.
The processing system comprises a first platform and a second platform, wherein the first platform is used for executing any one of the above methods for synchronizing different platform devices, the second platform is used for executing any one of the above methods for synchronizing different platform devices, in the above method for synchronizing different platform devices, the first platform generates instructions according to operation information of a user and judges types of the instructions, devices of each platform have different control rules, the different rules correspond to the types of the different instructions, and the first platform sends the instructions to the corresponding devices according to the types of the instructions, so that a user can operate the devices of the different platforms on one platform, and therefore the synchronization of the different devices by one platform is achieved, and the problem that the devices of one platform cannot be controlled by other platforms in the prior art is solved.
In a specific embodiment of the present application, the first platform and the second platform are different servers, each server controls a corresponding device, each device has different control rules, and each server generates a corresponding control instruction according to the different control rules.
In order to make the technical solutions of the present application more clearly and clearly understood by those skilled in the art, the following description will be made with reference to specific embodiments:
examples
The flow chart of the method for synchronizing different platform devices is shown in fig. 3, and the method comprises the following steps:
the user inputs control information, the first platform receives the control information and generates an instruction for the control information. The first platform judges whether the instruction is a first type instruction or a second type instruction, wherein the first type instruction is used for controlling the first device, the first type instruction does not comprise a check bit, the first device can be controlled without checking the instruction sent to the first device by the first platform, the second type instruction is used for controlling the second device, the second type instruction comprises the check bit, the second platform sends the instruction to the second device, and the second device can execute after the check is successful. Under the condition that the instruction is of a first type, the first platform directly sends the instruction to the first device, and after the first device executes the instruction, the first device returns the executed state information to the first platform;
and under the condition that the instruction is the second type of instruction, the first platform sends the instruction to the second platform, the second platform decodes the instruction, extracts check bits in the instruction, then checks the check bits, transcodes the instruction under the condition that the check is successful, converts the instruction into a format which can be identified by second equipment, then sends the transcoded instruction to the second equipment, after the second equipment executes the instruction, returns executed state information to the second platform, and the second platform transcodes the returned state information and sends the transcoded state information to the first platform, so that synchronization of different platform equipment is realized.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) In the method for synchronizing the devices of different platforms, a first platform firstly receives control information, generates an instruction according to the control information, then judges whether the instruction is a first type instruction or a second type instruction, wherein the first type instruction is used for controlling a first device corresponding to the first platform, the second type instruction is used for controlling a second device corresponding to the second platform, and the instruction is sent to the corresponding device. According to the method, the first platform generates the instruction according to the operation information of the user, judges the type of the instruction, equipment of each platform has different control rules, the different rules correspond to the different types of the instruction, and the first platform sends the instruction to the corresponding equipment according to the type of the instruction, so that the user can operate the equipment of the different platforms on one platform, and the synchronization of the different equipment by the one platform is realized, and the problem that the equipment of the one platform cannot be controlled by other platforms in the prior art is solved.
2) In the method for synchronizing different platform devices, under the condition that the instruction is a second type instruction, the second platform firstly receives the instruction sent by the first platform, the first type instruction is used for controlling the first device corresponding to the first platform, the second type instruction is used for controlling the second device corresponding to the second platform, and then the second platform sends the instruction to the second device. According to the method, the first platform generates the instruction according to the operation information of the user, judges the type of the instruction, equipment of each platform has different control rules, the different rules correspond to different types of the instruction, the first platform sends the instruction to the corresponding second platform according to the type of the instruction, and the second platform sends the instruction to the corresponding second equipment, so that the user can operate the equipment of the different platforms on one platform, synchronization of the different equipment by one platform is achieved, and the problem that the equipment of one platform cannot be controlled by other platforms in the prior art is solved.
3) The first platform comprises a generating unit and a processing unit, wherein the generating unit is used for receiving control information by the first platform and generating an instruction according to the control information; the processing unit is configured to determine a type of the instruction by using the first platform, and send the instruction to a corresponding device according to the type of the instruction, where the type at least includes a first type instruction and a second type instruction, the first type instruction is used to control the first device corresponding to the first platform, the second type instruction is used to control the second device corresponding to the second platform, where the type of the instruction is the first type instruction, the instruction is sent to the first device, and where the type of the instruction is the second type instruction, the instruction is sent to the second device. In the first platform, the first platform generates the instruction according to the operation information of the user, judges the type of the instruction, and the equipment of each platform has different control rules, wherein the different rules correspond to the types of the different instructions, and the first platform sends the instruction to the corresponding equipment according to the types of the instruction, so that the user can operate the equipment of the different platforms on one platform, and the synchronization of the different equipment by one platform is realized, and the problem that the equipment of one platform cannot be controlled by other platforms in the prior art is solved.
4) The second platform comprises a transmission unit, wherein the transmission unit is used for receiving the instruction sent by the first platform and sending the instruction to the second device under the condition that the type of the instruction is a second type instruction, the type at least comprises a first type instruction and the second type instruction, the first type instruction is used for controlling a first device corresponding to the first platform, and the second type instruction is used for controlling the second device corresponding to the second platform. In the second platform, the first platform generates the instruction according to the operation information of the user and judges the type of the instruction, the equipment of each platform has different control rules, the different rules correspond to the types of the different instructions, the first platform sends the instruction to the corresponding second platform according to the types of the instruction, and the second platform sends the instruction to the corresponding second equipment, so that the user can operate the equipment of the different platforms on one platform, and the synchronization of the different equipment by one platform is realized, and the problem that the equipment of one platform cannot be controlled by other platforms in the prior art is solved.
5) In the method for synchronizing the devices across different platforms, the first platform generates the instructions according to the operation information of the user and judges the types of the instructions, the devices of each platform have different control rules, the different rules correspond to the types of the different instructions, and the first platform sends the instructions to the corresponding devices according to the types of the instructions, so that the user can operate the devices of the different platforms on one platform, and the synchronization of the different devices by one platform is realized, and the problem that the devices of one platform cannot be controlled by other platforms in the prior art is solved.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for synchronizing different platform devices, comprising:
the method comprises the steps that a first platform receives control information, and an instruction is generated according to the control information, wherein the control information is operation information of a user;
the first platform judges the type of the instruction and sends the instruction to corresponding equipment according to the type of the instruction, wherein the type at least comprises a first type instruction and a second type instruction, the first type instruction is used for controlling first equipment corresponding to the first platform, the second type instruction is used for controlling second equipment corresponding to the second platform, the instruction is sent to the first equipment when the type of the instruction is the first type instruction, the instruction is sent to the second equipment when the type of the instruction is the second type instruction,
In the case that the type of the instruction is a second type of instruction, sending the instruction to the second device, including:
sending the instruction to the second platform, such that the second platform sends the instruction to the second device,
the second class of instructions includes check bits that send the instructions to the second platform to cause the second platform to send the instructions to the second device, comprising:
and sending the instruction to the second platform, so that the second platform sequentially decodes, verifies and transcodes the instruction, and sends the transcoded instruction to the second device.
2. The method of claim 1, wherein after sending the instruction to the corresponding device according to the type of the instruction, the method further comprises:
and receiving state information of the first device or the second device for executing the instruction, wherein the state information is information of a state of the first device or the second device after a preset time is required by the first device or the second device for executing the instruction.
3. The method of claim 2, wherein receiving status information of the first device or the second device executing the instruction if the instruction is of the second type, comprises:
and receiving the state information sent by the second platform, wherein the state information sent by the second platform is the received state information of the second equipment.
4. A method for synchronizing different platform devices, comprising:
under the condition that the type of the instruction is a second type instruction, a second platform receives the instruction sent by a first platform and sends the instruction to a second device, wherein the type at least comprises a first type instruction and a second type instruction, the type of the instruction is judged by the first platform, the first type instruction is used for controlling a first device corresponding to the first platform, the second type instruction is used for controlling a second device corresponding to the second platform, the instruction is generated according to control information received by the first platform, the control information is operation information of a user, the second type instruction comprises a check bit, the second platform receives the instruction sent by the first platform and sends the instruction to the second device, and the method comprises the following steps:
The second platform receives the instruction sent by the first platform, and sequentially decodes, verifies and transcodes the instruction;
and the second platform sends the transcoded instruction to the second device.
5. The method of claim 4, wherein after sending the instruction to the second device, the method comprises:
and receiving state information of the second device executing the instruction, and sending the state information to the first platform, wherein the state information is information of a state of the second device after a preset time is required by the second device to execute the instruction after the second device receives the instruction.
6. A first platform, comprising:
the generating unit is used for receiving control information by the first platform and generating an instruction according to the control information;
the processing unit is used for judging the type of the instruction by the first platform and sending the instruction to corresponding equipment according to the type of the instruction, wherein the type at least comprises a first type instruction and a second type instruction, the first type instruction is used for controlling the first equipment corresponding to the first platform, the second type instruction is used for controlling the second equipment corresponding to the second platform, the instruction is sent to the first equipment when the type of the instruction is the first type instruction, the instruction is sent to the second equipment when the type of the instruction is the second type instruction,
The processing unit includes a processing module for sending the instruction to the second platform, to cause the second platform to send the instruction to the second device,
the second class of instructions comprise check bits, the processing module comprises a second processing sub-module, and the second processing sub-module is used for sending the instructions to the second platform, so that the second platform decodes, checks and transcodes the instructions in sequence, and sends the transcoded instructions to the second device.
7. A second platform, comprising:
a transmission unit, configured to receive, by a second platform, an instruction sent by a first platform and send the instruction to a second device, where the type of the instruction includes at least a first type instruction and a second type instruction, the type of the instruction is determined by the first platform, the first type instruction is used to control a first device corresponding to the first platform, the second type instruction is used to control the second device corresponding to the second platform, the instruction is generated according to control information received by the first platform, the control information is operation information of a user,
The second class of instructions includes check bits, and the transmission unit includes:
the second transmission module is used for receiving the instruction sent by the first platform by the second platform and sequentially decoding, checking and transcoding the instruction;
and the sending module is used for sending the transcoded instruction to the second equipment by the second platform.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program performs the method of any one of claims 1 to 5.
9. A processor for running a program, wherein the program when run performs the method of any one of claims 1 to 5.
10. A processing system comprising a first platform for performing the method of any one of claims 1 to 3 and a second platform for performing the method of claim 4 or 5.
CN202111163743.7A 2021-09-30 2021-09-30 Method for synchronizing different platform devices, first platform and second platform Active CN113949728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111163743.7A CN113949728B (en) 2021-09-30 2021-09-30 Method for synchronizing different platform devices, first platform and second platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111163743.7A CN113949728B (en) 2021-09-30 2021-09-30 Method for synchronizing different platform devices, first platform and second platform

Publications (2)

Publication Number Publication Date
CN113949728A CN113949728A (en) 2022-01-18
CN113949728B true CN113949728B (en) 2023-04-21

Family

ID=79329774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111163743.7A Active CN113949728B (en) 2021-09-30 2021-09-30 Method for synchronizing different platform devices, first platform and second platform

Country Status (1)

Country Link
CN (1) CN113949728B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115827283B (en) * 2023-02-09 2023-05-26 中国证券登记结算有限责任公司 Cross-platform information transmission method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493851A (en) * 2018-11-20 2019-03-19 新视家科技(北京)有限公司 A kind of sound control method, relevant apparatus and storage medium
CN111338220A (en) * 2020-02-19 2020-06-26 杭州涂鸦信息技术有限公司 Linkage control method and system between multiple heterogeneous devices

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616860B (en) * 2013-11-08 2017-02-15 海信集团有限公司 Method and device for remote control of household appliances
CN110535824A (en) * 2019-07-08 2019-12-03 湖南优创智能科技有限公司 Smart home interlock method, system, terminal device and storage medium
CN111478832B (en) * 2020-03-26 2022-04-19 深圳市汇合云网络科技有限责任公司 Control method, linkage method, auxiliary method and device of intelligent terminal equipment
CN112492023B (en) * 2020-11-25 2023-04-07 青岛海尔科技有限公司 Device control method, device, storage medium, and electronic apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493851A (en) * 2018-11-20 2019-03-19 新视家科技(北京)有限公司 A kind of sound control method, relevant apparatus and storage medium
CN111338220A (en) * 2020-02-19 2020-06-26 杭州涂鸦信息技术有限公司 Linkage control method and system between multiple heterogeneous devices

Also Published As

Publication number Publication date
CN113949728A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN110417783B (en) Data transmission method and device based on Internet of things, storage medium and terminal
CN111464627B (en) Data processing method, edge server, center server and processing system
US10693816B2 (en) Communication methods and systems, electronic devices, and computer clusters
CN110855680B (en) Internet of things equipment docking method and device
EP2899956A1 (en) Terminal pairing method, terminal and system
CN112954717B (en) Household appliance network distribution method and device based on H5 page
CN113949728B (en) Method for synchronizing different platform devices, first platform and second platform
EP3131303A1 (en) Method and device for transmitting data in intelligent terminal to television terminal
CN106534190A (en) Data capture transmission method and system of intranet and extranet based on two-dimensional bar code
CN104899499A (en) Internet image search based Web verification code generation method
CN105760134B (en) A kind of data processing method and electronic equipment
US20170279738A1 (en) Method, apparatus, and system for transmitting data
CN115767092A (en) Image transmission method, cloud desktop, image transmission system, image transmission equipment and product
CN113965381A (en) Method, device, processor and computer readable storage medium for realizing security encryption function of monitoring video
CN104717175A (en) Virtual desktop processing method and system
CN103024545A (en) Starting method of operating system of set-top box, set-top box and server
CN112104871B (en) Data encoding method and device and computer readable storage medium
CN108595160A (en) JS calls the method for primary object, storage medium
CN108900602B (en) Virtual link establishing method and related device
EP3637734B1 (en) Video data display method and device
CN106685600A (en) Method for messaging among work stations within local area network
CN114371982A (en) Simulation test method, device, equipment and readable storage medium
CN104010026A (en) Method, device and system for controlling household appliance
US20170248916A1 (en) Method and system for image processing and data transmission in network-based multi-camera environment
US9066071B2 (en) Method and apparatus for providing screen data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant