CN113949728A - 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
CN113949728A
CN113949728A CN202111163743.7A CN202111163743A CN113949728A CN 113949728 A CN113949728 A CN 113949728A CN 202111163743 A CN202111163743 A CN 202111163743A CN 113949728 A CN113949728 A CN 113949728A
Authority
CN
China
Prior art keywords
instruction
platform
type
equipment
sending
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.)
Granted
Application number
CN202111163743.7A
Other languages
Chinese (zh)
Other versions
CN113949728B (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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method for synchronizing different platform devices, 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 of instruction and a second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, the second type of instruction is used for controlling the second equipment corresponding to the second platform, the instruction is sent to the first equipment under the condition that the type of the instruction is the first type of instruction, and the instruction is sent to the second equipment under the condition that the type of the instruction is the second type of instruction. In the method, a first platform judges the type of an instruction, 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 controls 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 for synchronizing devices of different platforms, a first platform, a second platform, a computer-readable storage medium, a processor, and a processing system.
Background
With the development of communication technology, mobile communication is continuously evolving from 1G analog communication systems to 2G digital communication systems, to 3G, 4G and, in the future, 5G. It is the pursuit of better and faster that has made communication technology continually advance. At present, the requirements of hot big data, cloud computing, artificial intelligence, VR/AR, 4K/8K video, unmanned and other emerging industries on 5G are very urgent, and only 5G can meet the requirements of the applications on high-speed, high-capacity and low-delay communication. Therefore, the 5G era will meet a new turn of science and technology surge. 5G has become the key point of future development of the communication industry, and the technical research and development, standard establishment and commercial promotion of accelerating 5G have become strategic consensus of the international and domestic society. Due to wide application prospect of 5G, the 5G strategy controls the high-point competition and is windy and cloudy. Enterprises in China have invested huge capital, development and layout are developed in the field of 5G technology and network application, and the enterprises hope to occupy the leading position of the whole industrial chain.
The synchronization of the devices is accompanied with the synchronization of the devices of different platforms, and today with the popularization of cloud, the synchronization of cloud interconnection devices has a plurality of different synchronization modes, and because the devices of each platform have different control rules, for example, some devices can directly issue commands, and some devices need to be checked, the devices of one platform cannot be controlled by other platforms, and the devices cannot correctly execute the commands issued by the platforms.
Therefore, the device of one platform can not be controlled by other platforms in the prior art.
The above information disclosed in this background section is only for enhancement of understanding of the background of the technology described herein and, therefore, certain information may be included in the background that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
Disclosure of Invention
The present application mainly aims to provide a method for synchronizing devices of different platforms, a first platform, a second platform, a computer readable storage medium, a processor and a processing system, so as to solve the problem that a device of one platform cannot be controlled by other platforms in the prior art.
According to an aspect of the embodiments 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 of instruction and a second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, the second type of instruction is used for controlling the second equipment corresponding to the second platform, the instruction is sent to the first equipment under the condition that the type of the instruction is the first type of instruction, and the instruction is sent to the second equipment under the condition that the type of the instruction is the second type of 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: sending the instruction to the second platform to cause the second platform to send the instruction to the second device.
Optionally, sending the instruction to the second platform to cause the second platform to send 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 equipment.
Optionally, the second type of instruction includes a check bit, and sending the instruction to the second platform to cause the second platform to send the instruction to the second device includes: and sending the instruction to the second platform so that the second platform decodes, checks and transcodes the instruction in sequence, and sending the transcoded instruction to the second equipment.
Optionally, after sending the instruction to the corresponding device according to the type of the instruction, the method further includes: receiving state information of the first device or the second device executing the instruction, wherein the state information is state information of the first device or the second device after a preset time since the instruction is received, and the preset time is time required by the first device or the second device to execute the instruction.
Optionally, in a case that the instruction is the second type of instruction, receiving state information of the first device or the second device executing 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.
According to another aspect of the embodiments 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 second equipment, wherein the type at least comprises the first type instruction and the second type instruction, the first type instruction is used for controlling the first equipment corresponding to the first platform, and the second type instruction is used for controlling the second equipment corresponding to the second platform.
Optionally, the receiving, by the second platform, the instruction sent by the first platform, and sending the instruction to the second device, includes: the second platform receives the instruction and transcodes the instruction; and the second platform sends the transcoded instruction to the second equipment.
Optionally, the second type of instruction includes 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 decodes, checks and transcodes the instruction in sequence; and the second platform sends the transcoded instruction to the second equipment.
Optionally, after sending the instruction to the second device, the method includes: and receiving state information of the second equipment for executing the instruction, and sending the state information to the first platform, wherein the state information is state information of the second equipment after a preset time since the instruction is received, and the preset time is time required for the second equipment to execute the instruction.
According to still another aspect of the embodiments of the present invention, there is also provided a first platform, including: the generating unit is used for receiving the 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 of instruction and a second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, the second type of instruction is used for controlling the second equipment corresponding to the second platform, the instruction is sent to the first equipment under the condition that the type of the instruction is the first type of instruction, and the instruction is sent to the second equipment under the condition that the type of the instruction is the second type of instruction.
According to still another aspect of the embodiments 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 and sending the instruction to second equipment by the second platform under the condition that the type of the instruction is a second type of instruction, wherein the type at least comprises a first type of instruction and a second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, and the second type of instruction is used for controlling the second equipment corresponding to the second platform.
According to another aspect of 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 executing a program, wherein the program executes to perform any one of the methods.
According to still another aspect of the embodiments 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 an instruction according to the control information, and 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, and the second type instruction is used for controlling second equipment corresponding to the second platform and sending the instruction to the corresponding equipment. According to the method, a first platform generates an instruction according to operation information of a user and judges the type of the instruction, equipment of each platform has different control rules, the different rules correspond to different types of the instruction, and the first platform sends the instruction to corresponding equipment according to the type of the instruction, so that the user can operate the equipment of different platforms on one platform, the different equipment can be synchronized by one platform, and the problem that the equipment of one platform cannot be controlled by other platforms in the prior art is solved.
Drawings
The accompanying drawings, which 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 are not intended to limit the application. In the drawings:
FIG. 1 shows a flow diagram of a method of different platform device synchronization according to an embodiment of the present application;
FIG. 2 illustrates a schematic structural diagram of a second party platform according to an embodiment of the present application;
FIG. 3 shows a flow chart of a method of different platform device synchronization according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. 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 mentioned in the background, in order to solve the above problem, in the prior art, devices of one platform cannot be controlled by other platforms, in an exemplary embodiment of the present application, a method for synchronizing devices of different platforms, a first platform, a second platform, a computer readable storage medium, a processor and a processing system 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 for synchronization of different platform devices according to an embodiment of the present application. As shown in fig. 1, the method is applied to a first platform, and the method includes 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 a type of the instruction, and sends the instruction to a corresponding device according to the type of the instruction, where the type includes at least a first type of instruction and a second type of instruction, the first type of instruction is used to control the first device corresponding to the first platform, the second type of 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 of instruction, and the instruction is sent to the second device when the type of the instruction is the second type of instruction.
In the method, the first platform firstly receives the control information, generates an instruction according to the control information, and 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, and the second type instruction is used for controlling second equipment corresponding to the second platform, and sending the instruction to the corresponding equipment. According to the method, a first platform generates an instruction according to operation information of a user and judges the type of the instruction, equipment of each platform has different control rules, the different rules correspond to different types of the instruction, and the first platform sends the instruction to corresponding equipment according to the type of the instruction, so that the user can operate the equipment of different platforms on one platform, the different equipment can be synchronized by one platform, 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 a different control rule, and each server generates a corresponding control instruction according to the different control rule.
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 different than presented herein.
In an embodiment of the application, when 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 equipment. In this embodiment, when the instruction is a second type of 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 recognize the instruction sent by the second platform, and thus, the user can more accurately control the device.
In 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 equipment. In this embodiment, the instructions for controlling the second device have different format requirements, and the second platform needs to transcode the instructions, converting the instructions into a format that can be recognized 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 instruction into a format that can be recognized by the second device, and in practical applications, the instruction may also be converted into a corresponding format by other methods.
In another embodiment of the application, the second type of instruction includes a check bit, the first type of instruction does not include a check bit, and the sending of the instruction to the second platform is performed to enable the second platform to send the instruction to the second device includes: and sending the instruction to the second platform so that the second platform decodes, checks and transcodes the instruction in sequence, and sending the transcoded instruction to the second equipment. In the embodiment, the second platform decodes the instruction, extracts the check bits, then checks the check bits 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, avoids the misoperation of the second device by a user, and further enables the control of the second device to be more accurate.
In a specific embodiment of the application, the check digit includes an account and a password, and when the account and the password are successfully checked by the second platform, the second platform transcodes the password and sends the transcoded instruction to the second device. Of course, in practical applications, the check bits may also be other information, and those skilled in the art may select the check bits according to practical situations.
In another embodiment of the present application, after sending the instruction to a 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 executing the instruction, wherein the state information is information of a state of the first device or the second device after a predetermined time since the instruction is received, and 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 state information to the first platform after the predetermined time, and the user may determine, according to the returned information, that the first device or the second device has no execution instruction, or check a situation after the first device or the second device executes the instruction, so that the user may operate the device according to the state information of the device, which makes the user operation more convenient and the control more accurate.
In another embodiment of the present application, when the instruction is the second type of instruction, receiving status information of the first device or the second device executing the instruction includes: and receiving the status information transmitted by the second platform, wherein the status information transmitted 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 sends the transcoded state information to the first platform, so that the state information of the second platform can be returned to the first platform more accurately, and thus, a user can control the second device more accurately.
In an exemplary embodiment of the present application, there is further provided a method for synchronizing devices of different platforms, where the method is applied to a second platform, and the method includes: and when 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 second equipment, 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 equipment corresponding to the first platform, and the second type instruction is used for controlling the second equipment 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, where 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, and then the second platform sends the instruction to the second device. According to the method, a first platform generates an instruction according to operation information of a user and 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 a corresponding second platform according to the type of the instruction, and the second platform sends the instruction to corresponding second equipment, so that the user can operate the equipment of different platforms on one platform, the synchronization of 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 a different control rule, and each server generates a corresponding control instruction according to the different control rule.
In an embodiment of the application, the receiving, by the second platform, the instruction sent by the first platform, and sending the instruction to the second device includes: the second platform receives the instruction and transcodes the instruction; and the second platform sends the transcoded instruction to the second equipment. In this embodiment, the instructions for controlling the second device have different format requirements, and the second platform needs to transcode the instructions, converting the instructions into a format that can be recognized 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 instruction into a format that can be recognized by the second device, and in practical applications, the instruction may also be converted into a corresponding format by other methods.
In another embodiment of the 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 decodes, checks and transcodes the instruction in sequence; and the second platform sends the transcoded instruction to the second equipment. In the embodiment, the second platform decodes the instruction, extracts the check bits, then checks the check bits 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, avoids the misoperation of the second device by a user, and further enables the control of the second device to be more accurate.
In a specific embodiment of the application, the check digit includes an account and a password, and when the account and the password are successfully checked by the second platform, the second platform transcodes the password and sends the transcoded instruction to the second device. Of course, in practical applications, the check bits may also be other information, and those skilled in the art may select the check bits according to practical situations.
In another embodiment of the present application, 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 the state of the second device after a predetermined time since the instruction is received, and the predetermined time is the time required by 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 sends 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, a user can more accurately control the second device.
The embodiment of the present application further provides a first platform, and it should be noted that the first platform in the embodiment of the present application may be used to execute the method for synchronizing devices of different platforms in the embodiment of the present application. The first platform provided by the embodiment of the present application is described below.
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 and generate an instruction according to the control information by a first platform;
the processing unit 20 is configured to determine a type of the instruction by 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 of instruction and a second type of instruction, the first type of instruction is used to control the first device corresponding to the first platform, the second type of instruction is used to control the second device corresponding to the second platform, and if the type of the instruction is the first type of instruction, the instruction is sent to the first device, and if the type of the instruction is the second type of instruction, the instruction is sent to the second device.
The first platform comprises a generating unit and a processing unit, wherein the generating unit is used for receiving control information 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 of instruction and a second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, the second type of instruction is used for controlling the second equipment corresponding to the second platform, the instruction is sent to the first equipment under the condition that the type of the instruction is the first type of instruction, and the instruction is sent to the second equipment under the condition that the type of the instruction is the second type of instruction. In the first platform, the first platform generates an instruction according to operation information of a user and judges the type of the instruction, equipment of each platform has different control rules, the different rules correspond to different types of the instruction, and the first platform sends the instruction to corresponding equipment according to the type of the instruction, so that the user can operate the equipment of different platforms on one platform, and therefore the platform synchronizes different equipment, 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 a different control rule, and each server generates a corresponding control instruction according to the different control rule.
In an embodiment of the application, the processing unit further includes a processing module, and 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, when the instruction is a second type of 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 recognize the instruction sent by the second platform, and thus, the user can more accurately control the device.
In another embodiment of the application, the processing module further includes a first processing sub-module, and 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, converting the instructions into a format that can be recognized 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 instruction into a format that can be recognized by the second device, and in practical applications, the instruction may also be converted into a corresponding format by other methods.
In another embodiment of the 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 the embodiment, the second platform decodes the instruction, extracts the check bits, then checks the check bits 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, avoids the misoperation of the second device by a user, and further enables the control of the second device to be more accurate.
In a specific embodiment of the application, the check digit includes an account and a password, and when the account and the password are successfully checked by the second platform, the second platform transcodes the password and sends the transcoded instruction to the second device. Of course, in practical applications, the check bits may also be other information, and those skilled in the art may select the check bits according to practical situations.
In yet another embodiment of the application, after the instruction is sent to a 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 status information of the first device or the second device executing the instruction, where the status information is information of a status of the first device or the second device after a predetermined time since the instruction is received, and 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 state information to the first platform after the predetermined time, and the user may determine, according to the returned information, that the first device or the second device has no execution instruction, or check a situation after the first device or the second device executes the instruction, so that the user may operate the device according to the state information of the device, which makes the user operation more convenient and the control more accurate.
In another embodiment of the present application, when the command is the second type of command, the receiving unit includes a receiving module configured to receive the status information transmitted by the second platform, and the status information transmitted 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 sends the transcoded state information to the first platform, so that the state information of the second platform can be returned to the first platform more accurately, and thus, a 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, and the transmission unit is configured to, when a type of an instruction is a second type of instruction, receive, by the second platform, the instruction sent by the first platform, and send the instruction to a second device, where the type at least includes the first type of instruction and the second type of instruction, the first type of instruction is used to control the first device corresponding to the first platform, and the second type of 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 a different control rule, and each server generates a corresponding control instruction according to the different control rule.
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 equipment when the type of the instruction is a second type of instruction, the type at least comprises a first type of instruction and a second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, and the second type of instruction is used for controlling the second equipment corresponding to the second platform. In the second platform, the first platform generates an instruction according to the operation information of a user, and judges the type of the instruction, the 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 different platforms on one platform, thereby realizing the synchronization of different equipment by one platform, and solving the problem that the equipment of one platform can not be controlled by other platforms in the prior art.
In an embodiment of the application, the transmission unit includes a first transmission module and a sending module, wherein the transcoding module is used for the second platform to receive the instruction and transcode the instruction; and the sending module is used for sending the transcoded instruction to the second equipment 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, converting the instructions into a format that can be recognized 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 instruction into a format that can be recognized by the second device, and in practical applications, the instruction may also be converted into a corresponding format by other methods.
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 transmission unit includes a second transmission module, where the second transmission module is configured to receive the instruction sent by the first platform, and decode, check, and transcode the instruction in sequence by the second platform; and the sending module is used for sending the transcoded instruction to the second equipment by the second platform. In the embodiment, the second platform decodes the instruction, extracts the check bits, then checks the check bits 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, avoids the misoperation of the second device by a user, and further enables the control of the second device to be more accurate.
In a specific embodiment of the application, the check digit includes an account and a password, and when the account and the password are successfully checked by the second platform, the second platform transcodes the password and sends the transcoded instruction to the second device. Of course, in practical applications, the check bits may also be other information, and those skilled in the art may select the check bits according to practical situations.
In yet another embodiment of the present application, the second platform further includes a sending unit, where the sending unit is configured to receive status information of the second device executing the instruction, and send the status information to the first platform, where the status information is information of a status of the second device after a predetermined time since the second device received the instruction, and 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 sends 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, a user can more accurately control the second device.
The first platform comprises 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 units 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 comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that the equipment of one platform cannot be controlled by other platforms in the prior art is solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, where the program, when executed by a processor, implements the method for synchronizing different platform devices.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes the method for synchronizing different platform devices when running.
An embodiment of the present invention further provides a processing system, which includes a first platform and a second platform, wherein the first platform is configured to perform any one of the methods described above, and the second platform is configured to perform any one of the methods described above.
The processing system comprises a first platform and a second platform, wherein the first platform is used for executing any method for synchronizing the different platform devices, the second platform is used for executing any method for synchronizing the different platform devices, in the method for synchronizing the different platform devices, the first platform generates an instruction according to operation information of a user and judges the type of the instruction, the devices of each platform have different control rules, the different rules correspond to different types of the instruction, and the first platform sends the instruction to the corresponding devices according to the type of the instruction, so that the user can operate the devices of different platforms on one platform, and the purpose that one platform synchronizes different devices 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 a different control rule, and each server generates a corresponding control instruction according to the different control rule.
In order to make the technical solutions of the present application more clearly understood and more obvious to those skilled in the art, the following description is given with reference to specific embodiments:
examples
The flow diagram of the method for synchronizing different platform devices is shown in fig. 3, and the method includes the following steps:
the user inputs control information, and the first platform receives the control information and generates an instruction according to 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 equipment and does not comprise a check bit, the instruction sent to the first equipment by the first platform can be controlled without checking, the second type instruction is used for controlling the second equipment and comprises a check bit, the instruction sent to the second equipment by the second platform is executed only after the checking is successful. Under the condition that the instruction is a first type instruction, the first platform directly sends the instruction to the first equipment, and after the first equipment executes the instruction, the first equipment returns the state information after execution to the first platform;
when the instruction is a second type instruction, the first platform sends the instruction to the second platform, the second platform decodes the instruction, a check bit in the instruction is extracted, then the check bit is checked, the instruction is transcoded under the condition that the check is successful, the instruction is converted into a format which can be identified by the second equipment, then the transcoded instruction is sent to the second equipment, after the second equipment executes the instruction, executed state information is returned to the second platform, the second platform transcodes the returned state information and then sends the transcoded state information to the first platform, and therefore synchronization of different platform equipment is achieved.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
1) according to the method for synchronizing the different platform devices, the first platform firstly receives control information, generates an instruction according to the control information, and 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 devices corresponding to the first platform, and the second type instruction is used for controlling second devices corresponding to the second platform and sending the instruction to the corresponding devices. According to the method, a first platform generates an instruction according to operation information of a user and judges the type of the instruction, equipment of each platform has different control rules, the different rules correspond to different types of the instruction, and the first platform sends the instruction to corresponding equipment according to the type of the instruction, so that the user can operate the equipment of different platforms on one platform, the different equipment can be synchronized by one platform, and the problem that the equipment of one platform cannot be controlled by other platforms in the prior art is solved.
2) In the method for synchronizing different platform devices, when the instruction is a second type of instruction, the second platform first receives the instruction sent by the first platform, the first type of instruction is used for controlling the first device corresponding to the first platform, the second type of 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, a first platform generates an instruction according to operation information of a user and 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 a corresponding second platform according to the type of the instruction, and the second platform sends the instruction to corresponding second equipment, so that the user can operate the equipment of different platforms on one platform, the synchronization of 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 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 of instruction and a second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, the second type of instruction is used for controlling the second equipment corresponding to the second platform, the instruction is sent to the first equipment under the condition that the type of the instruction is the first type of instruction, and the instruction is sent to the second equipment under the condition that the type of the instruction is the second type of instruction. In the first platform, the first platform generates an instruction according to operation information of a user and judges the type of the instruction, equipment of each platform has different control rules, the different rules correspond to different types of the instruction, and the first platform sends the instruction to corresponding equipment according to the type of the instruction, so that the user can operate the equipment of different platforms on one platform, and therefore the platform synchronizes different equipment, 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, the transmission unit is used for receiving the instruction sent by the first platform and sending the instruction to the second equipment under the condition that the type of the instruction is the second type of instruction, wherein the type at least comprises the first type of instruction and the second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, and the second type of instruction is used for controlling the second equipment corresponding to the second platform. In the second platform, the first platform generates an instruction according to the operation information of a user, and judges the type of the instruction, the 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 different platforms on one platform, thereby realizing the synchronization of different equipment by one platform, and solving the problem that the equipment of one platform can not be controlled by other platforms in the prior art.
5) The processing system comprises a first platform and a second platform, the first platform is used for executing any method for synchronizing different platform devices, the second platform is used for executing any method for synchronizing different platform devices, in the method for synchronizing different platform devices, the first platform generates instructions according to operation information of a user and judges the types of the instructions, the devices of each platform have different control rules, the different rules correspond to different types of the 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 different platforms on one platform, the purpose that one platform synchronizes different devices is achieved, and the problem that the devices of one platform cannot be controlled by other platforms in the prior art is solved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (15)

1. A method for synchronizing different platform devices, comprising:
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 of instruction and a second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, the second type of instruction is used for controlling the second equipment corresponding to the second platform, the instruction is sent to the first equipment under the condition that the type of the instruction is the first type of instruction, and the instruction is sent to the second equipment under the condition that the type of the instruction is the second type of instruction.
2. The method of claim 1, wherein, in the case that the type of the instruction is a second type of instruction, sending the instruction to the second device comprises:
sending the instruction to the second platform to cause the second platform to send the instruction to the second device.
3. The method of claim 2, wherein sending the instruction to the second platform to cause the second platform to send the instruction to the second device comprises:
and sending the instruction to the second platform so that the second platform transcodes the instruction and sends the transcoded instruction to the second equipment.
4. The method of claim 2, wherein the second class of instructions includes check bits to 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 decodes, checks and transcodes the instruction in sequence, and sending the transcoded instruction to the second equipment.
5. The method according to any one of claims 1 to 4, wherein after sending the instruction to the corresponding device according to the type of the instruction, the method further comprises:
receiving state information of the first device or the second device executing the instruction, wherein the state information is state information of the first device or the second device after a preset time since the instruction is received, and the preset time is time required by the first device or the second device to execute the instruction.
6. The method of claim 5, 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 device.
7. A method for synchronizing different platform devices, comprising:
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 second equipment, wherein the type at least comprises the first type instruction and the second type instruction, the first type instruction is used for controlling the first equipment corresponding to the first platform, and the second type instruction is used for controlling the second equipment corresponding to the second platform.
8. The method of claim 7, wherein the second platform receives the instruction sent by the first platform and sends the instruction to the second device, comprising:
the second platform receives the instruction and transcodes the instruction;
and the second platform sends the transcoded instruction to the second equipment.
9. The method of claim 7, wherein the second type of instruction comprises check bits, and wherein the second platform receives the instruction sent by the first platform and sends the instruction to the second device, comprising:
the second platform receives the instruction sent by the first platform, and decodes, checks and transcodes the instruction in sequence;
and the second platform sends the transcoded instruction to the second equipment.
10. The method according to any one of claims 7 to 9, wherein after sending the instruction to the second device, the method comprises:
and receiving state information of the second equipment for executing the instruction, and sending the state information to the first platform, wherein the state information is state information of the second equipment after a preset time since the instruction is received, and the preset time is time required for the second equipment to execute the instruction.
11. A first platform, comprising:
the generating unit is used for receiving the 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 of instruction and a second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, the second type of instruction is used for controlling the second equipment corresponding to the second platform, the instruction is sent to the first equipment under the condition that the type of the instruction is the first type of instruction, and the instruction is sent to the second equipment under the condition that the type of the instruction is the second type of instruction.
12. A second platform, comprising:
the transmission unit is used for receiving the instruction sent by the first platform and sending the instruction to second equipment by the second platform under the condition that the type of the instruction is a second type of instruction, wherein the type at least comprises a first type of instruction and a second type of instruction, the first type of instruction is used for controlling the first equipment corresponding to the first platform, and the second type of instruction is used for controlling the second equipment corresponding to the second platform.
13. 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 10.
14. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs the method of any of claims 1 to 10.
15. A processing system comprising a first platform for performing the method of any of claims 1 to 6 and a second platform for performing the method of any of claims 7 to 10.
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 true CN113949728A (en) 2022-01-18
CN113949728B 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)

Cited By (1)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616860A (en) * 2013-11-08 2014-03-05 海信集团有限公司 Method and device for remote control of household appliances
CN109493851A (en) * 2018-11-20 2019-03-19 新视家科技(北京)有限公司 A kind of sound control method, relevant apparatus and storage medium
CN110535824A (en) * 2019-07-08 2019-12-03 湖南优创智能科技有限公司 Smart home interlock method, system, terminal device and storage medium
CN111338220A (en) * 2020-02-19 2020-06-26 杭州涂鸦信息技术有限公司 Linkage control method and system between multiple heterogeneous devices
CN111478832A (en) * 2020-03-26 2020-07-31 深圳市汇合云网络科技有限责任公司 Control method, linkage method, auxiliary method and device of intelligent terminal equipment
CN112492023A (en) * 2020-11-25 2021-03-12 青岛海尔科技有限公司 Device control method, device, storage medium, and electronic apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616860A (en) * 2013-11-08 2014-03-05 海信集团有限公司 Method and device for remote control of household appliances
CN109493851A (en) * 2018-11-20 2019-03-19 新视家科技(北京)有限公司 A kind of sound control method, relevant apparatus and storage medium
CN110535824A (en) * 2019-07-08 2019-12-03 湖南优创智能科技有限公司 Smart home interlock method, system, terminal device and storage medium
CN111338220A (en) * 2020-02-19 2020-06-26 杭州涂鸦信息技术有限公司 Linkage control method and system between multiple heterogeneous devices
CN111478832A (en) * 2020-03-26 2020-07-31 深圳市汇合云网络科技有限责任公司 Control method, linkage method, auxiliary method and device of intelligent terminal equipment
CN112492023A (en) * 2020-11-25 2021-03-12 青岛海尔科技有限公司 Device control method, device, storage medium, and electronic apparatus

Cited By (1)

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

Also Published As

Publication number Publication date
CN113949728B (en) 2023-04-21

Similar Documents

Publication Publication Date Title
CN111464627B (en) Data processing method, edge server, center server and processing system
CN102420805B (en) Method, system and device for communication by virtue of socket connection
CN103761154A (en) Cross-platform shear plate synchronizing method and system
CN103650458A (en) Transmission method, device and system of media streams
CN103957522A (en) Intelligent communication method, intelligent communication terminals and intelligent communication system
CN111339192A (en) Distributed edge computing data storage system
CN104239426A (en) System and method for realizing cross-platform document reading
CN103686164A (en) Method, system and module for self-adaptive hardware coding and decoding
CN110210845B (en) Method, apparatus, medium, and computing device for blockchain data migration
CN111552568B (en) Cloud service calling method and device
CN103209392A (en) Cross-process and multi-application massage pushing method and device
CN113949728A (en) Method for synchronizing different platform devices, first platform and second platform
CN111159141A (en) Decentralized distributed data synchronization method, distributed node and system
CN102638569B (en) File distribution synchronizing method and system
CN112925586A (en) Applet routing method, device, computer equipment and storage medium
CN105610701A (en) Instant messaging method, device and system
CN111629020A (en) Remote input method, device, PC (personal computer) terminal, android device and system
CN108595160A (en) JS calls the method for primary object, storage medium
CN102480475B (en) Web service safety access control method, apparatus and system thereof
CN110519277B (en) Method for realizing control of other systems based on single-point execution contract
CN113890906A (en) Call forwarding method and device, electronic equipment and computer readable storage medium
CN113852718A (en) Voice channel establishing method and device, electronic equipment and storage medium
CN108021459B (en) Method and device for sending dotting logs across processes
CN108984614B (en) Visual image rapid identification method based on big data environment
CN107888482B (en) Instant messaging method and device

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