Equipment linkage method and device, equipment, storage medium and computer program product
By receiving device linkage instructions and controlling controlled devices and controlling devices according to mapping forms, the problem of inability to linkage between smart home devices on different platforms is solved, cross-platform device linkage control is realized, and user experience and system flexibility are improved.
Patent Information
- Application Number
- CN202510066743.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-27
AI Technical Summary
In the prior art, when a user has two or more smart home devices on different platforms in his home, cross-platform device linkage cannot be achieved.
By receiving device linkage instructions triggered by the control device connected to the first platform, it is determined whether the controlled device is connected to the second platform. If connected, the controlled device is controlled to link with the control device according to the preset mapping form.
The linkage control of smart home devices on different platforms is realized. Users can manage and control smart home devices on different platforms through a single control device, improving the flexibility and user experience of the system.
Smart Images

Figure CN120050128A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data processing, and in particular, to a device linkage method, device, equipment, storage medium, and computer program product. Background Art
[0002] With the rapid development of Internet of Things and Internet technologies, smart home has quietly entered people's daily lives, bringing convenience to people's daily lives. For a household user, due to usage needs, there are a wide variety of smart home devices, and the manufacturers of these smart home devices are inevitably different. Each smart home device manufacturer has established its own platform. Due to different protocols between platforms, the APP of one platform (A) cannot control the smart home devices of another platform (B). Then, since each enterprise, group, and enterprise alliance has its own cloud protocol and cloud standard in terms of technical standards, cross-cloud smart home device linkage and invocation become difficult to achieve. Therefore, when there are two or more smart home devices of different platforms in a user's home, the smart home devices of different platforms cannot be linked. Summary of the Invention
[0003] In view of this, the present application provides a device linkage method, device, equipment, storage medium, and computer program product, which are used to solve the problem in the prior art that when there are two or more smart home devices of different platforms in a user's home, the smart home devices of different platforms cannot be linked. To achieve one or part or all of the above purposes or other purposes, the present application proposes a device linkage method, device, equipment, and storage medium.
[0004] First aspect:
[0005] The present application provides a device linkage method, including:
[0006] Receiving a device linkage instruction triggered by a control device connected to a first platform;
[0007] Determining a controlled device corresponding to the device linkage instruction, and determining whether the controlled device is connected to a second platform, where the first platform and the second platform are different platforms;
[0008] If the controlled device is connected to the second platform, controlling the controlled device to be linked with the control device according to a preset mapping form.
[0009] Second aspect:
[0010] This application provides a bridging device, including: a plurality of chip modules, each of the chip modules communicates with at least one platform; the chip modules are connected by a bus to achieve data exchange and status synchronization, and one of the chip modules is configured as a host, and the other chip modules are slaves.
[0011] Optionally, in some embodiments of this application, the bridging device is used to: obtain platform information and chip information deployed on a control device, where the platform information includes a plurality of platforms to be accessed; configure a mapping form according to the chip information and the plurality of platforms to be accessed.
[0012] Optionally, in some embodiments of this application, the configuring a mapping form according to the chip information and the plurality of platforms to be accessed includes:
[0013] Based on the chip information, determine the platforms that each chip module can be connected to;
[0014] Configure a mapping form according to the plurality of platforms to be accessed and the platforms that each chip module can be connected to.
[0015] Optionally, in some embodiments of this application, the configuring a mapping form according to the plurality of platforms to be accessed and the platforms that each chip module can be connected to includes:
[0016] Establish a connection relationship between the platforms to be accessed and at least one chip module;
[0017] Configure the device actions of the devices connected to the chip module in different states;
[0018] Store the configured device actions and connection relationship of the chip module into a preset mapping form.
[0019] Optionally, in some embodiments of this application, the storing the configured device actions and connection relationship of the chip module into a preset mapping form includes:
[0020] Determine the associated first chip module and second chip module, where the first chip module and the second chip module are respectively connected to different platforms;
[0021] Generate associated status information based on the device actions associated between the first chip module and the second chip module;
[0022] Store the connection relationship and the associated status information into a preset mapping form.
[0023] Optionally, in some embodiments of the present application, the first chip module is connected to a third platform, the second chip module is connected to a fourth platform, the first physical device is connected to the third platform, and the second physical device is connected to the fourth platform. After storing the connection relationship and the associated status information in a preset mapping form, the method further includes:
[0024] In response to a first device action of the first physical device, sending device information of the first device action to the first chip module through the third platform;
[0025] Adjusting the first chip module from a first state to a second state according to the device information;
[0026] Transmitting the second state to the second chip module through the bus;
[0027] The second chip module queries whether the second state meets a preset condition according to the mapping form;
[0028] If the second state meets the preset condition, adjusting the state of the second chip module to the second state, and controlling the second physical device to execute a second device action in the second state.
[0029] Optionally, in some embodiments of the present application, after configuring the mapping form according to the multiple platforms to be accessed and the platforms to which each chip module can be connected, the method further includes:
[0030] Determining a host in multiple chip modules;
[0031] Storing the mapping form in the host.
[0032] Third aspect:
[0033] The present application provides a device linkage device, including:
[0034] A receiving module, configured to receive a device linkage instruction triggered by a control device connected to a first platform;
[0035] A determining module, configured to determine a controlled device corresponding to the device linkage instruction, and determine whether the controlled device is connected to a second platform, where the first platform and the second platform are different platforms;
[0036] A linkage module, configured to, if the controlled device is connected to the second platform, control the controlled device to be linked with the control device according to a preset mapping form.
[0037] Optionally, in some embodiments of the present application, the linkage module may specifically include:
[0038] An obtaining sub-module, configured to obtain a preset mapping form if the controlled device is connected to a second platform;
[0039] A determining sub-module, configured to identify the mapping form and determine the linkage relationship between the controlled device and the control device;
[0040] A linkage sub-module, configured to control the linkage between the controlled device and the control device according to the linkage relationship.
[0041] Optionally, in some embodiments of the present application, the linkage sub-module may specifically include:
[0042] An obtaining unit, configured to obtain a first device state corresponding to the controlled device and a second device state corresponding to the control device;
[0043] A linkage unit, configured to control the linkage between the controlled device and the control device based on the linkage relationship, the first device state corresponding to the controlled device, and the second device state corresponding to the control device.
[0044] Optionally, in some embodiments of the present application, the linkage unit may specifically include:
[0045] An adjustment sub-unit, configured to adjust the first device state corresponding to the controlled device based on the linkage relationship and the second device state corresponding to the control device;
[0046] A linkage sub-unit, configured to generate a message corresponding to the adjusted third device state of the controlled device and send the message to the controlled device through the second platform to control the linkage between the controlled device and the control device.
[0047] Optionally, in some embodiments of the present application, the adjustment sub-unit may specifically be configured to:
[0048] Determine a first device action of the control device according to the second device state of the control device;
[0049] Obtain an associated device action associated with the first device action based on the linkage relationship;
[0050] Determine whether a second device action of the controlled device is the associated device action;
[0051] If the second device action of the controlled device is not the associated device action, adjust the first device state corresponding to the controlled device according to the associated device action.
[0052] Optionally, in some embodiments of the present application, the adjustment sub-unit may specifically further be configured to:
[0053] When the second device status information corresponding to the control device changes, the first virtual device corresponding to the first platform and / or the second virtual device corresponding to the second platform are adjusted according to the changed second device status information;
[0054] When the first device status information corresponding to the controlled device changes, the first virtual device corresponding to the first platform and / or the second virtual device corresponding to the second platform are adjusted according to the changed first device status information;
[0055] Wherein, the first virtual device is the virtual device corresponding to the first platform generated by creating a mapping form, and the second virtual device is the virtual device corresponding to the second platform generated by creating a mapping form.
[0056] Fourth aspect:
[0057] The present application provides an electronic device, including at least one memory and at least one processor, the memory stores a computer program, and when the processor executes the computer program, the steps in the device linkage of each embodiment of the present application are implemented.
[0058] Fifth aspect:
[0059] The present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the device linkage of each embodiment of the present application are implemented.
[0060] Sixth aspect:
[0061] The present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps in the device linkage method of each embodiment of the present application are implemented.
[0062] The embodiments of the present application have the following beneficial effects:
[0063] When there are two or more smart home devices of different platforms in the user's home, the user can interact with the control device connected to the first platform to trigger a device linkage instruction. Then, determine the controlled device corresponding to the device linkage instruction, and then control the linkage between the controlled device and the control device according to the preset mapping form, so as to integrate smart home devices of different platforms into a unified system. The user can manage and control smart home devices connected to different platforms through a single control device. Thus, the purpose of linkage control of smart home devices of different platforms can be achieved. Description of the Drawings
[0064] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0065] Among them:
[0066] Figure 1 It is an application environment diagram of the device linkage method provided by the embodiment of the present application;
[0067] Figure 2 It is a hardware structure block diagram of the network node device provided by the embodiment of the present application;
[0068] Figure 3 It is a schematic flowchart of the device linkage method provided by the embodiment of the present application;
[0069] Figure 4 It is a schematic structural diagram of the bridging device provided by the embodiment of the present application;
[0070] Figure 5 It is another schematic structural diagram of the bridging device provided by the embodiment of the present application;
[0071] Figure 6 It is yet another schematic structural diagram of the bridging device provided by the embodiment of the present application;
[0072] Figure 7 It is a schematic structural diagram of the device linkage device provided by the embodiment of the present application;
[0073] Figure 8 It is an internal structure diagram of the computer device provided by the embodiment of the present application. Specific embodiments
[0074] The following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0075] The device linkage method provided by the present application can be applied to an application environment as Figure 1 shown. Among them, Figure 1 a device linkage system is provided, and the device linkage system includes an intelligent device 100, a network node device 200 communicatively connected to the intelligent device 100, a router 300, a server 400, and a terminal 500.
[0076] The intelligent device 100 accesses the network node device 200 in the device linkage system and communicates with the network node device 200 through its own configured communication module, and thus is controlled by the network node device 200. The network node device 200 can be a gateway or a central node. The gateway can receive signals or data from intelligent devices and forward this information to user terminals or cloud servers. At the same time, it can also receive control instructions and convey them to intelligent devices. The central node undertakes additional responsibilities in a distributed network, such as coordinating communications in the network, managing the network topology, etc. The central node may be designated as a leader node responsible for managing other central nodes and intelligent devices in the local area network. In one implementation, the intelligent device 100 accesses the network node device 200 through a local area network path or a wide area network path, and thus is deployed in the network node device 200. Among them, the local area network can include ZIGBEE or Bluetooth, and the wide area network can include 2G / 3G / 4G / 5G / WIFI, etc.
[0077] The network node device 200 establishes a network connection with the terminal 500 or the server 400 through the router 300. In one implementation, the network node device 200 and the terminal 500 can establish a network connection through a local area network or a wide area network path. Through this network 200 connection, it interacts with the terminal 500, and thus enables the user to control the smart home devices accessing the network node device to perform corresponding actions by means of this terminal 500 or the intelligent device 100.
[0078] Among them, the terminal 500 can be a smart phone, a laptop computer, a personal computer, a tablet computer, a smart control panel or other intelligent devices that can implement network connections, and are not limited here. The server can be implemented by an independent server or a server cluster composed of multiple servers.
[0079] Figure 2 This is the hardware structure block diagram of the network node device provided by the embodiment of the present application. This network node device is applicable to Figure 1 the implementation environment shown.
[0080] It should be noted that this network node device is only an example adapted to the present application and cannot be considered as providing any limitation to the scope of use of the present application. This network node device cannot be interpreted as requiring dependence on or necessarily having Figure 2 one or more components in the exemplary network node device 200 shown.
[0081] The hardware structure of this network node device 200 may vary greatly due to different configurations or performances, such as Figure 2As shown in the figure, the network node device 200 includes: a power supply 210, an interface 230, at least one memory 250, and at least one central processing unit (CPU) 270. Among them, the power supply 210 is used to provide operating voltage for each hardware device on the network node device 200. The interface 230 includes at least one wired or wireless network interface 231, at least one serial-parallel conversion interface 233, at least one input / output interface 235, and at least one USB interface 237, etc., and is used to communicate with external devices. The memory 250 is used as a carrier for resource storage, and the resources stored thereon include an operating system 251, application programs 253, or data 255, etc. The application program 253 is a computer program that completes at least one specific task based on the operating system 251. The central processing unit 270 may include one or more than one processors, and is configured to communicate with the memory 250 through a bus, and is used to operate and process the massive data 255 in the memory 250.
[0082] In addition, the present application can also be implemented by a hardware circuit or a combination of a hardware circuit and software instructions. Therefore, the implementation of the present application is not limited to any specific hardware circuit, software, and the combination of the two.
[0083] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the priority order of the embodiments.
[0084] The present application provides a device linkage method, including: receiving a device linkage instruction triggered by a control device connected to a first platform; determining a controlled device corresponding to the device linkage instruction, and determining whether the controlled device is connected to a second platform. If the controlled device is connected to the second platform, then control the controlled device to be linked with the control device according to a preset mapping form.
[0085] Please refer to Figure 3 , a device linkage method is provided. Taking the application of this method to an electronic device as an example for description, the electronic device may specifically be Figure 1 the network node device 200, etc. in, and specifically includes the following steps:
[0086] S101. Receive a device linkage instruction triggered by a control device connected to a first platform.
[0087] The first platform refers to an Internet-based remote server system through which users can manage and control smart devices at home or in the workplace. For example, the first platform usually refers to the platform where the control device is located, which can be the user's main control platform, such as the user's smartphone or the central control panel at home. Users can access the first platform from any place with an Internet connection to achieve remote control of smart devices. A control device is a device used to send commands and control other smart devices. The control device can be hardware in various forms and can interact with the controlled device through a specific communication protocol. A device linkage instruction refers to a set of rules or commands that define how to automatically control the operation of one or more devices under specific conditions. Device linkage instructions make the interaction between devices more intelligent and seamless through an automated method.
[0088] For example, specifically, users issue a linkage instruction through the control device connected to the first platform. When they arrive home, the lights in the living room will automatically turn on.
[0089] S102. Determine the controlled device corresponding to the device linkage instruction, and determine whether the controlled device is connected to the second platform. The first platform and the second platform are different platforms.
[0090] In one implementation, the second platform and the first platform belong to the same local area network.
[0091] A controlled device is a device that needs to perform specific actions according to the linkage instruction, such as a smart bulb, a smart socket, a thermostat, etc. The second platform refers to other Internet of Things platforms other than the first platform where the control device is located. The second platform can be operated by different service providers and use different communication protocols.
[0092] For example, after receiving the device linkage instruction from the first platform, parse the device linkage instruction to extract the information of the controlled device that needs to perform the action. According to the instruction content, determine which devices are the controlled devices that need to perform the action. Then, check whether these controlled devices have been connected to the second platform. If the controlled device is connected to the second platform, perform step S103. If the controlled device is not connected to the second platform, it can continue to wait for the connection to be established, or cache the instruction until the device connection is available.
[0093] For example, specifically, the user sets an automation rule that when they leave home (trigger condition), the smart air conditioner at home (controlled device) needs to be turned off. The smart air conditioner is connected through the second platform (such as another smart home service provider). The user's smartphone (control device) detects that the user has left home and sends a linkage instruction to turn off the smart air conditioner through the first platform. After receiving the device linkage instruction, parse out that the controlled device that needs to perform the action is the smart air conditioner and check whether the smart air conditioner is connected to the second platform.
[0094] S103. If the controlled device is connected to the second platform, control the linkage between the controlled device and the control device according to a preset mapping form.
[0095] The mapping form is a preset rule set that defines how to convert and transfer instructions between different platforms so that devices on different platforms can understand and execute them.
[0096] If the controlled device is already connected to the second platform, obtain the preset mapping form, and determine the linkage relationship between the controlled device and the control device according to the mapping form. Then, control the linkage between the controlled device and the control device according to the rules defined in the mapping form.
[0097] For example, specifically, a user sets an automation rule that when they leave home (trigger condition), the smart air conditioner at home (controlled device) needs to be turned off. The smart air conditioner is connected through the second platform (such as another smart home service provider). The user's smartphone (control device) detects that the user has left home and sends a linkage instruction to turn off the smart air conditioner through the first platform. After receiving the device linkage instruction, it is parsed to determine that the controlled device that needs to perform the action is the smart air conditioner, and it is checked whether the smart air conditioner is connected to the second platform. If the smart air conditioner is connected to the second platform, the off instruction is converted from the format of the first platform to a format that the second platform can understand, and the off instruction is sent to the smart air conditioner. After receiving the off instruction, the smart air conditioner performs the off action.
[0098] Optionally, in some embodiments of the present application, the step "If the controlled device is connected to the second platform, control the linkage between the controlled device and the control device according to a preset mapping form" may specifically include:
[0099] If the controlled device is connected to the second platform, obtain the preset mapping form;
[0100] Identify the mapping form and determine the linkage relationship between the controlled device and the control device;
[0101] Control the linkage between the controlled device and the control device according to the linkage relationship.
[0102] For example, after determining that the controlled device has been connected to the second platform, obtain the preset mapping form and identify the mapping form to obtain the linkage rule between the control device and the controlled device. Control the linkage between the controlled device and the control device according to the linkage relationship in the mapping form, such as turning off the control device (smart light) and at the same time turning off the controlled device (smart curtain).
[0103] For example, when the smart lamp sends a turn-off instruction, the bridging device obtains a preset mapping form. The bridging device identifies the mapping form to determine the linkage relationship between the smart lamp and the smart curtain. According to the mapping form, when the smart bulb is turned off, the smart socket should be turned off.
[0104] In this way, even if the control device and the controlled device are respectively connected to different platforms, effective linkage control can be achieved between the control device and the controlled device, improving the flexibility and user experience of the smart home system.
[0105] Optionally, in some embodiments of the present application, the step of "controlling the controlled device to be linked with the control device according to the linkage relationship" may specifically include:
[0106] Obtain the first device state corresponding to the controlled device and the second device state corresponding to the control device;
[0107] Based on the linkage relationship, the first device state corresponding to the controlled device, and the second device state corresponding to the control device, control the controlled device to be linked with the control device.
[0108] The first device state refers to the current state of the controlled device on the second platform. The second device state refers to the current state of the control device on the first platform. Obtain the current state of the controlled device (i.e., the first device state) from the second platform, and at the same time, obtain the current state of the control device (i.e., the second device state) from the first platform. Then, analyze the linkage relationship, the first device state, and the second device state to determine whether they meet the preset linkage conditions. If the linkage relationship, the first device state, and the second device state meet the linkage conditions, execute the rules defined in the mapping form to control the controlled device to perform corresponding actions.
[0109] For example, the user sets an automation rule through a smartphone (control device) that when the geographical location of the smartphone shows that the user has left home (trigger condition), the smart air conditioner (controlled device) at home needs to be turned off. The user's smartphone sends its geographical location information through the first platform, indicating that the user has left home. The bridging device obtains the location state of the smartphone (second device state) from the first platform. At the same time, the bridging device obtains the current state of the smart air conditioner (controlled device) (first device state) from the second platform, such as whether it is running. The bridging device determines according to the mapping form that if the user leaves home (the second device state of the control device (smartphone) changes), the smart air conditioner (the first device state of the controlled device) needs to be turned off. The bridging device sends a turn-off instruction to the smart air conditioner (controlled device). The smart air conditioner (controlled device) executes the turn-off action and feeds back the execution result to the bridging device. The bridging device sends the feedback result that the smart air conditioner (controlled device) has been turned off back to the first platform, and the user's mobile phone (control device) shows that the smart air conditioner has been turned off.
[0110] It can be seen that through the automation rules, the user does not need to manually operate the smart air conditioner at home, and the system automatically executes the preset automation rules according to the change of the user's geographical location, improving the convenience of life. At the same time, it can effectively save energy, reduce unnecessary power consumption, contribute to environmental protection and reduce electricity bills.
[0111] Optionally, in some embodiments of the present application, the step of "controlling the controlled device to be linked with the control device based on the linkage relationship, the first device state corresponding to the controlled device, and the second device state corresponding to the control device" may specifically include:
[0112] Adjust the first device state corresponding to the controlled device based on the linkage relationship and the second device state corresponding to the control device;
[0113] Generate a message corresponding to the third device state after the adjustment of the controlled device, and send the message to the controlled device through the second platform to control the controlled device to be linked with the control device.
[0114] Among them, the third device state refers to the state of the controlled device after adjustment on the second platform. The bridging device obtains the current state (second device state) of the control device from the first platform. The bridging device obtains the current state (first device state) of the controlled device from the second platform. The bridging device calculates the target state (third device state) that the controlled device needs to be adjusted to according to the linkage relationship and the current state of the control device. The bridging device generates a message containing the third device state information. The bridging device sends the message to the controlled device through the second platform. After receiving the message, the controlled device adjusts its state according to the content of the message to achieve linkage with the control device. The controlled device feeds back the adjusted state (third device state) to the bridging device, and the bridging device then feeds back the result to the control device.
[0115] For example, specifically, the user sets an automation rule through a smart phone (control device) that when the smart phone detects that the low power mode is started (trigger condition), the smart bulb at home (controlled device) needs to be dimmed.
[0116] The user's smart phone detects low battery, starts the low power mode, and sends its state (first device state) to the first platform. The bridging device obtains the battery state of the smart phone from the first platform. The bridging device obtains the current brightness state (second device state) of the smart bulb from the second platform. The bridging device determines according to the mapping form that if the smart phone starts the low power mode, the smart bulb needs to be dimmed to 50% brightness (third device state). The bridging device generates a message containing the instruction to dim to 50% brightness. The bridging device sends the message to the smart bulb through the second platform. After receiving the message, the smart bulb adjusts its brightness to 50% and feeds back the adjusted state to the bridging device.
[0117] Therefore, the system can automatically adjust the lighting environment at home according to environmental changes (such as the power status of the device), providing a more comfortable living experience.
[0118] Optionally, in some embodiments of the present application, the step of "adjusting the first device state corresponding to the controlled device based on the linkage relationship and the second device state corresponding to the control device" may specifically include:
[0119] Determine the first device action of the control device according to the second device state of the control device;
[0120] Obtain the associated device action associated with the first device action based on the linkage relationship;
[0121] Determine whether the second device action of the controlled device is the associated device action;
[0122] If the second device action of the controlled device is not the associated device action, adjust the first device state corresponding to the controlled device according to the associated device action.
[0123] For example, based on the linkage relationship in the mapping form, find the controlled device action (second device action) associated with the control device action. Determine whether the current action of the controlled device (second device action) is consistent with the associated action defined in the mapping form. If the current action of the controlled device is not the predefined associated action, adjust the state of the controlled device to match the associated action.
[0124] For example, specifically, the user sets an automation rule through a smart phone (control device) that when the smart phone is connected to the Wi-Fi in the office (trigger condition), the smart curtain in the office (controlled device) should be closed. The user's smart phone detects that it is connected to the Wi-Fi in the office and sends its status to the first platform. The bridging device obtains the connection status of the smart phone from the first platform and determines that the action of the control device is "arrival at the office". The bridging device looks up the controlled device action associated with "arrival at the office" in the mapping form and finds "close the curtain". The bridging device obtains the current state of the smart curtain from the second platform and finds that the curtain is open. The bridging device generates an adjustment message containing the action of "closing the curtain". The bridging device sends the adjustment message to the smart curtain through the second platform. After receiving the message, the smart curtain executes the closing action. The smart curtain feeds back the closed state to the bridging device, and the bridging device then feeds back the result to the smart phone.
[0125] Through the bridging device, the automation rules set by the user can be executed across different platforms, achieving seamless linkage between different smart home platforms. This enables the user to effectively control the devices on other platforms regardless of which platform's device is used as the control terminal.
[0126] Optionally, in some embodiments of the present application, the device linkage method may specifically further include:
[0127] When the second device status information corresponding to the control device changes, the first virtual device corresponding to the first platform and / or the second virtual device corresponding to the second platform are adjusted according to the changed second device status information;
[0128] When the first device status information corresponding to the controlled device changes, the first virtual device corresponding to the first platform and / or the second virtual device corresponding to the second platform are adjusted according to the changed first device status information.
[0129] Wherein, the first virtual device is the virtual device corresponding to the first platform generated by creating a mapping form, and the second virtual device is the virtual device corresponding to the second platform generated by creating a mapping form.
[0130] The status information of the control device changes on the first platform. The virtual device on the first platform and / or the virtual device on the second platform need to be adjusted accordingly according to the new status of the control device; The status information of the controlled device changes on the second platform. The virtual device on the first platform and / or the virtual device on the second platform need to be adjusted accordingly according to the new status of the controlled device.
[0131] For example, when the status of the control device changes, the first platform updates the status information of the first device. When the status of the controlled device changes, the second platform updates the status information of the second device. The first platform notifies the bridging device of the status change of the control device; The second platform notifies the bridging device of the status change of the controlled device. The bridging device adjusts the status of the first virtual device on the first platform according to the received status change information, and; Adjusts the status of the second virtual device on the second platform according to the received status change information. Thereby, ensuring that the status information of the first virtual device and the second virtual device is synchronized with the status information of the actual control device and the controlled device.
[0132] For example, specifically, the user sets an automation rule through a smart phone (control device). When the location of the smart phone (the first virtual device on the first platform) becomes "office", the smart lights in the office (controlled device, the second virtual device on the second platform) should be turned on. The user's smart phone detects through GPS that the user has arrived at the office and sends a location status update to the first platform. The first platform updates the status of the first virtual device corresponding to the smart phone to "office". The first platform notifies the bridging device of the change in the status of the first device. The bridging device receives the status change notification and adjusts the status of the second virtual device (smart lights) on the second platform to on. The smart lights receive the turn-on instruction and execute it, and feedback the on status to the second platform. The second platform updates the status of the second virtual device to on and notifies the bridging device. The bridging device ensures that the status information of the first virtual device and the second virtual device is synchronized with the status information of the actual devices.
[0133] It can be seen that through the automation rule, when the user arrives at the office, there is no need to manually operate the smart lights. The system automatically executes the preset automation rule according to the change in the geographical location of the smart phone, and the smart lights are automatically turned on, enhancing the personalized experience.
[0134] The above is the device linkage process provided by the embodiments of the present application.
[0135] As can be seen from the above, the embodiments of the present application provide a device linkage method. After receiving a device linkage instruction triggered by a control device connected to the first platform, the corresponding controlled device of the device linkage instruction is determined, and it is determined whether the controlled device is connected to the second platform. The second platform and the first platform are different platforms. If the controlled device is connected to the second platform, the controlled device and the control device are controlled to be linked according to a preset mapping form. Therefore, when there are two or more smart home devices on different platforms in the user's home, the user can interact through the control device connected to the first platform to trigger a device linkage instruction. Then, the corresponding controlled device of the device linkage instruction is determined, and the controlled device and the control device can be controlled to be linked according to the preset mapping form. In the solution provided by the present application, smart home devices on different platforms are integrated into a unified system, and the user can manage and control smart home devices connected to different platforms through a single control device, and the purpose of linkage control of smart home devices on different platforms can be achieved, and thus the user's needs can be responded to more flexibly and efficiently.
[0136] Please refer to Figure 4 , a bridging device is provided. The bridging device includes a plurality of chip modules, and each chip module communicates with at least one platform; the chip modules are connected through a bus to achieve data exchange and status synchronization, and one of the chip modules is configured as a host, and the other chip modules are slaves.
[0137] The chip modules are connected through a bus (such as I2C, SPI, UART, etc.) to achieve efficient data exchange and status synchronization. One of the chip modules is configured as the host, which is responsible for coordinating the operations and communications of other slave chip modules. The remaining chip modules act as slaves and communicate and synchronize data with the corresponding platforms according to the instructions of the host. Each chip module establishes a connection with one or more Internet of Things platforms according to its function and supported communication protocols. The host chip module is responsible for collecting data from different chip modules and deciding how to share this data with other chip modules according to a preset mapping form and linkage rules. Through the bus connection, the chip modules synchronize the status information of the device to ensure that all modules have the latest device status data. The host chip module is responsible for processing complex logical judgments and linkage decisions, as well as distributing instructions to the slave chip modules. The slave chip modules communicate with the corresponding Internet of Things platforms according to the instructions of the host and perform operations such as obtaining status and sending commands. When the status of the control device or the controlled device changes, the relevant chip modules work together according to the instructions of the host and the mapping form to achieve device linkage.
[0138] Optionally, in some embodiments of the present application, the bridging device is used for:
[0139] Obtain platform information and chip information deployed on the control device,
[0140] Configure a mapping form according to the chip information and multiple platforms to be accessed.
[0141] Among them, the platform information includes multiple platforms to be accessed; for example, collect relevant information of all Internet of Things platforms to be accessed, including the type of platform, communication protocol, interface standard, supported device type, etc. Identify and record the technical specifications of each chip module in the bridging device, including the types of platforms they can connect to, supported communication protocols, processing capabilities, storage capacities, etc. Create or update a mapping form according to the chip information and platform information to define the linkage rules between the control device and the controlled device.
[0142] Optionally, in some embodiments of the present application, the step of "configuring a mapping form according to the chip information and multiple platforms to be accessed" may specifically include:
[0143] Based on the chip information, determine the platforms that each chip module can connect to;
[0144] Configure a mapping form according to the multiple platforms to be accessed and the platforms that each chip module can connect to.
[0145] For example, determine the functions of each chip module in the bridging device and the platforms to which they can be connected. Analyze the characteristics and requirements of each Internet of Things platform to determine how they interact with the chip modules in the bridging device. Based on the characteristics of the chip modules and the platforms, create a mapping form that includes the correspondence between the states and actions of the control device and the controlled device, such as "when the state of the control device is X, the controlled device performs action Y".
[0146] Specifically, the bridging device needs to be connected to two Internet of Things platforms, Platform A and Platform B, and the control device is a smartphone, and the controlled device is a smart bulb. It is determined that Chip 1 supports Wi-Fi and Bluetooth and can be connected to Platform A; it is determined that Chip 2 supports Zigbee and Z-Wave and can be connected to Platform B. Configure Chip 1 to communicate with Platform A for connecting to the smartphone; configure Chip 2 to communicate with Platform B for connecting to the smart bulb. Define a rule in the mapping form: "when Chip 1 receives the 'turn on the light' command from the smartphone, Chip 2 sends an on signal to the smart bulb".
[0147] Optionally, in some embodiments of the present application, the step of "configuring a mapping form according to multiple platforms to be accessed and the platforms to which each chip module can be connected" may specifically include:
[0148] Establish a connection relationship between the platforms to be accessed and at least one chip module;
[0149] Configure the device actions of the devices connected by the chip module in different states;
[0150] Store the configured device actions and connection relationships of the chip module in a preset mapping form.
[0151] For example, determine at least one chip module for each platform to be accessed to establish a communication connection. Configure the actions that the devices connected by each chip module should perform in different states. Store the configuration information of the chip module and the device actions in the mapping form so that the bridging device can operate according to these preset rules.
[0152] Specifically, determine the communication protocols supported by each chip module and the platforms to which they can be connected. According to the communication capabilities of the chip modules, allocate a chip module for each platform to be accessed. Configure the actions that the devices connected by each chip module should perform in specific states, such as turning on / off the light, adjusting the temperature, etc. For each chip module and the devices connected to it, create entries in the mapping form that detail the device actions and conditions. Store the mapping form entries in the memory of the bridging device to ensure quick retrieval and application.
[0153] For example, a bridging device needs to be connected to three Internet of Things platforms: Platform A, Platform B, and Platform C, and there are three types of devices: smartphones, smart bulbs, and smart thermostats. Chip module 1 is assigned to Platform A for connecting to smartphones; chip module 2 is assigned to Platform B for connecting to smart bulbs; chip module 3 is assigned to Platform C for connecting to smart thermostats. Configure chip module 1 so that when the smartphone receives the "go home" command, it triggers the smart bulb to turn on. Configure chip module 2 so that the smart bulb automatically dims in "night mode". Configure chip module 3 so that the smart thermostat automatically turns on the heating when it detects that the indoor temperature is below 20 degrees. Create entries in the mapping form to record the connection relationship between chip module 1 and the smartphone and its action rules; record the connection relationship between chip module 2 and the smart bulb and its action rules; record the connection relationship between chip module 3 and the smart thermostat and its action rules.
[0154] Optionally, in some embodiments of the present application, the step of "storing the configured device actions and connection relationships of the chip modules in a preset mapping form" may specifically include:
[0155] Determine the associated first chip module and second chip module;
[0156] Generate association status information based on the device actions associated between the first chip module and the second chip module;
[0157] Store the connection relationship and the association status information in a preset mapping form.
[0158] Among them, the first chip module and the second chip module are respectively connected to different platforms, and association status information describing this association is generated based on the device actions associated between the first chip module and the second chip module. Finally, the connection relationship and the association status information between the chip modules are stored in the mapping form so that the bridging device can operate according to this information. For example, according to the device linkage requirements, select two chip modules that need to communicate with each other. Define the device actions associated between different chip modules, such as "when the smart door lock connected to chip module 1 is opened, the smart light connected to chip module 2 is turned on". Generate association status information describing these actions according to the defined device actions. Create entries in the mapping form for each pair of chip modules to record their connection relationship and association status information.
[0159] For example, specifically, the bridging device needs to implement the following linkage: when the user unlocks the door (also connected to Platform A) through a smartphone connected to Platform A (controlled by Chip Module 1), the smart bulb at home (connected to Platform B and controlled by Chip Module 2) turns on. Define the rule: "When Chip Module 1 detects the door lock unlocking action, Chip Module 2 should send a command to turn on the smart bulb." Create an entry in the mapping form: Chip Module 1: smartphone -> door lock unlocking; Chip Module 2: smart bulb -> turn on.
[0160] Optionally, in some embodiments of the present application, the first chip module is connected to the third platform, the second chip module is connected to the fourth platform, the first entity device is connected to the third platform, and the second entity device is connected to the fourth platform. After the step of "storing the connection relationship and the associated status information into a preset mapping form", it may specifically further include:
[0161] In response to a first device action of the first entity device, send the device information of the first device action to the first chip module through the third platform;
[0162] Adjust the first chip module from the first state to the second state according to the device information;
[0163] Transmit the second state to the second chip module through the bus;
[0164] The second chip module queries whether the second state meets a preset condition according to the mapping form;
[0165] If the second state meets the preset condition, adjust the state of the second chip module to the second state, and in the second state, control the second entity device to execute a second device action.
[0166] Among them, the first chip module establishes a communication connection with the third platform for communicating with the first entity device. The second chip module establishes a communication connection with the fourth platform for communicating with the second entity device. Define the linkage rule between the first entity device and the second entity device in the mapping form. According to the linkage rule, generate status information describing the associated actions between the first entity device and the second entity device. When the first entity device performs an action (such as the door lock being unlocked), the action information is captured by the third platform and sent to the first chip module. The first chip module forwards the action information of the first entity device to the second chip module according to the rule in the mapping form. After receiving the forwarded action information, the second chip module controls the second entity device to execute the corresponding linkage action (such as turning on the smart bulb). After the second entity device executes the action, it feeds back the execution result to the second chip module, and then to the fourth platform.
[0167] An entity device refers to a real physical device that can directly interact with users or perform specific tasks; a virtual device refers to a software representation created on an IoT platform or a bridging device, which is used to manage and control entity devices and realize the linkage between devices through software logic. The entity devices can be smartphones, smart air conditioners, and smart lights; the virtual devices can include the virtual devices created on the first platform and the virtual devices created on the second platform.
[0168] Optionally, in some embodiments of the present application, after the step of "configuring a mapping form according to multiple platforms to be accessed and the platforms that each chip module can connect to", it may specifically further include:
[0169] Determine a host among multiple chip modules;
[0170] Store the mapping form in the host.
[0171] It should be noted that in the present application, a host refers to a chip module designated as the main control unit among multiple chip modules. This host chip module undertakes the core control and coordination roles and is responsible for managing other slave chip modules.
[0172] In a bridging device, there are multiple chip modules (such as chip A, chip B, etc.), and each module has the ability to communicate with a specific IoT platform. It is possible to evaluate which chip is most suitable as the host based on the functions, processing capabilities, storage capacities, and communication protocol supports of each chip module. It should be noted that the host usually requires a relatively high processing capacity, sufficient storage space, and stable communication capabilities to ensure that it can effectively manage and coordinate other slave chip modules. Specifically, allocate sufficient space in the memory of the host chip module to store the mapping form, and then upload the created mapping form to the memory of the host chip module.
[0173] To facilitate a further understanding of the device linkage solution of the present application, please refer to Figure 5 , the present application provides a bridging device that can simultaneously access multiple platforms. Chip A, chip B, and chip C are on the same bridging device (two or more chips. If there are only two platforms, then chip A + B can achieve this. Chip A controls platform A, and chip B controls platform B. Either the master or the slave can be selected arbitrarily).
[0174] Figure 5The chips A, B, and C already come with a processor, namely the CPU. The chips A, B, and C are connected via the IIC bus, and the processors can communicate via the IIC. According to the I2C (Inter-Integrated Circuit) protocol, a master device and slave devices need to be set among the chips A - C. The master-slave relationship is for the IIC bus, where one master device and several slave devices are required. Any one of the chips A - C can be selected as the master or slave.
[0175] Chip A has the SDK (Software Development Kit) of platform A built-in, which can support platform A and connect wirelessly to platform A, enabling device control or automation creation on platform A. The same applies to chips B and C. The internal processor of each chip performs logical processing, such as processing, adding, modifying, and deleting mapping forms for the data received and sent through the signal communication module. The internal memory of the chip is used to store mapping forms, wireless-related data, etc. The internal signal communication module of the chip is used for connections between chips, implementing the hardware connections and data transmission and reception of communication protocols such as I2C, SPI, and UART. Chips A, B, and C can communicate through communication interfaces such as I2C, SPI, and UART interfaces. The master-slave relationship is that only one chip serves as the host, and the rest serve as slaves. Through the mapping form, the signal connection between platform A and platform B is achieved. There is only one mapping form, which only needs to be stored in the host. The form is used to record that the action of device A triggers the action of device B.
[0176] The definition of the mapping form is: if device A has action 1 (or state 1), then device B implements action 2 (or state 2). The mapping form is stored in the memory of each chip. Example of an embodiment: Cloud platform A has already connected three different types of devices, namely A-2 (possibly a curtain motor), A-3 (possibly a lamp), and A-4 (possibly an air conditioner thermostat).
[0177] Cloud platform B has already connected four different types of devices, namely device B-2 (such as a floor cleaning robot), device B-3 (such as an air purifier), device B-4 (such as an air conditioner thermostat), and device B-5 (such as a wall socket).
[0178] When a user has a new sub-device (such as a wall switch) and hopes to support the device linkage of platforms A and B. Then, this effect can be achieved by simply connecting the device to either platform A or platform B. If it is connected to platform A, it is named A-5; if it is connected to platform B, it is named B-6. Here, for simplicity of description, only the case where the device is connected to only one cloud platform and is connected to platform B is considered (the case of connecting to platform A is similar), as Figure 6 shown.
[0179] After device wall switch B-6 is successfully connected to cloud platform B (assuming the wireless communication protocol used requires connection to gateway B), it can freely link various devices under cloud platforms A and B.
[0180] For example: When device B-6 links to device A-3, when device B-6 is turned on, device A-3 is turned off; when device B-6 is turned off, device A-3 is turned on. Then:
[0181] 1. Set up automation in the APP of platform B for linkage: "If: device B-6 is turned on, then: device B-1 is in the 0xC state", "If: device B-6 is turned off, then: device B-1 is in the 0x7 state";
[0182] 2. Set up in the APP of platform A: "If: device A-1 is in the 0xC state, then: device A-3 is turned off", "If: device A-1 is in the 0x7 state, then: device A-3 is turned on";
[0183] 3. Vice versa.
[0184] Both device A-1 and device B-1 are within the bridging device, and all device A-1 and device B-1 can achieve synchronization. For example, when device B-6 is turned on, device B-1 is in the 0xC state; the chip module of chip B obtains the state of device B-1 sent by chip A through the mapping form. After the chip module of chip B receives the state of device B-1, it causes device A-1 to be in the 0xC state, thereby triggering device A-3 to turn off. The final state achieved is that when device B-6 is turned on, device A-3 is turned off.
[0185] Device A-1 (virtual device corresponding to chip A in the bridging device):
[0186] Status synchronization: Device A-1 represents chip A in the bridging device and synchronizes its status with devices on cloud platform A (such as device A-3).
[0187] Receiving instructions: When chip A receives status change information from chip B (such as device B-1 being in the 0xC state), device A-1 will update its status to reflect this change.
[0188] Triggering linkage: Device A-1, according to the rules in the mapping form, when its status is 0xC, triggers the automation rule on cloud platform A, causing device A-3 to turn off.
[0189] Device B-1 (virtual device corresponding to chip B in the bridging device):
[0190] Status synchronization: Device B-1 represents Chip B in the bridging device, and it synchronizes status with devices on Cloud Platform B (such as Device B-6).
[0191] Sending instructions: When the status of Device B-6 changes (such as turning on or off), Device B-1 updates its status (such as 0xC or 0x7), and sends the status change information to Chip A through the bus in the bridging device.
[0192] Triggering linkage: The status change of Device B-1 is the starting point of the linkage process, which triggers the chip module of Chip B to communicate with Chip A through the mapping form.
[0193] After the automated settings in Steps 1 - 2, a mapping form will be created in Chip A (assuming Chip A is the host):
[0194] Form Bridge1: Chip B status is 0xC - Chip A status is 0xC (0xC represents the on state)
[0195] Form Bridge2: Chip B status is 0x7 - Chip A status is 0x7 (0x7 represents the off state)
[0196] For example, the process of Device B-6 turning on triggering Device A-3 to turn off:
[0197] After Device B-6 is turned on, it reports a message to Platform B, triggering the automation of Platform B. Platform B will send a message to Device B-1, changing the status of Device B-1 to 0xC. Chip B sends the status change to Chip A through IIC. After receiving the status, Chip A queries the mapping form and finds that the condition in Bridge1 is met. According to the result in Bridge1, Chip A changes its status to 0xC and reports the message to Platform A, triggering the automation of Platform A to send a message to turn off Device A-3.
[0198] Through this intermediate bridging conversion, a linkage is formed between Cloud Platform A and B. Device B-6 only needs to be connected to Cloud Platform B, and it can trigger devices under Platform A without being connected to Cloud Platform A.
[0199] It should be noted that Devices A-1, B-1, and C-1 are virtual devices under different platforms. Device A-1 can synchronize with Device B-1 or Device C-1, that is, multiple platforms can also be synchronized through the mapping form.
[0200] Please refer to Figure 7 , Figure 7 which is the structural schematic diagram of the device linkage device provided by the embodiment of this application. The device linkage device includes a receiving module 201, a determining module 202, and a linkage module 203, specifically as follows:
[0201] A receiving module 201, configured to receive a device linkage instruction triggered by a control device connected to a first platform;
[0202] A determining module 202, configured to determine a controlled device corresponding to the device linkage instruction, and determine whether the controlled device is connected to a second platform, where the second platform and the first platform are different platforms;
[0203] A linkage module 203, configured to, if the controlled device is connected to the second platform, control the controlled device to be linked with the control device according to a preset mapping form.
[0204] Optionally, in some embodiments of the present application, the linkage module 203 may specifically include:
[0205] An obtaining sub-module, configured to, if the controlled device is connected to the second platform, obtain a preset mapping form;
[0206] A determining sub-module, configured to identify the mapping form and determine a linkage relationship between the controlled device and the control device;
[0207] A linkage sub-module, configured to control the controlled device to be linked with the control device according to the linkage relationship.
[0208] Optionally, in some embodiments of the present application, the linkage sub-module may specifically include:
[0209] An obtaining unit, configured to obtain a first device state corresponding to the controlled device and a second device state corresponding to the control device;
[0210] A linkage unit, configured to control the controlled device to be linked with the control device based on the linkage relationship, the first device state corresponding to the controlled device, and the second device state corresponding to the control device.
[0211] Optionally, in some embodiments of the present application, the linkage unit may specifically include:
[0212] An adjustment sub-unit, configured to adjust a second device state corresponding to the controlled device based on the linkage relationship and a first device state corresponding to the control device;
[0213] A linkage sub-unit, configured to generate a message corresponding to a third device state after adjustment of the controlled device, and send the message to the controlled device through the second platform to control the controlled device to be linked with the control device.
[0214] Optionally, in some embodiments of the present application, the adjustment sub-unit may specifically be configured to:
[0215] Determine the first device action of the control device according to the second device state of the control device;
[0216] Obtain the associated device action associated with the first device action based on the linkage relationship;
[0217] Determine whether the second device action of the controlled device is the associated device action;
[0218] If the second device action of the controlled device is not the associated device action, adjust the second device state corresponding to the controlled device according to the associated device action.
[0219] Optionally, in some embodiments of the present application, the adjustment subunit may specifically further be used for:
[0220] When the first device state information corresponding to the control device changes, the first virtual device corresponding to the first platform and / or the second virtual device corresponding to the second platform are adjusted according to the changed first device state information;
[0221] When the second device state information corresponding to the controlled device changes, the first virtual device corresponding to the first platform and / or the second virtual device corresponding to the second platform are adjusted according to the changed second device state information;
[0222] Wherein, the first virtual device is the virtual device corresponding to the first platform generated by creating a mapping form, and the second virtual device is the virtual device corresponding to the second platform generated by creating a mapping form.
[0223] As can be seen from the above, the embodiment of the present application provides a device linkage device. After the receiving module 201 receives a device linkage instruction triggered by a control device connected to the first platform, the determining module 202 determines the controlled device corresponding to the device linkage instruction and determines whether the controlled device is connected to the second platform. The second platform and the first platform are different platforms. If the controlled device is connected to the second platform, the linkage module 203 controls the controlled device and the control device to perform linkage according to a preset mapping form. Therefore, when there are two or more smart home devices of different platforms in the user's home, the user can interact with the control device connected to the first platform to trigger a device linkage instruction, and then determine the controlled device corresponding to the device linkage instruction. If the second platform to which the controlled device belongs is in the same local area network as the first platform, the controlled device and the control device can be controlled to perform linkage according to a preset mapping form. Thus, the purpose of linkage control of smart home devices of different platforms can be achieved.
[0224] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as Figure 8As shown in the figure. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements an intention recognition method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen or the computer device itself.
[0225] Those skilled in the art can understand that Figure 8 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. Specifically, the computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0226] In one embodiment, an electronic device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0227] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0228] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0229] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0230] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
[0231] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the patent application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.
Claims
1. A device linkage method, characterized in that: include: Receiving a device linkage instruction triggered by a control device connected to the first platform; Determine a controlled device corresponding to the device linkage instruction, and determine whether the controlled device is connected to a second platform; the first platform and the second platform are different platforms; If the controlled device is connected to the second platform, the controlled device is controlled to be linked with the control device according to a preset mapping form.
2. The device linkage method according to claim 1, characterized in that: If the controlled device is connected to the second platform, controlling the controlled device to be linked with the control device according to a preset mapping form includes: If the controlled device is connected to the second platform, obtaining a preset mapping form; Identify the mapping table and determine the linkage relationship between the controlled device and the control device; The controlled device is controlled to be linked with the control device according to the linkage relationship.
3. The device linkage method according to claim 2, characterized in that: The controlling the controlled device to be linked with the control device according to the linkage relationship includes: Acquire a first device state corresponding to the controlled device and a second device state corresponding to the controlling device; Based on the linkage relationship, a first device state corresponding to the controlled device and a second device state corresponding to the control device, the controlled device is controlled to be linked with the control device.
4. The device linkage method according to claim 3, characterized in that: The controlling the controlled device to be linked with the control device based on the linkage relationship, the first device state corresponding to the controlled device, and the second device state of the control device includes: Based on the linkage relationship and the second device state corresponding to the control device, adjusting the first device state corresponding to the controlled device; Generate a message corresponding to the third device state after the controlled device is adjusted, and send the message to the controlled device through the second platform to control the controlled device to be linked with the control device.
5. The device linkage method according to claim 4, characterized in that: The adjusting the first device state corresponding to the controlled device based on the linkage relationship and the second device state of the control device includes: determining a first device action of the control device according to a second device state of the control device; Acquire an associated device action associated with the first device action based on the linkage relationship; Determining whether the second device action of the controlled device is the associated device action; If the second device action of the controlled device is not the associated device action, the first device state corresponding to the controlled device is adjusted according to the associated device action.
6. The device linkage method according to claim 1, characterized in that: Also includes: If the second device status information corresponding to the control device changes, the first virtual device corresponding to the first platform and / or the second virtual device corresponding to the second platform are adjusted according to the changed second device status information; If the first device status information corresponding to the controlled device changes, the first virtual device corresponding to the first platform and / or the second virtual device corresponding to the second platform are adjusted according to the changed first device status information; The first virtual device is a virtual device corresponding to the first platform generated by creating a mapping form, and the second virtual device is a virtual device corresponding to the second platform generated by creating a mapping form.
7. A bridging device, characterized in that: include: A plurality of chip modules, each of the chip modules communicates with at least one platform; The chip modules are connected via a bus to achieve data exchange and state synchronization, and one of the chip modules is configured as a host, and the other chip modules are slaves.
8. The bridging device according to claim 7, characterized in that: The bridge device is used to: Acquire platform information and chip information deployed on the control device, wherein the platform information includes multiple platforms to be accessed; A mapping table is configured according to the chip information and a plurality of platforms to be connected.
9. The bridging device according to claim 8, characterized in that: The configuring of a mapping form according to the chip information and a plurality of platforms to be connected includes: Based on the chip information, determining a platform to which each chip module can be connected; A mapping table is configured according to the multiple platforms to be connected and the platforms to which each chip module can be connected.
10. The bridging device according to claim 9, characterized in that: The configuring of the mapping table according to the plurality of platforms to be accessed and the platforms to which each chip module can be connected includes: Establishing a connection relationship between the platform to be connected and at least one chip module; Configure the device actions of the device connected to the chip module in different states; The device actions and connection relationships configured for the chip module are stored in a preset mapping table.
11. The bridging device according to claim 10, characterized in that: The step of storing the configured device actions and connection relationships of the chip module in a preset mapping table includes: Determine an associated first chip module and a second chip module, wherein the first chip module and the second chip module are respectively connected to different platforms; generating association state information based on device actions associated between the first chip module and the second chip module; The connection relationship and the association status information are stored in a preset mapping table.
12. The bridging device according to claim 11, characterized in that: The first chip module is connected to the third platform, the second chip module is connected to the fourth platform, the first physical device is connected to the third platform, and the second physical device is connected to the fourth platform. After storing the connection relationship and the associated state information in a preset mapping form, the method further includes: In response to a first device action of the first physical device, sending device information of the first device action to the first chip module through the third platform; According to the device information, adjusting the first chip module from a first state to a second state; transmitting the second state to the second chip module via the bus; The second chip module queries whether the second state meets a preset condition according to the mapping table; If the second state meets a preset condition, the state of the second chip module is adjusted to the second state, and in the second state, the second physical device is controlled to execute a second device action.
13. The bridging device according to claim 9, characterized in that: After configuring the mapping table according to the plurality of platforms to be connected and the platforms to which each chip module can be connected, the method further includes: Determining a host among multiple chip modules; The mapping table is stored in the host.
14. A device linkage device, characterized in that: include: A receiving module, used to receive a device linkage instruction triggered by a control device connected to the first platform; a determination module, used to determine the controlled device corresponding to the device linkage instruction, and determine whether the controlled device is connected to the second platform; the first platform and the second platform are different platforms; A linkage module is used to control the controlled device to be linked with the control device according to a preset mapping form if the controlled device is connected to the second platform.
15. An electronic device comprising at least one memory and at least one processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.