CN108712737A - A kind of method and system of information exchange - Google Patents
A kind of method and system of information exchange Download PDFInfo
- Publication number
- CN108712737A CN108712737A CN201810421100.XA CN201810421100A CN108712737A CN 108712737 A CN108712737 A CN 108712737A CN 201810421100 A CN201810421100 A CN 201810421100A CN 108712737 A CN108712737 A CN 108712737A
- Authority
- CN
- China
- Prior art keywords
- bluetooth equipment
- response message
- source
- data packet
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72415—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of information interacting method and systems, are related to the technical field of data transmission, including:Target data packet is sent by way of broadcast, wherein target data packet includes:The performed operational order operated of the address of source bluetooth equipment, the address of purpose bluetooth equipment and bluetooth equipment indicative purpose bluetooth equipment;Judge whether that get purpose bluetooth equipment is judging to receive the first response message based on the first response message that target data packet returns, is then based on the first response message and executes corresponding operation.The present invention solves needs when carrying out information exchange between bluetooth equipment in the prior art and establishes communication connection between each bluetooth equipment, cause to spend the more time when information exchange, once establishing communication connection failure between bluetooth equipment, then technical problem can be taken more time.
Description
Technical field
The present invention relates to technical field of data transmission, more particularly, to a kind of method and system of information exchange.
Background technology
Information exchange and control between current Bluetooth equipment are all used towards connection type, i.e., are initially set up between equipment
Bluetooth connection forms stable communication link, and then start information interacts between equipment, and is executed according to interactive control instruction
Corresponding operation, completes intelligent control process.This information exchange towards bluetooth connection is lacked with control mode there are two prominent
Point, first, taking for the process needs 1.5 seconds or so of bluetooth connection is established between equipment, second is that being influenced bluetooth by various factors
Equipment connects into power and often there was only 95% or so.The application of information exchange and control is completed in both devices need the short time
In scene, two above disadvantage can cause user to wait for the long period in control operates, to generate undesirable application experience.
Such as the unlocking control of blue-tooth intelligence lock, when user uses unlocked by mobile telephone, mobile phone establishes bluetooth connection firstly the need of with smart lock,
Then information exchange is carried out, the rotation completion unlocking of control motor or locking operation after both sides' authentication are completed.In bluetooth connection
In successful situation, entire unlocking process about averagely needs 2 seconds or so, and user's operation experience is bad.If it is considered that bluetooth
The case where connection failure, it is also necessary to reconnect, this process takes can be longer, and the unlocking experience of user can be worse.However, whole
Bluetooth connection consumes most times during a unlocking, and really information exchange only occupies seldom one with control
Between timesharing.
In view of the above-mentioned problems, not proposing effective solution scheme also.
Invention content
In view of this, the purpose of the present invention is to provide a kind of method and system of information exchange, set with alleviating bluetooth
Needs establish communication connection between each bluetooth equipment when carrying out information exchange between standby, cause to spend when information exchange more
Time, once between bluetooth equipment establish communication connection failure, then can take more time technical problem.
In a first aspect, an embodiment of the present invention provides a kind of method of information exchange, this method is applied to source bluetooth equipment,
Including:Target data packet is sent by way of broadcast, wherein target data packet includes:The address of source bluetooth equipment, purpose
The address of bluetooth equipment and the performed operational order operated of source bluetooth equipment indicative purpose bluetooth equipment;Judge whether to get
The first response message that purpose bluetooth equipment is returned based on target data packet;First response message includes:Operational order and/or
Following data:The address of source bluetooth equipment, the address of purpose bluetooth equipment operate response message, and operation response message indicates mesh
Bluetooth equipment whether run succeeded, operational order be purpose bluetooth equipment be not carried out successfully in the case of, to source bluetooth equipment
The order of transmission;Judging to receive the first response message, is then being based on the first response message and executes corresponding operation.
Further, judging to receive the first response message, be then based on the first response message and execute corresponding operation
Including:If the first response message is first object information, the first operation is executed based on first object information, wherein first
Target information includes:The address of source bluetooth equipment, the address of purpose bluetooth equipment indicate what purpose bluetooth equipment ran succeeded
Response message is operated, the first operation executes the operation of next task to terminate current sessions or continuation with purpose bluetooth equipment;
If the first response message is the second target information, the second operation is executed based on the second target information, wherein the second target is believed
Breath includes:Operational order, the address of source bluetooth equipment, the address of purpose bluetooth equipment indicate that purpose bluetooth equipment is not carried out
Successfully operation response message, the second operation are source bluetooth equipment according to the operation performed by operational order.
Further, the method further includes:In the case where judging not receive the first response message, again according to
The mode of broadcast sends target data packet.
Second aspect, an embodiment of the present invention provides the method for another information exchange, this method is applied to purpose bluetooth
Equipment, including:The target data packet that acquisition source bluetooth equipment is sent, wherein target data packet includes:The ground of source bluetooth equipment
Location, the address of purpose bluetooth equipment and the operational order to be operated performed by the bluetooth equipment indicative purpose bluetooth equipment of source;To mesh
Mark data packet is parsed, to judge whether current Bluetooth equipment is purpose bluetooth equipment;If it is judged that current Bluetooth equipment
It is purpose bluetooth equipment, then corresponding operation is executed according to target data packet, and after executing corresponding operation, to source bluetooth
The first response message of return of equipment;First response message includes:Operational order and/or following data:Source bluetooth equipment
Address, the address of purpose bluetooth equipment operate response message, and operation response message indicates whether purpose bluetooth equipment executes into
Work(, operational order are in the case of purpose bluetooth equipment is not carried out successfully, to the order of source bluetooth equipment transmission.
Further, the method further includes:If it is judged that current Bluetooth equipment is not purpose bluetooth equipment, then ignore
Target data packet, and wait for next data packet.
Further, the method further includes:The end order that acquisition source bluetooth equipment is sent;And it is tied based on order is terminated
Information exchange between Shu Yuyuan bluetooth equipments;Alternatively, indicating the feelings that purpose bluetooth equipment runs succeeded in operation response message
Under condition, the end order sent to source bluetooth equipment, so that source bluetooth equipment is based on terminating between order and purpose bluetooth equipment
Information exchange.
Third is leavened dough, and an embodiment of the present invention provides a kind of systems of information exchange, including:Above-mentioned source bluetooth equipment, with
And above-mentioned current Bluetooth equipment;Wherein, source bluetooth equipment by way of broadcast for sending target data packet;Judge whether to obtain
Get the first response message that purpose bluetooth equipment is returned based on target data packet;Judging to receive the first response message,
It is then based on the first response message and executes corresponding operation;Current Bluetooth equipment is used to obtain the target data that source bluetooth equipment is sent
Packet;Target data packet is parsed, to judge whether current Bluetooth equipment is purpose bluetooth equipment;If it is judged that current blue
Tooth equipment is purpose bluetooth equipment, then executes corresponding operation according to target data packet, and after executing corresponding operation, to
The first response message of return of source bluetooth equipment.
Further, the source bluetooth equipment is additionally operable to:If the first response message is first object information, based on the
One target information executes the first operation, wherein first object information includes:The address of source bluetooth equipment, purpose bluetooth equipment
Address, indicate the operation response message that runs succeeded of purpose bluetooth equipment, the first operation is terminates current sessions or continuation
The operation of next task is executed with purpose bluetooth equipment;If the first response message is the second target information, it is based on the second mesh
It marks information and executes the second operation, wherein the second target information includes:Operational order, the address of source bluetooth equipment, purpose bluetooth
The address of equipment, indicate purpose bluetooth equipment be not carried out successfully operation response message, second operation be source bluetooth equipment according to
Operation performed by operational order.
Further, source bluetooth equipment is additionally operable to:In the case where judging not receive the first response message, press again
Target data packet is sent according to the mode of broadcast.
Further, the current Bluetooth equipment is additionally operable to:It is set if it is judged that current Bluetooth equipment is not purpose bluetooth
It is standby, then ignore target data packet, and wait for next data packet.
In embodiments of the present invention, first, target data packet is sent by way of broadcast;Next, it is determined that whether obtaining
The first response message returned to purpose bluetooth equipment based on target data packet;Finally judging to receive the first response letter
Breath is then based on the first response message and executes corresponding operation.
In embodiments of the present invention, it is handed over into row information by way of broadcast between source bluetooth equipment and purpose bluetooth equipment
Mutually, and then needs when carrying out information exchange between bluetooth equipment in the prior art are solved and are established between each bluetooth equipment lead to
Letter connection, causes to spend the more time when information exchange, once establishing communication connection failure between bluetooth equipment, then can spend
More time technical problems, to reached the information interaction for saving bluetooth equipment time technique effect.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages are in specification, claims
And specifically noted structure is realized and is obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in being described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow chart of information interacting method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another optional information interacting method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of second of information interacting method provided in an embodiment of the present invention;
Fig. 4 is that source bluetooth equipment provided in an embodiment of the present invention and purpose bluetooth equipment interact schematic diagram;
Fig. 5 is a kind of schematic diagram of information interaction system provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of source bluetooth equipment provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of purpose bluetooth equipment provided in an embodiment of the present invention;
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
Embodiment one:
According to embodiments of the present invention, a kind of embodiment of the method for information exchange is provided, it should be noted that in attached drawing
The step of flow illustrates can execute in the computer system of such as a group of computer-executable instructions, although also,
Logical order is shown in flow chart, but in some cases, it can be to execute shown different from sequence herein or retouch
The step of stating.
Fig. 1 is a kind of method of information exchange according to the ... of the embodiment of the present invention, as shown in Figure 1, this method includes following step
Suddenly:
Step S102 sends target data packet by way of broadcast, wherein target data packet includes:Source bluetooth is set
The performed operational order operated of standby address, the address of purpose bluetooth equipment and source bluetooth equipment indicative purpose bluetooth equipment.
Step S104 judges whether to get the first response message that purpose bluetooth equipment is returned based on target data packet;
First response message includes:Operational order and/or following data:The address of source bluetooth equipment, the address of purpose bluetooth equipment,
Response message is operated, operation response message indicates whether purpose bluetooth equipment runs succeeded, and operational order is purpose bluetooth equipment
In the case of being not carried out successfully, to the order of source bluetooth equipment transmission.
Step S106 is judging to receive the first response message, is then being based on the first response message and executes corresponding operation.
In embodiments of the present invention, it is handed over into row information by way of broadcast between source bluetooth equipment and purpose bluetooth equipment
Mutually, and then needs when carrying out information exchange between bluetooth equipment in the prior art are solved and are established between each bluetooth equipment lead to
Letter connection, causes to spend the more time when information exchange, once establishing communication connection failure between bluetooth equipment, then can spend
More time technical problems, to reached the information interaction for saving bluetooth equipment time technique effect.
In the prior art, bluetooth (Bluetooth Low Energy, BLE) standard protocol stack includes a general-purpose accessing
Agreement GAP (Generic Access Profile) is responsible for the discovery and connection of equipment.Discovery procedure includes broadcast and scans,
For broadcasting equipment with Fixed Time Interval overseas broadcast small data packets, broadcast data packet length is 31 bytes, including device type and
The information such as other a small amount of different types of data fields.Bluetooth communication between usual equipment is established by GAP agreements first to be connected,
It establishes on the basis of connecting and starts the transmitting-receiving of data between equipment.And one of the main function of Bluetooth broadcast agreement is exactly that master is allowed to set
Bluetooth broadcast equipment is arrived in standby scanning, and then completes bluetooth connection.
The present invention carries out information exchange using broadcast data packet, without establishing bluetooth connection in advance.Both devices pass through
The address information of GAP broadcast data packets determines data transmit-receive object, completes transmitting-receiving response.To ensure the normal transmitting-receiving of information, adopt
Take one an interaction protocol answered, both sides is answered to carry out data transmission or reception in turn.
Information exchange and control between existing bluetooth equipment are all used towards connection type, i.e., are built first between equipment
Vertical bluetooth connection, forms stable communication link, and then start information interacts between equipment, and is held according to interactive control instruction
The corresponding operation of row, completes intelligent control process;But the process that bluetooth connection is established between equipment needs 1.5 seconds or so
Take, and due to by various factors influenced bluetooth equipment connect into power often only have 95% or so, cause user controlling
The long period is waited in operation, to generate undesirable application experience, and in embodiments of the present invention, is completed between bluetooth equipment
Once interactive average time is about 300 milliseconds.
For example, the unlocking control of blue-tooth intelligence lock, when user uses unlocked by mobile telephone, mobile phone is established firstly the need of with smart lock
Then bluetooth connection carries out information exchange, complete the rotation completion unlocking of control motor or locking operation after both sides' authentication.
In the case of bluetooth equipment successful connection, entire unlocking process about averagely needs 2 seconds or so, and user's operation experience is bad.Such as
Fruit consider bluetooth equipment between connection failure the case where, it is also necessary to reconnect, this process take can it is longer, user's opens
Lock body is tested can be worse.
It should be noted that bluetooth equipment in embodiments of the present invention can be mobile phone, tablet computer, laptop
Equal intelligent terminals, or include the equipment of bluetooth module, for example, the bicycle comprising bluetooth module, including bluetooth module
Motor etc., and if it is necessary, above-mentioned target data packet and response message can be encrypted, to improve
The safety of data exchange process.
In embodiments of the present invention, as shown in Figure 1, step S106 includes:
Step S1061 executes the first behaviour if the first response message is first object information based on first object information
Make, wherein first object information includes:The address of source bluetooth equipment, the address of purpose bluetooth equipment indicate that purpose bluetooth is set
For the operation response message to run succeeded, the first operation is next to terminate current sessions or continuation and the execution of purpose bluetooth equipment
The operation of task.
Step S1062 executes the second behaviour if the first response message is the second target information based on the second target information
Make, wherein the second target information includes:Operational order, the address of source bluetooth equipment, the address of purpose bluetooth equipment indicate
Purpose bluetooth equipment is not carried out successfully operation response message, and the second operation is source bluetooth equipment according to performed by operational order
Operation.
In embodiments of the present invention, if source bluetooth equipment receives first object information, i.e. illustration purpose bluetooth equipment is complete
At the operational order in target data packet, then source bluetooth equipment is based on first object information, between end and purpose bluetooth equipment
Session or continue purpose bluetooth equipment and execute the operation of next task.
If source bluetooth equipment receives the second target information, i.e. illustration purpose bluetooth equipment does not complete in target data packet
Operational order, then source bluetooth equipment based in the second target information operational order execute second operation, wherein second operation be
Source bluetooth equipment is according to the operation performed by operational order;At this point, source bluetooth equipment according to operational order to purpose bluetooth equipment
The data needed for operational order are sent completely, so that purpose bluetooth equipment completes the operational order in target data packet.
In embodiments of the present invention, as depicted in figs. 1 and 2, this method further includes:
Step S108 is sent in the case where judging not receive the first response message again according to the mode of broadcast
Target data packet.
In embodiments of the present invention, source bluetooth equipment does not receive the first of purpose bluetooth equipment feedback in preset time and answers
When answering information, then target data packet is sent again according to the mode of broadcast, wherein above-mentioned preset time can voluntarily be set by user
It is fixed, or source bluetooth equipment is not specifically limited in embodiments of the present invention according to operational order sets itself.
Below in conjunction with Fig. 1 to Fig. 3, the above method is described in detail:
In this specific embodiment, it is assumed that source bluetooth equipment is the mobile phone of Android operation system, and purpose bluetooth equipment is packet
Bicycle containing bluetooth module.It should be noted that the implementation of apple iOS operating systems slightly has difference, but flow and side
Method is identical, is not illustrated herein.
First, the bluetooth module of mobile phone is opened, and bluetooth module is initialized as broadcast mode, and loads target data
It wraps, the address of Bluetooth of mobile phone module, the address of purpose bicycle bluetooth module is included in target data packet, and control purpose is certainly
The operational order that driving is unlocked.
Then, according to preset time, the bluetooth module of mobile phone sends target data packet in accordance with the way of the broadcast.
Then, the bluetooth module of mobile phone is switched to reception pattern after being sent completely target data packet every time, connects purpose voluntarily
The response message of vehicle bluetooth module feedback.
Finally, after the bluetooth module of mobile phone receives response message, illustrate the bluetooth module and purpose bicycle of mobile phone
Primary information interaction is completed between bluetooth module.If in above-mentioned response message including operational order, the bluetooth module of mobile phone
Corresponding operation is completed based on aforesaid operations instruction;If including END instruction in above-mentioned response message, terminate Bluetooth of mobile phone
Information exchange between module and purpose bicycle bluetooth module.
Fig. 4 is a kind of flow chart of the method for information exchange according to the ... of the embodiment of the present invention, wherein this method is applied to indigo plant
Tooth equipment, as shown in figure 4, this method comprises the following steps:
Step S402 obtains the target data packet that source bluetooth equipment is sent, wherein target data packet includes:Source bluetooth
The address of equipment, the address of purpose bluetooth equipment and refers to for the operation operated performed by the bluetooth equipment indicative purpose bluetooth equipment of source
It enables;
Step S404 parses target data packet, to judge whether current Bluetooth equipment is purpose bluetooth equipment;
Step S406 then executes phase if it is judged that current Bluetooth equipment is purpose bluetooth equipment according to target data packet
The operation answered, and after executing corresponding operation, to the first response message of return of source bluetooth equipment;In first response message
Including:Operational order and/or following data:The address of source bluetooth equipment, the address of purpose bluetooth equipment operate response message,
Operation response message indicates whether purpose bluetooth equipment runs succeeded, and operational order is that purpose bluetooth equipment is not carried out successful feelings
Under condition, to the order of source bluetooth equipment transmission.
In embodiments of the present invention, it is handed over into row information by way of broadcast between source bluetooth equipment and purpose bluetooth equipment
Mutually, and then needs when carrying out information exchange between bluetooth equipment in the prior art are solved and are established between each bluetooth equipment lead to
Letter connection, causes to spend the more time when information exchange, once establishing communication connection failure between bluetooth equipment, then can spend
More time technical problems, to reached the information interaction for saving bluetooth equipment time technique effect.
In embodiments of the present invention, as shown in figure 4, the method further includes:
Step S408 then ignores target data packet, and wait if it is judged that current Bluetooth equipment is not purpose bluetooth equipment
Wait for next data packet.
Specifically, current Bluetooth equipment judges that the purpose bluetooth that the source bluetooth equipment received is sent in target data packet is set
Standby address when address difference with its own, that is, illustrates that the sending object of the target data packet is not current Bluetooth equipment, then
Current Bluetooth equipment ignores the target data packet, and waits for next data packet.
In embodiments of the present invention, as shown in figure 4, the method further includes:
Step S410 obtains the end order that source bluetooth equipment is sent;And terminated and source bluetooth equipment based on order is terminated
Between information exchange;Or
Step S412, in the case where operation response message indicates that purpose bluetooth equipment runs succeeded, to source bluetooth equipment
The end order of transmission, so that source bluetooth equipment is based on the information exchange terminated between order and purpose bluetooth equipment.
In embodiments of the present invention, if source bluetooth equipment is sent in purpose data packet to purpose bluetooth equipment comprising end
Instruction or purpose bluetooth equipment include END instruction into source bluetooth equipment transmission data packet, then purpose bluetooth equipment or source are blue
Tooth equipment is based on END instruction, terminates the information exchange between purpose bluetooth equipment and source bluetooth equipment.
Below in conjunction with Fig. 3 and Fig. 4, the above method is described in detail:
In this specific embodiment, it is assumed that source bluetooth equipment is the mobile phone of Android operation system, and purpose bluetooth equipment is packet
Electric bicycle containing bluetooth module.It should be noted that the implementation of apple iOS operating systems slightly has difference, but flow and
Method is identical, is not illustrated herein.
First, the bluetooth module of current bicycle is initialized as reception pattern, receives the target that Bluetooth of mobile phone module is sent
Data packet includes the address of Bluetooth of mobile phone module, the address of purpose bicycle bluetooth module, and control mesh in target data packet
Bicycle unlocking operational order.
Then, the bluetooth module of current bicycle is according to the address of the purpose bicycle bluetooth module in target data packet,
Judge whether the address of the address of the purpose bicycle bluetooth module and the bluetooth module of current bicycle is identical.
If it is judged that being identical, then the bluetooth module of current bicycle is purpose bicycle bluetooth module, currently certainly
Operational order of the bluetooth module of driving based on the control purpose bicycle unlocking in target data packet, control current bicycle are opened
Lock.
If it is judged that for difference, then the bluetooth module of current bicycle is not purpose bicycle bluetooth module, currently
The bluetooth module of bicycle ignores the target data packet, waits for next target data packet.
Finally, after the success of target bicycle unlocking, target bicycle module is switched to broadcast mode, loads response message,
And above-mentioned response message is sent to Bluetooth of mobile phone module according to preset time;At this point, target bicycle bluetooth module and mobile phone
Bluetooth module completes primary information interaction.
If including END instruction in above-mentioned response message, terminate Bluetooth of mobile phone module and purpose bicycle bluetooth module
Between information exchange.
Embodiment two:
The embodiment of the present invention additionally provides a kind of system of information exchange, and the information interaction system is of the invention real for executing
The information interacting method that the above is provided is applied, is the specific of the system of information exchange provided in an embodiment of the present invention below
It introduces.
As shown in Figures 5 to 7, wherein Fig. 5 is the schematic diagram of the interactive system of source bluetooth equipment and purpose bluetooth equipment,
Information interaction system includes:Source bluetooth equipment 10 and current Bluetooth equipment 20.
Optionally, as shown in fig. 6, the source bluetooth equipment 10 includes:First sending module 11 obtains judgment module 12,
Execution module 13.
Optionally, as shown in fig. 7, purpose bluetooth equipment 20 includes:Acquisition module 21 judges execution module 22, the second hair
Send module 23.
First sending module 11 by way of broadcast for sending target data packet.
The acquisition judgment module 12 is for judging whether to get what purpose bluetooth equipment was returned based on target data packet
First response message.
The execution module 13 is being judged to receive the first response message, is then being based on the first response message and executes accordingly
Operation.
The acquisition module 21 is used to obtain the target data packet that source bluetooth equipment is sent.
The judgement execution module 22 is for parsing target data packet, to judge whether current Bluetooth equipment is mesh
Bluetooth equipment.
Second sending module 23 is used for if it is judged that current Bluetooth equipment is purpose bluetooth equipment, then according to target
Data packet executes corresponding operation, and after executing corresponding operation, to the first response message of return of source bluetooth equipment.
In embodiments of the present invention, it is handed over into row information by way of broadcast between source bluetooth equipment and purpose bluetooth equipment
Mutually, and then needs when carrying out information exchange between bluetooth equipment in the prior art are solved and are established between each bluetooth equipment lead to
Letter connection, causes to spend the more time when information exchange, once establishing communication connection failure between bluetooth equipment, then can spend
More time technical problems, to reached the information interaction for saving bluetooth equipment time technique effect.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
Can also be electrical connection to be mechanical connection;It can be directly connected, can also indirectly connected through an intermediary, Ke Yishi
Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition
Concrete meaning in invention.
In the description of the present invention, it should be noted that term "center", "upper", "lower", "left", "right", "vertical",
The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to
Convenient for the description present invention and simplify description, do not indicate or imply the indicated device or element must have a particular orientation,
With specific azimuth configuration and operation, therefore it is not considered as limiting the invention.In addition, term " first ", " second ",
" third " is used for description purposes only, and is not understood to indicate or imply relative importance.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of unit, only
For a kind of division of logic function, formula that in actual implementation, there may be another division manner, in another example, multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING by some communication interfaces, device or unit
Or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, and be shown as unit
Component may or may not be physical unit, you can be located at a place, or may be distributed over multiple networks
On unit.Some or all of unit therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
If function is realized in the form of SFU software functional unit and when sold or used as an independent product, can store
In the non-volatile computer read/write memory medium that a processor can perform.Based on this understanding, skill of the invention
Substantially the part of the part that contributes to existing technology or the technical solution can be with software product in other words for art scheme
Form embody, which is stored in a storage medium, including some instructions use so that one
Computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment method of the present invention
All or part of step.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
Finally it should be noted that:Above example, only specific implementation mode of the invention, to illustrate the skill of the present invention
Art scheme, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to the present invention into
Go detailed description, it will be understood by those of ordinary skill in the art that:Any one skilled in the art is at this
It invents in the technical scope disclosed, still can modify or can be thought easily to the technical solution recorded in previous embodiment
To variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make corresponding
The essence of technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection scope of the present invention
Within.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of method of information exchange, which is characterized in that it is applied to source bluetooth equipment, including:
Target data packet is sent by way of broadcast, wherein target data packet includes:The address of source bluetooth equipment, purpose
The address of bluetooth equipment and the performed operational order operated of source bluetooth equipment indicative purpose bluetooth equipment;
Judge whether to get the first response message that purpose bluetooth equipment is returned based on target data packet;In first response message
Including:Operational order and/or following data:The address of source bluetooth equipment, the address of purpose bluetooth equipment operate response message,
Operation response message indicates whether purpose bluetooth equipment runs succeeded, and operational order is that purpose bluetooth equipment is not carried out successful feelings
Under condition, to the order of source bluetooth equipment transmission;
Judging to receive the first response message, is then being based on the first response message and executes corresponding operation.
2. the method according to claim 1, which is characterized in that judging to receive the first response message, then answered based on first
It answers information and executes to operate accordingly and include:
If the first response message is first object information, the first operation is executed based on first object information, wherein the first mesh
Marking information includes:The address of source bluetooth equipment, the address of purpose bluetooth equipment indicate the behaviour that purpose bluetooth equipment runs succeeded
Response information, and the first operation executes the operation of next task to terminate current sessions or continuation with purpose bluetooth equipment;
If the first response message is the second target information, the second operation is executed based on the second target information, wherein the second mesh
Marking information includes:Operational order, the address of source bluetooth equipment, the address of purpose bluetooth equipment indicate purpose bluetooth equipment not
The operation response message to run succeeded, the second operation are source bluetooth equipment according to the operation performed by operational order.
3. according to the method for claims 1 or 2, which is characterized in that the method further includes:
In the case where judging not receive the first response message, target data packet is sent again according to the mode of broadcast.
4. a kind of method of information exchange, which is characterized in that it is applied to purpose bluetooth equipment, including:
The target data packet that acquisition source bluetooth equipment is sent, wherein target data packet includes:The address of source bluetooth equipment, mesh
Bluetooth equipment address and operational order to be operated performed by the bluetooth equipment indicative purpose bluetooth equipment of source;
Target data packet is parsed, to judge whether current Bluetooth equipment is purpose bluetooth equipment;
If it is judged that current Bluetooth equipment is purpose bluetooth equipment, then executes according to target data packet and operate accordingly, and
After executing corresponding operation, to the first response message of return of source bluetooth equipment;First response message includes:Operational order
And/or following data:The address of source bluetooth equipment, the address of purpose bluetooth equipment operate response message, operate response message table
Show whether purpose bluetooth equipment runs succeeded, operational order is in the case of purpose bluetooth equipment is not carried out successfully, to source bluetooth
The order that equipment is sent.
5. method according to claim 4, which is characterized in that the method further includes:
If it is judged that current Bluetooth equipment is not purpose bluetooth equipment, then ignore target data packet, and waits for next data
Packet.
6. method according to claim 4, which is characterized in that the method further includes:
The end order that acquisition source bluetooth equipment is sent, and terminated and the information friendship between the bluetooth equipment of source based on order is terminated
Mutually;Or
In the case where operation response message indicates that purpose bluetooth equipment runs succeeded, the end sent to source bluetooth equipment is ordered
It enables, so that source bluetooth equipment is based on the information exchange terminated between order and purpose bluetooth equipment.
7. a kind of system of information exchange, which is characterized in that including:Source as claimed in claim 1 bluetooth equipment, and as right is wanted
Seek 4 current Bluetooth equipment, wherein the source bluetooth equipment includes:First sending module obtains judgment module, execution module;
The current Bluetooth equipment includes:Acquisition module judges execution module, the second sending module;
First sending module by way of broadcast for sending target data packet;
The acquisition judgment module is for judging whether that get purpose bluetooth equipment answers based on target data packet returns first
Answer information;
The execution module is being judged to receive the first response message, is then being based on the first response message and executes corresponding operation;
The acquisition module is used to obtain the target data packet that source bluetooth equipment is sent;
The judgement execution module is for parsing target data packet, to judge whether current Bluetooth equipment is purpose bluetooth
Equipment;
Second sending module is used for if it is judged that current Bluetooth equipment is purpose bluetooth equipment, then according to target data packet
Corresponding operation is executed, and after executing corresponding operation, to the first response message of return of source bluetooth equipment.
8. system according to claim 7, which is characterized in that the execution module is additionally operable to:
If the first response message is first object information, the first operation is executed based on first object information, wherein the first mesh
Marking information includes:The address of source bluetooth equipment, the address of purpose bluetooth equipment indicate the behaviour that purpose bluetooth equipment runs succeeded
Response information, and the first operation executes the operation of next task to terminate current sessions or continuation with purpose bluetooth equipment;
If the first response message is the second target information, the second operation is executed based on the second target information, wherein the second mesh
Marking information includes:Operational order, the address of source bluetooth equipment, the address of purpose bluetooth equipment indicate purpose bluetooth equipment not
The operation response message to run succeeded, the second operation are source bluetooth equipment according to the operation performed by operational order.
9. system according to claim 7 or 8, which is characterized in that the acquisition judgment module is additionally operable to:
In the case where judging not receive the first response message, target data packet is sent again according to the mode of broadcast.
10. system according to claim 7, which is characterized in that the judgement execution module is additionally operable to:
If it is judged that current Bluetooth equipment is not purpose bluetooth equipment, then ignore target data packet, and waits for next data
Packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810421100.XA CN108712737A (en) | 2018-05-04 | 2018-05-04 | A kind of method and system of information exchange |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810421100.XA CN108712737A (en) | 2018-05-04 | 2018-05-04 | A kind of method and system of information exchange |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108712737A true CN108712737A (en) | 2018-10-26 |
Family
ID=63867857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810421100.XA Pending CN108712737A (en) | 2018-05-04 | 2018-05-04 | A kind of method and system of information exchange |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108712737A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111818515A (en) * | 2020-05-21 | 2020-10-23 | 上海橙群微电子有限公司 | Wireless network establishing method, wireless network system, node and readable storage medium |
CN111818493A (en) * | 2020-05-21 | 2020-10-23 | 上海橙群微电子有限公司 | Data transmission method, wireless network system, node and readable storage medium |
CN111818193A (en) * | 2020-06-29 | 2020-10-23 | 上海橙群微电子有限公司 | Asset management method and system, network device and readable storage medium |
CN112737739A (en) * | 2020-12-25 | 2021-04-30 | 艾体威尔电子技术(北京)有限公司 | Method for multi-packet communication between two devices |
CN113132960A (en) * | 2021-03-12 | 2021-07-16 | 深圳市英威腾电气股份有限公司 | Bluetooth communication method, system and Bluetooth device |
CN113330757A (en) * | 2019-01-30 | 2021-08-31 | 华为技术有限公司 | Data transmission method and related device |
CN113727291A (en) * | 2020-05-26 | 2021-11-30 | 菜鸟智能物流控股有限公司 | Equipment interaction method, device, server and data processing method |
CN115767446A (en) * | 2022-11-01 | 2023-03-07 | 美的集团股份有限公司 | Bluetooth broadcast two-way communication method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070249286A1 (en) * | 2006-04-21 | 2007-10-25 | Ma Dung T | Automated bonding for wireless devices |
US20140133656A1 (en) * | 2012-02-22 | 2014-05-15 | Qualcomm Incorporated | Preserving Security by Synchronizing a Nonce or Counter Between Systems |
EP3133741A1 (en) * | 2014-07-14 | 2017-02-22 | Huawei Technologies Co., Ltd. | Method for controlling wearable electronic device, central apparatus and device |
CN106792448A (en) * | 2016-12-14 | 2017-05-31 | 北京小米移动软件有限公司 | Bluetooth connecting method and device, system |
CN107196859A (en) * | 2017-07-19 | 2017-09-22 | 西安奇妙电子科技有限公司 | Message forwarding method, broadcasting method, acknowledgement messaging method and communication equipment |
CN107682746A (en) * | 2017-09-01 | 2018-02-09 | 北京小米移动软件有限公司 | Awakening method and device |
-
2018
- 2018-05-04 CN CN201810421100.XA patent/CN108712737A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070249286A1 (en) * | 2006-04-21 | 2007-10-25 | Ma Dung T | Automated bonding for wireless devices |
US20140133656A1 (en) * | 2012-02-22 | 2014-05-15 | Qualcomm Incorporated | Preserving Security by Synchronizing a Nonce or Counter Between Systems |
EP3133741A1 (en) * | 2014-07-14 | 2017-02-22 | Huawei Technologies Co., Ltd. | Method for controlling wearable electronic device, central apparatus and device |
CN106792448A (en) * | 2016-12-14 | 2017-05-31 | 北京小米移动软件有限公司 | Bluetooth connecting method and device, system |
CN107196859A (en) * | 2017-07-19 | 2017-09-22 | 西安奇妙电子科技有限公司 | Message forwarding method, broadcasting method, acknowledgement messaging method and communication equipment |
CN107682746A (en) * | 2017-09-01 | 2018-02-09 | 北京小米移动软件有限公司 | Awakening method and device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113330757A (en) * | 2019-01-30 | 2021-08-31 | 华为技术有限公司 | Data transmission method and related device |
CN113330757B (en) * | 2019-01-30 | 2023-09-01 | 华为技术有限公司 | Data transmission method and related device |
CN111818515A (en) * | 2020-05-21 | 2020-10-23 | 上海橙群微电子有限公司 | Wireless network establishing method, wireless network system, node and readable storage medium |
CN111818493A (en) * | 2020-05-21 | 2020-10-23 | 上海橙群微电子有限公司 | Data transmission method, wireless network system, node and readable storage medium |
CN111818493B (en) * | 2020-05-21 | 2023-11-07 | 上海橙群微电子有限公司 | Data transmission method, wireless network system, node, and readable storage medium |
CN113727291A (en) * | 2020-05-26 | 2021-11-30 | 菜鸟智能物流控股有限公司 | Equipment interaction method, device, server and data processing method |
CN111818193A (en) * | 2020-06-29 | 2020-10-23 | 上海橙群微电子有限公司 | Asset management method and system, network device and readable storage medium |
CN112737739A (en) * | 2020-12-25 | 2021-04-30 | 艾体威尔电子技术(北京)有限公司 | Method for multi-packet communication between two devices |
CN112737739B (en) * | 2020-12-25 | 2022-08-23 | 艾体威尔电子技术(北京)有限公司 | Method for multi-packet communication between two devices |
CN113132960A (en) * | 2021-03-12 | 2021-07-16 | 深圳市英威腾电气股份有限公司 | Bluetooth communication method, system and Bluetooth device |
CN113132960B (en) * | 2021-03-12 | 2023-08-25 | 深圳市英威腾电气股份有限公司 | Bluetooth communication method, system and Bluetooth device |
CN115767446A (en) * | 2022-11-01 | 2023-03-07 | 美的集团股份有限公司 | Bluetooth broadcast two-way communication method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108712737A (en) | A kind of method and system of information exchange | |
CN103108311B (en) | A kind of MTC device and the method, apparatus and system of UICC bindings | |
US20050259673A1 (en) | Method and system for end-to-end communication between a universal integrated circuit card and a remote entity over an IP-based wireless wide area network and the internet | |
CN106789468A (en) | A kind of appliances equipment control method and system based on intelligent terminal | |
CN103533669B (en) | The many APN network concurrents systems of mobile terminal and its networking method | |
CN104205933B (en) | Seamless transition of cellular phone from cellular communication to Wi-Fi communication | |
CN104469789A (en) | Connection configuration method and system for intelligent household appliance | |
CN110636483A (en) | Network distribution method and system | |
CN105191405A (en) | IP address renewing for a wireless communications device roaming from a source AP to a target AP | |
CN107222908A (en) | Intelligent appliance and its with network method, router, intelligent domestic system | |
EP2429225A1 (en) | Method for provisioning parameters of terminal, system thereof, and terminal management device | |
CN112654070B (en) | Communication method, device, equipment and storage medium between user terminals | |
WO2012174722A1 (en) | Method and apparatus for providing a virtual sim for mobile communications | |
CN108702603A (en) | A kind of method and apparatus communicated by virtual client identification module | |
CN105847048B (en) | The configuration method and device of smart machine | |
CN108476212A (en) | Dynamic wlan connections | |
CN110324390A (en) | A kind of cut-in method, platform of internet of things, application apparatus, service equipment | |
CN109246690A (en) | Method for network access, device, storage medium and processor | |
CN106792823A (en) | A kind of terminal connection method and device based on Miracast | |
CN208188814U (en) | A kind of embedded device and its remote update system | |
CN105848085A (en) | Sharing method, sharing apparatus, intelligent terminal, vehicle-mounted multimedia terminal and system | |
CN108462984A (en) | A kind of method and terminal carrying out access network management | |
US20230164728A1 (en) | Wireless communication service delivery to user equipment (ue) using an access and mobility management function (amf) | |
CN107465723A (en) | Multi-screen interactive connection method, system, mobile terminal and readable storage medium storing program for executing | |
CN113132997A (en) | Communication method, device and system of intelligent household equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181026 |