CN111031138A - Communication method and device of Internet of things and computer readable storage medium - Google Patents

Communication method and device of Internet of things and computer readable storage medium Download PDF

Info

Publication number
CN111031138A
CN111031138A CN201911320519.7A CN201911320519A CN111031138A CN 111031138 A CN111031138 A CN 111031138A CN 201911320519 A CN201911320519 A CN 201911320519A CN 111031138 A CN111031138 A CN 111031138A
Authority
CN
China
Prior art keywords
alternative
communication
protocol
list
supported
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911320519.7A
Other languages
Chinese (zh)
Other versions
CN111031138B (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 Technology Co Ltd
Original Assignee
Qingdao Haier 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 Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN201911320519.7A priority Critical patent/CN111031138B/en
Publication of CN111031138A publication Critical patent/CN111031138A/en
Application granted granted Critical
Publication of CN111031138B publication Critical patent/CN111031138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Communication Control (AREA)

Abstract

The application relates to the technical field of Internet of things and discloses a communication method of the Internet of things. The method comprises the following steps: under the condition that the initiating device is not adaptive to the target device, receiving an alternative device list sent by the target device; sending a protocol list supported by the initiating device to the alternative devices in the alternative device list; in the case that the protocol supported by the alternative device is compatible with the protocols in the protocol list, a communication connection is established with the target device through the alternative device. The method and the device can realize the interconnection communication between the devices, thereby simplifying the adaptation process between the devices, improving the adaptation efficiency and further improving the user experience. The application also discloses a communication device and a computer readable storage medium of the Internet of things.

Description

Communication method and device of Internet of things and computer readable storage medium
Technical Field
The present application relates to the field of internet of things technology, and for example, to a communication method and apparatus for internet of things and a computer-readable storage medium.
Background
The Internet of Things (IoT) is a network that connects any object to the network according to an agreed protocol through Radio Frequency Identification (RFID), infrared sensor, Global Positioning System (GPS), laser scanner, and other information sensing devices, and the object performs information exchange and communication through an information propagation medium, so as to realize intelligent identification, Positioning, tracking, monitoring, and management.
With the development of the internet of things, many household appliance manufacturers increase the research and development of the internet of things household appliances, and release respective internet of things household appliance products, so that the internet of things household appliances become a development trend.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art: because different household electrical appliance manufacturers make own communication protocols or several household electrical appliance manufacturers form an alliance to jointly provide a set of communication protocols, the interconnection communication between the household electrical appliances of different household electrical appliance manufacturers, even between the household electrical appliances of different models of the same household electrical appliance manufacturer can not be realized, the adaptation process between the household electrical appliances is complex, and the adaptation efficiency is low.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a communication method and device of an internet of things and a computer readable storage medium, which are used for solving the technical problems that due to different communication protocols, interconnection communication cannot be realized between household appliances in the internet of things, so that the adaptation process between the household appliances is complex and the adaptation efficiency is low.
In some embodiments, a communication method of the internet of things includes: under the condition that the initiating device is not adaptive to the target device, receiving an alternative device list sent by the target device; sending a protocol list supported by the initiating device to the alternative devices in the alternative device list; in the case that the protocol supported by the alternative device is compatible with the protocols in the protocol list, a communication connection is established with the target device through the alternative device.
In some embodiments, a communication device of the internet of things comprises: the receiving module is configured to receive an alternative device list sent by the target device under the condition that the initiating device is not adapted to the target device; a first sending module configured to send a protocol list supported by an initiating device to an alternative device in an alternative device list; and the connection module is configured to establish communication connection with the target device through the alternative device under the condition that the protocol supported by the alternative device is compatible with the protocol in the protocol list.
In some embodiments, the communication device of the internet of things comprises a processor and a memory storing program instructions, wherein the processor is configured to execute the communication method of the internet of things as described above when executing the program instructions.
In some embodiments, a computer-readable storage medium stores computer-executable instructions that, when executed by a processor, implement a method of communication for the internet of things as described above.
The communication method and device of the internet of things and the computer readable storage medium provided by the embodiment of the disclosure can achieve the following technical effects:
the method comprises the steps of receiving an alternative device list sent by a target device under the condition that an initiating device is not adaptive to the target device, sending a protocol list supported by the initiating device to the alternative device in the alternative device list, and establishing communication connection with the target device through the alternative device under the condition that a protocol supported by the alternative device is compatible with the protocol in the protocol list, so that interconnection communication between the devices can be realized, the adaptive process between the devices is simplified, the adaptive efficiency is improved, and the user experience is further improved.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
fig. 1 is a schematic flow chart of a communication method of the internet of things provided by an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a communication method of the internet of things provided by the embodiment of the disclosure;
fig. 3 is a schematic flow chart of a communication method of the internet of things provided by the embodiment of the disclosure;
fig. 4 is a schematic structural diagram of a communication device of the internet of things provided by the embodiment of the disclosure;
fig. 5 is a schematic structural diagram of a communication device of the internet of things provided by the embodiment of the disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
Fig. 1 is a schematic flow chart of a communication method of the internet of things provided by the embodiment of the disclosure. As shown in fig. 1, the communication method of the internet of things includes:
s110, receiving an alternative device list sent by a target device under the condition that an initiating device is not adaptive to the target device;
s120, sending a protocol list supported by the initiating device to the alternative devices in the alternative device list;
s130, under the condition that the protocol supported by the alternative equipment is compatible with the protocol in the protocol list, establishing communication connection with the target equipment through the alternative equipment;
specifically, when an initiating device and a target device in the internet of things cannot communicate due to non-adaptation, the target device sends a list of alternative devices with which the target device can communicate to the initiating device; then, the initiating device sends the protocol list supported by the initiating device to the alternative devices in the alternative device list; further, the alternative device compares the supported protocol with the received protocol in the protocol list supported by the initiating device, and if the protocol supported by the alternative device exists in the protocol list supported by the initiating device, it indicates that the alternative device can be adapted to the initiating device, that is, the alternative device can establish a communication connection with the initiating device, so that the initiating device can establish a communication connection with the target device through the alternative device and communicate with the target device.
Here, the initiator device, the target device, and the candidate device may be home appliances, such as an air conditioner, a washing machine, a dryer, etc., or may be terminal devices, such as a mobile phone, a notebook computer, a personal digital assistant, etc., or may also be gateway devices, such as a router, a switch, etc., which are not limited by the embodiments of the present disclosure. Further, the alternative device can be used as an intermediate device in the internet of things, and is used for realizing conversion and distribution of communication protocols among various devices, so that interconnection communication among the various devices can be realized.
The candidate device list may include one or more candidate devices, and when a plurality of candidate devices are included in the candidate device list, the candidate devices may be candidate devices of the same hierarchy or candidate devices of different hierarchies, which is not limited in this disclosure. For example, assume that the candidate device list of the target device Z includes a candidate device B and a candidate device C, the candidate device list of the candidate device B includes a candidate device D and a candidate device E, the candidate device list of the candidate device C includes a candidate device F, and so on. It should be noted that, the number of the alternative devices in the same hierarchy is not limited by the embodiments of the present disclosure, for example, the number of the alternative devices in the same hierarchy may be one, two, three or more.
In addition, the structure of the alternative device list may be a tree topology, that is, the alternative devices in the alternative device list are arranged in a tree. It should be understood that the structure of the alternative device list is not limited to the tree topology as described above, for example, a star topology, a bus topology, a ring topology, a mesh topology, etc., which is not limited by the embodiments of the present disclosure.
A protocol, i.e., a communication protocol, refers to the rules and conventions that must be followed by two entities to complete a communication or service. The protocol defines the format used by the data unit, the information and meaning that the information unit should contain, the manner of connection, and the timing of the sending and receiving of the information, thereby ensuring that the data is smoothly transmitted to a certain place in the network.
Further, the communication Protocol may include, but is not limited to, HyperText transfer Protocol (HTTP), Advanced Message Queuing Protocol (AMQP), Extensible Messaging and Presence Protocol (XMPP), restricted Application Protocol (CoAP), and Message Queuing Telemetry Transport (MQTT) protocols.
It should be noted that the initiator device, the target device, and the alternative device of the embodiments of the present disclosure may support one or more communication protocols.
According to the technical scheme provided by the embodiment of the disclosure, the alternative device list sent by the target device is received under the condition that the initiating device is not adapted to the target device, the protocol list supported by the initiating device is sent to the alternative device in the alternative device list, and the communication connection with the target device is established through the alternative device under the condition that the protocol supported by the alternative device is compatible with the protocol in the protocol list, so that the interconnection communication between the devices can be realized, therefore, the adaptation process between the devices is simplified, the adaptation efficiency is improved, and the user experience is further improved.
In some embodiments, in the case that the protocol supported by the alternative device is compatible with the protocols in the protocol list, establishing, by the alternative device, the communication connection with the target device includes: determining a communication link between the initiating device and the target device under the condition that the protocol supported by the alternative device is compatible with the protocol in the protocol list; sending unique link identification to each device on the communication link one by one; and after receiving the link establishment notification sent by the target equipment, establishing communication connection with the target equipment through the communication link.
Specifically, after receiving the protocol list sent by the initiator, the candidate device compares the supported protocol with the protocols in the protocol list and feeds back the comparison result to the initiator, and if the supported protocol of the candidate device is compatible with the protocols in the protocol list, it indicates that the link between the initiator and the candidate device is communicable, and at this time, the initiator may determine that the link between the initiator and the target device is also communicable, and thereby establish a communication link between the initiator and the target device.
Then, the initiating device sends a unique link identifier to the candidate device adjacent to the initiating device on the communication link, and after receiving the unique link identifier sent by the initiating device, the candidate device stores the unique link identifier and continues to send the unique link identifier to the target device.
Further, after receiving the unique link identifier sent by the alternative device, the target device stores the unique link identifier and sends a link establishment notification to the initiating device to notify the initiating device that the communication link is successfully established; after receiving the link establishment notification sent by the target device, the initiator device may establish a communication connection with the target device through the communication link and communicate with the target device.
Here, a link refers to a physical line from a node to a neighboring node without any other switching node in between, and a node is a node that includes a data element and several branches pointing to other subtrees.
A communication link refers to a physical channel between two nodes in a network. The communication link may be a point-to-point connection communication link, i.e. a link connects only two nodes; the link may also be a multipoint connection link, that is, one link connects multiple nodes, which is not limited in this disclosure.
The link identification refers to flag information of the communication link. For a communication link, its link id is unique, and each device on the communication link needs to carry a unique link id. Further, the link identifier may be a link number, a link name, or a link address, and the like, which is not limited in this disclosure.
According to the technical scheme provided by the embodiment of the disclosure, the unique link identifier is sent to each device on the communication link after the communication link is determined, and the corresponding device can be quickly and accurately found in the subsequent communication process, so that the adaptation time is saved, the adaptation efficiency is improved, and the user experience is further improved.
In some embodiments, the communication method of the internet of things of fig. 1 further includes: the alert message is issued if the alternative device appears on the communication link at least twice.
Specifically, when one or more candidate devices in the same hierarchy or one or more candidate devices in different hierarchies exist in the candidate device list, multiple communication links may exist, and at this time, the multiple communication links need to be judged to screen out the most suitable communication link; further, if the alternative device appears on a communication link twice or more, it indicates that the communication link has a loop, and at this time, a prompt message such as "communication connection failure" is sent out, and the communication link is discarded. Here, the loop refers to a cyclic reciprocation.
For example, assuming that the initiator a attempts to perform a communication connection with the target device Z, since a protocol supported by the initiator a is incompatible with a protocol supported by the target device Z, the initiator a and the target device Z cannot directly establish a communication connection; at this time, the initiating device A tries to perform communication connection with the alternative device B of the target device Z; the protocol supported by the initiating device a is incompatible with the protocol supported by the alternative device B, so that the initiating device a continues to attempt communication connection with the alternative device C of the alternative device B; since the protocol supported by initiating device a is not compatible with the protocol supported by alternate device C, initiating device a continues to attempt a communication connection with alternate device D of alternate device C, and so on, there may be a communication link of "Z-B-C-D-B" that circulates indefinitely due to the occurrence of alternate device B twice in the communication link.
It should be noted that the screening method of the communication links is not limited to discarding the communication links with the loop as described above, for example, the communication link with the shortest time or the communication link with the fewest hierarchies may be selected as the optimal communication link, and the embodiment of the present disclosure does not limit this.
According to the technical scheme provided by the embodiment of the disclosure, the searching speed of the adaptive equipment can be improved by screening the communication links and abandoning the communication links with loops, so that the adaptive time is saved, and the adaptive efficiency is improved.
In some embodiments, the communication method of the internet of things of fig. 1 further includes: and in the case that the protocols supported by the alternative devices are not compatible with the protocols in the protocol list, sending the protocol list supported by the initiating device to other alternative devices in the same layer or alternative devices in the next layer.
Specifically, if the protocol supported by the alternative device is not compatible with the protocols in the protocol list, it indicates that the link between the initiating device and the alternative device is not communicable, and at this time, the initiating device may continue to send its supported protocol list to other alternative devices in the same hierarchy; or after receiving the list of candidate devices capable of communicating with the candidate device sent by the candidate device, sending the list of supported protocols to the candidate device of the next hierarchy until the initiating device finds a device capable of adapting to the initiating device.
According to the technical scheme provided by the embodiment of the disclosure, the alternative device adapted to the initiating device can be found by traversing the alternative devices in the alternative device list, so that the interconnection communication between the initiating device and the target device in the internet of things is realized by taking the alternative devices as intermediate devices.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
Fig. 2 is a schematic flow chart of a communication method of the internet of things provided by the embodiment of the disclosure. As shown in fig. 2, the communication method of the internet of things includes:
s210, receiving an alternative device list sent by a target device under the condition that an initiating device is not adaptive to the target device;
s220, sending a protocol list supported by the initiating device to the alternative devices in the alternative device list;
s230, determining whether the protocol supported by the alternative equipment is compatible with the protocol in the protocol list;
s240, if the protocol supported by the alternative equipment is compatible with the protocol in the protocol list, determining a communication link between the initiating equipment and the target equipment;
s250, sending unique link identification to each device on the communication link one by one;
s260, after receiving the link establishment notification sent by the target equipment, establishing communication connection with the target equipment through a communication link;
s270, if the protocol supported by the candidate device is not compatible with the protocol in the protocol list, sending the protocol list supported by the initiating device to other candidate devices in the same layer or the candidate device in the next layer, and continuing to perform S230.
According to the technical scheme provided by the embodiment of the disclosure, under the condition that an initiating device is not adaptive to a target device, a standby device list sent by the target device is received, a protocol list supported by the initiating device is sent to the standby device in the standby device list, whether a protocol supported by the standby device is compatible with the protocol in the protocol list is determined, if the protocol supported by the standby device is compatible with the protocol in the protocol list, a communication link between the initiating device and the target device is determined, a unique link identifier is sent to each device on the communication link one by one, and after a link establishment notice sent by the target device is received, communication connection with the target device is established through the communication link; if the protocol supported by the alternative device is not compatible with the protocol in the protocol list, the protocol list supported by the initiating device is sent to other alternative devices in the same level or alternative devices in the next level, and the communication connection between the initiating device and the target device can be established through the alternative devices under the condition that the communication protocol supported by the devices is not changed, so that the interconnection communication between the devices in the internet of things is realized, the adaptation process between the devices is simplified, the adaptation efficiency is improved, and the user experience is further improved.
Fig. 3 is a schematic flow chart of a communication method of the internet of things provided by the embodiment of the disclosure. The interaction subject involved in fig. 3 is an initiating device, a target device, and an alternative device, and as shown in fig. 3, the communication method of the internet of things includes:
s301, an initiating device sends a communication request to a target device, wherein the communication request is used for requesting communication connection with the target device and comprises a protocol list supported by the initiating device;
s302, after receiving a communication request sent by an initiating device, a target device determines whether a protocol supported by the target device is compatible with a protocol in a protocol list supported by the initiating device;
s303, under the condition that the protocol supported by the target device is incompatible with the protocol in the protocol list supported by the initiating device, the target device sends the alternative device list to the initiating device;
s304, the initiating device sends a communication request to the alternative devices in the alternative device list, wherein the communication request is used for requesting communication connection with the alternative devices and comprises a protocol list supported by the initiating device;
s305, after receiving a communication request sent by initiating equipment, determining whether a protocol supported by the alternative equipment is compatible with a protocol in a protocol list by the alternative equipment;
s306, under the condition that the protocol supported by the alternative equipment is compatible with the protocol in the protocol list supported by the initiating equipment, the alternative equipment sends prompt information to the initiating equipment;
s307, the initiating device determines a communication link between the initiating device and the target device;
s308, the initiating device sends a unique link identifier to the alternative device adjacent to the initiating device on the communication link;
s309, after receiving the unique link identifier sent by the initiating device, the alternative device sends the unique link identifier to the target device;
s310, after receiving the unique link identification sent by the alternative equipment, the target equipment sends a link establishment notice to the initiating equipment;
s311, after receiving the link establishment notification sent by the target device, the initiator device establishes a communication connection with the target device.
Specifically, in the internet of things, when communication with a target device is needed, an initiating device sends a communication request to the target device, wherein the communication request comprises a protocol list supported by the initiating device; after receiving a communication request sent by initiating equipment, target equipment screens out a protocol supported by the target equipment from a protocol list supported by the initiating equipment and feeds back a screening result to the initiating equipment, and if the protocol supported by the target equipment is compatible with the protocol in the protocol list supported by the initiating equipment, the initiating equipment can directly establish communication connection with the target equipment and carry out communication; if the protocol supported by the target device is not compatible with the protocols in the list of protocols supported by the initiator device, the target device sends the initiator device a list of alternative devices with which the target device can establish a communication connection.
Then, the initiating device sends a communication request to the alternative devices in the alternative device list to try to establish communication connection with the alternative devices, wherein the communication request comprises a protocol list supported by the initiating device; after receiving a communication request sent by the initiating device, the alternative device compares the protocol supported by the alternative device with the protocols in the protocol list and feeds back the comparison result to the initiating device, and if the protocol supported by the alternative device is compatible with the protocols in the protocol list supported by the initiating device, the initiating device can establish communication connection with the alternative device and send a unique link identifier to the alternative device.
Further, after receiving the unique link identifier sent by the initiating device, the alternative device sends the unique link identifier to the target device; after receiving the unique link identification sent by the alternative equipment, the target equipment sends a link establishment notification to the initiating equipment so as to notify the initiating equipment that the communication link is successfully established; after receiving the link establishment notification sent by the target device, the initiator device establishes a communication connection with the target device through the alternative device and performs communication.
Furthermore, if the protocol supported by the alternative device is not compatible with the protocols in the protocol list supported by the initiating device, the initiating device may continue to send its supported protocol list to other alternative devices in the same hierarchy; or after receiving the list of candidate devices capable of communicating with the candidate device sent by the candidate device, sending the list of supported protocols to the candidate device of the next hierarchy until the initiating device finds a device capable of adapting to the initiating device.
According to the technical scheme provided by the embodiment of the disclosure, the alternative device which simultaneously supports the communication protocol of the initiating device and the target device is used as the intermediate device for communication transfer, so that the initiating device and the target device which cannot be directly communicated originally can quickly establish communication connection, the problem that the devices in the internet of things cannot be interconnected and communicated is solved, the adaptation process between the devices is simplified, the adaptation efficiency is improved, and the user experience is further improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 4 is a schematic structural diagram of a communication device of the internet of things provided by the embodiment of the disclosure. As shown in fig. 4, the communication device of the internet of things includes:
a receiving module 410 configured to receive a list of alternative devices sent by a target device in a case that an initiating device is not adapted to the target device;
a first sending module 420 configured to send a list of protocols supported by the initiating device to the candidate devices in the list of candidate devices;
a connection module 430 configured to establish a communication connection with the target device through the alternative device if the protocol supported by the alternative device is compatible with the protocols in the protocol list.
According to the technical scheme provided by the embodiment of the disclosure, the alternative device list sent by the target device is received under the condition that the initiating device is not adapted to the target device, the protocol list supported by the initiating device is sent to the alternative device in the alternative device list, and the communication connection with the target device is established through the alternative device under the condition that the protocol supported by the alternative device is compatible with the protocol in the protocol list, so that the interconnection communication between the devices can be realized, therefore, the adaptation process between the devices is simplified, the adaptation efficiency is improved, and the user experience is further improved.
In some embodiments, the connection module 430 of fig. 4, includes: a determination unit 4301, a transmission unit 4302, and a connection unit 4303.
Specifically, the determining unit 4301 is configured to determine a communication link between the initiating device and the target device if the protocol supported by the alternative device is compatible with the protocols in the protocol list; the transmitting unit 4302 is configured to transmit unique link identifications one by one to each device on the communication link; the connection unit 4303 is configured to establish a communication connection with the target apparatus through the communication link upon receiving the link establishment notification transmitted by the target apparatus.
In some embodiments, the connection module 430 of fig. 4 further includes: a presentation unit 4304.
In particular, the prompt unit 4304 is configured to issue a prompt message if the alternative device appears at least twice on the communication link.
In some embodiments, the communication device of the internet of things of fig. 4 further comprises: a second sending module 440.
In particular, the second sending module 440 is configured to send the list of protocols supported by the initiating device to other alternative devices of the same hierarchy or to an alternative device of a next hierarchy in case the protocols supported by the alternative devices are not compatible with the protocols in the protocol list.
In some embodiments, the communication link is a point-to-point connection communication link or a multipoint connection link.
Fig. 5 is a schematic structural diagram of a communication device of the internet of things provided by the embodiment of the disclosure. As shown in fig. 5, the communication device of the internet of things includes: a Processor (Processor)510 and a Memory (Memory)520, and may also include a Communication Interface 530 and a bus 540. The processor 510, the communication interface 530 and the memory 520 may communicate with each other via a bus 540. Communication interface 530 may be used for information transfer. The processor 510 may invoke logic instructions in the memory 520 to perform the communication method of the internet of things of the above embodiments.
In addition, the logic instructions in the memory 520 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as a stand-alone product.
The memory 520 is a computer-readable storage medium and can be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 510 executes the program instructions/modules stored in the memory 520 to execute functional applications and data processing, i.e., to implement the communication method of the internet of things in the above method embodiments.
The memory 520 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, memory 520 may include high speed random access memory, and may also include non-volatile memory.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to execute the communication method of the internet of things.
Embodiments of the present disclosure provide a computer program product including a computer program stored on a computer-readable storage medium, the computer program including program instructions that, when executed by a computer, cause the computer to perform the communication method of the internet of things described above.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of the disclosed embodiments includes the full ambit of the claims, as well as all available equivalents of the claims. As used in this application, although the terms "first," "second," etc. may be used in this application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, unless the meaning of the description changes, so long as all occurrences of the "first element" are renamed consistently and all occurrences of the "second element" are renamed consistently. The first and second elements are both elements, but may not be the same element. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (12)

1. A communication method of the Internet of things is characterized by comprising the following steps:
under the condition that the initiating device is not adaptive to the target device, receiving an alternative device list sent by the target device;
sending a protocol list supported by the initiating device to the alternative devices in the alternative device list;
establishing a communication connection with the target device through the alternative device if the protocol supported by the alternative device is compatible with the protocols in the protocol list.
2. The method of claim 1, wherein the establishing, by the alternative device, the communication connection with the target device if the protocol supported by the alternative device is compatible with the protocols in the protocol list comprises:
determining a communication link between the initiator device and the target device if the protocols supported by the alternative device are compatible with the protocols in the list of protocols;
sending unique link identification to each device on the communication link one by one;
and after receiving a link establishment notification sent by the target equipment, establishing communication connection with the target equipment through the communication link.
3. The method of claim 2, further comprising:
issuing a prompt if the alternative device appears at least twice on the communication link.
4. The method of any of claims 1 to 3, further comprising:
and in the case that the protocols supported by the alternative devices are not compatible with the protocols in the protocol list, sending the protocol list supported by the initiating device to other alternative devices in the same layer or alternative devices in the next layer.
5. A method according to any one of claims 1 to 3, wherein the communication link is a point-to-point connection communication link or a multipoint connection link.
6. A communication device of the internet of things, comprising:
the receiving module is configured to receive a candidate device list sent by a target device under the condition that an initiating device is not adapted to the target device;
a first sending module configured to send a protocol list supported by the initiating device to the candidate devices in the candidate device list;
a connection module configured to establish a communication connection with the target device through the alternative device if the protocol supported by the alternative device is compatible with the protocols in the protocol list.
7. The apparatus of claim 6, wherein the connection module comprises:
a determining unit configured to determine a communication link between the initiator device and the target device if the protocol supported by the alternative device is compatible with the protocols in the protocol list;
a transmitting unit configured to transmit a unique link identifier one by one to each device on the communication link;
a connection unit configured to establish a communication connection with the target device through the communication link after receiving the link establishment notification sent by the target device.
8. The apparatus of claim 7, further comprising:
a prompting unit configured to issue a prompt message if the alternative device appears at least twice on the communication link.
9. The apparatus of any one of claims 6 to 8, further comprising:
a second sending module configured to send the protocol list supported by the initiating device to other alternative devices of the same hierarchy or an alternative device of a next hierarchy if the protocols supported by the alternative devices are incompatible with the protocols in the protocol list.
10. The apparatus according to any of claims 6 to 8, wherein the communication link is a point-to-point connection communication link or a multipoint connection link.
11. An internet-of-things communication device comprising a processor and a memory storing program instructions, wherein the processor is configured to execute the program instructions to perform the internet-of-things communication method according to any one of claims 1 to 5.
12. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor implement the method of communication of the internet of things of any one of claims 1 to 5.
CN201911320519.7A 2019-12-19 2019-12-19 Communication method and device of Internet of things and computer readable storage medium Active CN111031138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911320519.7A CN111031138B (en) 2019-12-19 2019-12-19 Communication method and device of Internet of things and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911320519.7A CN111031138B (en) 2019-12-19 2019-12-19 Communication method and device of Internet of things and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111031138A true CN111031138A (en) 2020-04-17
CN111031138B CN111031138B (en) 2022-08-05

Family

ID=70211143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911320519.7A Active CN111031138B (en) 2019-12-19 2019-12-19 Communication method and device of Internet of things and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111031138B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114817117A (en) * 2022-06-23 2022-07-29 浙江大华技术股份有限公司 Protocol compatible method, electronic device and computer readable storage device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481119A (en) * 2002-09-29 2004-03-10 联想(北京)有限公司 System and method for controlling electrical applicances in household network
CN103716915A (en) * 2012-09-28 2014-04-09 海尔集团公司 Automatic adaptation method between Internet of Things household appliances
CN104202222A (en) * 2014-08-20 2014-12-10 惠州Tcl移动通信有限公司 Smart home controller and communication method thereof
US20160173937A1 (en) * 2014-12-11 2016-06-16 Mediatek Inc. Methods and devices for media casting management among multiple media casting devices supporting different media casting protocols
CN106571989A (en) * 2016-11-09 2017-04-19 杭州联络互动信息科技股份有限公司 Method and device for controlling intelligent household device by intelligent mobile terminal
US20170156174A1 (en) * 2015-11-30 2017-06-01 Qualcomm Incorporated Service-based network selection
CN107222454A (en) * 2016-03-22 2017-09-29 电子智能技术公司 General Internet of Things(IoT)Intelligent converter

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481119A (en) * 2002-09-29 2004-03-10 联想(北京)有限公司 System and method for controlling electrical applicances in household network
CN103716915A (en) * 2012-09-28 2014-04-09 海尔集团公司 Automatic adaptation method between Internet of Things household appliances
CN104202222A (en) * 2014-08-20 2014-12-10 惠州Tcl移动通信有限公司 Smart home controller and communication method thereof
US20160173937A1 (en) * 2014-12-11 2016-06-16 Mediatek Inc. Methods and devices for media casting management among multiple media casting devices supporting different media casting protocols
US20170156174A1 (en) * 2015-11-30 2017-06-01 Qualcomm Incorporated Service-based network selection
CN107222454A (en) * 2016-03-22 2017-09-29 电子智能技术公司 General Internet of Things(IoT)Intelligent converter
CN106571989A (en) * 2016-11-09 2017-04-19 杭州联络互动信息科技股份有限公司 Method and device for controlling intelligent household device by intelligent mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114817117A (en) * 2022-06-23 2022-07-29 浙江大华技术股份有限公司 Protocol compatible method, electronic device and computer readable storage device

Also Published As

Publication number Publication date
CN111031138B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN108464024B (en) Network node, wireless device, medium and method for handling wireless device capabilities
CN110995554A (en) Method and device for configuring and accessing intelligent household electrical appliance network and storage medium
CN110830968A (en) Networking method and device, Bluetooth equipment and computer readable medium
EP2077021B1 (en) Setting method of communication parameters, communicating apparatus, control method of communicating apparatus, and program
WO2013177190A1 (en) System and method for persistent wireless docking
US10051561B2 (en) Methods and nodes for M2M communication
US20170126828A1 (en) Sending Method and Apparatus and Computer Storage Medium of Notification Message
CN107113605B (en) Ability information report method, device and equipment
US20150127835A1 (en) System, Device and Method for Configuring a Connection in a Machine to Machine Environment
CN104320347B (en) A kind of method and apparatus for actively updating LLDP
CN111971984B (en) Low-power consumption Bluetooth communication method, electronic device, network and storage medium
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN111435947A (en) Electronic message control
CN113132958B (en) Fusion networking method, device, system and computer readable storage medium
CN111031138B (en) Communication method and device of Internet of things and computer readable storage medium
Emek et al. Broadcasting in UDG radio networks with unknown topology
CN1781282A (en) An ad-hoc network, a network device and a method of configuration management therefor
CN108684021B (en) Bluetooth low-power-consumption communication method and device
US8570965B2 (en) System and method for controlling communications in an ad hoc mobile network
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN115250434A (en) Near-domain multi-hop networking method and device, computer readable medium and electronic equipment
EP3542598B1 (en) Commissioning device for of one or more installed lighting devices
CN114301989A (en) Information transmission method, device and system
CN114124275A (en) Time synchronization method, device, equipment and storage medium
CN107645392B (en) Communication method and device between user equipment, and communication control method and device

Legal Events

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