CN106060962A - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN106060962A
CN106060962A CN201610477845.9A CN201610477845A CN106060962A CN 106060962 A CN106060962 A CN 106060962A CN 201610477845 A CN201610477845 A CN 201610477845A CN 106060962 A CN106060962 A CN 106060962A
Authority
CN
China
Prior art keywords
data
equipment
request
message
notice
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
CN201610477845.9A
Other languages
Chinese (zh)
Other versions
CN106060962B (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 H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201610477845.9A priority Critical patent/CN106060962B/en
Publication of CN106060962A publication Critical patent/CN106060962A/en
Application granted granted Critical
Publication of CN106060962B publication Critical patent/CN106060962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections

Landscapes

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

Abstract

The invention provides a communication method and device. The method and the device are applied to a Bluetooth system. The method comprises the steps that a slave device receives a data request message sent by a master device in the last first time window after a first notice is sent; response data is determined when the data request message is a read request message; the number N of second time windows is determined according to the response data; the response data is divided into N data pieces according to the transmittable data quantity in the second time windows; and the divided data pieces are sent in a broadcasting mode after a second notice is sent; and the master device receives data in the second time windows and restores the response data sent by the slave device according to all received data. According to the method and the device, the master device and slave device carry out information interaction in the broadcasting mode; connection is unnecessarily established and maintained; the electric consumption is reduced; and the communication distance is increased.

Description

A kind of communication means and device
Technical field
The present invention relates to network communication technology field, particularly relate to a kind of communication means and device.
Background technology
Along with Smart Home, intelligent industrial, the development of smart mobile phone, BLE (BlueTooth Low Energy, Low-power consumption bluetooth) application more and more extensive.In BLE technology, the two-way communication between master and slave equipment is set up On the basis of connecting, and in order to ensure the reliability connected, it will usually introduce time-out, stream control, repeat The mechanism such as detection, cause under the applied environment that some are severe, it is easy to communication disruption occur, when again Need during communication to re-establish connection, add the complexity of two-way communication, and power consumption is big, Shuan Fangtong Communication distance shortens.
Summary of the invention
It is an object of the invention to provide a kind of communication means and device, in order to by broadcast mode master and slave Two-way communication is realized between equipment.
For achieving the above object, the invention provides technical scheme:
The present invention provides a kind of communication means, be applied in Bluetooth system from equipment, described method includes:
Last very first time window after sending the first notice receives the request of data report that main equipment sends Literary composition;
When described request of data message is read request message, determine response data;
Determine and send quantity N of the second time window, the number of described second time window needed for described response data Amount N is less than predetermined threshold value, and described predetermined threshold value is the maximum time window quantity can followed after single is noticed;
Transmitted data amount described response data can be divided into N number of data slice according in the second time window;
Send the second notice by broadcast mode, and pass through broadcast mode N number of after described second notice The data slice that in second time window, transmission has divided.
The present invention also provides for a kind of communication means, the main equipment being applied in Bluetooth system, described method bag Include:
Receiving the first notice sent from equipment, described first notices followed by least one very first time window;
Judge whether receive data in the initial time section of described very first time window;
When not receiving data in the initial time section at described very first time window, in the current very first time To described from equipment sending data request message in the follow-up time of window;
When described request of data message is read request message, receive described the second notice sent from equipment, Described second notices followed by least one the second time window;
Judge whether receive data in the initial time section of described second time window;
After data receiver in completing all second time windows, according to all data convert received institutes State the response data sent from equipment.
The present invention also provides for a kind of communicator, be applied in Bluetooth system from equipment, described device bag Include:
Message receives unit, receives main setting for last very first time window after sending the first notice The request of data message that preparation is sent;
Data determination unit, for when described request of data message is read request message, determines number of responses According to;
Quantity determines unit, quantity N of the second time window needed for determining the described response data of transmission, Quantity N of described second time window is less than predetermined threshold value, and described predetermined threshold value is can to follow after single is noticed Maximum time window quantity;
Data slice division unit, for according in the second time window can transmitted data amount by described response data It is divided into N number of data slice;
Data slice transmitting element, for sending the second notice by broadcast mode, and notices described second Send, in N number of second time window, the data slice divided afterwards by broadcast mode.
The present invention also provides for a kind of communicator, the main equipment being applied in Bluetooth system, described device bag Include:
First receive unit, for receive from equipment send first notice, described first notice followed by At least one very first time window;
First judging unit, for judging whether receive in the initial time section of described very first time window Data;
Request transmitting unit, for when not receiving data in the initial time section of described very first time window Time, to described from equipment sending data request message in the follow-up time of current very first time window;
Second receives unit, for when described request of data message is read request message, receive described from The second notice that equipment sends, described second notices followed by least one the second time window;
Second judging unit, for judging whether receive in the initial time section of described second time window Data;
Data convert unit, after the data receiver in completing all second time windows, according to all The response data sent from equipment described in the data convert received.
By above description it can be seen that use broadcast mode to carry out information between the master and slave equipment of the present invention Alternately, it is not necessary to set up connection, maintain connection, therefore, it is possible to decrease electric quantity consumption, extend communication distance.
Accompanying drawing explanation
Fig. 1 is a kind of communication means flow chart shown in the embodiment of the present invention;
Fig. 2 is a kind of message format schematic diagram shown in the embodiment of the present invention;
Fig. 3 is the schematic diagram of the division data slice shown in the embodiment of the present invention;
Fig. 4 is a kind of message interaction process schematic shown in the embodiment of the present invention;
Fig. 5 is the message interaction process schematic of a kind of many secondary responses shown in the embodiment of the present invention;
Fig. 6 is the another kind of communication means flow chart shown in the embodiment of the present invention;
Fig. 7 is the structural representation of the master and slave equipment shown in the embodiment of the present invention;
Fig. 8 is the structural representation of a kind of communicator shown in the embodiment of the present invention;
Fig. 9 is the structural representation of the another kind of communicator shown in the embodiment of the present invention.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following When description relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous Key element.Embodiment described in following exemplary embodiment does not represent the institute consistent with the present invention There is embodiment.On the contrary, they only with as appended claims describes in detail, the one of the present invention The example of the apparatus and method that a little aspects are consistent.
It is only merely for describing the purpose of specific embodiment in terminology used in the present invention, and is not intended to be limiting The present invention." a kind of " of singulative used in the present invention and appended claims, " institute State " and " being somebody's turn to do " be also intended to include most form, unless context clearly shows that other implications.Also should Work as understanding, term "and/or" used herein refer to and comprise one or more be associated list item Any or all possible combination of purpose.
Although should be appreciated that may use term first, second, third, etc. various to describe in the present invention Information, but these information should not necessarily be limited by these terms.These terms only be used for by same type of information that This distinguishes.Such as, without departing from the present invention, the first information can also be referred to as Two information, similarly, the second information can also be referred to as the first information.Depend on linguistic context, as in this institute Use word " if " can be construed to " and ... time " or " when ... time " or " response In determining ".
The embodiment of the present invention proposes a kind of communication means, and the method passes through broadcast mode between master and slave equipment Carrying out two-way communication, reduce the complexity of communication process, and power consumption is low, communication distance increases.
Seeing Fig. 1, for an embodiment flow chart of communication means of the present invention, this embodiment is from from equipment Communication process is described by side.
Step 101, last very first time window after sending the first notice receives the data that main equipment sends Request message.
In the embodiment of the present invention, periodically send notice, and reserved a number of time after notice from equipment Window, for sending data and receiving the request of data that main equipment sends.The big I of time window is according to application number According to feature (such as, the size of packet) arrange.
In the embodiment of the present invention, receive the request of data message of main equipment transmission and according to request of data from equipment Message is responded the operation of response data and is not completed within the same notice cycle.A notice is first passed through from equipment Cycle receives the request of data message that main equipment sends, and then starts to respond main equipment from the next one notice cycle Request, say, that the most complete data request process at least to complete within two notice cycles. The embodiment of the present invention, was referred to as the first notice cycle, in this cycle by the notice cycle receiving request of data message Notice be referred to as the first notice;The notice cycle responding request was referred to as the second notice cycle, leading in this cycle Accuse and be referred to as the second notice.
From the time window that equipment is arranged, last time window can be reserved and receive the data that main equipment sends Request message.From equipment last time window (below by first notice after time window be referred to as first time Between window), it is judged that whether main equipment has a request of data, and receives main equipment in this last very first time window The request of data message sent.This request of data message carries the MAC Address from equipment and main equipment MAC Address, so that being currently confirmed whether by oneself from equipment to process the request of data of main equipment, meanwhile, Would know that the request of data being by which main equipment to be sent.
Step 102, when described request of data message is read request message, determines response data.
Read-write operation is completed according to the request of main equipment from equipment.When the operation carried in request of data message When type is read operation, determine that currently received request of data message is read request message, i.e. master devices request Data are read from from equipment.From equipment according to solicited message (such as, the data carried this read request message Object) determine the response data needing to provide to main equipment.
Step 103, determines and sends quantity N of the second time window, described second time needed for described response data Quantity N of window is less than predetermined threshold value, and described predetermined threshold value is the maximum time window number can followed after single is noticed Amount.
Specifically, the response data determining step 102 carries out message encapsulation, is packaged into reading response message, The source MAC of this reading response message be from the MAC Address of equipment, target MAC (Media Access Control) address be main equipment MAC Address so that main equipment knows the response data being destined to oneself according to target MAC (Media Access Control) address, Simultaneously it is known that be which response data from equipment transmission.The load reading response message is carried concrete Response data.Message encapsulation format sees Fig. 2.
Embodiment of the present invention Preset Time window amount threshold (abbreviation predetermined threshold value), this predetermined threshold value is that single leads to The maximum time window quantity can followed after announcement, can be configured according to the uninterrupted of reality application.Flow is big Bigger predetermined threshold value can be set, so that can as often as possible transmit data after single is noticed, improve data and pass Defeated efficiency.But, this predetermined threshold value can not be infinitely great, and it arranges BLE to be observed and wants channel duration Ask so that single is noticed and followed the data of this notice transmission and do not wants long-time busy channel.
The embodiment of the present invention, after response message is read in encapsulation, needs the data volume sent to arrange the time for this Window quantity.Read response message and follow transmission after the second notice, therefore, transmission reading response message is used Time window be referred to as the second time window.It is assumed that it is 10ms that unification arranges single time window size, then according to this The secondary data volume (considering transmission rate etc.) needing to send, calculating reading response message can be at several time window Inside complete to send.When quantity N of the second time window calculated meets or exceeds predetermined threshold value, determine list Quantity N sending the second time window reading response message after secondary notice subtracts one equal to predetermined threshold value, remaining data Amount can retransmit in the next one notice cycle;When quantity N of the second time window calculated is less than predetermined threshold value Time, it is as the criterion with the quantity that Practical Calculation goes out.
Additionally, master and slave equipment can consult the greatest length of the demandable data object of single in advance, make main setting The data volume (corresponding from the response data of equipment) of standby single request can complete to respond within a notice cycle, I.e. read response message to complete to send within a notice cycle, send out without in being split to multiple notice cycle Send, simplify the processing procedure from equipment.
Step 104, transmitted data amount can be divided into N number of number by described response data according in the second time window According to sheet.
In this step, according to the data volume can transmitted in the second time window, reading response message is divided into N number of Data slice, sees Fig. 3, and each data slice is except comprising concrete load (reading the message content of response message) Outside, also comprising time window head, this time window head portability time window identifies, and is used for which represents Time window.
Step 105, sends the second notice by broadcast mode, and passes through broadcast mode after described second notice Send, in N number of second time window, the data slice divided.
Can be in the first next notice cycle noticing the cycle from equipment, in the i.e. second notice cycle, transmission is drawn The data slice divided.Specifically, send the second notice by broadcast mode, it is spaced certain frame period (such as, In bluetooth standard, the interframe of regulation BLE is divided into 150 microseconds) after, send in N number of second time window and draw Also certain frame period is reserved between divided data sheet, and adjacent second time window.It should be added that, If cannot not send completely within a notice cycle from the response data of equipment, then can be within the next one notice cycle Continue to send, do not repeat them here.
From equipment after completing response data transmission, second time window can be reserved and send out for receiving main equipment The new request of data message sent, i.e. returns step 101 and continues executing with.
See Fig. 4, for the mutual schematic diagram of a kind of master and slave equipment shown in the embodiment of the present invention.It is assumed that from When equipment sends the first notice, local data to be sent, then only follow one the after noticing first One time window 1, from equipment in very first time window 1, receives the read request message 1 that main equipment sends.Determine Needing the response data sent, encapsulation is read response message 1 (carrying response data), is determined for sending response Second time window quantity of data is 1, i.e. reads response message and can complete to send in second time window. Sending the second notice, the second time window 1 after noticing second sends reads response message 1;Reserved second time Window 2, receives the read request message 2 that main equipment sends, by that analogy.
In order to avoid message disordering, the embodiment of the present invention increases serial number in the mutual message of master and slave equipment, I.e. main equipment carries serial number in the request of data message sent, from equipment at the data response message responded (such as, reading response message) carries identical serial number.Therefore, send out when receiving main equipment from equipment During the request of data message sent, can first obtain the serial number carried in request of data message, it is judged that currently connect The request of data message received is the most legal.
Specifically, obtain in request of data message the serial number (being called for short First ray number) carried, it is judged that this is the years old Request of data message (the request of data report that serial number is correct whether one serial number is properly received less than the last time Literary composition) serial number (being called for short the second serial number) that carries.
Can process in the following several ways according to judged result: when First ray number is equal to the second serial number, Resend the data response message (such as, the last reading response message sent) of last time;When the first sequence When row number are more than the second serial number, illustrate that sequence of message number is correct, process current request of data message, i.e. Perform step 102~step 105;When First ray number is less than the second serial number, message disordering is described, logical Know that main equipment resends correct request of data message.
Specifically, in one embodiment, send the 3rd notice by broadcast mode, in noticing the 3rd Carry the MAC Address of the main equipment of last the second correct serial number and transmission request of data message, with When making main equipment confirm self to need retransmission data request message according to MAC Address, take in noticing according to the 3rd Second serial number of band redefines serial number (such as, the second Serial No. 5, then this Serial No. 5+1=6), Resend request of data message.
In another embodiment, send the 3rd notice from equipment by broadcast mode, notice the 3rd After time window (be called for short the 3rd time window) in, send data re-transmitting order, these data by broadcast mode Retransmit the MAC Address of the main equipment carrying the second serial number and transmission request of data message in order, so that When main equipment confirms self to need retransmission data request message according to MAC Address, according to the second serial number again Send request of data message.
The volatibility of the message in order to avoid being sent by broadcast mode, is especially read response message and (carries sound Answer data), main equipment carries response times M in the read request message sent, and completes for the first time from equipment After response data sends, obtain response times M carried in read request message, then send M-1 to main equipment Secondary response data, and within the second different notice cycles, complete M-1 transmission, see Fig. 5.
Main equipment is except sending in addition to read request message to from equipment, it is also possible to send write request to from equipment Message (action type carried in request of data message is write operation).From equipment without for write request report Literary composition sends special write response message, can carry the serial number of this write request message in subsequent advertisement, with Main equipment is made to judge whether according to the serial number carried in noticing consistent with the serial number of the write request message sent, If consistent, illustrate to have been received by the data of write from equipment;If inconsistent, illustrate this time to write failure, example As, possible message disordering, it is desirable to main equipment resends write request message.
Certainly, in the aforementioned response to read request message, it is also possible to directly carrying reading in noticing second please Seek the serial number of message, so that whether the serial number during main equipment is noticed according to second i.e. can determine that reading data Success, without analyzing the serial number reading to carry in response message again.
Seeing Fig. 6, for an embodiment flow chart of communication means of the present invention, this embodiment is from main equipment Communication process is described by side.
Step 601, receive from equipment send first notice, described first notice followed by least one first Time window.
Step 602, it is judged that whether receive data in the initial time section of described very first time window.
Step 603, when not receiving data in the initial time section at described very first time window, current To described from equipment sending data request message in the follow-up time of one time window.
See the aforementioned description from equipment side, from equipment send first notice after can follow at least one first Time window.Main equipment receive first notice after, it is judged that very first time window initial time section (usually Several leading time slot of very first time window) in whether receive data.When the initial time section at very first time window Inside it is not received by when the data that equipment sends, determines that current very first time window is from reserved last of equipment One very first time window, main equipment can be asked to from equipment sending data within the remaining time of this very first time window Seek message.The encapsulation format of request of data message sees Fig. 2, and wherein, target MAC (Media Access Control) address is from equipment MAC Address, source MAC is the MAC Address of main equipment, carries needs and pass to from equipment in load The information reached.
Step 604, when described request of data message is read request message, receive described send from equipment the Two notice, and described second notices followed by least one the second time window.
Main equipment can carry action type (read operation/write operation) in the request of data message sent.Work as number When being read operation according to the action type carried in request message, current data request message is read request message. Main equipment receives the reading response message responded from equipment according to this read request message.As it was previously stated, exist from equipment Sending after second notice and read response message, this reading response message is distributed in multiple second times after the second notice In window.
Step 605, it is judged that whether receive data in the initial time section of described second time window.
Step 606, after the data receiver in completing all second time windows, according to all data received The described response data sent from equipment of reduction.
Main equipment receives and reduces the reading response message sent from equipment after all data, and main equipment can obtain this reading Serial number in response message, if this serial number is consistent with the serial number in the read request message that oneself sends, Then obtain the response data reading to carry in response message;Otherwise, abandon reading response message, wait from equipment root The reading response message resend according to response times M, if the most incorrect after M secondary response, then can weigh New transmission read request message.
As it was previously stated, in order to avoid message disordering, the serial number of request of data message detected not from equipment Time correct, it is notified that main equipment resends request of data message.Main equipment receives the repeating transmission sent from equipment The notice of request of data message, specifically can be received by following two mode:
In one embodiment, main equipment receives the 3rd notice sent from equipment, takes in the 3rd notice Second serial number of the request of data message that band was properly received from equipment the last time and send number to from equipment MAC Address according to the main equipment of request message.
In another embodiment, main equipment receives the 3rd notice sent from equipment, and in this threeway After announcement the 3rd time window receive from equipment send data re-transmitting order, this data re-transmitting order is carried from Second serial number of the request of data message that equipment the last time is properly received and to please from equipment sending data Seek the MAC Address of the main equipment of message.
When after the notice receiving retransmission data request message by the way, it is judged that when forward direction is sent out from equipment The MAC Address sending the main equipment of request of data message is the most identical with the MAC Address of this main equipment, if Identical, illustrate to need this main equipment to process.Obtain the second serial number of carrying in notice, it is judged that this is the years old The First ray number whether two serial numbers are sent to from the request of data message of equipment with the last time is identical, If it is different, explanation message disordering, main equipment needs to redefine serial number, such as, at the second serial number On the basis of add one and obtain new serial number, resend request of data report according to this serial number redefined Literary composition.
As it was previously stated, main equipment is except sending in addition to read request message to from equipment, it is also possible to from equipment Send write request message, be sent to from setting also in send last time window after noticing from equipment in Standby.This write request message carries the data write from equipment, encapsulation format as in figure 2 it is shown, wherein, Target MAC (Media Access Control) address is the MAC Address from equipment to be write, and source MAC is the MAC of main equipment Address, carries data to be write in load.The embodiment of the present invention by arranging the greatest length of data object, The data volume making the write request message of main equipment controls in a time window, when the data needing write are more Time, can realize by repeatedly sending write request message.
The safety mutual in order to ensure broadcasting packet, the connection that main equipment can define according to existing bluetooth standard Process is set up and the connection from equipment (should be connectable device from the type of equipment), according to actual encryption/ Checking demand obtains ex curia key in connection procedure, such as, LTK (Long-Term Key, Long term keys), CSRK (Connection Signature Resolving Key, connect signature verification key), Then, disconnect and the connection from equipment.In the bidirectional broadcast of follow-up master and slave equipment is mutual, can be by upper State key encryption/checking.Visible, in order to improve safety, the embodiment of the present invention is minimum by once connecting Complete key agreement, i.e. solve safety issue, meanwhile, normal information will not be produced alternately extra Burden.
Furthermore, it is necessary to especially it is emphasized that all interactions in the embodiment of the present invention are all at same letter Road completes, and therefore, has saved channel resource.
By foregoing description it can be seen that use broadcast mode to carry out between the master and slave equipment of the embodiment of the present invention Information is mutual, it is not necessary to set up connect, maintain connect, therefore, reduce electric quantity consumption, extend communication away from From.
Corresponding with the embodiment of aforementioned communication method, present invention also offers the embodiment of communicator.
The embodiment of communicator of the present invention can be applied at main equipment or from equipment.Device embodiment is permissible Realized by software, it is also possible to realize by the way of hardware or software and hardware combining.As a example by implemented in software, As the device on a logical meaning, it is by corresponding in the processor run memory of its place equipment Computer program instructions is formed.For hardware view, as it is shown in fig. 7, for communicator institute of the present invention At a kind of hardware structure diagram of equipment, in addition to the processor shown in Fig. 7 and nonvolatile memory, In embodiment, the equipment at device place is generally according to the actual functional capability of this equipment, it is also possible to include other hardware, This is repeated no more.
Refer to Fig. 8, for the structural representation of the communicator in one embodiment of the invention.This communicator Determine that unit 803, data slice divide list including message reception unit 801, data determination unit 802, quantity Unit 804 and data slice transmitting element 805, wherein:
Message receives unit 801, receives main setting for last very first time window after sending the first notice The request of data message that preparation is sent;
Data determination unit 802, for when described request of data message is read request message, determines number of responses According to;
Quantity determines unit 803, quantity N of the second time window needed for determining the described response data of transmission, Quantity N of described second time window is less than predetermined threshold value, and described predetermined threshold value is can to follow after single is noticed Maximum time window quantity;
Data slice division unit 804, for according in the second time window can transmitted data amount by described response data It is divided into N number of data slice;
Data slice transmitting element 805, for sending the second notice by broadcast mode, and notices described second Send, in N number of second time window, the data slice divided afterwards by broadcast mode.
Further, described device also includes:
Serial number acquiring unit, for before described data determination unit 802 determines response data, obtains The First ray number carried in described request of data message;
Serial number judging unit, for judging the number whether described First ray number is properly received less than the last time According to the second serial number carried in request message;
Retransmitting notification unit, for when described First ray number is less than described second serial number, notice is described Main equipment resends request of data message.
Further,
Described repeating transmission notification unit, specifically for sending the 3rd notice by broadcast mode, the described 3rd notices In carry described second serial number and send the MAC Address of main equipment of described request of data message so that When described main equipment confirms self to need retransmission data request message according to described MAC Address, according to described the Two serial numbers resend request of data message;Or, send the 3rd notice by broadcast mode;Described In the 3rd time window after 3rd notice, send data re-transmitting order, described data re-transmitting by broadcast mode Order is carried described second serial number and sends the MAC Address of main equipment of described request of data message, During so that described main equipment confirms self to need retransmission data request message according to described MAC Address, according to institute State the second serial number and resend request of data message.
Further, described device also includes:
Duplicate responses unit, by wide after noticing described second at described data slice transmitting element 805 After broadcast mode sends, in N number of second time window, the data slice divided, obtain in described read request message Response times M carried;M-1 secondary response data are sent to described main equipment again for described read request message.
Refer to Fig. 9, for the structural representation of the communicator in another embodiment of the present invention.This communication fills Put and include that first reception unit the 901, first judging unit 902, request transmitting unit 903, second receive single Unit's the 904, second judging unit 905 and data convert unit 906, wherein:
First receives unit 901, for receiving the first notice sent from equipment, after described first notices Follow at least one very first time window;
First judging unit 902, for judging whether connect in the initial time section of described very first time window Receive data;
Request transmitting unit 903, for when not receiving in the initial time section of described very first time window During data, to described from equipment sending data request message in the follow-up time of current very first time window;
Second receives unit 904, for when described request of data message is read request message, receives institute Stating the second notice sent from equipment, described second notices followed by least one the second time window;
Second judging unit 905, for judging whether connect in the initial time section of described second time window Receive data;
Data convert unit 906, after the data receiver in completing all second time windows, according to The response data sent from equipment described in all data convert received.
Further, described device also includes:
Notice receives unit, for receiving the notice of the described retransmission data request message sent from equipment, Second serial number of the request of data message being properly received from equipment the last time described in carrying in described notice And the MAC Address to the described main equipment from equipment sending data request message;
Serial number acquiring unit, for when described when described in forward direction from the master of equipment sending data request message When the MAC Address of equipment is identical with the MAC Address of this main equipment, obtain described second serial number;
Serial number judging unit, is used for judging whether described second serial number is sent to described with the last time First ray number from the request of data message of equipment is identical;
Sequence number determining unit is for when described second serial number is different from described First ray number, heavy Newly determined serial number, and resend request of data message according to the serial number redefined.
Further,
Described notice receives unit, specifically for receiving described the 3rd notice sent from equipment, and described the Three notice in carry the second serial number of the described request of data message being properly received from equipment the last time with And the MAC Address to the described main equipment from equipment sending data request message;Or, receive described The 3rd notice sent from equipment;The 3rd time window after noticing the described 3rd is sent out from equipment described in receiving The data re-transmitting order sent, carries in described data re-transmitting order and described is properly received from equipment the last time Request of data message the second serial number and to the described main equipment from equipment sending data request message MAC Address.
In said apparatus, the function of unit and the process that realizes of effect specifically refer in said method corresponding Step realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part ginseng See that the part of embodiment of the method illustrates.Device embodiment described above is only schematically, The wherein said unit illustrated as separating component can be or may not be physically separate, makees The parts shown for unit can be or may not be physical location, i.e. may be located at a place, Or can also be distributed on multiple NE.Can select according to the actual needs part therein or The whole module of person realizes the purpose of the present invention program.Those of ordinary skill in the art are not paying creativeness In the case of work, i.e. it is appreciated that and implements.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this Within the spirit of invention and principle, any modification, equivalent substitution and improvement etc. done, should be included in Within the scope of protection of the invention.

Claims (14)

1. a communication means, be applied in Bluetooth system from equipment, it is characterised in that described method includes:
Last very first time window after sending the first notice receives the request of data message that main equipment sends;
When described request of data message is read request message, determine response data;
Determine and send quantity N of the second time window, quantity N of described second time window needed for described response data Less than predetermined threshold value, described predetermined threshold value is the maximum time window quantity can followed after single is noticed;
Transmitted data amount described response data can be divided into N number of data slice according in the second time window;
Send the second notice by broadcast mode, and after noticing described second by broadcast mode N number of the The data slice that in two time windows, transmission has divided.
2. the method for claim 1, it is characterised in that described determine response data before, also include:
Obtain the First ray number carried in described request of data message;
Judge to carry in the request of data message whether described First ray number is properly received less than the last time the Two serial numbers;
When described First ray number is less than described second serial number, notify that described main equipment resends data Request message.
3. method as claimed in claim 2, it is characterised in that described notify that described main equipment resends number According to request message, including:
Send the 3rd notice by broadcast mode, described second serial number is carried in described 3rd notice and sends out Send the MAC Address of the main equipment of described request of data message, so that described main equipment is according to described MAC ground When location confirms self to need retransmission data request message, resend request of data according to described second serial number Message;
Or,
The 3rd notice is sent by broadcast mode;In the 3rd time window after the described 3rd notices, by extensively Broadcast mode sends data re-transmitting order, carries described second serial number and transmission in described data re-transmitting order The MAC Address of the main equipment of described request of data message, so that described main equipment is according to described MAC Address When confirming self to need retransmission data request message, resend request of data report according to described second serial number Literary composition.
4. the method for claim 1, it is characterised in that described described second notice after by broadcast After mode sends, in N number of second time window, the data slice divided, also include:
Obtain response times M carried in described read request message;
M-1 secondary response data are sent to described main equipment again for described read request message.
5. a communication means, the main equipment being applied in Bluetooth system, it is characterised in that described method includes:
Receiving the first notice sent from equipment, described first notices followed by least one very first time window;
Judge whether receive data in the initial time section of described very first time window;
When not receiving data in the initial time section at described very first time window, at current very first time window Follow-up time in described from equipment sending data request message;
When described request of data message is read request message, receive described the second notice sent from equipment, Described second notices followed by least one the second time window;
Judge whether receive data in the initial time section of described second time window;
After data receiver in completing all second time windows, according to all data convert received The response data sent from equipment.
6. method as claimed in claim 5, it is characterised in that described method also includes:
Receive the notice of the described retransmission data request message sent from equipment, described notice is carried described from Second serial number of the request of data message that equipment the last time is properly received and send number from equipment to described MAC Address according to the main equipment of request message;
When described when described in forward direction from the MAC Address of the main equipment of equipment sending data request message and this master When the MAC Address of equipment is identical, obtain described second serial number;
Judge whether described second serial number is sent to described from the request of data message of equipment with the last time First ray number identical;
When described second serial number is different from described First ray number, redefine serial number, and according to weight Newly determined serial number resends request of data message.
7. method as claimed in claim 6, it is characterised in that the repeating transmission sent from equipment described in described reception The notice of request of data message, including:
Receive described the 3rd notice sent from equipment, described 3rd notice is carried described from equipment nearest one Second serial number of the secondary request of data message being properly received and to described from equipment sending data request message The MAC Address of main equipment;
Or,
Receive described the 3rd notice sent from equipment;The 3rd time window after noticing the described 3rd receives institute State the data re-transmitting order sent from equipment, described data re-transmitting order is carried described the last from equipment Second serial number of the request of data message being properly received and to described from equipment sending data request message The MAC Address of main equipment.
8. a communicator, be applied in Bluetooth system from equipment, it is characterised in that described device includes:
Message receives unit, receives main equipment for last very first time window after sending the first notice The request of data message sent;
Data determination unit, for when described request of data message is read request message, determines response data;
Quantity determines unit, quantity N of the second time window, institute needed for determining the described response data of transmission Quantity N stating the second time window is less than predetermined threshold value, and described predetermined threshold value is can to follow after single is noticed Big time window quantity;
Data slice division unit, for can transmitted data amount drawing described response data according in the second time window It is divided into N number of data slice;
Data slice transmitting element, for sending the second notice by broadcast mode, and after described second notice Send, in N number of second time window, the data slice divided by broadcast mode.
9. device as claimed in claim 8, it is characterised in that described device also includes:
Serial number acquiring unit, for before described data determination unit determines response data, obtains described The First ray number carried in request of data message;
Serial number judging unit, for judging the number whether described First ray number is properly received less than the last time According to the second serial number carried in request message;
Retransmitting notification unit, for when described First ray number is less than described second serial number, notice is described Main equipment resends request of data message.
10. device as claimed in claim 9, it is characterised in that:
Described repeating transmission notification unit, specifically for sending the 3rd notice by broadcast mode, the described 3rd notices In carry described second serial number and send the MAC Address of main equipment of described request of data message so that When described main equipment confirms self to need retransmission data request message according to described MAC Address, according to described the Two serial numbers resend request of data message;Or, send the 3rd notice by broadcast mode;Described In the 3rd time window after 3rd notice, send data re-transmitting order, described data re-transmitting by broadcast mode Order is carried described second serial number and sends the MAC Address of main equipment of described request of data message, During so that described main equipment confirms self to need retransmission data request message according to described MAC Address, according to institute State the second serial number and resend request of data message.
11. devices as claimed in claim 8, it is characterised in that described device also includes:
Duplicate responses unit, passes through broadcaster after noticing described second at described data slice transmitting element After formula sends, in N number of second time window, the data slice divided, obtain in described read request message and carry Response times M;M-1 secondary response data are sent to described main equipment again for described read request message.
12. 1 kinds of communicators, the main equipment being applied in Bluetooth system, it is characterised in that described device bag Include:
First receives unit, and for receiving the first notice sent from equipment, described first notices followed by extremely A few very first time window;
First judging unit, for judging whether receive number in the initial time section of described very first time window According to;
Request transmitting unit, is used for when not receiving data in the initial time section at described very first time window, To described from equipment sending data request message in the follow-up time of current very first time window;
Second receives unit, for when described request of data message is read request message, receives described from setting The second notice that preparation is sent, described second notices followed by least one the second time window;
Second judging unit, for judging whether receive number in the initial time section of described second time window According to;
Data convert unit, after the data receiver in completing all second time windows, connects according to all The response data sent from equipment described in the data convert received.
13. devices as claimed in claim 12, it is characterised in that described device also includes:
Notice receives unit, for receiving the notice of the described retransmission data request message sent from equipment, institute State notice is carried the described request of data message being properly received from equipment the last time the second serial number and MAC Address to the described main equipment from equipment sending data request message;
Serial number acquiring unit, for setting as master from equipment sending data request message described in forward direction when described When standby MAC Address is identical with the MAC Address of this main equipment, obtain described second serial number;
Serial number judging unit, be used for judging described second serial number whether be sent to the last time described from First ray number in the request of data message of equipment is identical;
Sequence number determining unit, is used for when described second serial number is different from described First ray number, again Determine serial number, and resend request of data message according to the serial number redefined.
14. devices as claimed in claim 13, it is characterised in that:
Described notice receives unit, specifically for receiving described the 3rd notice sent from equipment, and the described 3rd Notice is carried the described request of data message being properly received from equipment the last time the second serial number and to The MAC Address of the described main equipment from equipment sending data request message;Or, send out from equipment described in reception The 3rd notice sent;The 3rd time window after noticing the described 3rd receives the described data weight sent from equipment Say the word, described data re-transmitting order is carried the described request of data report being properly received from equipment the last time Literary composition the second serial number and to the MAC Address of the described main equipment from equipment sending data request message.
CN201610477845.9A 2016-06-22 2016-06-22 Communication method and device Active CN106060962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610477845.9A CN106060962B (en) 2016-06-22 2016-06-22 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610477845.9A CN106060962B (en) 2016-06-22 2016-06-22 Communication method and device

Publications (2)

Publication Number Publication Date
CN106060962A true CN106060962A (en) 2016-10-26
CN106060962B CN106060962B (en) 2020-01-03

Family

ID=57165719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610477845.9A Active CN106060962B (en) 2016-06-22 2016-06-22 Communication method and device

Country Status (1)

Country Link
CN (1) CN106060962B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512634A (en) * 2017-02-28 2018-09-07 北京华为数字技术有限公司 A kind of method and relevant device of data processing
CN109831746A (en) * 2018-11-27 2019-05-31 阿里巴巴集团控股有限公司 A kind of method, apparatus carried out data transmission based on Bluetooth broadcast and bluetooth equipment
CN110351669A (en) * 2019-06-28 2019-10-18 南京中感微电子有限公司 Wireless broadcast transmission, receiving device and communication system
CN115687233A (en) * 2021-07-29 2023-02-03 腾讯科技(深圳)有限公司 Communication method, device, equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571162A (en) * 2011-12-15 2012-07-11 重庆大学 Broadcasting-data-packet-based rope skipping process data transmission method
CN102804664A (en) * 2009-05-08 2012-11-28 日本电气株式会社 Communication system, communication device, communication method, and program
CN104717762A (en) * 2013-12-13 2015-06-17 上海科勒电子科技有限公司 Pairing method, primary terminal and slave terminal of wireless communication device
CN104811895A (en) * 2015-04-01 2015-07-29 广东小天才科技有限公司 Connection method and device of low-power-consumption Bluetooth
CN104883723A (en) * 2015-05-07 2015-09-02 深圳洲斯移动物联网技术有限公司 Wireless communication system based on wireless sensors
WO2015137601A1 (en) * 2014-03-12 2015-09-17 엘지전자(주) Method and device for adjusting data transmission rate in wireless communication system
WO2016007188A1 (en) * 2014-07-07 2016-01-14 Bayer Healthcare Llc Improved device pairing taking into account at least one condition
CN105471478A (en) * 2015-09-28 2016-04-06 小米科技有限责任公司 Message sending method, message receiving method and devices

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102804664A (en) * 2009-05-08 2012-11-28 日本电气株式会社 Communication system, communication device, communication method, and program
CN102571162A (en) * 2011-12-15 2012-07-11 重庆大学 Broadcasting-data-packet-based rope skipping process data transmission method
CN104717762A (en) * 2013-12-13 2015-06-17 上海科勒电子科技有限公司 Pairing method, primary terminal and slave terminal of wireless communication device
WO2015137601A1 (en) * 2014-03-12 2015-09-17 엘지전자(주) Method and device for adjusting data transmission rate in wireless communication system
WO2016007188A1 (en) * 2014-07-07 2016-01-14 Bayer Healthcare Llc Improved device pairing taking into account at least one condition
CN104811895A (en) * 2015-04-01 2015-07-29 广东小天才科技有限公司 Connection method and device of low-power-consumption Bluetooth
CN104883723A (en) * 2015-05-07 2015-09-02 深圳洲斯移动物联网技术有限公司 Wireless communication system based on wireless sensors
CN105471478A (en) * 2015-09-28 2016-04-06 小米科技有限责任公司 Message sending method, message receiving method and devices

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512634A (en) * 2017-02-28 2018-09-07 北京华为数字技术有限公司 A kind of method and relevant device of data processing
CN109831746A (en) * 2018-11-27 2019-05-31 阿里巴巴集团控股有限公司 A kind of method, apparatus carried out data transmission based on Bluetooth broadcast and bluetooth equipment
CN109831746B (en) * 2018-11-27 2020-09-01 阿里巴巴集团控股有限公司 Method and device for data transmission based on Bluetooth broadcast and Bluetooth equipment
TWI712332B (en) * 2018-11-27 2020-12-01 開曼群島商創新先進技術有限公司 Method, device and Bluetooth equipment for data transmission based on Bluetooth broadcast
CN110351669A (en) * 2019-06-28 2019-10-18 南京中感微电子有限公司 Wireless broadcast transmission, receiving device and communication system
CN115687233A (en) * 2021-07-29 2023-02-03 腾讯科技(深圳)有限公司 Communication method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN106060962B (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN107087033B (en) Message pushing method and device, storage medium and computer equipment
CN104737487B (en) Decode the method and user equipment of control channel in multiple subframes
US7921215B2 (en) Method and apparatus for optimizing and prioritizing the creation of a large number of VPN tunnels
EP2913970B1 (en) Policy control method and device for terminal peripherals
EP4075701A1 (en) Data receiving method and apparatus for bluetooth headset, device, and storage medium
CN113806116A (en) Protocol stack data transmission method based on Linux system, computer equipment and storage medium
EP3941137A1 (en) User equipment assistance for resource selection in new radio vehicle to everything
CN104170445A (en) Method, terminal and base station (BS) for retransmitting message
CN110139340A (en) A kind of connection method for building up and terminal
EP4280743A1 (en) Method and device for determining channel occupancy time, first communication node and storage medium
CN106060962A (en) Communication method and device
USRE43151E1 (en) Acknowledging data transmissions in the presence of multiple shared-communications channels
CN104125046A (en) Data transmission method, apparatus and system thereof
CN107182105B (en) Information processing method, access point and station
CN111565093B (en) Information transmission method, terminal equipment and network equipment
CN102106105B (en) Method and device for data transmission
KR101769133B1 (en) Electronic device adaptively selecting tcp/r-udp and packet transmitting/receiving method thereof
CN107786400B (en) Terminal access gateway control method
CN106788916B (en) Data transmission method and data transmission device for bus
TWI611715B (en) Wireless device and random access method thereof for mobile communication system
WO2018086707A1 (en) Feedback based flexible transmission scheme for contention-based urllc transmission
CN109951255A (en) A kind of data transmission method based on TCP, system, source device and target device
CN113992740B (en) Middleware based on autonomous control and data transmission method
CN106954179B (en) Time slot multiplexing communication method, time slot allocation method and wireless access equipment
US9924383B2 (en) Method and terminal for transmitting and receiving data according to a transmission speed of data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant