CN112532607A - Intelligent device communication method, system, computer device and readable storage medium - Google Patents

Intelligent device communication method, system, computer device and readable storage medium Download PDF

Info

Publication number
CN112532607A
CN112532607A CN202011325559.3A CN202011325559A CN112532607A CN 112532607 A CN112532607 A CN 112532607A CN 202011325559 A CN202011325559 A CN 202011325559A CN 112532607 A CN112532607 A CN 112532607A
Authority
CN
China
Prior art keywords
equipment
ibeacon
data packet
execution action
information
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.)
Pending
Application number
CN202011325559.3A
Other languages
Chinese (zh)
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.)
Hangzhou Tuya Information Technology Co Ltd
Original Assignee
Hangzhou Tuya Information 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 Hangzhou Tuya Information Technology Co Ltd filed Critical Hangzhou Tuya Information Technology Co Ltd
Priority to CN202011325559.3A priority Critical patent/CN112532607A/en
Publication of CN112532607A publication Critical patent/CN112532607A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/08Protocols for interworking; Protocol conversion
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • 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/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to an intelligent device communication method, an intelligent device communication device, a computer device and a readable storage medium, wherein the intelligent device communication method comprises the following steps: monitoring to obtain an iBeacon data packet broadcast by first equipment; analyzing the iBeacon data packet to obtain identification information, execution action information and a communication protocol of the second equipment; and sending the execution action information to the second equipment according to the identification information and the communication protocol of the second equipment so as to enable the second equipment to execute corresponding actions according to the execution action information. According to the method, the mobile terminal is used as a carrier, the iBeacon data packet broadcasted by the intelligent equipment is monitored through the iBeacon technology, then the iBeacon data packet is analyzed and reassembled and sent to the intelligent equipment of different communication protocols, the intelligent equipment of different communication protocols is communicated, the iBeacon data packet is assembled through equipment or message source packaging commands and then transmitted to the intelligent equipment of different communication protocols, and the effect of mutual interconnection and intercommunication linkage of the intelligent equipment of different communication protocols is achieved.

Description

Intelligent device communication method, system, computer device and readable storage medium
Technical Field
The application relates to the technical field of internet of things, in particular to an intelligent device communication method, an intelligent device communication system, a computer device and a readable storage medium.
Background
With the wide application of the internet of things technology, the types and the number of intelligent devices accessed to the internet of things are more and more. However, most of these intelligent devices are developed by different enterprises, and therefore, the adopted transmission protocols, communication protocols, formats of data transmission, and the like are different, so that the intelligent devices are incompatible with each other. At present, each enterprise creates an own ecological ring, and for the enterprise with the own ecological ring, the enterprise can be compatible with the sub-equipment products of each manufacturer in the ecological ring. However, a plurality of manufacturers for developing intelligent sub-equipment products are provided, new enterprises are emerging continuously, and ecological enterprises are difficult to be compatible with the intelligent sub-equipment products of all the manufacturers. Because the communication protocols of different intelligent devices of different manufacturers are different and the encryption rules are different, the intelligent devices of different protocols cannot communicate with each other, and are independent of each other.
Disclosure of Invention
The application provides an intelligent device communication method, an intelligent device communication system, a computer device and a readable storage medium, which are used for at least solving the problem that the intelligent devices between different communication protocols in the related art cannot communicate.
In a first aspect, an embodiment of the present application provides an intelligent device communication method, where the method includes:
monitoring to obtain an iBeacon data packet broadcast by first equipment;
analyzing the iBeacon data packet to obtain identification information, execution action information and a communication protocol of the second equipment;
and sending the execution action information to the second equipment according to the identification information of the second equipment and the communication protocol so as to enable the second equipment to execute corresponding actions according to the execution action information.
In some embodiments, the sending the execution action information to the second device according to the identification information of the second device and the communication protocol includes:
acquiring a communication protocol of the second equipment according to the identification information of the second equipment;
according to the communication protocol, assembling the execution action information;
and sending the execution action information obtained after assembly to the second equipment according to the identification information of the second equipment.
In some of these embodiments, the method further comprises: and triggering and awakening a target application program according to the iBeacon data packet so that the target application program analyzes the iBeacon data packet, and sending the execution action information to the second equipment according to the identification information of the second equipment and the communication protocol.
In some embodiments, the triggering to wake up the target application according to the iBeacon packet includes:
determining registration information corresponding to a monitoring program for monitoring the iBeacon data packet according to the iBeacon data packet;
triggering and awakening a corresponding target application program according to the registration information; and the target application program registers a monitoring program for monitoring the iBeacon data packet in the mobile terminal operating system in advance.
In some embodiments, the target application registers a monitor program for monitoring the iBeacon packet in advance in the mobile terminal operating system, where the monitor program includes:
acquiring basic information of the first equipment, wherein the basic information comprises an ID (identity), a Mac (machine-to-machine) address and a unique identification code of the first equipment;
starting a Bluetooth authority and a positioning authority, carrying out network distribution on the first equipment, and activating and registering the first equipment to a cloud end;
after the distribution network is successful, corresponding identification field data is generated according to the unique identification code assembly of the first equipment;
and registering the monitoring program for monitoring the iBeacon data packet in the mobile terminal operating system according to the identification field data.
In some embodiments, before the target application parses the iBeacon packet, the method further comprises:
the target application program receives broadcast data sent by the second equipment;
and the target application program analyzes the broadcast data and establishes Bluetooth connection with the second equipment.
In some embodiments, the execution action information is obtained through a cloud, or is obtained by mapping according to the iBeacon data packet.
In a second aspect, an embodiment of the present application provides an intelligent device communication system, where the system includes:
the device comprises a first device and a second device, wherein the first device is configured to broadcast an iBeacon data packet at a preset frequency;
the mobile terminal is configured to analyze the iBeacon data packet to obtain identification information, execution action information and a communication protocol of the second equipment; sending the execution action information to the second equipment according to the identification information of the second equipment and the communication protocol;
and the second equipment is used for receiving the execution action information and executing the corresponding action according to the execution action information.
In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the computer program, implements the intelligent device communication method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the smart device communication method according to the first aspect.
Compared with the related art, the intelligent device communication method provided by the embodiment of the application comprises the steps of monitoring and obtaining the iBeacon data packet broadcasted by the first device; analyzing the iBeacon data packet to obtain identification information, execution action information and a communication protocol of the second equipment; and sending the execution action information to the second equipment according to the identification information of the second equipment and the communication protocol, so that the second equipment executes corresponding actions according to the execution action information, and at least solving the problem that intelligent equipment between different communication protocols in the related art cannot communicate.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow diagram of a smart device communication method provided in one embodiment;
FIG. 2 is a flow chart of a smart device communication method provided by the preferred embodiment;
FIG. 3 is a block diagram of a smart device communication system provided in one embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
Fig. 1 is a diagram of an embodiment of a smart device communication method applied to a mobile terminal, and the method includes steps 110 to 130, as shown in fig. 1; wherein:
and step 110, monitoring and obtaining the iBeacon data packet broadcasted by the first equipment.
The iBeacon is a new low-power consumption and low-cost signal transmitter which can be detected by nearby mobile terminals, the iBeacon protocol based on the Bluetooth low power consumption is used for transmitting signals by the iBeacon, the mobile terminal equipment is positioned and received, and the feedback signals can be used for indoor positioning. iBeacon technology enables a mobile terminal or other device to execute corresponding commands within the sensing range of an iBeacon base station, an application that helps the mobile terminal determine their approximate location or environment.
In the application, the iBeacon data packet broadcasted by the first equipment is monitored by utilizing the iBeacon technology. After the Beacon function is triggered, the first equipment broadcasts the iBeacon data packet at a preset frequency. Wherein, the preset frequency can be set to be broadcast once for several milliseconds to several seconds according to specific situations. It will be appreciated that the preset frequency may also be varied. The first equipment can be intelligent equipment, for example anti-lost device, intelligent desk lamp, intelligent refrigerator, intelligent lock, intelligent (window) curtain etc. and intelligent equipment embeds has communication module, bluetooth module for example, and the bluetooth agreement can be arbitrary agreement.
And 120, analyzing the iBeacon data packet to obtain the identification information, the execution action information and the communication protocol of the second equipment.
After monitoring the iBeacon data packet broadcasted by the intelligent device, the mobile terminal analyzes the iBeacon data packet to obtain the identification information of the second device, the execution action information to be executed by the second device and the communication protocol supported by the second device. In some embodiments, the iBeacon packet further includes a unique identifier of the first device, and the mobile terminal may first determine whether the first device belongs to the user according to the unique identifier of the first device obtained through analysis, and if so, select a corresponding effective decryption method to decrypt the iBeacon packet, so as to obtain the execution action information and the identification information.
It should be noted that the second device may be an intelligent device, in which a communication module, such as a bluetooth module, is built, and a communication protocol of the second device supports a communication protocol different from that of the first device.
Step 130, according to the identification information of the second device and the communication protocol, sending the execution action information to the second device, so that the second device executes the corresponding action according to the execution action information.
At present, intelligent devices with different protocols cannot communicate, because the device protocols are not communicated, encryption rules are different, and therefore different intelligent devices are independent of each other. In addition, the communication distance of the intelligent device is limited, for example, Bluetooth cannot realize remote communication, and only can realize near-field communication.
Compared with the prior art, the intelligent device communication method comprises the steps of monitoring the iBeacon data packet broadcasted by the first device; analyzing the iBeacon data packet to obtain identification information, execution action information and a communication protocol of the second equipment; and sending the execution action information to the second equipment according to the identification information of the second equipment and the communication protocol so as to enable the second equipment to execute corresponding actions according to the execution action information. According to the intelligent equipment communication method, the mobile terminal is used as a carrier, the iBeacon data packet broadcasted by the intelligent equipment is monitored through the iBeacon technology, then the iBeacon data packet is analyzed and reassembled and is sent to the intelligent equipment of different communication protocols, the intelligent equipment between the different communication protocols is communicated, the iBeacon data packet is assembled through equipment or message source packaging commands and is then transmitted to the intelligent equipment of the different communication protocols, and the effect of mutual interconnection and intercommunication linkage of the intelligent equipment of the different communication protocols is achieved. In addition, the intelligent equipment communication of different communication protocols is realized by taking the mobile terminal as a carrier, so that the limitation of the communication distance is broken.
In some embodiments, the sending the execution action information to the second device according to the identification information of the second device and the communication protocol includes:
acquiring a communication protocol of the second equipment according to the identification information of the second equipment;
assembling the execution action information according to a communication protocol;
and according to the identification information of the second equipment, sending the execution action information obtained after the assembly to the second equipment.
The communication protocol of the intelligent device comprises various communication protocols such as wifi, Bluetooth, radio frequency 433, z-wave and zigbee. For different types of intelligent equipment, the communication protocols are different, so that the intelligent equipment cannot communicate with each other, for example, a millet intelligent desk lamp and an intelligent refrigerator cannot communicate with each other and are independent of each other. In addition, intelligent devices of the same type developed by different manufacturers, such as a millet intelligent refrigerator and a beautiful intelligent refrigerator, cannot communicate.
In the application, the mobile terminal obtains the identification information of the second device through analysis, and the identification information of the device can uniquely identify the manufacturer, the device type and the device model of the device, so that the identification information of the intelligent device can uniquely correspond to the communication protocol supported by the intelligent device, and the mobile terminal can search the communication protocol supported by the second device according to the identification information of the second device.
In some other embodiments, the communication protocol of the second device may also be in the iBeacon packet, and the mobile terminal may directly obtain the identification information, the communication protocol, and the execution action information of the second device by parsing the iBeacon packet. In the present application, the acquisition method of the second communication protocol is not particularly limited.
After the mobile terminal obtains the execution action information through analysis, the execution action information obtained through analysis is packaged and sent to the second equipment according to a communication protocol supported by the second equipment, so that the second equipment executes corresponding actions, and scene linkage of the first equipment and the second equipment is achieved. For example, if the first device is an intelligent door lock manufactured by a first manufacturer and the second device is an air conditioner manufactured by a second manufacturer, the intelligent door lock and the air conditioner adopt different communication protocols and cannot directly communicate with each other. First equipment is equipped with Bluetooth Low Energy (BLE) communication function, opens the back at mobile terminal control intelligence lock, triggers the outside broadcast iBeacon data package of Beacon function, and iBeacon data package includes the identification information and the execution action information of the air conditioner rather than the linkage. A monitoring program for monitoring the iBeacon data packet is registered in the mobile terminal operating system in advance, when the iBeacon data packet is monitored, the identification information, the communication protocol and the execution action information of the air conditioner are obtained through analysis, the execution action information is reassembled according to the communication protocol supported by the air conditioner and is sent to the air conditioner, so that the air conditioner executes corresponding actions, such as opening, and scene linkage between the intelligent door lock and the air conditioner is achieved. If the second device is a lighting device, the executed action information may be on, off, light intensity value, color temperature value, etc.
In some embodiments, the smart device communication method further comprises: and triggering and awakening a target application program according to the iBeacon data packet so that the target application program analyzes the iBeacon data packet, and sending the execution action information to the second equipment according to the identification information of the second equipment and the communication protocol.
A plurality of application programs are installed in the mobile terminal, and in the application, a plurality of intelligent devices of different brands and different types, such as a doodle APP, are controlled through one application program. Generally, in order to reduce power consumption of a mobile terminal, applications on the mobile terminal are often killed by the system when not in use. If the application is killed, the application needs to be woken up first to run and use. In this embodiment, through the iBeacon packet, the target application program in the frozen state or the sleep state is triggered and awakened first, and then the iBeacon packet is analyzed by the target application program, so as to obtain the identification information, the communication protocol, and the execution action information of the second device. Specifically, when the mobile terminal is in a monitoring range, the iBeacon data packet broadcasted by the first equipment can be automatically monitored and analyzed, the iBeacon data packet is analyzed and reassembled through the target application program, the reassembled execution action information is sent to the second equipment, scene linkage control between intelligent equipment is achieved through one application program, and manual operation and control are not needed in the whole process.
An operating system of the mobile terminal can monitor the iBeacon data packet broadcasted by the intelligent device in a preset range. The preset range can be set to be a few centimeters at a short distance, a few meters at a middle distance and a few tens of meters at a long distance, and the specific distance can be set and adjusted according to an actual scene. For example, if the first device is a fire alarm, the preset range may be set to a long distance, and when the fire alarm detects a fire, the application program may receive alarm information in time; if the first device is a loss prevention device, the preset range can be set to be short distance, so that the object to be found can be accurately positioned, or the preset range can be set to be long distance to be roughly positioned, and then the specific position is gradually limited by narrowing the range.
In some embodiments, after monitoring an iBeacon data packet, a mobile terminal operating system determines registration information corresponding to a monitoring program for monitoring the iBeacon data packet according to the iBeacon data packet; triggering and awakening a corresponding target application program according to the registration information; the target application program registers a monitoring program for monitoring the iBeacon data packet in the mobile terminal operating system in advance.
It should be noted that the application program needs to register the listener in the operating system of the mobile terminal in advance. For example, the monitoring program may be registered in the mobile terminal operating system when the application program is installed or updated or during the installation or update process, so as to instruct the mobile terminal operating system to monitor the preset iBeacon data packet broadcast by the first device, and perform a wakeup operation on the preset iBeacon data packet after the preset iBeacon data packet is monitored. Specifically, after the mobile terminal operating system is in a monitoring range, a preset iBeacon data packet broadcasted by the first device is monitored, registration information of a monitoring program which monitors the iBeacon data packet is searched in the system according to the iBeacon data packet, the registration information includes an identifier of an application program which is registered with the monitoring program, and the application program is triggered and awakened after the corresponding application program is searched according to the identifier.
Examples are as follows: a user's scribble APP registers in advance with monitor program in mobile terminal operating system, and this monitor program instructs operating system to monitor the iBeacon data package that the equipment identification code of first equipment broadcast is 0011, after monitoring the iBeacon data package that the identification code is 0011, triggers the scribble APP that awakens A user.
According to the embodiment, the iBeacon technology is adopted to wake up the application program, the automatic wake-up of the application program can be realized through the intelligent device, and even if the application program finishes the process at the moment, the automatic wake-up can be realized, so that unnecessary manual intervention is reduced. In addition, the scheme of awakening the application program by adopting the iBeacon technology can be applied to various intelligent device firmware, a Bluetooth system is enriched, for example, the function can be applied to products such as Bluetooth door locks, Bluetooth bags and the like, and the intelligent device capable of sending the broadcast packet can have the technical point function, so that the effect of actively linking with the application program without external help is achieved.
In some embodiments, the target application may be woken up by a geo-fencing technique or a bluetooth event wakeup, and the specific wakeup manner is not limited in this embodiment.
In some embodiments, the iBeacon packet sent by the first device is obtained by converting a unique identifier of the first device. In this embodiment, the unique identifier is converted into an 8-byte ASCII code converted from 16 systems to 16 characters, and the converted code is used as a listening rule negotiated between the first device and the second device.
In some embodiments, the target application registers a monitor program for monitoring the iBeacon packet in advance in the mobile terminal operating system, where the monitor program includes:
acquiring basic information of the first equipment, wherein the basic information comprises an ID (identity), a Mac (machine-to-machine) address and a unique identification code of the first equipment;
starting a Bluetooth authority and a positioning authority, carrying out network distribution on the first equipment, and activating and registering the first equipment to a cloud end;
after the distribution network is successful, corresponding identification field data is generated according to the unique identification code assembly of the first equipment;
and registering the monitoring program for monitoring the iBeacon data packet in the mobile terminal operating system according to the identification field data.
In this application, the mobile terminal includes, but is not limited to, a mobile phone, a tablet, a computer, and the like, and after scanning the intelligent device capable of sending the iBeacon packet in the initial state, obtains basic information of the intelligent device, where the basic information of the intelligent device includes, but is not limited to, an ID, a Mac address, and a Unique Identifier (UUID) of the intelligent device. The Bluetooth authority and the positioning authority of the application program are started, meanwhile, the intelligent equipment is subjected to network distribution, the intelligent equipment is activated and registered to the cloud, network distribution activation is carried out in the application program, specific information such as equipment communication key exchange rules and the like is written into the intelligent equipment, after the network distribution is successful, a corresponding beacon UUID is generated according to the UUID of the intelligent equipment, a monitoring program is registered in a mobile terminal operating system, the monitoring rule is that 16-byte UUID 16-system ASCII codes are converted, and 16 characters are formed for monitoring. The communication key exchange rule may be a symmetric encryption algorithm or an asymmetric encryption algorithm, and the specific key exchange rule may adopt an existing key agreement algorithm, which is not described herein again.
In some embodiments, before the target application parses the iBeacon packet, the method further comprises:
the target application program receives broadcast data sent by the second equipment;
and analyzing the broadcast data and establishing Bluetooth connection with the second equipment.
It should be noted that the target application receives the iBeacon packet after waking up, and then performs caching, and when a connection is established with the second device, parses the iBeacon packet, and sends the parsed and encapsulated data to the second device.
The second device, which may be, for example, a smart device connected to the graffiti cloud, communicates with other devices (first devices) within the graffiti cloud. The second device continues to broadcast data and the target application scans in the background. And after the target application program scans the data broadcasted by the second equipment, analyzing the broadcast packet sent by the second equipment to establish Bluetooth connection with the second equipment, and after the Bluetooth connection is successful, analyzing the iBeacon data packet.
In some embodiments, after the mobile terminal monitors the iBeacon packet, the mobile terminal wakes up the target application program by using a geo-fencing technique.
The geo-fencing technique is specifically: when the application program runs, a plurality of geographic fences can be registered with the mobile terminal operating system, and when the application program is not in a running state, but the mobile terminal enters and exits the registered geographic fences again, the operating system can wake up the application program in the background or restart the application program.
In some embodiments, the execution action information is obtained through a cloud, or is obtained by mapping according to the iBeacon data packet.
The execution action information and the intelligent device identification linked with the first device form a mapping table to be stored in the first device, and the mapping table can be directly called from the first device when the mapping table needs to be sent. However, if the data size of the executed action information is large, all data stored in the intelligent device occupy a large storage space, the executed action information can be stored in the cloud, and the application program actively pulls the corresponding executed action information from the cloud after awakening. The specific pulling process may be: the method comprises the steps of analyzing an iBeacon data packet to obtain identification information of first equipment, storing the identification information of the first equipment and second equipment in a linkage relation with the first equipment in a cloud, and mapping relation of corresponding execution action information, and pulling the execution action information corresponding to the second equipment from the cloud according to the identification information of the first equipment and the identification information of the second equipment.
In some embodiments, after the target iBeacon packet is sent to the second device, the intelligent device communication method further includes: the target application sends a response message to the first device. Specifically, after the action of the second device is completed, the execution result may be sent to the target application program, and the target application program informs the first device, so that the first device stops broadcasting the iBeacon packet, thereby reducing the power consumption of the first device.
The following describes a preferred embodiment of the present application, as shown in fig. 2:
firstly, a network is required to be activated in an app by a device B, after activation is completed, the app can automatically monitor and register beacon information according to uuid of the device, the device B also can send beacon data packets according to uuid by convention, and the rule of uuid is that 16-system of 8 bytes is converted into ascill code of 16 characters; and meanwhile, target device information to be controlled is carried in the beacon packet (device a in fig. 2). When the device B sends a beacon data packet, the operating system monitors and wakes up the registered monitored app, and the app is started in a background wake-up mode; after the app is started, beacon information from an operating system is received, the beacon is analyzed at the moment, corresponding beacon source equipment is analyzed, target equipment information is obtained, and the target equipment information comprises identification information of equipment A and corresponding execution action information; the app performs Bluetooth scanning to connect with the target device; if the execution action data volume is large, the data can be placed in the cloud end, and the app is actively pulled from the cloud end after being awakened; after the connection is successful, processing and executing the action data; after the device A finishes processing, informing the app of the processing result; the app forwards the message to the device B to inform whether beacon data packet transmission is cancelled or the next transmission is continued; device B performs feedback.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The present embodiment further provides an intelligent device communication system, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the system is omitted here. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
In one embodiment, as shown in fig. 3, a smart device communication system is provided, comprising a first device 310, a mobile terminal 320, and a second device 330; wherein:
the first device 310 is configured to broadcast the iBeacon packet at a predetermined frequency.
The mobile terminal 320 is configured to parse the iBeacon data packet to obtain identification information, execution action information, and a communication protocol of the second device 330; and according to the identification information of the second device 330 and the communication protocol, sending the execution action information to the second device 330;
and the second device 330 is configured to receive the execution action information and execute a corresponding action according to the execution action information.
The application provides an intelligent equipment communication system, use mobile terminal as the carrier, listen to the iBeacon data package of intelligent equipment broadcast through the iBeacon technique and then carry out analysis and reassembly and issue to the intelligent equipment of different communication protocols, get through the intelligent equipment between different communication protocols, pack the order and assemble into the iBeacon data package through equipment or message source, and the passing goes to in the intelligent equipment of different communication protocols, the intelligent equipment of different communication protocols effect of interconnection intercommunication linkage each other has been realized.
In some embodiments, the mobile terminal 320 is further configured to send the execution action information to the second device according to the identification information of the second device and the communication protocol, including:
acquiring a communication protocol of the second equipment according to the identification information of the second equipment;
according to the communication protocol, assembling the execution action information;
and sending the execution action information obtained after assembly to the second equipment according to the identification information of the second equipment.
In some embodiments, the mobile terminal 320 is further configured to trigger and wake up the target application according to the iBeacon data packet, so that the target application parses the iBeacon data packet, and send the execution action information to the second device according to the identification information of the second device and the communication protocol.
In some of these embodiments, the mobile terminal 320 is further configured to: determining registration information corresponding to a monitoring program for monitoring the iBeacon data packet according to the iBeacon data packet; triggering and awakening a corresponding target application program according to the registration information; and the target application program registers a monitoring program for monitoring the iBeacon data packet in the mobile terminal operating system in advance.
In some embodiments, the target application is further configured to obtain basic information of the first device, where the basic information includes an ID, a Mac address, and a unique identification code of the first device; starting a Bluetooth authority and a positioning authority, carrying out network distribution on the first equipment, and activating and registering the first equipment to a cloud end; after the distribution network is successful, corresponding identification field data is generated according to the unique identification code assembly of the first equipment; and registering the monitoring program for monitoring the iBeacon data packet in the mobile terminal operating system according to the identification field data.
In some embodiments, the target application is further configured to receive broadcast data sent by the second device before the target application parses the iBeacon packet; and analyzing the broadcast data and establishing Bluetooth connection with the second equipment.
In some embodiments, the execution action information is obtained through a cloud, or is obtained by mapping according to the iBeacon data packet.
In some embodiments, after the iBeacon packet is monitored, the target application is woken up by using a geo-fencing technique.
For specific limitations of the smart device communication system, reference may be made to the above limitations of the smart device communication method, which are not described herein again. The various modules in the device communication system described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In addition, the intelligent device communication method described in conjunction with fig. 1 in the embodiment of the present application may be implemented by a computer device. Fig. 4 is a hardware structure diagram of a computer device according to an embodiment of the present application.
The computer device may include a processor 41 and a memory 42 storing computer program instructions.
Specifically, the processor 41 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 42 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 42 may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 42 may include removable or non-removable (or fixed) media, where appropriate. The memory 42 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 42 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, Memory 42 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 42 may be used to store or cache various data files for processing and/or communication use, as well as possibly computer program instructions for execution by the processor 42.
The processor 41 may implement any of the intelligent device communication methods in the above embodiments by reading and executing computer program instructions stored in the memory 42.
In some of these embodiments, the computer device may also include a communication interface 43 and a bus 40. As shown in fig. 4, the processor 41, the memory 42, and the communication interface 43 are connected via the bus 40 to complete mutual communication.
The communication interface 43 is used for implementing communication between modules, devices, units and/or apparatuses in the embodiments of the present application. The communication port 43 may also be implemented with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
Bus 40 comprises hardware, software, or both coupling the components of the computer device to each other. Bus 40 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 40 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a Video Electronics Bus (audio Electronics Association), abbreviated VLB) bus or other suitable bus or a combination of two or more of these. Bus 40 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The computer device may execute the intelligent device communication method in the embodiment of the present application based on the obtained program instruction, thereby implementing the intelligent device communication method described in conjunction with fig. 1.
In addition, in combination with the intelligent device communication method in the foregoing embodiments, the embodiments of the present application may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the intelligent device communication methods of the above embodiments.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An intelligent device communication method, the method comprising:
monitoring to obtain an iBeacon data packet broadcast by first equipment;
analyzing the iBeacon data packet to obtain identification information, execution action information and a communication protocol of the second equipment;
and sending the execution action information to the second equipment according to the identification information of the second equipment and the communication protocol so as to enable the second equipment to execute corresponding actions according to the execution action information.
2. The method of claim 1, wherein the sending the execution action information to the second device according to the identification information of the second device and the communication protocol comprises:
acquiring a communication protocol of the second equipment according to the identification information of the second equipment;
according to the communication protocol, assembling the execution action information;
and sending the execution action information obtained after the assembly to the second equipment according to the identification information of the second equipment.
3. The method of claim 1, further comprising: and triggering and awakening a target application program according to the iBeacon data packet so that the target application program analyzes the iBeacon data packet, and sending the execution action information to the second equipment according to the identification information of the second equipment and the communication protocol.
4. The method of claim 3, wherein triggering wake-up of a target application according to the iBeacon packet comprises:
determining registration information corresponding to a monitoring program for monitoring the iBeacon data packet according to the iBeacon data packet;
triggering and awakening a corresponding target application program according to the registration information; and the target application program registers a monitoring program for monitoring the iBeacon data packet in the mobile terminal operating system in advance.
5. The method according to claim 4, wherein the target application program registers a listener for listening to the iBeacon packet in advance in an operating system of the mobile terminal, and the method comprises:
acquiring basic information of the first equipment, wherein the basic information comprises an ID (identity), a Mac (machine-to-machine) address and a unique identification code of the first equipment;
starting a Bluetooth authority and a positioning authority, carrying out network distribution on the first equipment, and activating and registering the first equipment to a cloud end;
after the distribution network is successful, corresponding identification field data is generated according to the unique identification code assembly of the first equipment;
and registering the monitoring program for monitoring the iBeacon data packet in the mobile terminal operating system according to the identification field data.
6. The method of claim 3, wherein prior to the target application parsing the iBeacon packet, the method further comprises:
the target application program receives broadcast data sent by the second equipment;
and the target application program analyzes the broadcast data and establishes Bluetooth connection with the second equipment.
7. The method of claim 1, wherein the execution action information is obtained through a cloud or is mapped according to the iBeacon packet.
8. A smart device communication system, the system comprising:
the first equipment is used for broadcasting the iBeacon data packet at a preset frequency;
the mobile terminal is used for analyzing the iBeacon data packet to obtain the identification information, the execution action information and the communication protocol of the second equipment; sending the execution action information to the second equipment according to the identification information of the second equipment and the communication protocol;
and the second equipment is used for receiving the execution action information and executing the corresponding action according to the execution action information.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011325559.3A 2020-11-23 2020-11-23 Intelligent device communication method, system, computer device and readable storage medium Pending CN112532607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011325559.3A CN112532607A (en) 2020-11-23 2020-11-23 Intelligent device communication method, system, computer device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011325559.3A CN112532607A (en) 2020-11-23 2020-11-23 Intelligent device communication method, system, computer device and readable storage medium

Publications (1)

Publication Number Publication Date
CN112532607A true CN112532607A (en) 2021-03-19

Family

ID=74992983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011325559.3A Pending CN112532607A (en) 2020-11-23 2020-11-23 Intelligent device communication method, system, computer device and readable storage medium

Country Status (1)

Country Link
CN (1) CN112532607A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114463879A (en) * 2022-01-25 2022-05-10 杭州涂鸦信息技术有限公司 Unlocking method, intelligent terminal and computer readable storage medium
WO2023202131A1 (en) * 2022-04-20 2023-10-26 Oppo广东移动通信有限公司 Device interconnection method and apparatus, electronic device, and storage medium
WO2024103288A1 (en) * 2022-11-16 2024-05-23 哲库科技(上海)有限公司 Communication method, apparatus and device, and storage medium, chip and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170325067A1 (en) * 2016-05-04 2017-11-09 International Business Machines Corporation Context based enablement of beacon devices
CN108900393A (en) * 2018-06-27 2018-11-27 努比亚技术有限公司 Control method, communication processing equipment, terminal and the storage medium of smart home
CN109144603A (en) * 2018-07-24 2019-01-04 阿里巴巴集团控股有限公司 Wake-up, information-pushing method and device calculate equipment and storage medium
CN110570074A (en) * 2019-07-16 2019-12-13 中建三局智能技术有限公司 safety education smart voice system based on iBeacon
CN111030897A (en) * 2019-12-10 2020-04-17 杭州涂鸦信息技术有限公司 Wired network distribution method and device, electronic equipment and storage medium
CN111328076A (en) * 2020-02-25 2020-06-23 北京小米移动软件有限公司 Equipment network distribution method, device and medium
CN111953779A (en) * 2020-08-13 2020-11-17 拉扎斯网络科技(上海)有限公司 Data transmission method and device, computer equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170325067A1 (en) * 2016-05-04 2017-11-09 International Business Machines Corporation Context based enablement of beacon devices
CN108900393A (en) * 2018-06-27 2018-11-27 努比亚技术有限公司 Control method, communication processing equipment, terminal and the storage medium of smart home
CN109144603A (en) * 2018-07-24 2019-01-04 阿里巴巴集团控股有限公司 Wake-up, information-pushing method and device calculate equipment and storage medium
CN110570074A (en) * 2019-07-16 2019-12-13 中建三局智能技术有限公司 safety education smart voice system based on iBeacon
CN111030897A (en) * 2019-12-10 2020-04-17 杭州涂鸦信息技术有限公司 Wired network distribution method and device, electronic equipment and storage medium
CN111328076A (en) * 2020-02-25 2020-06-23 北京小米移动软件有限公司 Equipment network distribution method, device and medium
CN111953779A (en) * 2020-08-13 2020-11-17 拉扎斯网络科技(上海)有限公司 Data transmission method and device, computer equipment and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114463879A (en) * 2022-01-25 2022-05-10 杭州涂鸦信息技术有限公司 Unlocking method, intelligent terminal and computer readable storage medium
WO2023202131A1 (en) * 2022-04-20 2023-10-26 Oppo广东移动通信有限公司 Device interconnection method and apparatus, electronic device, and storage medium
WO2024103288A1 (en) * 2022-11-16 2024-05-23 哲库科技(上海)有限公司 Communication method, apparatus and device, and storage medium, chip and system

Similar Documents

Publication Publication Date Title
CN112532607A (en) Intelligent device communication method, system, computer device and readable storage medium
US11751135B2 (en) Method and system for wirelessly transmitting data
US11082913B2 (en) Sensor provisioning in wireless sensor networks
CN110839271B (en) Equipment connection method, system, platform and corresponding equipment
WO2016058366A1 (en) Smart home appliance control method and home control center
CN110602692B (en) Data updating method and device and electronic equipment
US10595273B2 (en) Systems and methods for localized device wakeup using Bluetooth low energy communications
WO2022057557A1 (en) Household device control method and device
JP6138825B2 (en) System and method for transmitting a configuration change message between an access point and a station
CN107222372B (en) Information sending method and equipment
WO2019161780A1 (en) Method and apparatus for setting dormancy period of service
US11711748B2 (en) Method and apparatus of communication between terminal and base station, and network access method and apparatus of a terminal
US20160132029A1 (en) Method for configuring and controlling smart home products
CN105191412A (en) Delegating WIFI network discovery and traffic monitoring
CN112433836A (en) Automatic application program awakening method and device and computer equipment
CN111093105A (en) Remote control method and device
CN104704447A (en) Using Bluetooth low energy
CN112565280A (en) Intelligent device communication method, system, computer device and readable storage medium
KR102305590B1 (en) Wireless Data transfer Device based on Wi-Fi and operating method thereof
CN113099445B (en) Network configuration method, device connection method, device, equipment and system
WO2022194220A1 (en) Iot device configuration method and iot device
WO2022222627A1 (en) Zero-power-consumption communication methods and apparatuses for cellular communication and sidelink communication
KR102674103B1 (en) Method for recognizing things and communicating with things automatically
CN110972332A (en) Intelligent lock networking method, device and system, intelligent lock and intelligent gateway equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210319

RJ01 Rejection of invention patent application after publication