CN105704252B - Bluetooth low energy device data transmission method and device - Google Patents

Bluetooth low energy device data transmission method and device Download PDF

Info

Publication number
CN105704252B
CN105704252B CN201610265818.5A CN201610265818A CN105704252B CN 105704252 B CN105704252 B CN 105704252B CN 201610265818 A CN201610265818 A CN 201610265818A CN 105704252 B CN105704252 B CN 105704252B
Authority
CN
China
Prior art keywords
data
uuid
packet
server
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610265818.5A
Other languages
Chinese (zh)
Other versions
CN105704252A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201610265818.5A priority Critical patent/CN105704252B/en
Publication of CN105704252A publication Critical patent/CN105704252A/en
Application granted granted Critical
Publication of CN105704252B publication Critical patent/CN105704252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • 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
    • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present invention provides a kind of bluetooth low energy device data transmission method and device, which comprises the Universally Unique Identifier UUID, the UUID that client obtains server-side correspond at least two property attributes that low-power consumption bluetooth data service provides;According to preset UUID in the UUID of the server-side and the client, the data transmission channel that the client and the server-side carry out data transmission is determined;The client passes through the data transmission channel, receive at least one self-defining data packet that the server-side is sent, the packet content of the self-defining data packet is corresponding with one of property attribute of the low-power consumption bluetooth data service, bluetooth low energy device data transmission method provided by the invention, so that the same data channel can according to need a plurality of types of data of transmission, the utilization rate in improve data transfer channel saves system resource.

Description

Bluetooth low energy device data transmission method and device
Technical field
The present invention relates to Bluetooth communication field more particularly to a kind of bluetooth low energy device data transmission methods and device.
Background technique
Bluetooth is a kind of wireless technology standard, it can be achieved that fixed equipment, mobile device and building personal mobile device and building Short-range data exchange (using the UHF radio wave of the ISM band of 2.4-2.485GHz) between space personal area network.With The development of Bluetooth wireless technology, 4.0 version of bluetooth realizes low-power consumption on the basis of traditional bluetooth technology, so that bluetooth Equipment can extremely low power consumption work, pushed bluetooth technology with low power consumption intelligent wearable device, mobile terminal, movement note The extensive use in the fields such as recording apparatus.
In the prior art, the application scenarios of bluetooth technology with low power consumption are all the standard contextual models issued by bluetooth tissue (profile) it supports, for example battery capacity inquiry needs to use the battery service of standard, the temperature data transmitting of clinical thermometer It needs using to clinical thermometer service etc..Many application scenarios, which all define, has relevant service type to be supported, each use Data content and data format in scene have special definition.Such as: by taking standard device information service profile as an example, Defined property states sequence number, software version number, hardware version numbers, manufacturer's title, product type, product in the profile Property attributes, each property attribute such as coding correspond to corresponding Universally Unique Identifier (Universally Unique Identifier, abbreviation UUID), the corresponding data path of each UUID, the spy of each data path transmission and the UUID The property corresponding data content of attribute.The UUID is distributed via bluetooth official organization, and these information is previously defined in soft In part.When product is interconnected with other products corresponding facility information can be read by corresponding UUID.
But in the prior art, the corresponding data path of each UUID can only transmit in the data defined in profile Hold, when transmitting the corresponding data of property attribute of multiple and different types, needs to waste system using multiple and different data paths Resource.
Summary of the invention
The embodiment of the present invention provides a kind of bluetooth low energy device data transmission method and device, for solving the prior art In bluetooth low energy device transmit data when waste system resource the problem of.
In a first aspect, the embodiment of the present invention provides a kind of bluetooth low energy device data transmission method, comprising:
The Universally Unique Identifier UUID of client acquisition server-side;The UUID corresponds to low-power consumption bluetooth data service and mentions At least two property attributes supplied, by user according to low-power consumption bluetooth GATT protocol definition;
According to preset UUID in the UUID of the server-side and the client, the client and the service are determined Hold the data transmission channel carried out data transmission;
The client receives at least one self-defining data that the server-side is sent by the data transmission channel Packet, the packet content of the self-defining data packet are opposite with one of property attribute of the low-power consumption bluetooth data service It answers.
Second aspect, the embodiment of the present invention provide a kind of bluetooth low energy device data transmission method, comprising:
Server-side receives the information acquisition request that client is sent;The information acquisition request instruction obtains the server-side Universally Unique Identifier UUID, the UUID corresponds at least two property attributes of low-power consumption bluetooth data service offer, by User is customized according to low-power consumption bluetooth GATT agreement;
The server-side sends the UUID of the server-side to the client, for supplying the client according to the clothes Be engaged in end UUID and the client in preset UUID, determine the client and number that the server-side carries out data transmission According to transmission channel
The server-side by with the data transmission channel, Xiang Suoshu client sends at least one self-defining data Packet, the packet content of the self-defining data packet are opposite with one of property attribute of the low-power consumption bluetooth data service It answers.
The third aspect, the embodiment of the present invention provide a kind of bluetooth low energy device data transmission device, comprising:
Processing module, for obtaining the Universally Unique Identifier UUID of server-side;The UUID corresponds to low-power consumption bluetooth number According at least two property attributes that service provides, by user according to low-power consumption bluetooth GATT protocol definition;
The processing module is also used to be determined according to preset UUID in the UUID of the server-side and the client The data transmission channel that the client and the server-side carry out data transmission;;
Receiving module, at least one for by the data transmission channel, receiving that the server-side is sent are customized Data packet, one of property attribute of the packet content of the self-defining data packet and the low-power consumption bluetooth data service It is corresponding.
Fourth aspect, the embodiment of the present invention also provide a kind of bluetooth low energy device data transmission device, comprising:
Receiving module, for receiving the information acquisition request of client transmission;The information acquisition request instruction obtains institute The Universally Unique Identifier UUID, the UUID for stating server-side correspond at least two characteristics of low-power consumption bluetooth data service offer Attribute, it is customized according to low-power consumption bluetooth GATT agreement by user;
Sending module, for sending the UUID to the client, so that the client is according to the UUID and institute Preset UUID in client is stated, determines the data transmission channel that the client and the server-side carry out data transmission
The sending module is also used to through the data transmission channel, and Xiang Suoshu client sends at least one and makes by oneself Adopted data packet, one of characteristic category of the packet content of the self-defining data packet and the low-power consumption bluetooth data service Property is corresponding.
Bluetooth low energy device data transmission method and device provided in an embodiment of the present invention, by low-power consumption bluetooth number It is defined according to the corresponding UUID of the property attribute of service, the corresponding data channel of the same UUID is allowed to support transmission institute The packet content of multiple property attributes is stated, bluetooth equipment can use institute by the corresponding data transmission channel of the UUID It states self-defining data packet and transmits packet content corresponding with any one property attribute, so that the same data channel It can according to need a plurality of types of data of transmission, the utilization rate in improve data transfer channel saves system resource.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the interaction schematic diagram that server-side of the embodiment of the present invention and client carry out the transmission of low-power consumption bluetooth data;
Fig. 2 is the flow diagram of bluetooth low energy device of embodiment of the present invention data transmission method;
Fig. 3 is the form schematic diagram of the self-defining data packet in low-power consumption bluetooth of embodiment of the present invention data transmission method;
Fig. 4 is the flow diagram of another embodiment of the present invention bluetooth low energy device data transmission method;
Fig. 5 is the structural schematic diagram of bluetooth low energy device of embodiment of the present invention data transmission device;
Fig. 6 is the structural schematic diagram of another embodiment of the present invention bluetooth low energy device data transmission device.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Bluetooth low energy device data transmission method and device of the present invention, pass through the characteristic to low-power consumption bluetooth data service The corresponding Universally Unique Identifier of attribute (Universally Unique Identifier, abbreviation UUID) is defined, so that One UUID corresponds to multiple property attributes, i.e., the corresponding data transmission channel of described UUID can be supported to transmit the multiple characteristic The packet content of attribute, then the data type by increasing data packet, and define the data type and the multiple characteristic The corresponding relationship of attribute allows bluetooth equipment by the corresponding data transmission channel of the UUID, uses the data packet Transmit the packet content of any one property attribute corresponding with the UUID.So that the same data channel can root According to needing to transmit a plurality of types of data, the utilization rate in improve data transfer channel saves system resource.
Fig. 1 is the interaction schematic diagram that server-side of the embodiment of the present invention and client carry out the transmission of low-power consumption bluetooth data.
Referring to Fig. 1, bluetooth low energy device of embodiment of the present invention data transmission method is by two bluetooth low energy devices Interaction is completed.One of bluetooth low energy device provides data service, another bluetooth low energy device as server-side 10 Data are received as client 20.The server-side 10 is based on one low-power consumption bluetooth data of low-power consumption bluetooth GATT protocol construction Service, the low-power consumption bluetooth data service includes one or more property attributes.The server-side 10 is blue to the low-power consumption The corresponding Universally Unique Identifier of the property attribute (Universally Unique Identifier, the letter of tooth data service Claim UUID) it is defined, allow a UUID to correspond to multiple property attributes.The corresponding data transmission of each UUID is logical Road, then the corresponding data transmission channel of the UUID can be supported to transmit the packet content of the multiple property attribute.Work as institute It states client 20 and after the server-side 10 establishes connection, the server-side 10 can pass through the corresponding data transmission of the UUID Channel is sent to the client 20 and the packet content of any one property attribute corresponding with the UUID.
Embodiment one
Fig. 2 is the flow diagram of bluetooth low energy device of embodiment of the present invention data transmission method.
Referring to Fig. 2, the executing subject of bluetooth low energy device data transmission method provided in an embodiment of the present invention is visitor Family end.Bluetooth low energy device data transmission method of the embodiment of the present invention includes:
S101: the Universally Unique Identifier UUID of client acquisition server-side;The UUID corresponds to low-power consumption bluetooth data At least two property attributes provided are serviced, by user according to low-power consumption bluetooth general-purpose attribute specification (Generic Attribute Profile, referred to as: GATT agreement) definition.
Specifically, in a kind of low-power consumption bluetooth data service contextual model (profile), including a primary service sound It is bright, for indicating the service content of the item data service.The low-power consumption bluetooth data service is defined in the primary service One or more property attributes.The UUID is the mark that is defined in advance according to low-power consumption bluetooth GATT agreement of user, can be by The server-side and client identification and inquiry, are the identifiers communicated between two bluetooth equipments.Each UUID corresponding one Data transmission channel.Optionally, the server-side can also increase characteristic description for each data transmission channel, to describe Characteristic and purposes of the data transmission channel etc..In the present embodiment, can be customized by the user the UUID with it is described low The corresponding relationship of the property attribute of power consumption blue-teeth data.Such as: a UUID can be set and correspond to the low-power consumption bluetooth data Two or more property attributes, described two or multifrequency nature attribute packet content can be corresponding by the UUID Data transmission channel is transmitted;That is, the corresponding data transmission channel of the UUID support to send multifrequency nature attribute it is corresponding Packet content.Alternatively, on the basis of previous embodiment, the UUID can have multiple, and the corresponding data of each UUID pass Defeated channel can support the packet content of transmission multifrequency nature attribute, then the packet content of the multifrequency nature attribute can To be transmitted by the corresponding data transmission channel of any one UUID.
S102: according to preset UUID in the UUID of the server-side and the client, the client and institute are determined State the data transmission channel that server-side carries out data transmission.
UUID corresponding with the property attribute of the low-power consumption bluetooth data service is preset in the client, it is same The corresponding UUID of a property attribute is identical as the UUID in the server-side or matches.When the client and the server-side After establishing connection, preset UUID is carried out pair in the UUID of the server-side that the client will acquire and the client Than determining whether the UUID of the server-side matches with UUID predetermined in the client.If the server-side UUID matches with UUID predetermined in the client, it is determined that the low-power consumption bluetooth data clothes that the server-side provides Business can be provided to match with the client, that is, the server-side can send data to the client.At this point, described Client can determine the client and the clothes according to the UUID and the preset UUID of the client of the server-side Data transmission channel between business end for carrying out data transmission.
S103: the client receives what the server-side was sent by data transmission channel corresponding with the UUID At least one self-defining data packet, the packet content of the self-defining data packet and the low-power consumption bluetooth data service its A kind of middle property attribute is corresponding.
Fig. 3 is the form schematic diagram of the self-defining data packet in low-power consumption bluetooth of embodiment of the present invention data transmission method.
Referring to Fig. 3, specifically, the self-defining data packet may include packet header 10 and packet content 20.The packet First 10 specifically include data type 11, and the data type 11 is used to indicate the type of the packet content.
On the basis of the above embodiments, it is described receive at least one self-defining data packet that the server-side is sent it Afterwards, further includes:
The self-defining data packet is parsed, the packet content 20 and the data type 11 are obtained.
Specifically, the packet header further includes data packet length 12 and package identification 13,
The parsing self-defining data packet, obtains the packet content and the data type, comprising:
Determine whether the self-defining data packet is complete data packet according to the data packet length;
If it is not, the self-defining data package of package identification having the same is then combined into complete data packet;
The data packet length 12 and package identification 13 for removing the complete data packet, obtain the packet content 20 and the data type 11.
On the basis of the above embodiments, the packet header further includes origin identification 14, and the origin identification 14 is for indicating Position of the self-defining data packet in complete data packet.
It is described that the self-defining data package of package identification having the same is combined into complete data packet, comprising:
It is ranked up according to self-defining data packet of the origin identification to the package identification having the same, it will be through The self-defining data package after crossing sequence is combined into complete data packet.
Specifically, wherein the origin identification is 1 byte, the data packet is indicated when the origin identification is 0x01 For first packet in complete data packet, the origin identification indicates that the data packet is the continuity of other data packets when being 0x00 Packet.The data type is 1 byte, and the different numerical value of the byte indicate that different data types, data need root when sending According to different data types to the part assignment.The package identification fixes 1 byte.If the same big data packet point It is transmitted for multiple small data packets, then uses identical package identification value, use different identification value between different data packet It is transmitted.The data packet length is 2 bytes, and the long data packet angle value is used to indicate the total length of data packet, maximum Support 64Kbyte.A total of 5 bytes in packet header, the packet header is superimposed on the front end of the packet content, the data It is exactly the actual data packet content corresponding with the data type to be transmitted of the data packet that packet class, which is held,.
Bluetooth low energy device data transmission method provided in an embodiment of the present invention, by obtaining the general unique of server-side Identification code UUID;According to preset UUID in the UUID of the server-side and the client, determine the client with it is described The data transmission channel that server-side carries out data transmission;By the data transmission channel corresponding with the UUID, institute is received At least one self-defining data packet of server-side transmission is stated, the packet content of the self-defining data packet corresponds to the low-power consumption One of property attribute of blue-teeth data service.Using bluetooth low energy device transmission side data provided in an embodiment of the present invention Method is defined by the corresponding UUID of property attribute to low-power consumption bluetooth data service, so that the corresponding number of a UUID The packet content of the multiple property attribute can be supported to transmit according to channel, bluetooth equipment can be corresponding by the UUID Data transmission channel transmits packet content corresponding with any one property attribute using the self-defining data packet, from And the same data channel is made to can according to need a plurality of types of property attribute data of transmission, improve data transfer channel Utilization rate saves system resource.
Embodiment two
Fig. 4 is the flow diagram of another embodiment of the present invention bluetooth low energy device data transmission method.
Referring to Fig. 4, another embodiment of the present invention provides bluetooth low energy device data transmission method executing subject For server-side, bluetooth low energy device data transmission method of the embodiment of the present invention includes:
S201: server-side receives the information acquisition request that client is sent;Described in the information acquisition request instruction obtains The Universally Unique Identifier UUID, the UUID of server-side correspond at least two characteristic categories of low-power consumption bluetooth data service offer Property, it is customized according to low-power consumption bluetooth GATT agreement by user;
S202: the server-side sends the UUID of the server-side to the client, for for the client according to Preset UUID in the UUID of the server-side and the client determines that the client and the server-side carry out data biography Defeated data transmission channel
S203: the server-side by with the data transmission channel, it is customized that Xiang Suoshu client sends at least one Data packet, one of property attribute of the packet content of the self-defining data packet and the low-power consumption bluetooth data service It is corresponding.
On the basis of the above embodiments, the self-defining data packet further includes data type, the data types to express The type of the packet content, it is described send at least one self-defining data packet to the client before, further includes:
It fills the content of the data type in the self-defining data packet, and the data type is superimposed upon described The front end of packet content.
On the basis of the above embodiments, the self-defining data packet further includes origin identification, data packet length and data Packet mark,
The content that the data type is filled in the self-defining data packet, and the data type is superimposed upon The front end of the packet content, comprising:
The origin identification, the data type, the package identification are successively filled in the self-defining data packet And the data packet length, and the data type, the package identification and the data packet length are sequentially overlapped in institute State the front end of packet content.That is, being packaged to data.
Bluetooth low energy device data transmission method provided in an embodiment of the present invention receives client by server-side and sends Information acquisition request, Xiang Suoshu client sends the UUID of the server-side, for for the client according to the service Preset UUID in the UUID at end and the client determines the data that the client and the server-side carry out data transmission Transmission channel, and by with the data transmission channel, Xiang Suoshu client sends at least one self-defining data packet, it is described from The packet content for defining data packet corresponds to one of property attribute of the low-power consumption bluetooth data service.Using the present invention The bluetooth low energy device data transmission method that embodiment provides, it is corresponding by the property attribute to low-power consumption bluetooth data service UUID be defined, allow the corresponding data channel of a UUID to support to transmit the data packet of the multiple property attribute Content, bluetooth equipment can be transmitted and be appointed using the self-defining data packet by the corresponding data transmission channel of the UUID The corresponding packet content of a kind of property attribute of anticipating, so that the same data channel can according to need transmission multiple types The property attribute data of type, the utilization rate in improve data transfer channel save system resource.
Embodiment three
Fig. 5 is the structural schematic diagram of bluetooth low energy device of embodiment of the present invention data transmission device.
Referring to Fig. 5, bluetooth low energy device data transmission device of the embodiment of the present invention, comprising:
Processing module 510, for obtaining the Universally Unique Identifier UUID of server-side;The UUID corresponds to low-power consumption bluetooth At least two property attributes that data service provides, by user according to low-power consumption bluetooth GATT protocol definition;
The processing module 510 is also used to according to preset UUID in the UUID of the server-side and the client, really The data transmission channel that the fixed client and the server-side carry out data transmission;
Receiving module 520, for receiving at least one that the server-side is sent and making by oneself by the data transmission channel Adopted data packet, one of characteristic category of the packet content of the self-defining data packet and the low-power consumption bluetooth data service Property is corresponding.
On the basis of the above embodiments, the self-defining data packet further includes data type, the data types to express The type of the packet content, the processing module 510, is also used to:
The self-defining data packet is parsed, to obtain the packet content and the data type.
On the basis of the above embodiments, the self-defining data packet further includes data packet length and package identification,
The processing module 510 is used for: determining whether the self-defining data packet is complete according to the data packet length Data packet;
If the processing module 510 determines that the self-defining data packet is not complete data packet, the processing module 510 For:
The self-defining data package of package identification having the same is combined into complete data packet;
The data packet length and package identification for removing the complete data packet, obtain the packet content and institute State data type.
On the basis of the above embodiments, the self-defining data packet further includes origin identification, the origin identification is used for Indicate position of the self-defining data packet in the complete data packet;
The processing module 510, is used for:
It is ranked up according to self-defining data packet of the origin identification to the package identification having the same, it will be through The self-defining data package after crossing sequence is combined into complete data packet.
On the basis of the various embodiments described above, the processing module 510 is used for:
According to preset UUID in the UUID of the server-side and the client, determine the server-side UUID whether Match with UUID preset in the client;
If it is determined that the UUID of the server-side matches with UUID predetermined in the client, it is determined that the visitor The data transmission channel that family end and the server-side carry out data transmission.
Bluetooth low energy device data transmission device provided in an embodiment of the present invention, for executing the low of the offer of embodiment one Power consumption bluetooth equipment data transmission method, implements principle and technical effect is similar with embodiment one, and details are not described herein.
Example IV
Fig. 6 is the structural schematic diagram of another embodiment of the present invention bluetooth low energy device data transmission device.
Referring to Fig. 6, another embodiment of the present invention provides bluetooth low energy device data transmission device, comprising:
Receiving module 610, for receiving the information acquisition request of client transmission;The information acquisition request instruction obtains At least two that the Universally Unique Identifier UUID, the UUID of the server-side correspond to the offer of low-power consumption bluetooth data service are special Property attribute, it is customized according to low-power consumption bluetooth GATT agreement by user;
Sending module 620, for sending the UUID to the client, for the client according to the UUID and Preset UUID in the client determines the data transmission channel that the client and the server-side carry out data transmission;
The sending module 620 is also used to through the data transmission channel, and Xiang Suoshu client sends at least one certainly Define data packet, one of characteristic of the packet content of the self-defining data packet and the low-power consumption bluetooth data service Attribute is corresponding.
On the basis of the above embodiments, the self-defining data packet further includes data type, the data types to express The type of the packet content,
Described device further include: processing module 630 is used for: it is sent at least in the sending module 620 to the client Before one self-defining data packet, the content of the data type is filled in the self-defining data packet, and by the data Type is superimposed upon the front end of the packet content.And the packet header is superimposed upon to the front end of the packet content.
On the basis of the above embodiments, the self-defining data packet further includes origin identification, data packet length and data Packet mark,
The processing module 630, is used for:
The origin identification, the data type, the package identification are successively filled in the self-defining data packet And the data packet length, and the data type, the package identification and the data packet length are sequentially overlapped in institute State the front end of packet content.
Bluetooth low energy device data transmission device provided in an embodiment of the present invention, for executing the low of the offer of embodiment two Power consumption bluetooth equipment data transmission method, implements principle and technical effect is similar with embodiment two, and details are not described herein.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can store in a computer, mobile phone or other portable units In read/write memory medium.When being executed, execution includes the steps that above-mentioned each method embodiment to the program;And storage above-mentioned is situated between Matter includes: the various media that can store program code such as ROM, RAM, magnetic or disk.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of bluetooth low energy device data transmission method characterized by comprising
The Universally Unique Identifier UUID of client acquisition server-side;The UUID corresponds to the offer of low-power consumption bluetooth data service At least two property attributes, it is customized according to low-power consumption bluetooth general-purpose attribute specification GATT agreement by user;
According to preset UUID in the UUID of the server-side and the client, determine the client and the server-side into The data transmission channel of row data transmission;
The client receives at least one self-defining data packet that the server-side is sent by the data transmission channel, The packet content of the self-defining data packet is corresponding with one of property attribute of the low-power consumption bluetooth data service.
2. described the method according to claim 1, wherein the self-defining data packet further includes data type The type of packet content described in data types to express;
After described at least one self-defining data packet for receiving the server-side transmission, further includes:
The self-defining data packet is parsed, the packet content and the data type are obtained.
3. according to the method described in claim 2, it is characterized in that, the self-defining data packet further includes data packet length information And package identification,
The parsing self-defining data packet, obtains the packet content and the data type, comprising:
Determine whether the self-defining data packet is complete data packet according to the data packet length information;
If it is not, the self-defining data package of package identification having the same is then combined into complete data packet;
The data packet length and package identification for removing the complete data packet, obtain the packet content and the number According to type.
4. described according to the method described in claim 3, it is characterized in that, the self-defining data packet further includes origin identification Origin identification is for indicating position of the self-defining data packet in complete data packet;
It is described that the self-defining data package of package identification having the same is combined into complete data packet, comprising:
It is ranked up according to self-defining data packet of the origin identification to the package identification having the same, it will be by row The self-defining data package after sequence is combined into complete data packet.
5. method according to claim 1-3, which is characterized in that the UUID and institute according to the server-side Preset UUID in client is stated, determines the data transmission channel that the client and the server-side carry out data transmission, packet It includes:
According to preset UUID in the UUID of the server-side and the client, determine the server-side UUID whether with institute Preset UUID in client is stated to match;
If it is determined that the UUID and UUID predetermined in the client that state server-side match, it is determined that the client with The data transmission channel that the server-side carries out data transmission.
6. a kind of bluetooth low energy device data transmission method characterized by comprising
Server-side receives the information acquisition request that client is sent;The information acquisition request instruction obtains the logical of the server-side At least two property attributes that the offer of low-power consumption bluetooth data service is provided with unique identifier UUID, the UUID, by user It is customized according to low-power consumption bluetooth general-purpose attribute specification GATT agreement;
The server-side sends the UUID of the server-side to the client, for supplying the client according to the server-side UUID and the client in preset UUID, determine the client and data that the server-side carries out data transmission pass Defeated channel;
The server-side by with the data transmission channel, Xiang Suoshu client sends at least one self-defining data packet, institute Stating self-defining data packet includes packet header and packet content, and the packet header includes data type, the number of the self-defining data packet It is corresponding with one of property attribute of the low-power consumption bluetooth data service according to packet content.
7. described according to the method described in claim 6, it is characterized in that, the self-defining data packet further includes data type The type of packet content described in data types to express,
It is described send at least one self-defining data packet to the client before, further includes:
The content of the data type is filled in the self-defining data packet, and the data type is superimposed upon the data The front end of packet content.
8. the method according to the description of claim 7 is characterized in that the self-defining data packet further includes origin identification, data Packet length and package identification,
The content that the data type is filled in the self-defining data packet, and the data type is superimposed upon described The front end of packet content, comprising:
The origin identification, the data type, the package identification and institute are successively filled in the self-defining data packet Data packet length is stated, and the data type, the package identification and the data packet length are sequentially overlapped in the number According to the front end of packet content.
9. a kind of bluetooth low energy device data transmission device characterized by comprising
Processing module, for obtaining the Universally Unique Identifier UUID of server-side;The UUID corresponds to low-power consumption bluetooth data clothes At least two property attributes that business provides, by user according to low-power consumption bluetooth general-purpose attribute specification GATT protocol definition;
The processing module is also used to preset UUID in UUID and client according to the server-side, determines the client The data transmission channel that end carries out data transmission with the server-side;
Receiving module, for receiving at least one self-defining data that the server-side is sent by the data transmission channel Packet, the packet content of the self-defining data packet are opposite with one of property attribute of the low-power consumption bluetooth data service It answers.
10. a kind of bluetooth low energy device data transmission device characterized by comprising
Receiving module, for receiving the information acquisition request of client transmission;The information acquisition request instruction obtains server-side Universally Unique Identifier UUID, the UUID corresponds at least two property attributes of low-power consumption bluetooth data service offer, by User is customized according to low-power consumption bluetooth general-purpose attribute specification GATT agreement;
Sending module, for sending the UUID to the client, so that the client is according to the UUID and the visitor Preset UUID in the end of family determines the data transmission channel that the client and the server-side carry out data transmission
The sending module is also used to through the data transmission channel, and Xiang Suoshu client sends at least one customized number According to packet, one of property attribute phase of the packet content of the self-defining data packet and the low-power consumption bluetooth data service It is corresponding.
CN201610265818.5A 2016-04-26 2016-04-26 Bluetooth low energy device data transmission method and device Active CN105704252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610265818.5A CN105704252B (en) 2016-04-26 2016-04-26 Bluetooth low energy device data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610265818.5A CN105704252B (en) 2016-04-26 2016-04-26 Bluetooth low energy device data transmission method and device

Publications (2)

Publication Number Publication Date
CN105704252A CN105704252A (en) 2016-06-22
CN105704252B true CN105704252B (en) 2019-05-07

Family

ID=56217604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610265818.5A Active CN105704252B (en) 2016-04-26 2016-04-26 Bluetooth low energy device data transmission method and device

Country Status (1)

Country Link
CN (1) CN105704252B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789415A (en) * 2016-12-12 2017-05-31 东软集团股份有限公司 The acquisition method of facility information, apparatus and system
CN108684021B (en) * 2018-03-20 2021-06-04 海信视像科技股份有限公司 Bluetooth low-power-consumption communication method and device
CN108738007B (en) * 2018-06-06 2021-08-17 科大讯飞股份有限公司 Audio transmission method, equipment and system
CN109341742A (en) * 2018-09-17 2019-02-15 北京英视睿达科技有限公司 Enviromental monitoring equipment method of calibration and system
CN110380760B (en) * 2019-07-17 2021-05-25 重庆大学 General personal health equipment flag bit data transmission method based on low power consumption Bluetooth
CN110366157B (en) * 2019-08-29 2022-02-18 厦门市思芯微科技有限公司 Bluetooth voice acquisition and interaction method
CN112367651A (en) * 2020-10-14 2021-02-12 华帝股份有限公司 Intelligent device Bluetooth network distribution method and system
CN113691609B (en) * 2021-08-20 2024-04-09 Oppo广东移动通信有限公司 Data acquisition method and device, electronic equipment and storage medium
CN113691610B (en) * 2021-08-20 2024-04-09 Oppo广东移动通信有限公司 Data acquisition method and device, electronic equipment and storage medium
CN114501404A (en) * 2021-12-29 2022-05-13 苏州摩比信通智能系统有限公司 Bar code data wireless transmission system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223397A (en) * 2011-05-13 2011-10-19 重庆大学 Infant growth measurement data service module and data transmission method
CN104144498A (en) * 2014-07-28 2014-11-12 北京升哲科技有限公司 Indoor positioning method and system based on Bluetooth beacon equipment
CN104185141A (en) * 2014-07-28 2014-12-03 北京升哲科技有限公司 Bluetooth beacon device based system and method for detecting stay time of user in area
CN104540090A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Networking interconnection method and system based on low-power-consumption Bluetooth
CN104661172A (en) * 2015-01-26 2015-05-27 武汉健坤科技有限公司 Extended data transmission method and extended data transmission system based on Bluetooth low power consumption

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9191832B2 (en) * 2013-06-06 2015-11-17 Apple Inc. Category-based fence

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223397A (en) * 2011-05-13 2011-10-19 重庆大学 Infant growth measurement data service module and data transmission method
CN104144498A (en) * 2014-07-28 2014-11-12 北京升哲科技有限公司 Indoor positioning method and system based on Bluetooth beacon equipment
CN104185141A (en) * 2014-07-28 2014-12-03 北京升哲科技有限公司 Bluetooth beacon device based system and method for detecting stay time of user in area
CN104540090A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Networking interconnection method and system based on low-power-consumption Bluetooth
CN104661172A (en) * 2015-01-26 2015-05-27 武汉健坤科技有限公司 Extended data transmission method and extended data transmission system based on Bluetooth low power consumption

Also Published As

Publication number Publication date
CN105704252A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105704252B (en) Bluetooth low energy device data transmission method and device
CN103338475B (en) The method of testing of WAP (wireless access point) and device, test terminal
US20140330992A1 (en) USB Device Communication Method, Device and System
CN105474205A (en) Semantic naming model
CN102892111A (en) Transmitting device, receiving device, and operation method thereof
CN105408865A (en) Data annotation as a service for iot systems
JP2020520573A (en) Method for transmitting aerosol delivery device information and aerosol delivery device
CN102340523B (en) Mobile terminal and method for down loading, server and data transmission method for uplink
CN104219065A (en) Beacon-based broadcasting method and Beacon equipment
CN104683124B (en) Terminal type recognition methods and device
CN102983942A (en) Data transmission method and equipment
US10812545B2 (en) Beacon sensor advertisement frame
CN106550427A (en) For realizing method, WiFi terminal and the system of WLAN rapid configuration
CN106302093B (en) Communication method, system and server
CN105763255B (en) Communication connection method for building up, intelligent terminal and server applied to intelligent terminal
EP3191956A1 (en) Scalable charging system based on service-oriented architecture (soa)
CN108270546A (en) A kind of method and system of information transmission
CN106303983B (en) Group data transmission method and device
CN108307286B (en) Method and system for realizing communication between android devices based on NFC
CN103796331B (en) A kind of method and apparatus for closely exchanging data
CN102298559B (en) Handheld terminal and with computer method for information interaction between and system
CN115065700A (en) Electronic equipment and thing networking communication module thereof
CN104754014B (en) A kind of adjustment of transfer resource priority control method, apparatus and system
CN111885560A (en) Bluetooth communication method and device, storage medium and electronic device
CN106060801A (en) Data communication method, device and system based on Wi-Fi device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee after: Hisense Video Technology Co.,Ltd.

Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee before: HISENSE ELECTRIC Co.,Ltd.