CN105141495B - Virtual device creating method and gateway device - Google Patents

Virtual device creating method and gateway device Download PDF

Info

Publication number
CN105141495B
CN105141495B CN201510527927.5A CN201510527927A CN105141495B CN 105141495 B CN105141495 B CN 105141495B CN 201510527927 A CN201510527927 A CN 201510527927A CN 105141495 B CN105141495 B CN 105141495B
Authority
CN
China
Prior art keywords
equipment
virtual
heterogeneous
created
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510527927.5A
Other languages
Chinese (zh)
Other versions
CN105141495A (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.)
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Original Assignee
Qingdao Haier Intelligent Home Appliance 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 Qingdao Haier Intelligent Home Appliance Technology Co Ltd filed Critical Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Priority to CN201510527927.5A priority Critical patent/CN105141495B/en
Publication of CN105141495A publication Critical patent/CN105141495A/en
Application granted granted Critical
Publication of CN105141495B publication Critical patent/CN105141495B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a virtual device creating method and gateway equipment. The method comprises the following steps: after the heterogeneous device accesses the gateway, detecting whether a virtual device corresponding to the heterogeneous device exists in the AllJoyn network; and when the corresponding virtual equipment does not exist in the AllJoyn network, creating the virtual equipment corresponding to the heterogeneous equipment, and sending a broadcast in the AllJoyn network, wherein the broadcast carries the equipment information and the service interface information of the created virtual equipment. By means of the technical scheme, the virtual equipment in the AllJoyn network can be automatically detected, repeated creation of the virtual AllJoyn equipment corresponding to the same heterogeneous equipment is avoided, user participation is not needed, and the use experience of the user is improved.

Description

Virtual device creating method and gateway device
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a virtual device creation method and a gateway device.
Background
AllJoyn (AJ for short) is a collaborative open source software framework, programmers can write applications for searching nearby devices conveniently, and the system can be connected without a cloud environment regardless of the brand, the category and the system of the other party. The AllJoyn framework is very flexible, and enables the Internet of things to realize vision.
The AllJoyn DSB (Device System Bridge) technology developed by the AllSeen alliance is used for Device bridging, that is, non-AllJoyn devices (i.e., heterogeneous devices) are connected to an AllJoyn network, and communication between the AllJoyn devices and the heterogeneous devices is realized through the DSB devices. After the heterogeneous devices are connected to the DSB, the DSB creates a virtual AllJoyn device (i.e., virtual device) in the AllJoyn network. The virtual device can interact with other devices in the AllJoyn network, and transmits interaction data to corresponding heterogeneous devices through the DSB.
As shown in fig. 1, in the case where there are two DSBs in the network, the heterogeneous devices may be mapped as two virtual AllJoyn devices. The problem of duplicate virtual devices is currently avoided by configuring the DSB to implement virtual AllJoyn devices for selected devices (e.g., DSB _ a bridges D1 but not D2).
In addition, since the device implementing the DSB cannot predict the network condition before deployment, it is impossible to pre-configure which devices are accessed through the DSB and which devices are not, and only the end user can configure the devices. This causes inconvenience in use to the user. Moreover, the user has limited knowledge of the system and is difficult to select the optimal configuration strategy.
That is, in a network connected by the AllJoyn DSB technology, if there are more than two DSB devices, one heterogeneous device may be created by multiple DSB devices into multiple virtual AllJoyn devices in the AllJoyn network, which may cause resource waste. In some cases, it can also cause logical confusion in the operation of the device. At present, a method for automatically avoiding repeated virtual equipment creation is lacked, and the method can only depend on manual configuration of a user, so that inconvenience is brought to the user.
Disclosure of Invention
In view of the problem in the prior art that two or more DSB devices create a plurality of virtual AllJoyn devices for a heterogeneous device in an AllJoyn network, the present invention is proposed to provide a virtual device creation method and a gateway device that overcome the above problems or at least partially solve the above problems.
The invention provides a virtual device creating method, which comprises the following steps:
after the heterogeneous device accesses the gateway, detecting whether a virtual device corresponding to the heterogeneous device exists in the AllJoyn network;
and when the corresponding virtual equipment does not exist in the AllJoyn network, creating the virtual equipment corresponding to the heterogeneous equipment, and sending a broadcast in the AllJoyn network, wherein the broadcast carries the equipment information and the service interface information of the created virtual equipment.
The present invention also provides a gateway device, including:
the detection module is used for detecting whether the virtual equipment corresponding to the heterogeneous equipment exists in the AllJoyn network after the heterogeneous equipment is accessed to the gateway;
and the device system bridge DSB module is used for creating the virtual device corresponding to the heterogeneous device when the corresponding virtual device does not exist in the AllJoyn network, and sending a broadcast in the AllJoyn network, wherein the broadcast carries the device information and the service interface information of the created virtual device.
The invention has the following beneficial effects:
by means of the technical scheme of the embodiment of the invention, the problem that more than two DSB devices can create a plurality of virtual AllJoyn devices in the AllJoyn network in the prior art is solved, the virtual devices in the AllJoyn network can be automatically detected, the virtual AllJoyn devices corresponding to the same heterogeneous device are prevented from being repeatedly created, user participation is not needed, and the use experience of a user is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic diagram of a prior art duplicate creation virtual appliance;
FIG. 2 is a flowchart of a virtual device creation method of an embodiment of the present invention;
FIG. 3 is a schematic diagram of a network architecture of an embodiment of the present invention;
FIG. 4 is a signaling flow diagram of example 1 of an embodiment of the present invention;
FIG. 5 is a signaling flow diagram of example 2 of an embodiment of the present invention;
FIG. 6 is a signaling flow diagram of example 3 of an embodiment of the present invention;
FIG. 7 is a signaling flow diagram of example 4 of an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a gateway device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to solve the problem that a plurality of virtual AllJoyn devices can be created in an AllJoyn network by two or more DSB devices in the prior art, the invention provides a method for avoiding repeated virtual device creation. The present invention will be described in further detail below with reference to the drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Method embodiment
According to an embodiment of the present invention, a virtual device creating method is provided, fig. 2 is a flowchart of the virtual device creating method according to the embodiment of the present invention, and as shown in fig. 2, the virtual device creating method according to the embodiment of the present invention includes the following processes:
step 201, after the heterogeneous device accesses the gateway, detecting whether a virtual device corresponding to the heterogeneous device already exists in the AllJoyn network;
in step 201, detecting whether a virtual device corresponding to the heterogeneous device already exists in the AllJoyn network specifically includes two ways:
the first method is as follows: other gateways in the AllJoyn network look up whether corresponding virtual devices have been created for the heterogeneous devices.
The second method comprises the following steps: after the virtual device corresponding to the heterogeneous device is created, device information of the virtual device needs to be stored in a virtual device list; acquiring broadcasts sent by other gateways in the AllJoyn network, analyzing the broadcasts, acquiring equipment information of virtual equipment carried in the broadcasts, and storing the equipment information of the virtual equipment in a virtual equipment list; therefore, when detecting whether the virtual device corresponding to the device already exists in the AllJoyn network, whether the virtual device corresponding to the heterogeneous device exists can be searched in the virtual device list.
Step 202, when the corresponding virtual device does not exist in the AllJoyn network, creating the virtual device corresponding to the heterogeneous device, and sending a broadcast in the AllJoyn network, wherein the broadcast carries the device information and the service interface information of the created virtual device.
In the embodiment of the invention, when the corresponding virtual equipment exists in the AllJoyn network, the heterogeneous equipment is placed into the cache equipment list for caching; and when detecting that the existing virtual equipment corresponding to the heterogeneous equipment in the AllJoyn network is offline, taking the heterogeneous equipment out of the cache equipment list, and creating corresponding virtual equipment for the heterogeneous equipment.
In this embodiment of the present invention, it is possible that none of steps 201 and 202 is executed to detect a corresponding virtual device, but when the gateway 1 is creating or is about to create a virtual device, the gateway 2 may also be creating a virtual device, so that in the process of preparing to create or creating a virtual device by the gateway 1, the gateway 2 completes creation of the virtual device, so that two virtual devices are created, and in order to avoid the foregoing situation, the technical solution of the embodiment of the present invention further needs to perform the following processing:
step 1, when virtual equipment corresponding to heterogeneous equipment is created, if broadcast sent by other gateways is received, the broadcast is analyzed, and equipment information of the virtual equipment carried in the broadcast is acquired;
step 2, searching whether heterogeneous equipment corresponding to the virtual equipment exists in a local equipment list or not according to the acquired equipment information, and if yes, determining that the heterogeneous equipment already has the corresponding virtual equipment in the AllJoyn network;
step 3, detecting the virtual equipment creating state of the heterogeneous equipment, and if the virtual equipment does not start to be created, moving the heterogeneous equipment from a virtual equipment waiting to be created list to a cache equipment list; if the virtual equipment is being created, stopping the created process which is started, clearing temporary data generated in the creating process, returning to the state before creation, and putting the heterogeneous equipment into a cache equipment list; if the virtual equipment is created, deleting the created virtual equipment, and putting the heterogeneous equipment into a cache equipment list;
and 4, when detecting that the virtual equipment corresponding to the heterogeneous equipment exists in the AllJoyn network and is offline, taking the heterogeneous equipment out of the cache equipment list, and creating corresponding virtual equipment for the heterogeneous equipment.
The technical solutions of the embodiments of the present invention are described below with reference to the accompanying drawings.
As shown in fig. 3, in a home network composed of an all joyn device and a Z-Wave device (the above-mentioned heterogeneous devices), there are two gateways each implementing a DSB function. A Z-Wave doorbell is connected to a home network. According to the DSB technology, when the doorbell is connected to the gateway, the DSB on the gateway can create an Alljoyn device with the same function in the AllJoyn network according to the function of the doorbell. The gateway 1 runs DSB _ a. The gateway 2 runs DSB _ B. The AllJoyn handset can control the doorbell to sound or stop through the DSB running on the gateway.
Example 1: the DSB _ a has created a virtual device, and the DSB _ B has not started to be created yet, as shown in fig. 4, specifically includes the following processing:
step 1, after the doorbell D1 is accessed into the Z-Wave network, connection is firstly established with the gateway 1. The DSB _ a on the gateway 1 initiates a detection to determine whether there is already a virtual device of the doorbell in the AllJoyn network (the detection method refers to example, example 3 or example 4); the DSB _ A does not detect the virtual AllJoyn device with the doorbell, and then starts to create a virtual AllJoyn device VD1 corresponding to the Z-Wave doorbell;
step 2, after the VD1 is created, the About broadcast is sent in the AllJoyn network. The About broadcast information includes device information (such as device name, manufacturer, version, device ID, device description, etc.) and service interface information of the VD 1.
And 3, the detection module B on the gateway 2 receives the About broadcast of the VD1, analyzes the About data and obtains the equipment information of the VD 1. And then, the detection module B searches the Z-Wave equipment connected with the DSB _ B to obtain a Z-Wave equipment list connected with the gateway 2.
Step 4, assume that the doorbell D1 is now connected to the gateway 2. Then D1 is included in the device list. The detection module B compares the VD1 with the device information for each device in the device list to arrive at a match with D1. Then the VD1 is the virtual device corresponding to D1. The detection module B informs DSB _ B that the virtual device corresponding to D1 already exists in the AllJoyn network.
Step 5, DSB _ B knows that the virtual device corresponding to D1 already exists, and checks whether a virtual device is being created for D1. DSB _ B has not yet begun creating a virtual device for D1, then move D1 from the waiting to create virtual device list to the cache device list Temp.
And 6, the detection module B detects that the virtual device VD1 is offline, and informs the DSB _ B that the virtual device corresponding to the D1 does not exist in the current AllJoyn network.
Step 7, the DSB _ B takes D1 out of Temp, and creates a corresponding virtual AllJoyn device for it.
Example 2: the DSB _ a has created a virtual device, and the DSB _ B has started to be created, as shown in fig. 5, specifically includes the following processing:
step 1, after the doorbell D1 is accessed into the Z-Wave network, connection is firstly established with the gateway 1. The DSB _ a on the gateway 1 initiates a detection to determine whether there is already a virtual device for the doorbell in the AllJoyn network (the detection method refers to example, example 3 or example 4). The DSB _ A does not detect the virtual AllJoyn device with the doorbell, and then starts to create a virtual AllJoyn device VD1 corresponding to the Z-Wave doorbell;
step 2, after the VD1 is created, the About broadcast is sent in the AllJoyn network. The About broadcast information includes device information (such as device name, manufacturer, version, device ID, device description, etc.) and service interface information of the VD 1.
And 3, the detection module B on the gateway 2 receives the About broadcast of the VD1, analyzes the About data and obtains the equipment information of the VD 1. And then, the detection module B searches the Z-Wave equipment connected with the DSB _ B to obtain a Z-Wave equipment list connected with the gateway 2.
Step 4, assume that the doorbell D1 is now connected to the gateway 2. Then D1 is included in the device list. The detection module B compares the VD1 with the device information for each device in the device list to arrive at a match with D1. Then the VD1 is the virtual device corresponding to D1. The detection module B informs DSB _ B that the virtual device corresponding to D1 already exists in the AllJoyn network.
Step 5, DSB _ B knows that the virtual device corresponding to D1 already exists, and checks whether a virtual device is being created for D1. DSB _ B has begun creating a virtual device for D1, first stops the creation process that has begun, clears temporary data generated during the creation process, rolls back to the state prior to creation, and places D1 into the cache device list Temp.
And 6, the detection module B detects that the virtual device VD1 is offline, and informs the DSB _ B that the virtual device corresponding to the D1 does not exist in the current AllJoyn network.
Step 7, the DSB _ B takes D1 out of Temp, and creates a corresponding virtual AllJoyn device for it.
Example 3: after the virtual device stops the About broadcast, the device connects to the DSB, and the detection module does not cache the virtual device, as shown in fig. 6, specifically includes the following processing:
step 1, after the doorbell D1 is accessed into the Z-Wave network, connection is firstly established with the gateway 1. The DSB _ a on the gateway 1 initiates a detection to determine whether the virtual device of the doorbell is already in the AllJoyn network (the detection method refers to the detection process of the DSB _ B in this embodiment). The DSB _ A does not detect the virtual AllJoyn device with the doorbell, and then starts to create a virtual AllJoyn device VD1 corresponding to the Z-Wave doorbell;
step 2, after the VD1 is created, the About broadcast is sent in the AllJoyn network. The About broadcast information includes device information (such as device name, manufacturer, version, device ID, device description, etc.) and service interface information of the VD 1.
And 3, the detection module B on the gateway 2 receives the About broadcast of the VD1, analyzes the About data and obtains the equipment information of the VD 1. And then, the detection module B searches the Z-Wave equipment connected with the DSB _ B to obtain a Z-Wave equipment list connected with the gateway 2.
Step 4, assume that the doorbell D1 is not connected to the gateway 2 at this time. Then D1 is not included in the device list. The detection module B compares the VD1 with the device information of each device in the device list and finds no Z-Wave device matching the VD 1.
Step 5, doorbell D1 connects to DSB _ B. DSB _ B initiates a lookup D1 for the virtual device corresponding to detection module B. After receiving the request, the detection module B searches for information related to D1 in the AllJoyn network to obtain a response returned by the VD 1. That is, the VD1 satisfies the search condition of the detection module B.
And 6, the detection module B informs the DSB _ B that the virtual device corresponding to the D1 exists in the AllJoyn network. DSB _ B knows that the virtual device corresponding to D1 already exists, and puts D1 into the cache device list Temp.
And 7, the detection module B detects that the virtual device VD1 is offline, and informs the DSB _ B that the virtual device corresponding to the D1 does not exist in the current AllJoyn network.
Step 8, the DSB _ B takes the D1 out of Temp, and creates a corresponding virtual AllJoyn device for the D1.
Example 4: after the virtual device stops the About broadcast, the device connects to the DSB, and the detection module caches the virtual device, as shown in fig. 7, specifically including the following processing:
step 1, after the doorbell D1 is accessed into the Z-Wave network, connection is firstly established with the gateway 1. The DSB _ a at the gateway 1 initiates a detection to determine whether there is already a virtual device of the doorbell in the AllJoyn network (the detection method refers to the detection process of DSB _ B in this example). The DSB _ A does not detect the virtual AllJoyn device with the doorbell, and then starts to create a virtual AllJoyn device VD1 corresponding to the Z-Wave doorbell;
step 2, after the VD1 is created, the About broadcast is sent in the AllJoyn network. The About broadcast information includes device information (such as device name, manufacturer, version, device ID, device description, etc.) and service interface information of the VD 1.
And 3, the detection module B on the gateway 2 receives the About broadcast of the VD1, analyzes the About data and obtains the equipment information of the VD 1. And then, the detection module B searches the Z-Wave equipment connected with the DSB _ B to obtain a Z-Wave equipment list connected with the gateway 2.
Step 4, assume that the doorbell D1 is not connected to the gateway 2 at this time. Then D1 is not included in the device list. The detection module B compares the VD1 with the device information of each device in the device list and finds no Z-Wave device matching the VD 1. The detection module B puts the VD1 into the virtual device list. The list maintains all online virtual devices that the detection module discovers in the network.
Step 5, doorbell D1 connects to DSB _ B. DSB _ B initiates a lookup D1 for the virtual device corresponding to detection module B. After receiving the request, the detection module B searches for a virtual device matching with D1 in the virtual device list, and obtains the VD 1.
And 6, the detection module B informs the DSB _ B that the virtual device corresponding to the D1 exists in the AllJoyn network. DSB _ B knows that the virtual device corresponding to D1 already exists, and puts D1 into the cache device list Temp.
And 7, the detection module B detects that the virtual device VD1 is offline, and informs the DSB _ B that the virtual device corresponding to the D1 does not exist in the current AllJoyn network. At the same time, detection module B removes VD1 from the virtual device list.
Step 8, the DSB _ B takes the D1 out of Temp, and creates a corresponding virtual AllJoyn device for the D1.
As can be seen from the foregoing embodiments, a broadcast sent by a virtual device in a network determines whether a virtual device is being created or is about to be created for a corresponding heterogeneous device, and if so, cancels the creation of the virtual device for the heterogeneous device. After the heterogeneous device is connected with the gateway, whether the virtual device corresponding to the heterogeneous device exists is detected, and if so, the virtual device is not created for the heterogeneous device. And detecting the offline of the virtual equipment, finding out the corresponding heterogeneous equipment, and creating the virtual equipment for the heterogeneous equipment. According to the technical scheme of the embodiment of the invention, the virtual equipment in the AllJoyn network is automatically detected, so that the repeated creation of the virtual AllJoyn equipment corresponding to the same heterogeneous equipment is avoided, and the participation of a user is not required.
Device embodiment
According to an embodiment of the present invention, a gateway device is provided, fig. 8 is a schematic structural diagram of the gateway device according to the embodiment of the present invention, and as shown in fig. 8, the gateway device according to the embodiment of the present invention includes: the detection module 80 and the DSB module 82 are each described in detail below.
A detecting module 80, configured to detect whether a virtual device corresponding to the heterogeneous device already exists in the AllJoyn network after the heterogeneous device accesses the gateway;
the detection module 80 is further configured to: after the virtual device corresponding to the heterogeneous device is created, device information of the virtual device needs to be stored in a virtual device list; acquiring broadcasts sent by other gateways in the AllJoyn network, analyzing the broadcasts, acquiring equipment information of virtual equipment carried in the broadcasts, and storing the equipment information of the virtual equipment in a virtual equipment list; therefore, when detecting whether the virtual device corresponding to the device already exists in the AllJoyn network, whether the virtual device corresponding to the heterogeneous device exists can be searched in the virtual device list.
The detection module 80 is specifically configured to: other gateways in the AllJoyn network look up whether the device has created a virtual device. Or, whether the virtual device corresponding to the device exists is searched in the virtual device list.
The DSB module 82 is configured to create a virtual device corresponding to the heterogeneous device when there is no corresponding virtual device in the AllJoyn network, and send a broadcast in the AllJoyn network, where the broadcast carries device information and service interface information of the created virtual device. The DSB module 82 is further configured to: when the corresponding virtual equipment exists in the AllJoyn network, the heterogeneous equipment is placed into a cache equipment list for caching; and when detecting that the existing virtual equipment corresponding to the heterogeneous equipment in the AllJoyn network is offline, taking the heterogeneous equipment out of the cache equipment list, and creating corresponding virtual equipment for the heterogeneous equipment.
In an embodiment of the present invention, the detecting module 80 is further configured to: when the DSB module creates the virtual equipment corresponding to the equipment, receiving the broadcast sent by other gateways, analyzing the broadcast, and acquiring the equipment information of the virtual equipment in the broadcast;
the detection module 80 is further configured to: searching whether heterogeneous equipment corresponding to the virtual equipment exists in a local equipment list or not according to the acquired equipment information, and if yes, determining that the equipment already has the corresponding virtual equipment in the AllJoyn network;
the DSB module 82 is further configured to: detecting the virtual equipment creating state of the heterogeneous equipment, and if the virtual equipment does not start to be created, moving the heterogeneous equipment from a virtual equipment waiting to be created list to a cache equipment list; if the virtual equipment is being created, stopping the created process which is started, clearing temporary data generated in the creating process, returning to the state before creation, and putting the heterogeneous equipment into a cache equipment list; if the virtual equipment is created, deleting the created virtual equipment, and putting the heterogeneous equipment into a cache equipment list;
the DSB module 82 is further configured to: and when the detection module detects that the existing virtual equipment corresponding to the heterogeneous equipment in the AllJoyn network is offline, taking the heterogeneous equipment out of the cache equipment list, and creating corresponding virtual equipment for the heterogeneous equipment.
The specific processing of each module in the embodiment of the present invention may be understood with reference to the description of the method embodiment, and is not described herein again.
In summary, with the aid of the technical solutions of the embodiments of the present invention, a problem that a plurality of virtual AllJoyn devices are created in an AllJoyn network by two or more DSB devices in the prior art is solved, and virtual AllJoyn devices corresponding to the same heterogeneous device can be prevented from being repeatedly created by automatically detecting the virtual devices in the AllJoyn network, without user participation, thereby improving the user experience.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the client in an embodiment may be adaptively changed and provided in one or more clients different from the embodiment. The modules of the embodiments may be combined into one module and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or client so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a client loaded with a ranking website according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (8)

1. A virtual device creation method, comprising:
after the heterogeneous device accesses the gateway, detecting whether a virtual device corresponding to the heterogeneous device exists in the AllJoyn network;
when the corresponding virtual equipment exists in the AllJoyn network, the heterogeneous equipment is placed into a cache equipment list for caching; when detecting that the existing virtual equipment corresponding to the heterogeneous equipment in the AllJoyn network is offline, taking the heterogeneous equipment out of the cache equipment list, and creating corresponding virtual equipment for the heterogeneous equipment;
and when the corresponding virtual equipment does not exist in the AllJoyn network, creating the virtual equipment corresponding to the heterogeneous equipment, and sending a broadcast in the AllJoyn network, wherein the broadcast carries the created equipment information and the created service interface information of the virtual equipment.
2. The method of claim 1, wherein the detecting whether the virtual device corresponding to the heterogeneous device already exists in the AllJoyn network specifically comprises:
and searching whether corresponding virtual equipment is created for the heterogeneous equipment or not by other gateways in the AllJoyn network.
3. The method of claim 1,
the method further comprises: after the virtual equipment corresponding to the heterogeneous equipment is created, storing the equipment information of the virtual equipment into a virtual equipment list;
acquiring broadcasts sent by other gateways in the AllJoyn network, analyzing the broadcasts, acquiring equipment information of virtual equipment carried in the broadcasts, and storing the equipment information of the virtual equipment in the virtual equipment list;
the detecting whether the virtual device corresponding to the heterogeneous device exists in the all joyn network specifically includes:
and searching whether the virtual equipment corresponding to the heterogeneous equipment exists in the virtual equipment list.
4. The method of claim 1, wherein the method further comprises:
when virtual equipment corresponding to the heterogeneous equipment is created, if broadcast sent by other gateways is received, analyzing the broadcast to acquire equipment information of the virtual equipment carried in the broadcast;
searching whether heterogeneous equipment corresponding to the virtual equipment exists in a local equipment list according to the acquired equipment information, and if yes, determining that the heterogeneous equipment already has corresponding virtual equipment in the AllJoyn network;
detecting the virtual equipment creating state of the heterogeneous equipment, and if the virtual equipment does not start to be created, moving the heterogeneous equipment from a virtual equipment waiting to be created list to a cache equipment list; if the virtual equipment is being created, stopping the created process which is started, clearing temporary data generated in the creating process, returning to the state before creation, and putting the heterogeneous equipment into a cache equipment list; if the virtual equipment is created, deleting the created virtual equipment, and putting the heterogeneous equipment into a cache equipment list;
and when detecting that the existing virtual equipment corresponding to the heterogeneous equipment in the AllJoyn network is offline, taking the heterogeneous equipment out of the cache equipment list, and creating corresponding virtual equipment for the heterogeneous equipment.
5. A gateway device, comprising:
the detection module is used for detecting whether the virtual equipment corresponding to the heterogeneous equipment exists in the AllJoyn network after the heterogeneous equipment is accessed to the gateway;
a Device System Bridge (DSB) module, configured to, when a corresponding virtual device already exists in the AllJoyn network, place the heterogeneous device in a cache device list for caching; when detecting that the existing virtual equipment corresponding to the heterogeneous equipment in the AllJoyn network is offline, taking the heterogeneous equipment out of the cache equipment list, and creating corresponding virtual equipment for the heterogeneous equipment; alternatively, the first and second electrodes may be,
and when the corresponding virtual equipment does not exist in the AllJoyn network, creating the virtual equipment corresponding to the heterogeneous equipment, and sending a broadcast in the AllJoyn network, wherein the broadcast carries the created equipment information and the created service interface information of the virtual equipment.
6. The gateway device of claim 5, wherein the detection module is specifically configured to:
and searching whether corresponding virtual equipment is created for the heterogeneous equipment or not by other gateways in the AllJoyn network.
7. The gateway device of claim 5,
the detection module is further to: after the virtual equipment corresponding to the heterogeneous equipment is created, storing the equipment information of the virtual equipment into a virtual equipment list; acquiring broadcasts sent by other gateways in the AllJoyn network, analyzing the broadcasts, acquiring equipment information of virtual equipment carried in the broadcasts, and storing the equipment information of the virtual equipment in the virtual equipment list;
the detection module is specifically configured to: and searching whether the virtual equipment corresponding to the heterogeneous equipment exists in the virtual equipment list.
8. The gateway device of claim 5,
the detection module is further to: when virtual equipment corresponding to the heterogeneous equipment is created, if broadcast sent by other gateways is received, analyzing the broadcast to acquire equipment information of the virtual equipment carried in the broadcast;
the detection module is further to: searching whether heterogeneous equipment corresponding to the virtual equipment exists in a local equipment list according to the acquired equipment information, and if yes, determining that the heterogeneous equipment already has corresponding virtual equipment in the AllJoyn network;
the DSB module is further to: detecting the virtual equipment creating state of the heterogeneous equipment, and if the virtual equipment does not start to be created, moving the heterogeneous equipment from a virtual equipment waiting to be created list to a cache equipment list; if the virtual equipment is being created, stopping the created process which is started, clearing temporary data generated in the creating process, returning to the state before creation, and putting the heterogeneous equipment into a cache equipment list; if the virtual equipment is created, deleting the created virtual equipment, and putting the heterogeneous equipment into a cache equipment list;
the DSB module is further to: and when detecting that the existing virtual equipment corresponding to the heterogeneous equipment in the AllJoyn network is offline, taking the heterogeneous equipment out of the cache equipment list, and creating corresponding virtual equipment for the heterogeneous equipment.
CN201510527927.5A 2015-08-25 2015-08-25 Virtual device creating method and gateway device Active CN105141495B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510527927.5A CN105141495B (en) 2015-08-25 2015-08-25 Virtual device creating method and gateway device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510527927.5A CN105141495B (en) 2015-08-25 2015-08-25 Virtual device creating method and gateway device

Publications (2)

Publication Number Publication Date
CN105141495A CN105141495A (en) 2015-12-09
CN105141495B true CN105141495B (en) 2021-04-02

Family

ID=54726712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510527927.5A Active CN105141495B (en) 2015-08-25 2015-08-25 Virtual device creating method and gateway device

Country Status (1)

Country Link
CN (1) CN105141495B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105676655A (en) * 2015-12-29 2016-06-15 青岛海尔智能家电科技有限公司 Linkage method and apparatus between non-AllJoyn devices
CN107087011B (en) * 2016-02-14 2020-10-27 中兴通讯股份有限公司 Method, device and system for realizing remote access
CN106656811A (en) * 2016-12-06 2017-05-10 上海斐讯数据通信技术有限公司 Method and system for processing remote call based on AllJoyn frame
CN108989071B (en) * 2017-06-01 2021-04-20 中兴通讯股份有限公司 Virtual service providing method, gateway device, and storage medium
CN113434261B (en) * 2021-08-27 2021-12-17 阿里云计算有限公司 Heterogeneous computing device virtualization method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471963A (en) * 2007-12-27 2009-07-01 财团法人工业技术研究院 Intelligent remote interface device, system and use method thereof
CN101546325A (en) * 2008-12-23 2009-09-30 重庆邮电大学 Grid heterogeneous data integrating method based on SOA
CN102479100A (en) * 2010-11-26 2012-05-30 中国科学院软件研究所 Pervasive computing environment virtual machine platform and creation method thereof
CN103607338A (en) * 2013-11-27 2014-02-26 福建星网锐捷网络有限公司 Target object broadcasting method, device and system based on virtualization technology
CN103901844A (en) * 2014-03-13 2014-07-02 惠州Tcl移动通信有限公司 Intelligent home control method and system based on Alljoyn technology
CN104125123A (en) * 2013-04-28 2014-10-29 深圳市同洲电子股份有限公司 Virtual device discovering method and system
CN104137518A (en) * 2012-02-21 2014-11-05 高通股份有限公司 Internet protocol connectivity over a service-oriented architecture bus
CN104518890A (en) * 2014-12-30 2015-04-15 北京海尔广科数字技术有限公司 Network service processing method, information broadcasting and control method and device
CN104765291A (en) * 2015-02-10 2015-07-08 北京海尔广科数字技术有限公司 Method, device and gateway for controlling intelligent device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8775544B2 (en) * 2009-02-04 2014-07-08 Citrix Systems, Inc. Methods and systems for dynamically switching between communications protocols

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471963A (en) * 2007-12-27 2009-07-01 财团法人工业技术研究院 Intelligent remote interface device, system and use method thereof
CN101546325A (en) * 2008-12-23 2009-09-30 重庆邮电大学 Grid heterogeneous data integrating method based on SOA
CN102479100A (en) * 2010-11-26 2012-05-30 中国科学院软件研究所 Pervasive computing environment virtual machine platform and creation method thereof
CN104137518A (en) * 2012-02-21 2014-11-05 高通股份有限公司 Internet protocol connectivity over a service-oriented architecture bus
CN104125123A (en) * 2013-04-28 2014-10-29 深圳市同洲电子股份有限公司 Virtual device discovering method and system
CN103607338A (en) * 2013-11-27 2014-02-26 福建星网锐捷网络有限公司 Target object broadcasting method, device and system based on virtualization technology
CN103901844A (en) * 2014-03-13 2014-07-02 惠州Tcl移动通信有限公司 Intelligent home control method and system based on Alljoyn technology
CN104518890A (en) * 2014-12-30 2015-04-15 北京海尔广科数字技术有限公司 Network service processing method, information broadcasting and control method and device
CN104765291A (en) * 2015-02-10 2015-07-08 北京海尔广科数字技术有限公司 Method, device and gateway for controlling intelligent device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于AllJoyn框架的跨平台局域无线组网技术的实现;陈畅;《物联网技术》;20140815;第49-51页 *

Also Published As

Publication number Publication date
CN105141495A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
CN105141495B (en) Virtual device creating method and gateway device
CN107872528B (en) Message pushing method and device
WO2016029821A1 (en) Method and device for creating virtual network instance
US9146731B2 (en) Information processing apparatus, relay server, information relay method, non-transitory computer-readable medium storing information relay program, and communication system
CN107277029B (en) Remote procedure call method and device and computer equipment
EP3069536B1 (en) Location-based software updates
CN104935625B (en) The method and system of service are found in Enterprise SOA (SOA) network
US20160234307A1 (en) Data transmission method, device, and system
WO2017063533A1 (en) Service account association method, device and system and terminal device
CN103136342B (en) The searching method of application A PP, system and search server
WO2016095532A1 (en) Information push method and apparatus
JP6700308B2 (en) Data copy method and device
CN107580080B (en) Test environment connection method and device
CN111028839B (en) Smart home control method and device and electronic equipment
WO2017201961A1 (en) Method and device for identifying wi-fi type
CN105554085B (en) A kind of dynamic timeout treatment method and apparatus based on server connection
CN104967644A (en) Message push method, apparatus and system
WO2016101780A1 (en) Method and device for deploying service in virtualized network
CN107479985B (en) Remote procedure call method and device and computer equipment
CN109739665A (en) Interface managerial method, device, server and storage medium
CN105897758A (en) Container access control method and device
CN103440143A (en) System and method for upgrading mobile web application
CN109788050B (en) Method, system, electronic device and medium for acquiring IP address of source station
CN103546792A (en) Method and device for cleaning cache of video playing device
CN109446445A (en) A kind of resource acquiring method and device

Legal Events

Date Code Title Description
C06 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