CN111711940A - Intelligent device data interaction method, intelligent device and storage device - Google Patents

Intelligent device data interaction method, intelligent device and storage device Download PDF

Info

Publication number
CN111711940A
CN111711940A CN202010357483.6A CN202010357483A CN111711940A CN 111711940 A CN111711940 A CN 111711940A CN 202010357483 A CN202010357483 A CN 202010357483A CN 111711940 A CN111711940 A CN 111711940A
Authority
CN
China
Prior art keywords
interface
protocol stack
bluetooth protocol
intelligent equipment
calling
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
CN202010357483.6A
Other languages
Chinese (zh)
Other versions
CN111711940B (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.)
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 CN202010357483.6A priority Critical patent/CN111711940B/en
Publication of CN111711940A publication Critical patent/CN111711940A/en
Application granted granted Critical
Publication of CN111711940B publication Critical patent/CN111711940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data interaction method for intelligent equipment, the intelligent equipment and a storage device, wherein the data interaction method for the intelligent equipment comprises the following steps: packaging a plurality of bottom layer interfaces of the Bluetooth protocol stacks for providing the universal attribute service by using the same computer language to form a uniform interface, wherein a calling function for calling the bottom layer interfaces of all the Bluetooth protocol stacks is arranged in the uniform interface; and establishing a universal attribute service by using the uniform interface, and performing data interaction between the intelligent equipment and the mobile equipment by using the uniform interface. Through the mode, the method and the device have the advantages that the unified interface is not required to be modified when the intelligent device is developed based on different platforms, and a user does not perceive the bottom Bluetooth protocol stack of the intelligent device when using the universal attribute service.

Description

Intelligent device data interaction method, intelligent device and storage device
Technical Field
The present application relates to the field of intelligent device technologies, and in particular, to an intelligent device data interaction method, an intelligent device, and a storage apparatus.
Background
Along with the popularization of mobile devices such as smart phones, tablets and the like, the application of smart devices such as bracelets, smart watches and the like is also increasingly widespread, but because the hardware platforms based on the smart devices are different, the smart devices can adopt different bottom layer Bluetooth protocol stacks, because of the difference between different protocol stacks, the compatibility of the smart devices is poor when the intelligent devices are developed in a cross-platform mode, the development difficulty is high, and the use habit of users is changed along with the difference of the bottom layer Bluetooth protocol stacks of the smart devices when the users use the smart devices.
Disclosure of Invention
The technical problem mainly solved by the application is to provide an intelligent device data interaction method, an intelligent device and a storage device, which can be used for developing the intelligent device based on different platforms without modifying a unified interface, and enabling a user not to sense a bottom Bluetooth protocol stack of the intelligent device when using a universal attribute service.
In order to solve the technical problem, the application adopts a technical scheme that: a data interaction method for intelligent equipment is provided, and the method comprises the following steps: packaging a plurality of bottom layer interfaces of Bluetooth protocol stacks for providing general attribute services by using the same computer language to form a unified interface, wherein a calling function for calling the bottom layer interfaces of all the Bluetooth protocol stacks is arranged in the unified interface; and establishing the universal attribute service by using the unified interface, and performing data interaction between the intelligent equipment and the mobile equipment by using the unified interface.
Wherein, said bottom layer interface which uses a plurality of bluetooth protocol stacks for providing general attribute service utilizes the same computer language to package and form a unified interface, including: acquiring bottom layer interface information of a plurality of Bluetooth protocol stacks for providing the universal attribute service; and creating a calling function corresponding to the bottom layer interface by using the same computer language according to the bottom layer interface information.
Wherein, the creating the generic attribute service by using the unified interface and the data interaction between the intelligent device and the mobile device by using the unified interface comprise: acquiring bottom layer interface information used for providing the general attribute service in a Bluetooth protocol stack of the intelligent equipment; and shielding a calling function corresponding to a bottom layer interface which is used for providing the general attribute service in the Bluetooth protocol stack of the intelligent equipment in the unified interface.
Wherein the creating the generic attribute service using the unified interface comprises: calling an interface used for creating a general attribute service in a Bluetooth protocol stack of the intelligent equipment through the uniform interface, and creating the general attribute service; calling an interface used for creating a universal attribute feature in a Bluetooth protocol stack of the intelligent equipment through the uniform interface, and creating a feature corresponding to the universal attribute service; and calling an interface used for binding the universal property service and the characteristics in the Bluetooth protocol stack of the intelligent equipment through the uniform interface, and binding the universal property service and the characteristics corresponding to the universal property service.
Wherein, the using the unified interface to enable the intelligent device to perform data interaction with the mobile device includes: calling an interface for broadcasting and an interface for scanning in a Bluetooth protocol stack of the intelligent equipment through the unified interface, and establishing Bluetooth connection with the mobile equipment; calling an interface for reading and writing in a Bluetooth protocol stack of the intelligent equipment through the unified interface, and reading data collected or stored by the intelligent equipment for transmission to the mobile equipment; and/or calling an interface for reading and writing in a Bluetooth protocol stack of the intelligent equipment through the unified interface, and writing the data sent by the mobile equipment into the corresponding position of the intelligent equipment.
Wherein, the using the unified interface to enable the intelligent device and the mobile device to perform data interaction, then, includes: calling an interface used for broadcasting in a Bluetooth protocol stack of the intelligent equipment through the unified interface, and sending a message of successful data interaction to the mobile equipment; disconnecting the Bluetooth connection with the mobile device.
The Bluetooth protocol stacks comprise at least two of a Bluez protocol stack, a BSA protocol stack, a Bluemagic protocol stack, an Affix protocol stack and a Bluelet protocol stack; the Bluetooth protocol stack of the intelligent equipment is one of a Bluez protocol stack, a BSA protocol stack, a Bluemagic protocol stack, an Affix protocol stack and a Bluelet protocol stack.
The same computer language is one of C language, C + + language, Java language and assembly language.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a smart device comprising: the intelligent device data interaction method comprises a memory and a processor, wherein the memory stores program data, and the processor calls the program data to realize the intelligent device data interaction method in the technical scheme.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided an apparatus having a storage function, on which program data are stored, the program data being executed by a processor for implementing the intelligent device data interaction method in the above technical solution.
The beneficial effect of this application is: the bottom layer interface which is used for providing the universal attribute service by the plurality of Bluetooth protocol stacks is packaged by the same computer language to form a unified interface, the unified interface can call the bottom layer interfaces of the plurality of Bluetooth protocol stacks, the unified interface is not required to be modified when the intelligent equipment is developed based on different platforms, the universal attribute service is established by the unified interface, data interaction between the intelligent equipment and the mobile equipment is realized, a user does not perceive the bottom layer Bluetooth protocol stack of the intelligent equipment, and consistent use experience can be obtained.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a data interaction method for an intelligent device according to the present application;
FIG. 2 is a schematic flow chart illustrating an embodiment corresponding to step S102 in FIG. 1;
FIG. 3 is a schematic structural diagram of an embodiment of the smart device of the present application;
fig. 4 is a schematic structural diagram of an embodiment of the apparatus with a storage function according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. Further, the term "plurality" herein means two or more than two.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an embodiment of a data interaction method for an intelligent device according to the present application, where the method includes:
step S101: the bottom layer interfaces which use a plurality of Bluetooth protocol stacks for providing general attribute services are packaged by the same computer language to form a uniform interface.
Specifically, in step S101, a call function for calling the bottom layer interfaces of all bluetooth protocol stacks is provided in the unified interface, and different bottom layer bluetooth protocol stacks have respective bottom layer interfaces for providing generic attribute services based on different hardware platforms. Among them, for example: the different bluetooth protocol stacks include respective interfaces for providing the general attribute services, and the general attribute services provided by the different bluetooth protocol stacks also have certain differences, so that when the hardware platform of the intelligent device is changed, software needs to be correspondingly adjusted greatly or rewritten. However, the unified interface includes a call function for calling a bottom interface of the mainstream bluetooth protocol stack for providing the generic attribute service, and the unified interface can be implemented through the C language, so that after the hardware platform is replaced, the unified interface can still be used for calling a bottom interface of the new bluetooth protocol stack for providing the generic attribute service.
Step S102: and establishing a universal attribute service by using the uniform interface, and performing data interaction between the intelligent equipment and the mobile equipment by using the uniform interface.
Specifically, in step S102, when the user selects to use a generic attribute service, the unified interface is used to invoke an interface of the bluetooth protocol stack of the smart device for providing the generic attribute service to create the generic attribute service, and the generic attribute service is associated with the mobile device, such as: and the smart phone, the tablet and the like establish Bluetooth connection and exchange data.
In a specific application scene, hardware used by the intelligent device corresponds to a Linux official Bluez protocol stack, at the moment, when a user selects to obtain the running speed and the rhythm, a bottom layer interface of the Bluez protocol stack is called through a unified interface to create a service of the running speed and the rhythm, an interface which calls the bottom layer interface of the Bluez protocol stack through the unified interface to perform Bluetooth broadcasting and scanning is connected with a mobile phone to establish Bluetooth, and then the running speed and rhythm data collected by the intelligent device are transmitted to the mobile phone through Bluetooth so that the user can check the running speed and rhythm data. If the intelligent equipment is changed into the hardware of a Broadcom company, a Bluetooth protocol stack is changed into a BSA protocol stack, at the moment, when a user selects to acquire the running speed and the rhythm, a bottom layer interface of the BSA protocol stack is called through a unified interface to create the service of the running speed and the rhythm, an interface which carries out Bluetooth broadcasting and scanning through the bottom layer interface of the BSA protocol stack is called through the unified interface to establish Bluetooth connection with the mobile phone, and then the running speed and the rhythm data collected by the intelligent equipment are transmitted to the mobile phone through the Bluetooth so that the user can check the running speed and the rhythm data.
According to the data interaction method for the intelligent equipment, a plurality of Bluetooth protocol stacks are used for providing a bottom layer interface of the universal attribute service, the bottom layer interface is packaged by the same computer language to form a unified interface, the unified interface can call the bottom layer interfaces of the plurality of Bluetooth protocol stacks, the unified interface is not required to be modified when the intelligent equipment is developed based on different platforms, the universal attribute service is established by the unified interface, data interaction between the intelligent equipment and the mobile equipment is realized, a user does not perceive the bottom layer Bluetooth protocol stack of the intelligent equipment, and consistent use experience can be obtained.
Specifically, in order to obtain the uniform interface, bottom layer interface information used for providing a universal attribute service by a plurality of bluetooth protocol stacks is obtained, and a calling function corresponding to the bottom layer interface is created by using the same computer language according to the bottom layer interface information. The plurality of Bluetooth protocol stacks comprise at least two of a Linux official Bluez protocol stack, a Broadcom BSA protocol stack, an Open Interface Bluemagic protocol stack, an NOKIA Affix protocol stack and an IVT Bluelet protocol stack. Preferably including at least the Bluez protocol stack and the BSA protocol stack. The method comprises the steps of obtaining bottom layer interface information used for providing general attribute services in a plurality of mainstream Bluetooth protocol stacks, and utilizing the same computer language to realize a programming function for calling bottom layer interfaces of different Bluetooth protocol stacks according to the bottom layer interface information, wherein the computer language is one of C language, C + + language, Java language and assembly language. The unified interface comprises a bottom interface calling function of various Bluetooth protocol stacks for the intelligent equipment in the market, so that the selection of hardware in the product development stage is more diversified, and other hardware platforms can be selected for the hardware with a longer purchase period when the product release period is short. One of computer languages used in embedded development of market mainstream is adopted, so that the software transplantation is more convenient, and a user can keep a use habit when using intelligent equipment.
Furthermore, the Bluetooth protocol stack of the intelligent device is one of a Bluez protocol stack, a BSA protocol stack, a Bluemagic protocol stack, an Affix protocol stack and a Bluelet protocol stack. The intelligent device only adopts one of the commonly used Bluetooth protocol stacks to avoid the problem of compatibility of the intelligent device.
Optionally, before step S102, obtaining information of a bottom layer interface used for providing the generic attribute service in the bluetooth protocol stack of the intelligent device, and shielding a call function corresponding to the bottom layer interface used for providing the generic attribute service in the bluetooth protocol stack of the non-intelligent device in the unified interface. After the specific Bluetooth protocol stack currently used by the intelligent equipment is obtained, a calling function which is not used for calling a bottom layer interface used for providing general attribute service in the current Bluetooth protocol stack in the unified interface is shielded, so that the matching between the unified interface and the current Bluetooth protocol stack of the intelligent equipment is improved, and the probability of calling errors is reduced. Certainly, in other embodiments, the call function corresponding to the bottom layer interface for providing the generic attribute service in the bluetooth protocol stack of the non-intelligent device in the unified interface may not be shielded, which is not specifically limited in the present application.
In an embodiment, please refer to fig. 2, fig. 2 is a flowchart illustrating an embodiment corresponding to step S102 in fig. 1, where step S102 specifically includes steps S201 to S205, where steps S201 to S203 correspond to a process of creating a generic attribute service by using a unified interface, and steps S204 to S205 correspond to a process of enabling an intelligent device to perform data interaction with a mobile device by using the unified interface.
Step S201: and calling an interface for creating the universal attribute service in a Bluetooth protocol stack of the intelligent equipment through the uniform interface to create the universal attribute service.
Specifically, in step S201, in response to the user selecting a generic attribute service, the interface for creating the generic attribute service in the current bluetooth protocol stack is called through the unified interface, the generic attribute service selected by the user is created, and a service identifier is created for the generic attribute service, where the service identifier is unique for each generic attribute service, so as to distinguish the generic attribute services.
Further, when the user selects a plurality of universal attribute services, a reference service for calling other universal attribute services can be created for the universal attribute services so as to reference the created universal attribute services.
Step S202: and calling an interface used for creating the universal attribute features in a Bluetooth protocol stack of the intelligent equipment through the uniform interface, and creating the features corresponding to the universal attribute service.
Specifically, in step S202, the interface for creating the generic attribute feature in the current bluetooth protocol stack is called through the unified interface, a feature corresponding to the generic attribute service selected by the user is created, where the feature is the smallest logical data unit, and of course, it may contain data associated with one group, and the generic attribute service may include multiple features, so that creating a feature identification code corresponding to the feature is also included when creating the feature, and the feature identification code is unique for each feature, so as to distinguish the features corresponding to the generic attribute service, and for the features corresponding to the generic attribute service, data may be read from the features, or data may be written in the features, so as to implement bidirectional communication.
Step S203: and calling an interface used for binding the universal property service and the characteristics in a Bluetooth protocol stack of the intelligent equipment through the uniform interface, and binding the universal property service and the corresponding characteristics.
Specifically, in step S203, the generic attribute service and the corresponding features thereof are bound to reduce the probability of data write errors when reading and writing data.
Step S204: and calling an interface for broadcasting and an interface for scanning in a Bluetooth protocol stack of the intelligent equipment through the uniform interface, and establishing Bluetooth connection with the mobile equipment.
Specifically, in step S204, the interface for broadcasting in the bluetooth protocol stack of the intelligent device is called through the unified interface to send the broadcast message in a broadcast manner, the interface for scanning in the bluetooth protocol stack of the intelligent device is called through the unified interface to scan whether there is a reply message of the mobile device, and after the reply message of the mobile device is scanned, the intelligent device and the mobile device establish a bluetooth connection.
Step S205: calling an interface for reading and writing in a Bluetooth protocol stack of the intelligent equipment through the unified interface, and reading data collected or stored by the intelligent equipment for transmission to the mobile equipment; and/or calling an interface for reading and writing in a Bluetooth protocol stack of the intelligent equipment through the uniform interface, and writing the data sent by the mobile equipment into the corresponding position of the intelligent equipment.
Specifically, in step S205, an interface for reading and writing in the bluetooth protocol stack of the smart device is called through the unified interface, data in the feature bound to the generic attribute service is read, and then the data is transmitted to the mobile device through the broadcast interface, and in addition, data sent by the mobile device may also be written into the feature bound to the generic attribute service.
Optionally, for a general attribute service that does not need to perform data interaction continuously, after the intelligent device and the mobile device perform data interaction by using the unified interface, the unified interface calls an interface for broadcasting in a bluetooth protocol stack of the intelligent device, sends a message that the data interaction is successful to the mobile device, and disconnects bluetooth connection with the mobile device, so as to save electric quantity of the intelligent device.
In a specific application scenario, a mobile device has access to a wireless network, a user selects a wireless distribution network service in an intelligent device, a unified interface and a corresponding module are initialized, then an interface used for creating a universal property service at the bottom layer of a Bluetooth protocol stack of the intelligent device is called through the unified interface to create the wireless distribution network service, an interface used for creating the universal property feature at the bottom layer is called to create a feature corresponding to the wireless distribution network service, an interface used for binding the universal property service and the feature at the bottom layer is called to bind the wireless distribution network service and the corresponding feature thereof, then an interface used for broadcasting at the bottom layer is called to issue a broadcast message, the mobile device sends a reply message to the intelligent device after receiving the broadcast message issued by the intelligent device, and after the interface used for scanning at the bottom layer is called to scan the reply message, the. The mobile device transmits a service set identifier and a password of a connected wireless network to the intelligent device through Bluetooth, the interface used for reading and writing at the bottom layer is called to write the service set identifier and the password into the characteristics of the wireless distribution network service, the intelligent device is accessed into the wireless network through the service set identifier and the password, the interface used for broadcasting at the bottom layer is called to send a successful distribution network information to the mobile device, and the intelligent device is disconnected from the Bluetooth of the mobile device.
In another specific application scenario, a user selects a heart rate counting service at an intelligent device, initializes a unified interface and a corresponding module, calls an interface at the bottom layer of a Bluetooth protocol stack of the intelligent device for creating a general attribute service through the unified interface to create the heart rate counting service, calls an interface at the bottom layer for creating a general attribute feature to create a feature corresponding to the heart rate counting service, calls an interface at the bottom layer for binding the general attribute service and the feature to bind the heart rate counting service and the corresponding feature, calls an interface at the bottom layer for broadcasting to issue a broadcast message, sends a reply message to the intelligent device after the mobile device receives the broadcast message issued by the intelligent device, calls an interface at the bottom layer for scanning to scan the reply message, establishes Bluetooth connection with the intelligent device, calls an interface at the bottom layer for reading and writing, and reads the value of the feature of the heart rate counting service, the value of this characteristic is the rhythm of the heart data that smart machine gathered in real time, keeps the connection of bluetooth, calls the bottom and is used for the interface of broadcast to send rhythm of the heart data to mobile device, and the user can close the bluetooth connection by oneself.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of an intelligent device according to the present application, the intelligent device 10 includes a memory 100 and a processor 102, wherein the memory 100 stores program data (not shown), and the processor 102 calls the program data to execute the intelligent device data interaction method in the foregoing embodiment, and details of relevant contents refer to the foregoing method portion and are not described herein again.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an embodiment of the apparatus with storage function 20 of the present application, in which program data 200 is stored, and the program data 200 is executed by a processor to implement the method for data interaction of an intelligent device in the foregoing embodiment, and a detailed description of related contents refers to the above method section and is not described herein again.
In summary, the intelligent device data interaction method, the intelligent device 10, and the apparatus 20 with storage function provided by the present application utilize the unified interface to call the bottom interface providing the generic attribute service, so that even if the intelligent device 10 changes the hardware for providing the bluetooth protocol stack, the unified interface does not need to be modified, a developer can conveniently perform cross-platform software transplantation, and a consistent use experience is brought to a user.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A data interaction method for intelligent equipment is characterized by comprising the following steps:
packaging a plurality of bottom layer interfaces of Bluetooth protocol stacks for providing general attribute services by using the same computer language to form a unified interface, wherein a calling function for calling the bottom layer interfaces of all the Bluetooth protocol stacks is arranged in the unified interface;
and establishing the universal attribute service by using the unified interface, and performing data interaction between the intelligent equipment and the mobile equipment by using the unified interface.
2. The method of claim 1, wherein the step of encapsulating a plurality of bluetooth protocol stacks in a same computer language to form a unified interface comprises:
acquiring bottom layer interface information of a plurality of Bluetooth protocol stacks for providing the universal attribute service;
and creating a calling function corresponding to the bottom layer interface by using the same computer language according to the bottom layer interface information.
3. The method of claim 1, wherein the creating the generic attribute service using the unified interface and the data interaction between the smart device and the mobile device using the unified interface previously comprises:
acquiring bottom layer interface information used for providing the general attribute service in a Bluetooth protocol stack of the intelligent equipment;
and shielding a calling function corresponding to a bottom layer interface which is used for providing the general attribute service in the Bluetooth protocol stack of the intelligent equipment in the unified interface.
4. The method of claim 1, wherein creating the generic attribute service using the unified interface comprises:
calling an interface used for creating a general attribute service in a Bluetooth protocol stack of the intelligent equipment through the uniform interface, and creating the general attribute service;
calling an interface used for creating a universal attribute feature in a Bluetooth protocol stack of the intelligent equipment through the uniform interface, and creating a feature corresponding to the universal attribute service;
and calling an interface used for binding the universal property service and the characteristics in the Bluetooth protocol stack of the intelligent equipment through the uniform interface, and binding the universal property service and the characteristics corresponding to the universal property service.
5. The method of claim 1, wherein the utilizing the unified interface for data interaction between the smart device and a mobile device comprises:
calling an interface for broadcasting and an interface for scanning in a Bluetooth protocol stack of the intelligent equipment through the unified interface, and establishing Bluetooth connection with the mobile equipment;
calling an interface for reading and writing in a Bluetooth protocol stack of the intelligent equipment through the unified interface, and reading data collected or stored by the intelligent equipment for transmission to the mobile equipment; and/or calling an interface for reading and writing in a Bluetooth protocol stack of the intelligent equipment through the unified interface, and writing the data sent by the mobile equipment into the corresponding position of the intelligent equipment.
6. The method of claim 5, wherein the utilizing the unified interface for data interaction between the smart device and the mobile device comprises:
calling an interface used for broadcasting in a Bluetooth protocol stack of the intelligent equipment through the unified interface, and sending a message of successful data interaction to the mobile equipment;
disconnecting the Bluetooth connection with the mobile device.
7. The method of claim 1,
the plurality of Bluetooth protocol stacks comprise at least two of a Bluez protocol stack, a BSA protocol stack, a Bluemagic protocol stack, an Affix protocol stack and a Bluelet protocol stack;
the Bluetooth protocol stack of the intelligent equipment is one of a Bluez protocol stack, a BSA protocol stack, a Bluemagic protocol stack, an Affix protocol stack and a Bluelet protocol stack.
8. The method of claim 1, wherein the same computer language is one of C language, C + + language, Java language, and assembler language.
9. A smart device, comprising: memory storing program data and a processor calling the program data to perform the method of any one of claims 1-8.
10. An apparatus having a storage function, on which program data is stored, characterized in that,
the program data is executed by a processor for implementing the method according to any one of claims 1 to 8.
CN202010357483.6A 2020-04-29 2020-04-29 Intelligent device data interaction method, intelligent device and storage device Active CN111711940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010357483.6A CN111711940B (en) 2020-04-29 2020-04-29 Intelligent device data interaction method, intelligent device and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010357483.6A CN111711940B (en) 2020-04-29 2020-04-29 Intelligent device data interaction method, intelligent device and storage device

Publications (2)

Publication Number Publication Date
CN111711940A true CN111711940A (en) 2020-09-25
CN111711940B CN111711940B (en) 2023-10-31

Family

ID=72536886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010357483.6A Active CN111711940B (en) 2020-04-29 2020-04-29 Intelligent device data interaction method, intelligent device and storage device

Country Status (1)

Country Link
CN (1) CN111711940B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546616A (en) * 2022-02-21 2022-05-27 Oppo广东移动通信有限公司 Device management method, device, electronic device and storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050276281A1 (en) * 2004-06-09 2005-12-15 Emc Corporation Methods, systems, and computer program products for transparently controlling communications between network applications and a plurality of network communications protocol stacks using deferred protocol stack association
CN1829234A (en) * 2006-04-10 2006-09-06 浙江大学 Method for realizing WAP browser network layer based on mobile terminal
KR20070110319A (en) * 2005-02-02 2007-11-16 어사이스트 테크놀로지스, 인코포레이티드 Multi-protocol multi-client equipment server
CN102420697A (en) * 2011-09-07 2012-04-18 北京邮电大学 Service-configurable comprehensive resource monitoring managing system and method
CN104169914A (en) * 2013-12-11 2014-11-26 华为技术有限公司 Data storage method, data processing method, device and mobile terminal
US20150365999A1 (en) * 2014-06-12 2015-12-17 Samsung Electronics Co., Ltd. Method for processing data based on bluetooth protocol and electronic device thereof
CN105228089A (en) * 2015-09-30 2016-01-06 成都信汇聚源科技有限公司 A kind of wearable device multisensor adaptation and real-time data acquisition method
CN105704125A (en) * 2016-01-15 2016-06-22 王新珩 Multiprotocol interoperation communication device and method
CN106657101A (en) * 2016-12-29 2017-05-10 欧普照明股份有限公司 SDK and method for remote control of different protocol types of wireless communication modules
US20180007189A1 (en) * 2014-12-29 2018-01-04 Beijing Qihoo Technology Company Limited Method and apparatus for implementing unified management of intelligent hardware devices by app, and client
CN108064036A (en) * 2017-12-04 2018-05-22 重庆信络威科技有限公司 Bluetooth Low Energy protocol architecture and network dispatching method
WO2018194626A1 (en) * 2017-04-20 2018-10-25 Nokia Technologies Oy Distributed bluetooth controller
CN109873837A (en) * 2019-04-12 2019-06-11 广东工业大学 Central apparatus and multi-protocols adaptation system based on android system
CN110166485A (en) * 2019-06-14 2019-08-23 北京经纬恒润科技有限公司 A kind of the scheduling application method and device of agreement
CN110366039A (en) * 2019-07-12 2019-10-22 四川长虹电器股份有限公司 The compatibility method of different bluetooth mould groups under a kind of android system
CN110620995A (en) * 2019-09-17 2019-12-27 湖南简成信息技术有限公司 Intelligent device based on Bluetooth broadcast communication
CN110928608A (en) * 2019-12-30 2020-03-27 上海御渡半导体科技有限公司 Extensible communication framework supporting multiple communication protocols and communication method

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050276281A1 (en) * 2004-06-09 2005-12-15 Emc Corporation Methods, systems, and computer program products for transparently controlling communications between network applications and a plurality of network communications protocol stacks using deferred protocol stack association
KR20070110319A (en) * 2005-02-02 2007-11-16 어사이스트 테크놀로지스, 인코포레이티드 Multi-protocol multi-client equipment server
CN1829234A (en) * 2006-04-10 2006-09-06 浙江大学 Method for realizing WAP browser network layer based on mobile terminal
CN102420697A (en) * 2011-09-07 2012-04-18 北京邮电大学 Service-configurable comprehensive resource monitoring managing system and method
CN104169914A (en) * 2013-12-11 2014-11-26 华为技术有限公司 Data storage method, data processing method, device and mobile terminal
US20150365999A1 (en) * 2014-06-12 2015-12-17 Samsung Electronics Co., Ltd. Method for processing data based on bluetooth protocol and electronic device thereof
US20180007189A1 (en) * 2014-12-29 2018-01-04 Beijing Qihoo Technology Company Limited Method and apparatus for implementing unified management of intelligent hardware devices by app, and client
CN105228089A (en) * 2015-09-30 2016-01-06 成都信汇聚源科技有限公司 A kind of wearable device multisensor adaptation and real-time data acquisition method
CN105704125A (en) * 2016-01-15 2016-06-22 王新珩 Multiprotocol interoperation communication device and method
CN106657101A (en) * 2016-12-29 2017-05-10 欧普照明股份有限公司 SDK and method for remote control of different protocol types of wireless communication modules
WO2018194626A1 (en) * 2017-04-20 2018-10-25 Nokia Technologies Oy Distributed bluetooth controller
CN108064036A (en) * 2017-12-04 2018-05-22 重庆信络威科技有限公司 Bluetooth Low Energy protocol architecture and network dispatching method
CN109873837A (en) * 2019-04-12 2019-06-11 广东工业大学 Central apparatus and multi-protocols adaptation system based on android system
CN110166485A (en) * 2019-06-14 2019-08-23 北京经纬恒润科技有限公司 A kind of the scheduling application method and device of agreement
CN110366039A (en) * 2019-07-12 2019-10-22 四川长虹电器股份有限公司 The compatibility method of different bluetooth mould groups under a kind of android system
CN110620995A (en) * 2019-09-17 2019-12-27 湖南简成信息技术有限公司 Intelligent device based on Bluetooth broadcast communication
CN110928608A (en) * 2019-12-30 2020-03-27 上海御渡半导体科技有限公司 Extensible communication framework supporting multiple communication protocols and communication method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546616A (en) * 2022-02-21 2022-05-27 Oppo广东移动通信有限公司 Device management method, device, electronic device and storage medium

Also Published As

Publication number Publication date
CN111711940B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN108510389B (en) Intelligent contract calling method and device based on block chain and readable storage medium
CN109408132A (en) A kind of configuration file processing method and server, user terminal, storage medium
CN101990169A (en) Intelligent card active pushing system and intelligent card mobile terminal
CN104580506B (en) Acquisition methods, cloud server and the client of offline map datum
CN111435338A (en) Multi-intelligent hardware unified management and control method, platform, system, equipment and storage medium
CN104837057A (en) Video file playing method, device and system
CN101553051A (en) Portable device and information management method
CN102779071A (en) Method, device and system for calling software interface
CN102932533B (en) Method and device for third party application program to call contacts
CN113825258A (en) FirefoxOS-based multimode communication method and operating system
CN104427000B (en) The method of communication system and its operation with transmission link mechanism
CN109890017B (en) Method, device and equipment for connecting with central equipment and readable storage medium
CN111711940B (en) Intelligent device data interaction method, intelligent device and storage device
CN112835632A (en) Method and device for calling end capability and computer storage medium
CN111741462B (en) Terminal application permission change acquisition method, terminal and USIM
CN101466163B (en) Method and system for processing information and relevant equipment
CN112954717A (en) Household appliance network distribution method and device based on H5 page
CN105812178B (en) A kind of terminal staging method and terminal
CN107426090A (en) Information processing method, device, medium, electronic equipment, server and system
CN103888923A (en) Call proceeding method, system and device applied to virtual private mobile network
CN110806856A (en) Data loading method and device and electronic equipment
KR20150020183A (en) Method and device for upgrading telephone number in wireless terminal self-adaptive network upgrade
CN102572800A (en) Method for SIM (subscriber identity module) card to automatically read information of IMEI (international mobile equipment identity) information of terminal on basis of STK (SIM application tool kit) technology
CN108307286B (en) Method and system for realizing communication between android devices based on NFC
CN110351710B (en) USIM-based terminal service function calling 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