CN104918307B - A kind of terminal - Google Patents

A kind of terminal Download PDF

Info

Publication number
CN104918307B
CN104918307B CN201510178443.4A CN201510178443A CN104918307B CN 104918307 B CN104918307 B CN 104918307B CN 201510178443 A CN201510178443 A CN 201510178443A CN 104918307 B CN104918307 B CN 104918307B
Authority
CN
China
Prior art keywords
parameter information
data packet
targeted scans
sweep
main equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510178443.4A
Other languages
Chinese (zh)
Other versions
CN104918307A (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.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510178443.4A priority Critical patent/CN104918307B/en
Publication of CN104918307A publication Critical patent/CN104918307A/en
Application granted granted Critical
Publication of CN104918307B publication Critical patent/CN104918307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of terminals, comprising: acquiring unit, for obtaining the targeted scans parameter information of target main equipment;Radio unit, for according to the targeted scans parameter information, broadcast data packet;Wherein, the data packet includes the targeted scans parameter information and object control information, and the object control information, which is used to indicate, to be received remaining main equipment in addition to the target main equipment of the data packet sweep parameter information of itself is adjusted to consistent with the targeted scans parameter information.The power consumption from equipment can be reduced by implementing the embodiment of the present invention.

Description

A kind of terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of terminals.
Background technique
BLE (Bluetooth Low Energy, low-power consumption bluetooth) technology, can be in main equipment as a kind of communication technology And from realizing the transmission of simplest data between equipment.However found in practice, it is logical from equipment to multiple master transmissions data It is often to be realized by broadcast mode.It in this fashion, is to carry out broadcast data packet according to the working method of itself from equipment, Since the sweep parameter of multiple main equipments is different, at the beginning of each main equipment scanning broadcast message and duration scanning may Therefore difference in order to guarantee that each main equipment can receive data packet, needs constantly broadcast data packet from equipment, this makes It is higher from the power consumption of equipment.
Summary of the invention
The embodiment of the invention discloses a kind of terminals, can reduce the power consumption from equipment.
The embodiment of the invention discloses a kind of terminals, comprising:
Acquiring unit, for obtaining the targeted scans parameter information of target main equipment;
Radio unit, for according to the targeted scans parameter information, broadcast data packet;Wherein, the data packet includes The targeted scans parameter information and object control information, the object control information, which is used to indicate, receives the data packet The sweep parameter information of itself is adjusted to and the targeted scans parameter by remaining main equipment in addition to the target main equipment Information is consistent.
The embodiment of the invention also discloses a kind of terminals, comprising:
Receiving unit, for receiving the data packet from device broadcasts;
Extraction unit, for extracting targeted scans parameter information and object control information from the data packet, wherein institute State the targeted scans parameter information that targeted scans parameter information is target main equipment;
Adjustment unit is used for according to the targeted scans parameter information and the object control information, by the scanning of itself Parameter information is adjusted to consistent with the targeted scans parameter information.
In the embodiment of the present invention, terminal the targeted scans parameter information that target main equipment is got by acquiring unit it Afterwards, so that it may by radio unit according to targeted scans parameter information, broadcast data packet;Wherein, which includes targeted scans Parameter information and object control information, the object control information be used to indicate receive data packet in addition to target main equipment The sweep parameter information of itself is adjusted to consistent with targeted scans parameter information by remaining main equipment.As it can be seen that being needed when from equipment When to multiple master transmissions data, so that it may carry out broadcast data packet with targeted scans parameter information, main equipments multiple in this way are just Can the same time enter same scanning mode, thus multiple main equipments can be received in same scanning window it is same Broadcast time is decreased, so as to reduce from equipment while guaranteeing data transmission from the data packet of device broadcasts Power consumption.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of structural schematic diagram of system architecture disclosed by the embodiments of the present invention;
Fig. 2 is a kind of flow diagram of data transmission method disclosed by the embodiments of the present invention;
Fig. 3 is the flow diagram of another data transmission method disclosed by the embodiments of the present invention;
Fig. 4 is the flow diagram of another data transmission method disclosed by the embodiments of the present invention;
Fig. 5 is the flow diagram of another data transmission method disclosed by the embodiments of the present invention;
Fig. 6 is a kind of structural schematic diagram of terminal disclosed by the embodiments of the present invention;
Fig. 7 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention;
Fig. 8 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention;
Fig. 9 is a kind of structural schematic diagram of terminal disclosed by the embodiments of the present invention;
Figure 10 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention;
Figure 11 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of terminal, the power consumption from equipment can be reduced, and is improved from device broadcasts The convenience of data packet.It is described in detail separately below.
Referring to Figure 1, Fig. 1 is a kind of structural schematic diagram of system architecture disclosed by the embodiments of the present invention, as shown in Figure 1, The system architecture may include one from equipment and multiple main equipments, wherein should may include that various small Bluetooths are low from equipment Power consumption (BLE) equipment passed through the outside broadcast data packet of broadcast mode when should work from equipment;Main equipment may include possessing BLE The equipment of module, such as smart phone, IPAD, tablet computer and mobile internet device (MID) smart machine.In Fig. 1 institute In the system architecture shown, BLE broadcast technology (connectionless) is based on to multiple main equipment broadcast data packets from equipment.
Based on system architecture shown in FIG. 1, the embodiment of the invention discloses a kind of data transmission methods.Fig. 2 is referred to, is schemed 2 be a kind of flow diagram of data transmission method disclosed by the embodiments of the present invention, wherein this method can be applied to Fig. 1 institute Slave equipment in the system architecture shown, as shown in Fig. 2, this method may comprise steps of:
S201, the targeted scans parameter information for obtaining target main equipment.
In the embodiment of the present invention, by the targeted scans parameter information for obtaining target main equipment from equipment.It can be connect from equipment Receive multiple scan requests that multiple main equipments are sent, from equipment using the corresponding main equipment of receive first scan request as Target main equipment, and using the sweep parameter information got from first scan request as targeted scans parameter information.
In the embodiment of the present invention, targeted scans parameter information may include sweep spacing (ScanInterval) time and sweep It retouches window (Scanwin) time and starts sweep time, wherein sweep spacing (ScanInterval) time is two connections The interval of scan event (scanning window) time started, scanning window (Scanwin) time are to be used in a sweep spacing The time of scanning work (i.e. reception data), starting sweep time is at the beginning of main equipment scans for the first time.It is general to require The scanning window time is less than sweep interval, with reserve other wireless modules that a period of time allows in main equipment (such as WLAN and LTE radio resource can) be shared.
S202, according to targeted scans parameter information, broadcast data packet.
It is the supplier of target data from equipment in the embodiment of the present invention, is based on BLE broadcast technology (connectionless) for target Data broadcasting gives multiple main equipments, which can be ad data, or other data are (such as from factory where equipment Location information, the temperature in room etc.), the embodiment of the present invention is not construed as limiting, wherein the target data is to broadcast in the form of data packet It goes out.Above-mentioned data packet can also include targeted scans parameter information and object control information, and the object control information is for referring to Show that receiving remaining main equipment in addition to target main equipment of data packet is adjusted to the sweep parameter information of itself and target Sweep parameter information is consistent.Wherein, there is a reserved location in the data packet, dedicated for storing its in addition to target data His self-defined information (such as targeted scans parameter information).The targeted scans parameter information of target main equipment is added to data packet Reserved location, so that it may generate the data packet for carrying targeted scans parameter information.
In the embodiment of the present invention, from equipment according to targeted scans parameter information, the specific implementation of broadcast data packet can be with are as follows:
According to sweep interval and scanning time started, the target scan start time of target main equipment is determined, in mesh When the mark scanning time started reaches, broadcast data packet.
For example, according to sweep interval and scanning time started, so that it may calculate target master by formula and set The standby target scan start time in n-th scanning, such as: NTScan_start=TScan_start+ (N-1) * ScanInterval, wherein N >=1.Assuming that it is 8 a.m. that N, which is 3, TScan_start, ScanInterval 30min then leads to Crossing formula can be calculated at the beginning of main equipment the 3rd time scanning as 9 points of the morning.
In the embodiment of the present invention, the sweep parameter information of itself is adjusted to and targeted scans parameter information by remaining main equipment It unanimously, may include two kinds of adjustment modes, the first: the sweep parameter information of itself is adjusted to sweep with target by other main equipments It is identical (i.e. sweep interval and scanning window time and scanning time started is all the same) to retouch parameter information;Second, The sweep interval of itself is adjusted to n times of the sweep interval of target main equipment by its main equipment, but when scanning window Between and scanning the time started it is identical as target main equipment.In this way, multiple main equipments can the same time enter or Scanning window is left, i.e., all main equipments can receive the data packet from device broadcasts in the same time, and only need from equipment A data packet is broadcasted during the scanning window of main equipment.
In the method flow described in Fig. 2, after the targeted scans parameter information that target main equipment is got from equipment, It can be according to targeted scans parameter information, broadcast data packet;Wherein, which includes targeted scans parameter information and target Control information, the object control information be used to indicate receive data packet remaining main equipment in addition to target main equipment incite somebody to action from The sweep parameter information of body is adjusted to consistent with targeted scans parameter information.As it can be seen that when needing to pass to multiple main equipments from equipment When transmission of data, so that it may carry out broadcast data packet with targeted scans parameter information, main equipments multiple in this way can be in the same time Into same scanning mode, so that multiple main equipments can receive the same number from device broadcasts in same scanning window Broadcast time is decreased, so as to reduce the power consumption from equipment while guaranteeing data transmission according to packet.
Based on system architecture shown in FIG. 1, the embodiment of the invention discloses a kind of data transmission methods.Fig. 3 is referred to, is schemed 3 be the flow diagram of another data transmission method disclosed by the embodiments of the present invention, wherein this method is applied to shown in Fig. 1 System architecture in slave equipment, as shown in figure 3, this method may comprise steps of:
S301, the targeted scans parameter information for obtaining target main equipment.
In the embodiment of the present invention, it can receive multiple scan requests that multiple main equipments are sent from equipment, will be connect from equipment The corresponding main equipment of first scan request that receives will be got as target main equipment from first scan request Sweep parameter information is as targeted scans parameter information.
In the embodiment of the present invention, targeted scans parameter information may include sweep spacing (ScanInterval) time and sweep It retouches window (Scanwin) time and starts sweep time, wherein sweep spacing (ScanInterval) time is two connections The interval of scan event (scanning window) time started, scanning window (Scanwin) time are to be used in a sweep spacing The time of scanning work (i.e. reception data), starting sweep time is at the beginning of main equipment scans for the first time.It is general to require The scanning window time is less than sweep interval, with reserve other wireless modules that a period of time allows in main equipment (such as WLAN and LTE radio resource can) be shared.
S302, judge that the data in data packet in addition to targeted scans parameter information and object control information whether there is more Newly, if so, thening follow the steps S303, if it is not, thening follow the steps S307, and terminate this process.
In the embodiment of the present invention, above-mentioned data packet is data packet to be broadcast, except target is swept in the data packet to be broadcast Retouching the data except parameter information and object control information can be ad data, or other data (such as location information, Temperature etc.), the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, when from equipment judge in data packet except targeted scans parameter information and object control information it When outer data have update, it can just execute step S303 and the data packet broadcast is gone out, otherwise, execution step S307, which enters, to stop Sleep mode.
S303, according to targeted scans parameter information, broadcast data packet.
It is the supplier of target data from equipment in the embodiment of the present invention, is based on BLE broadcast technology (connectionless) for target Data broadcasting gives multiple main equipments.The target data broadcasted from equipment by broadcast mode can be ad data, or Other data (location information, temperature such as from workshop where equipment), the embodiment of the present invention is not construed as limiting, wherein the target Data are to be broadcasted in the form of data packet.Above-mentioned data packet can also include that targeted scans parameter information and target control are believed Breath, the object control information are used to indicate remaining main equipment the sweeping itself in addition to target main equipment for receiving data packet It retouches parameter information and is adjusted to consistent with targeted scans parameter information.Wherein, there is a reserved location in the data packet, dedicated for Store other self-defined informations (such as targeted scans parameter information) in addition to target data.By the targeted scans of target main equipment Parameter information is added to the reserved location of data packet, so that it may generate the data packet for carrying targeted scans parameter information.
In the embodiment of the present invention, from equipment according to targeted scans parameter information, the specific implementation of broadcast data packet can be with are as follows:
According to sweep interval and scanning time started, the target scan start time of target main equipment is determined, in mesh When the mark scanning time started reaches, broadcast data packet.
For example, according to sweep interval and scanning time started, so that it may calculate target master by formula and set The standby target scan start time in n-th scanning, such as: NTScan_start=TScan_start+ (N-1) * ScanInterval, wherein N >=1.Assuming that it is 8 a.m. that N, which is 3, TScan_start, ScanInterval 30min then leads to Crossing formula can be calculated at the beginning of main equipment the 3rd time scanning as 9 points of the morning.
In the embodiment of the present invention, the sweep parameter information of itself is adjusted to and targeted scans parameter information by remaining main equipment It unanimously, may include two kinds of adjustment modes, the first: the sweep parameter information of itself is adjusted to sweep with target by other main equipments It is identical (i.e. sweep interval and scanning window time and scanning time started is all the same) to retouch parameter information;Second, The sweep interval of itself is adjusted to n times of the sweep interval of target main equipment by its main equipment, but when scanning window Between and scanning the time started it is identical as target main equipment.In this way, multiple main equipments can the same time enter or Scanning window is left, i.e., all main equipments can receive the data packet from device broadcasts in the same time, and only need from equipment A data packet is broadcasted during the scanning window of main equipment.
Whether S304, detection receive scan request within a preset time, if so, thening follow the steps S305;If it is not, terminating This process.
In the embodiment of the present invention, from equipment after data packet broadcast is gone out, can also detect within a preset time is The no scan request for receiving main equipment transmission, the scan request send association relevant to the data in data packet for requesting Data, wherein the preset time can be to default the volume waiting time from device systems, or user's customized time, The embodiment of the present invention is not construed as limiting.
S305, parsing scan request, and data are judged with the presence or absence of relevant associated data, if so, thening follow the steps S308;If it is not, terminating this process.
In the embodiment of the present invention, sweeping for main equipment transmission is received when detecting within a preset time in step S304 from equipment It when retouching request, needs further exist for parsing the scan request, and judges the data in scan request with the presence or absence of relevant incidence number According to, if the determination result is YES, then follow the steps S306, if judging result be it is no, terminate this process.
In the embodiment of the present invention, the data if necessary to broadcast are very big, due to the limited memory of data packet, from equipment with regard to nothing All data are added to data packet and are disposably broadcasted by method.If being detected within a preset time from equipment and receiving master The scan request that equipment is sent, so that it may be broadcasted associated data relevant to the data again.
S306, according to targeted scans parameter information, broadcast carries the data packet of associated data.
In the embodiment of the present invention, data packet is re-added to from equipment by associated data and targeted scans parameter information In, the time of broadcast is then determined according to targeted scans parameter information, when reaching the time, will carry the number of associated data It goes out according to packet broadcast.
S307, into suspend mode.
In the embodiment of the present invention, when being judged in data packet in step S302 except targeted scans parameter information and target control are believed There is no when update for data except breath, so that it may send the data packet without repeating, can enter suspend mode mould from equipment at this time Formula, to reduce the power consumption from equipment.
In the method flow described in Fig. 3, from equipment after selected target main equipment, so that it may obtain target master and set Standby targeted scans parameter information is further judging the number in addition to targeted scans parameter information and object control information According to depositing in the updated, just according to targeted scans parameter information, broadcast data packet, when detecting what main equipment was sent in preset time Scan request and the data are further judged there are associated data and then secondary are gone out the data packet broadcast for carrying associated data It goes;Wherein, which includes targeted scans parameter information and object control information, which is used to indicate reception The sweep parameter information of itself is adjusted to join with targeted scans by remaining main equipment in addition to target main equipment to data packet Number information is consistent.As it can be seen that when needing from equipment to multiple master transmissions more new datas, so that it may with targeted scans parameter letter Breath carrys out broadcast data packet, and main equipments multiple in this way can enter same scanning mode in the same time, thus multiple main equipments The same data packet from device broadcasts can be received in same scanning window, while guaranteeing data transmission, also subtracted Broadcast time is lacked, so as to reduce the power consumption from equipment.
Based on system architecture shown in FIG. 1, the embodiment of the invention discloses a kind of data transmission methods.Fig. 4 is referred to, is schemed 4 be the flow diagram of another data transmission method disclosed by the embodiments of the present invention, wherein this method is applied to shown in Fig. 1 System architecture in main equipment, as shown in figure 4, this method may comprise steps of:
S401, it receives from the data packets of device broadcasts.
In the embodiment of the present invention, main equipment receives the data packet from device broadcasts, carries target data in the data packet. This is the supplier of target data from equipment, and target data is broadcast to multiple main equipments based on BLE broadcast technology (connectionless), The target data can be ad data, or other data (such as location information, temperature), the embodiment of the present invention is not made It limits, wherein the target data is to be broadcasted in the form of data packet.
In the embodiment of the present invention, above-mentioned data packet further includes targeted scans parameter information, which is The targeted scans parameter information of target main equipment.Wherein, which may include sweep spacing (ScanInterval) time and scanning window (Scanwin) time and beginning sweep time, wherein sweep spacing (ScanInterval) time is the interval of two connection scan event (scanning window) time starteds, scanning window (Scanwin) time is the time in a sweep spacing for scanning work (i.e. reception data), starts sweep time and is At the beginning of main equipment scans for the first time.The scanning window time is generally required to be less than sweep interval, when reserving one section Between allow other wireless modules (such as WLAN and LTE) in main equipment that can share radio resource.
In the embodiment of the present invention, it is the sweep parameter information defaulted with itself that main equipment, which is received from the data packet of device broadcasts, Come what is scanned, the sweep parameter information of main equipment itself default and the targeted scans parameter information of target main equipment may be unanimously May be inconsistent, when there is inconsistency, main equipment needs constantly to adjust the scanning window time of itself, to receive from device broadcasts Data packet.
S402, targeted scans parameter information and object control information are extracted from data packet.
In the embodiment of the present invention, which is used to indicate the scanning for receiving the main equipment of data packet for itself Parameter information is adjusted to consistent with targeted scans parameter information, wherein has a reserved location in the data packet, dedicated for depositing Store up other self-defined informations (such as targeted scans parameter information) in addition to target data.Main equipment receive data packet it Afterwards, so that it may extract targeted scans parameter information from the reserved location in data packet.
As an alternative embodiment, step S401 reception may include: from the data packet of device broadcasts
Receive multiple multiple data packets from device broadcasts;
Step S402 extracts targeted scans parameter information from data packet and the specific implementation of object control information can With the following steps are included:
11) sweep parameter information and control information are extracted from each data packet respectively;
12) user is received for the selection instruction of any sweep parameter information in extracted sweep parameter information;
13) selection instruction is responded, using the sweep parameter information selected as targeted scans parameter information, and by the quilt The corresponding control information of the sweep parameter information selected is as object control information.
In the embodiment of the present invention, main equipment respectively from each data packet extract sweep parameter information and control information after, Further extracted sweep parameter information can be shown, user can be from the sweep parameter information shown A sweep parameter information is selected, the sweep parameter information that main equipment selects user is incited somebody to action as targeted scans parameter information The corresponding control information of the sweep parameter information selected is as object control information, it may be assumed that will be where targeted scans parameter information Data packet include control information as object control information.Above-mentioned selection instruction can be directed to by user click or double-click The mode of some sweep parameter information in extracted sweep parameter information triggers.
As an example it is assumed that main equipment 1 receive from equipment A send data packet A, from equipment B send data packet B with And the data packet C sent from equipment C, main equipment 1 extract sweep parameter from data packet A, data packet B and data packet C respectively Information A, sweep parameter information B and sweep parameter information C, and by sweep parameter information A, sweep parameter information B and scanning Parameter information C shows user, joins when receiving user's operation for sweep parameter information A, sweep parameter information B and scanning Number information C in sweep parameter information A and trigger selection instruction when, main equipment 1 using the sweep parameter information A selected as Targeted scans parameter information, and the control information for including using data packet A is as object control information.
S403, according to targeted scans parameter information and object control information, by the sweep parameter information of itself be adjusted to Targeted scans parameter information is consistent.
In the embodiment of the present invention, main equipment is extracted after targeted scans parameter information, so that it may by the sweep parameter of itself Information is adjusted to consistent with targeted scans parameter information, to receive the data from device broadcasts according to targeted scans parameter information Packet.
In the embodiment of the present invention, the sweep parameter information of itself is adjusted to and targeted scans parameter information one by main equipment It causes, may include two kinds of adjustment modes, the first: the sweep parameter information of itself is adjusted to and targeted scans by other main equipments Parameter information is identical (i.e. sweep interval and scanning window time and scanning time started is all the same);It is second, other The sweep interval of itself is adjusted to n times of the sweep interval of target main equipment, but scanning window time by main equipment And the scanning time started is identical as target main equipment.In this way, multiple main equipments can the same time enter or from Scanning window is opened, i.e., all main equipments can receive the data packet from device broadcasts in the same time, and only need from equipment A data packet is broadcasted during the scanning window of main equipment.
In the method flow described in Fig. 4, main equipment is received after the data packet of device broadcasts, so that it may from number Believe according to extraction targeted scans parameter information and object control information in packet, and according to targeted scans parameter information and target control Breath, is adjusted to consistent with targeted scans parameter information for the sweep parameter information of itself, so as to according to targeted scans parameter information Receive the data packet from device broadcasts.As it can be seen that the sweep parameter information of itself is adjusted to and targeted scans parameter in main equipment After information is consistent, main equipments multiple in this way can enter same scanning mode in the same time, so that multiple main equipments can To receive the same data packet from device broadcasts in same scanning window, while guaranteeing data transmission, decrease Broadcast time, so as to reduce the power consumption from equipment.
Based on system architecture shown in FIG. 1, the embodiment of the invention discloses a kind of data transmission methods.Fig. 5 is referred to, is schemed 5 be the flow diagram of another data transmission method disclosed by the embodiments of the present invention, wherein this method is applied to shown in Fig. 1 System architecture in main equipment, as shown in figure 5, this method may comprise steps of:
S501, it receives from the data packets of device broadcasts.
S502, judge whether data packet carries the targeted scans parameter information of target main equipment, if so, executing step S503, if it is not, executing step S501.
In the embodiment of the present invention, whether the reserved location in data packet that main equipment judgement receives, which carries target master, is set Standby targeted scans parameter information, if so, then illustrating that the data packet received is effective data packet, otherwise, main equipment needs The data packet from device broadcasts is received again, until the data packet received carries the targeted scans parameter letter of target main equipment Until breath.
S503, targeted scans parameter information and object control information are extracted from data packet.
S504, judge whether the sweep parameter information of itself and targeted scans parameter information are consistent, if it is not, executing step S505, if so, terminating this process.
In the embodiment of the present invention, all main equipments can receive the data packet from device broadcasts, if main equipment (such as mesh Mark main equipment) judge that the sweep parameter information of itself is consistent with targeted scans parameter information, step need not be just executed at this time S505 just executes step S505 if inconsistent.
S505, according to targeted scans parameter information and object control information, by the sweep parameter information of itself be adjusted to Targeted scans parameter information is consistent.
S506, the data in data packet are handled.
In the embodiment of the present invention, main equipment is receiving data packet and is being adjusted to the sweep parameter information of itself and target After sweep parameter information is consistent, so that it may stop scanning and handle the data received.
In the method flow described in Fig. 5, main equipment receives the data packet from device broadcasts and judges the data packet In carry target component information after, so that it may targeted scans parameter information and object control information are extracted from data packet, Further judge itself sweep parameter information and targeted scans parameter information it is inconsistent after, by the sweep parameter information of itself It is adjusted to consistent with targeted scans parameter information, to receive the data packet from device broadcasts according to targeted scans parameter information. As it can be seen that masters multiple in this way set after the sweep parameter information of itself is adjusted to consistent with targeted scans parameter information by main equipment It is standby to enter same scanning mode in the same time, so that multiple main equipments can receive in same scanning window The same data packet from device broadcasts decreases broadcast time while guaranteeing data transmission, so as to reduce from setting Standby power consumption.
Fig. 6 is referred to, Fig. 6 is a kind of structural schematic diagram of terminal disclosed by the embodiments of the present invention, wherein the terminal can be with Above-mentioned Fig. 2~data transmission method shown in Fig. 3 is executed as the slave equipment in system shown in Figure 1 framework, as shown in fig. 6, should Terminal 600 may include: acquiring unit 601 and radio unit 602, in which:
Acquiring unit 601, for obtaining the targeted scans parameter information of target main equipment.
In the embodiment of the present invention, targeted scans parameter information may include sweep spacing (ScanInterval) time and sweep It retouches window (Scanwin) time and starts sweep time, wherein sweep spacing (ScanInterval) time is two connections The interval of scan event (scanning window) time started, scanning window (Scanwin) time are to be used in a sweep spacing The time of scanning work (i.e. reception data), starting sweep time is at the beginning of main equipment scans for the first time.It is general to require The scanning window time is less than sweep interval, with reserve other wireless modules that a period of time allows in main equipment (such as WLAN and LTE radio resource can) be shared.
Radio unit 602, for according to targeted scans parameter information, broadcast data packet;Wherein, which includes target Sweep parameter information and object control information, the object control information be used to indicate receive data packet except target main equipment it The sweep parameter information of itself is adjusted to consistent with targeted scans parameter information by remaining outer main equipment.
It is the supplier of target data from equipment 600 in the embodiment of the present invention, based on (connectionless) general of BLE broadcast technology Target data is broadcast to multiple main equipments, which can be ad data, or other data are (as from equipment institute In location information, the temperature etc. of workshop), the embodiment of the present invention is not construed as limiting, wherein the target data is in the form of data packet It is broadcasted.Wherein, have a reserved location in the above-mentioned data packet, dedicated for store in addition to target data other from It defines information (such as targeted scans parameter information).The targeted scans parameter information of target main equipment is added to the reserved of data packet Position, so that it may generate the data packet for carrying targeted scans parameter information.
In the embodiment of the present invention, for radio unit 602 according to targeted scans parameter information, the specific implementation of broadcast data packet can With are as follows:
According to sweep interval and scanning time started, the target scan start time of target main equipment is determined, in mesh When the mark scanning time started reaches, broadcast data packet.
For example, according to sweep interval and scanning time started, so that it may calculate target master by formula and set The standby target scan start time in n-th scanning, such as: NTScan_start=TScan_start+ (N-1) * ScanInterval, wherein N >=1.Assuming that it is 8 a.m. that N, which is 3, TScan_start, ScanInterval 30min then leads to Crossing formula can be calculated at the beginning of main equipment the 3rd time scanning as 9 points of the morning.
In the embodiment of the present invention, the sweep parameter information of itself is adjusted to and targeted scans parameter information by remaining main equipment It unanimously, may include two kinds of adjustment modes, the first: the sweep parameter information of itself is adjusted to sweep with target by other main equipments It is identical (i.e. sweep interval and scanning window time and scanning time started is all the same) to retouch parameter information;Second, The sweep interval of itself is adjusted to n times of the sweep interval of target main equipment by its main equipment, but when scanning window Between and scanning the time started it is identical as target main equipment.In this way, multiple main equipments can the same time enter or Scanning window is left, i.e., all main equipments can receive the data packet from device broadcasts in the same time, and only need from equipment A data packet is broadcasted during the scanning window of main equipment.
Described in Fig. 6 from the device, acquiring unit 601 get target main equipment targeted scans parameter information it Afterwards, so that it may by radio unit 602 according to targeted scans parameter information, broadcast data packet;Wherein, which includes that target is swept Retouch parameter information and object control information, the object control information be used to indicate receive data packet in addition to target main equipment Remaining main equipment the sweep parameter information of itself is adjusted to consistent with targeted scans parameter information.As it can be seen that working as from equipment 600 When needing to multiple master transmissions data, so that it may carry out broadcast data packet with targeted scans parameter information, masters multiple in this way set It is standby to enter same scanning mode in the same time, so that multiple main equipments can receive in same scanning window The same data packet from device broadcasts decreases broadcast time while guaranteeing data transmission, so as to reduce from setting Standby power consumption.
Fig. 7 is referred to, Fig. 7 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention, wherein the terminal can To execute above-mentioned Fig. 2~data transmission method shown in Fig. 3 as the slave equipment in system shown in Figure 1 framework, as shown in fig. 7, The terminal 700 may include: acquiring unit 701, the first judging unit 702, radio unit 703, in which:
Acquiring unit 701, for obtaining the targeted scans parameter information of target main equipment.
In the embodiment of the present invention, targeted scans parameter information may include sweep spacing (ScanInterval) time and sweep It retouches window (Scanwin) time and starts sweep time, wherein sweep spacing (ScanInterval) time is two connections The interval of scan event (scanning window) time started, scanning window (Scanwin) time are to be used in a sweep spacing The time of scanning work (i.e. reception data), starting sweep time is at the beginning of main equipment scans for the first time.It is general to require The scanning window time is less than sweep interval, with reserve other wireless modules that a period of time allows in main equipment (such as WLAN and LTE radio resource can) be shared.
First judging unit 702, judges the number in data packet in addition to targeted scans parameter information and object control information According to the presence or absence of update.
In the embodiment of the present invention, above-mentioned data packet is data packet to be broadcast, except target is swept in the data packet to be broadcast Retouching the data except parameter information and object control information can be ad data, or other data (such as location information, Temperature etc.), the embodiment of the present invention is not construed as limiting.
Radio unit 703 is when being, to be believed according to targeted scans parameter for the judging result in the first judging unit 702 Breath, broadcast data packet.
It is the supplier of target data from equipment 700 in the embodiment of the present invention, based on (connectionless) general of BLE broadcast technology Target data is broadcast to multiple main equipments, which can be ad data, or other data are (as from equipment institute In location information, the temperature etc. of workshop), the embodiment of the present invention is not construed as limiting, wherein the target data is in the form of data packet It is broadcasted.Above-mentioned data packet can also include targeted scans parameter information and object control information, which uses In instruction receive remaining main equipment in addition to target main equipment of data packet by the sweep parameter information of itself be adjusted to Targeted scans parameter information is consistent.Wherein, there is a reserved location in the data packet, dedicated for storing in addition to target data Other self-defined informations (such as targeted scans parameter information).The targeted scans parameter information of target main equipment is added to data The reserved location of packet, so that it may generate the data packet for carrying targeted scans parameter information.
In the embodiment of the present invention, for radio unit 703 according to targeted scans parameter information, the specific implementation of broadcast data packet can With are as follows:
According to sweep interval and scanning time started, the target scan start time of target main equipment is determined, in mesh When the mark scanning time started reaches, broadcast data packet.
For example, according to sweep interval and scanning time started, so that it may calculate target master by formula and set The standby target scan start time in n-th scanning, such as: NTScan_start=TScan_start+ (N-1) * ScanInterval, wherein N >=1.Assuming that it is 8 a.m. that N, which is 3, TScan_start, ScanInterval 30min then leads to Crossing formula can be calculated at the beginning of main equipment the 3rd time scanning as 9 points of the morning.
In the embodiment of the present invention, the sweep parameter information of itself is adjusted to and targeted scans parameter information by remaining main equipment It unanimously, may include two kinds of adjustment modes, the first: the sweep parameter information of itself is adjusted to sweep with target by other main equipments It is identical (i.e. sweep interval and scanning window time and scanning time started is all the same) to retouch parameter information;Second, The sweep interval of itself is adjusted to n times of the sweep interval of target main equipment by its main equipment, but when scanning window Between and scanning the time started it is identical as target main equipment.In this way, multiple main equipments can the same time enter or Scanning window is left, i.e., all main equipments can receive the data packet from device broadcasts in the same time, and only need from equipment A data packet is broadcasted during the scanning window of main equipment.
As an alternative embodiment, shown in Fig. 7 can also include: from equipment 700
Suspend mode unit 704, for judging in data packet in the first judging unit 702 except targeted scans parameter information and target When controlling the data except information there is no updating, into suspend mode.
As an alternative embodiment, shown in Fig. 7 can also include: from equipment 700
Detection unit 705, in radio unit 703 according to targeted scans parameter information, after broadcast data packet, detection Whether scan request is received within a preset time, which is used to request to send associated data associated with the data.
In the inventive embodiments, radio unit 703, can also be by detection unit after data packet broadcast is gone out 705 detect whether to receive the scan request of main equipment transmission within a preset time, which sends and number for requesting According to the relevant associated data of data in packet, wherein the preset time can be to default the volume waiting time from device systems, can also Think user's customized time, the embodiment of the present invention is not construed as limiting.
Second judgment unit 706, for when detection unit 705 receives scan request within a preset time, parsing to be swept Request is retouched, and judges data with the presence or absence of relevant associated data.
In the inventive embodiments, the data if necessary to broadcast are very big, due to the limited memory of data packet, from equipment All data just can not be added to data packet by 700 to be disposably broadcasted.If detection unit 705 is within a preset time Detection receives the scan request of main equipment transmission, so that it may be broadcasted associated data relevant to the data again.
Above-mentioned radio unit 703, be also used to second judgment unit 706 judge data there are when relevant data, according to Targeted scans parameter information, broadcast carry the data packet of associated data.
In the inventive embodiments, number is re-added to from equipment 700 by associated data and targeted scans parameter information According in packet, the time of broadcast is then determined according to targeted scans parameter information by radio unit 703, it, will when reaching the time The data packet broadcast for carrying associated data is gone out.
Described in Fig. 7 from the device, the targeted scans parameter information of target main equipment is obtained by acquiring unit 701, Further, judge that the data in addition to targeted scans parameter information and object control information exist in the first judging unit 702 After update, just by radio unit 703 according to targeted scans parameter information, broadcast data packet, if detection unit 705 is in preset time Detect the scan request that main equipment is sent and further second judgment unit 706 judge the data there are after associated data, The data packet broadcast for carrying associated data is gone out by radio unit 703 again;Wherein, which includes targeted scans ginseng Number information and object control information, the object control information are used to indicate its in addition to target main equipment for receiving data packet The sweep parameter information of itself is adjusted to consistent with targeted scans parameter information by remaining main equipment.As it can be seen that when from equipment need to When multiple master transmissions more new data, so that it may carry out broadcast data packet with targeted scans parameter information, main equipments multiple in this way Same scanning mode can be entered in the same time, so that multiple main equipments can receive together in same scanning window One decreases broadcast time, while guaranteeing data transmission from the data packet of device broadcasts so as to reduce from equipment Power consumption.
Fig. 8 is referred to, Fig. 8 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention, as shown in figure 8, should Terminal 800 may include: at least one processor 801, such as CPU, input unit 802, output device 803, memory 804 and At least one communication bus 805.Wherein, communication bus 805 is for realizing the communication connection between these components.Memory 804 It can be high speed RAM memory, be also possible to non-labile memory (non-volatile memory), for example, at least one A magnetic disk storage.Optionally, memory 804 can also be that at least one is located remotely from the storage device of aforementioned processor 801. Wherein, processor 801 can be in conjunction with the described storage batch processing code from equipment, memory 804 of Fig. 6 and Fig. 7, and locates Reason device 801 calls the program code stored in memory 804, for performing the following operations:
The targeted scans parameter information of target main equipment is obtained by input unit 802;
By output device 803 according to the targeted scans parameter information, broadcast data packet;Wherein, the data packet packet The targeted scans parameter information and object control information are included, the object control information, which is used to indicate, receives the data packet Remaining main equipment in addition to the target main equipment by the sweep parameter information of itself be adjusted to and the targeted scans join Number information is consistent.
As an alternative embodiment, processor 801 calls the program code stored in memory 804, mesh is obtained Mark it is after the targeted scans parameter information of main equipment and described according to the targeted scans parameter information, broadcast data packet it Before, following operation can also be performed:
Judging the data in the data packet in addition to the targeted scans parameter information and the object control information is It is no to there is update;
If the determination result is YES, then by output device 803 according to the targeted scans parameter information, broadcast data packet.
It, can be with as an alternative embodiment, processor 801 calls the program code that stores in memory 804 Execute following operation:
If judging the data in the data packet in addition to the targeted scans parameter information and the object control information There is no updates, then enter suspend mode.
As an alternative embodiment, the targeted scans parameter information includes that sweep interval and scanning start Time, processor 801 calls the program code stored in memory 804, according to the targeted scans parameter information, broadcast data Packet, comprising:
According to the sweep interval and the scanning time started, determine that the targeted scans of the target main equipment are opened Begin the time, when target scan start time reaches, broadcast data packet.
As an alternative embodiment, processor 801 calls the program code stored in memory 804, according to institute It states targeted scans parameter information, after broadcast data packet, following operation can also be performed:
Whether detection receives scan request within a preset time, and the scan request is sent and the data for requesting Relevant associated data;
If detection receives the scan request within a preset time, the scan request is parsed, and judge the number According to the presence or absence of relevant associated data;
If judging the data, there are relevant data, according to the targeted scans parameter information, broadcast is carried State the data packet of associated data.
Fig. 9 is referred to, Fig. 9 is a kind of structural schematic diagram of terminal disclosed by the embodiments of the present invention;Wherein, the terminal conduct Main equipment in system shown in Figure 1 framework executes above-mentioned Fig. 4~data transmission method shown in fig. 5, as shown in figure 9, the terminal 900 may include: receiving unit 901, extraction unit 902 and adjustment unit 903, in which:
Receiving unit 901, for receiving the data packet from device broadcasts.
In the embodiment of the present invention, receiving unit 901 receives the data packet from device broadcasts, carries target in the data packet Data.This is the supplier of target data from equipment, and target data is broadcast to multiple masters based on BLE broadcast technology (connectionless) Equipment, the target data can be ad data, or other data (such as location information, temperature), the present invention are implemented Example is not construed as limiting, wherein the target data is to be broadcasted in the form of data packet.
In the embodiment of the present invention, above-mentioned data packet further includes targeted scans parameter information, which is The targeted scans parameter information of target main equipment.Wherein, which may include sweep spacing (ScanInterval) time and scanning window (Scanwin) time and beginning sweep time, wherein sweep spacing (ScanInterval) time is the interval of two connection scan event (scanning window) time starteds, scanning window (Scanwin) time is the time in a sweep spacing for scanning work (i.e. reception data), starts sweep time and is At the beginning of main equipment scans for the first time.The scanning window time is generally required to be less than sweep interval, when reserving one section Between allow other wireless modules (such as WLAN and LTE) in main equipment that can share radio resource.
In the embodiment of the present invention, it is to be joined with the scanning itself defaulted from the data packet of device broadcasts that receiving unit 901, which is received, For number information come what is scanned, the sweep parameter information of main equipment itself default and the targeted scans parameter information of target main equipment may Unanimously may also be inconsistent, when there is inconsistency, main equipment needs constantly to adjust the scanning window time of itself, to receive from setting The data packet of standby broadcast.
Extraction unit 902, for extracting targeted scans parameter information and object control information from data packet, wherein should Targeted scans parameter information is the targeted scans parameter information of target main equipment.
In the embodiment of the present invention, which is used to indicate the scanning for receiving the main equipment of data packet for itself Parameter information is adjusted to consistent with targeted scans parameter information, wherein has a reserved location in the data packet, dedicated for depositing Store up other self-defined informations (such as targeted scans parameter information) in addition to target data.Main equipment receive data packet it Afterwards, so that it may extract targeted scans parameter information from the reserved location in data packet.
As an alternative embodiment, above-mentioned receiving unit 901, multiple from the more of device broadcasts specifically for receiving A data packet;
Said extracted unit 902, comprising:
Subelement 9021 is extracted, for extracting sweep parameter information and control information from each data packet respectively;
Receiving subelement 9022, for receiving user for any sweep parameter letter in extracted sweep parameter information The selection instruction of breath;
Response subelement 9023 sweeps the sweep parameter information selected as target for responding the selection instruction Parameter information is retouched, and using the corresponding control information of the sweep parameter information selected as object control information.
In this embodiment, it extracts subelement 9021 and extracts sweep parameter information and control information from each data packet respectively Later, further extracted sweep parameter information can be shown, receiving subelement 9022 can receive user's needle To the selection instruction of any sweep parameter information in the sweep parameter information shown, responding subelement 9023 can ring Selection instruction is answered, the sweep parameter information that user is selected is as targeted scans parameter information, and the sweep parameter that will be selected The corresponding control information of information is as object control information, it may be assumed that the control for including by the data packet where targeted scans parameter information Information processed is as object control information.Above-mentioned selection instruction can be directed to extracted sweep parameter by user click or double-click The mode of some sweep parameter information in information triggers.
Adjustment unit 903, for according to targeted scans parameter information and object control information, the sweep parameter of itself to be believed Breath is adjusted to consistent with targeted scans parameter information.
In the embodiment of the present invention, after extraction unit 902 extracts targeted scans parameter information and object control information, adjustment Unit 903 can according to targeted scans parameter information and object control information, by the sweep parameter information of itself be adjusted to Targeted scans parameter information is consistent, to receive the data packet from device broadcasts according to targeted scans parameter information.
In the embodiment of the present invention, the sweep parameter information of itself is adjusted to believe with targeted scans parameter by adjustment unit 903 Breath is consistent, may include two kinds of adjustment modes, the first: the sweep parameter information of itself is adjusted to and target by other main equipments Sweep parameter information is identical (i.e. sweep interval and scanning window time and scanning time started is all the same);Second, The sweep interval of itself is adjusted to n times of the sweep interval of target main equipment, but scanning window by other main equipments Time and scanning time started are identical as target main equipment.In this way, multiple main equipments can the same time enter or Person leaves scanning window, i.e., all main equipments can receive the data packet from device broadcasts in the same time, and only from equipment It needs to broadcast a data packet during the scanning window of main equipment.
In the main equipment described in Fig. 9, receiving unit 901 is received after the data packet of device broadcasts, so that it may Targeted scans parameter information and object control information are extracted from data packet by extraction unit 902, and by 903 basis of adjustment unit The sweep parameter information of itself is adjusted to and targeted scans parameter information one by targeted scans parameter information and object control information It causes, to receive the data packet from device broadcasts according to targeted scans parameter information.As it can be seen that the scanning of itself is joined in main equipment After number information is adjusted to consistent with targeted scans parameter information, main equipments multiple in this way can enter same sweep in the same time State is retouched, so that multiple main equipments can receive the same data packet from device broadcasts in same scanning window, is being protected While demonstrate,proving data transmission, broadcast time is decreased, so as to reduce the power consumption from equipment.
0, Figure 10 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention referring to Figure 1;Wherein, the terminal Above-mentioned Fig. 4~data transmission method shown in fig. 5 is executed as the main equipment in system shown in Figure 1 framework, it as shown in Figure 10, should Terminal 1000 may include: receiving unit 1001, judging unit 1002, extraction unit 1003 and adjustment unit 1004, in which:
Receiving unit 1001, for receiving the data packet from device broadcasts.
Judging unit 1002, for judging whether the data packet carries the targeted scans parameter of the target main equipment Information.
In the embodiment of the present invention, judging unit 1002 judges the reserved location in the data packet that receiving unit 1001 receives Whether the targeted scans parameter information of target main equipment is carried, if so, then illustrating the data packet that receiving unit 1001 receives For effective data packet, otherwise, receiving unit 1001 needs to receive the data packet from device broadcasts again, until the number received Until the targeted scans parameter information for carrying target main equipment according to packet.
Extraction unit 1003 is when being, to mention from the data packet for the judging result in the judging unit 1002 Take targeted scans parameter information and object control information.
The judging unit 1002 is also used to extract targeted scans ginseng from the data packet in the extraction unit 1003 After number information, judge whether the sweep parameter information of itself and the targeted scans parameter information are consistent.
Adjustment unit 1004, for the judging result in the judging unit 1002 be it is no when, according to targeted scans parameter The sweep parameter information of itself is adjusted to consistent with the targeted scans parameter information by information and object control information.
As an alternative embodiment, main equipment 1000 shown in Fig. 10 can also include:
Processing unit 1005, for being adjusted to join with targeted scans by the sweep parameter information of itself in adjustment unit 1004 After number information is consistent, the data in data packet are handled.
In the embodiment of the present invention, main equipment is receiving data packet and is being adjusted to the sweep parameter information of itself and target After sweep parameter information is consistent, so that it may stop scanning and handle the data received.
In the main equipment described in Figure 10, receiving unit 1001 receives the data packet from device broadcasts and by judgement list Member 1002 judges to carry in the data packet after target component information, so that it may be extracted from data packet by extraction unit 1003 Targeted scans parameter information and object control information are further judged itself sweep parameter information and mesh by judging unit 1002 After mark sweep parameter information is inconsistent, the sweep parameter information of itself is adjusted to by adjustment unit 1004 and targeted scans are joined Number information is consistent, to receive the data packet from device broadcasts according to targeted scans parameter information.As it can be seen that main equipment by itself Sweep parameter information be adjusted to consistent with targeted scans parameter information after, main equipments multiple in this way can the same time into Enter same scanning mode, so that multiple main equipments can receive the same data from device broadcasts in same scanning window Packet decreases broadcast time, while guaranteeing data transmission so as to reduce the power consumption from equipment.
1, Figure 11 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention referring to Figure 1, as shown in figure 11, The terminal 1100 may include: at least one processor 1101, such as CPU, input unit 1102, memory 1103 and at least one A communication bus 1104.Wherein, communication bus 1104 is for realizing the communication connection between these components.Memory 1103 can be with It is high speed RAM memory, is also possible to non-labile memory (non-volatile memory), for example, at least a magnetic Disk storage.Optionally, memory 1103 can also be that at least one is located remotely from the storage device of aforementioned processor 1101.Its In, processor 1101 can combine main equipment described in Fig. 9 and Figure 10, batch processing code is stored in memory 1103, and Processor 1101 calls the program code stored in memory 1103, for performing the following operations:
The data packet from device broadcasts is received by input unit 1102;
Targeted scans parameter information and object control information are extracted from the data packet, wherein the targeted scans ginseng Number information is the targeted scans parameter information of target main equipment;
According to the targeted scans parameter information and the object control information, the sweep parameter information of itself is adjusted to It is consistent with the targeted scans parameter information.
As an alternative embodiment, processor 1101 calls the program code stored in memory 1103, pass through The reception of input unit 1102 can specifically include from the data packet of device broadcasts:
Multiple multiple data packets from device broadcasts are received by input unit 1102;
Processor 1101 calls the program code stored in memory 1103, and targeted scans ginseng is extracted from the data packet The specific implementation of number information may include following operation:
Sweep parameter information and control information are extracted from each data packet respectively;
User is received for the selection instruction of any sweep parameter information in extracted sweep parameter information;
The selection instruction is responded, using the sweep parameter information selected as targeted scans parameter information, and will be described The corresponding control information of the sweep parameter information selected is as object control information.
As an alternative embodiment, processor 1101 calls the program code stored in memory 1103, receive After the data packet of device broadcasts, and extract from the data packet targeted scans parameter information and object control information it Before, following operation can also be performed:
Judge whether the data packet carries the targeted scans parameter information of the target main equipment;
If the determination result is YES, then extraction targeted scans parameter information and the target control from the data packet are executed The step of information.
As an alternative embodiment, processor 1101 calls the program code stored in memory 1103, from institute It states after extracting targeted scans parameter information and object control information in data packet and described according to the targeted scans parameter Information and the object control information, by the sweep parameter information of itself be adjusted to it is consistent with the targeted scans parameter information it Before, following operation can also be performed:
Judge whether itself sweep parameter information and the targeted scans parameter information are consistent;
If judging result be it is no, execute it is described according to the targeted scans parameter information and the object control information, The sweep parameter information of itself is adjusted to the step consistent with the targeted scans parameter information.
As an alternative embodiment, processor 1101 calls the program code stored in memory 1103, according to The sweep parameter information of itself is adjusted to sweep with the target by the targeted scans parameter information and the object control information Retouch parameter information it is consistent after, following operation can also be performed:
Data in the data packet are handled.
It should be noted that for simple description, therefore, it is stated as a systems for each embodiment of the method above-mentioned The combination of actions of column, but those skilled in the art should understand that, the application is not limited by the described action sequence, because For according to the application, certain some step be can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, related movement and unit not necessarily this Shen It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in some embodiment Part, reference can be made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (10)

1. a kind of terminal characterized by comprising
Acquiring unit, for obtaining the targeted scans parameter information of target main equipment;
Radio unit, for according to the targeted scans parameter information, broadcast data packet;Wherein, the data packet includes described Targeted scans parameter information and object control information, the object control information be used to indicate receive the data packet except institute Remaining main equipment except target main equipment is stated to be adjusted to the sweep parameter information of itself and the targeted scans parameter information Unanimously;Remaining main equipment adjusted receives the data packet in the same time with the target main equipment.
2. terminal according to claim 1, which is characterized in that the terminal further include:
First judging unit, for the acquiring unit obtain target main equipment targeted scans parameter information after, and The radio unit is according to the targeted scans parameter information, before broadcast data packet, judges in the data packet except the mesh The data except sweep parameter information and the object control information are marked with the presence or absence of update;
The radio unit is when being, according to the targeted scans specifically for the judging result in first judging unit Parameter information, broadcast data packet.
3. terminal according to claim 2, which is characterized in that the terminal further include:
Suspend mode unit, for judging in the data packet in first judging unit except the targeted scans parameter information and institute When stating the data except object control information there is no updating, into suspend mode.
4. terminal according to any one of claims 1 to 3, which is characterized in that the targeted scans parameter information includes Sweep interval and scanning time started, the radio unit according to the targeted scans parameter information, broadcast data packet Specific implementation are as follows:
According to the sweep interval and the scanning time started, when determining that the targeted scans of the target main equipment start Between, when target scan start time reaches, broadcast data packet.
5. terminal according to claim 1, which is characterized in that the terminal further include:
Detection unit, for according to the targeted scans parameter information, after broadcast data packet, detection to exist in the radio unit Whether scan request is received in preset time, and the scan request is used to request to send associated data associated with the data;
Second judgment unit, for when the detection unit receives the scan request within a preset time, described in parsing Scan request, and judge the data with the presence or absence of relevant associated data;
The radio unit is also used to judge the data there are when relevant data, according to institute in the second judgment unit Targeted scans parameter information is stated, broadcast carries the data packet of the associated data.
6. a kind of terminal characterized by comprising
Receiving unit, for receiving the data packet from device broadcasts;
Extraction unit, for extracting targeted scans parameter information and object control information from the data packet, wherein the mesh Mark the targeted scans parameter information that sweep parameter information is target main equipment;
Adjustment unit is used for according to the targeted scans parameter information and the object control information, by the sweep parameter of itself Information is adjusted to consistent with the targeted scans parameter information;Remaining main equipment adjusted is with the target main equipment same Time receives the data packet.
7. terminal according to claim 6, which is characterized in that
The receiving unit, specifically for receiving multiple multiple data packets from device broadcasts;
The extraction unit, comprising:
Subelement is extracted, for extracting sweep parameter information and control information from each data packet respectively;
Receiving subelement, for receiving user for the selection of any sweep parameter information in extracted sweep parameter information Instruction;
Subelement is responded, for responding the selection instruction, is believed the sweep parameter information selected as targeted scans parameter Breath, and using the corresponding control information of the sweep parameter information selected as object control information.
8. terminal according to claim 6, which is characterized in that the terminal further include:
Judging unit, for after the receiving unit receives data packet from device broadcasts and the extraction unit from Before extracting targeted scans parameter information and object control information in the data packet, judge whether the data packet carries State the targeted scans parameter information of target main equipment;
The extraction unit is when being, to extract mesh from the data packet specifically for the judging result in the judging unit Mark sweep parameter information and object control information.
9. terminal according to claim 8, which is characterized in that
The judging unit is also used to extract targeted scans parameter information and target from the data packet in the extraction unit After control information and the adjustment unit is according to the targeted scans parameter information and the object control information, will be certainly Before the sweep parameter information of body is adjusted to consistent with the targeted scans parameter information, judge itself sweep parameter information with Whether the targeted scans parameter information is consistent;
The adjustment unit, specifically for the judging result in the judging unit be it is no when, according to the targeted scans parameter The sweep parameter information of itself is adjusted to consistent with the targeted scans parameter information by information and the object control information.
10. terminal according to claim 9, which is characterized in that the terminal further include:
Processing unit, for being adjusted to believe with the targeted scans parameter by the sweep parameter information of itself in the adjustment unit After breath is consistent, the data in the data packet are handled.
CN201510178443.4A 2015-04-15 2015-04-15 A kind of terminal Active CN104918307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510178443.4A CN104918307B (en) 2015-04-15 2015-04-15 A kind of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510178443.4A CN104918307B (en) 2015-04-15 2015-04-15 A kind of terminal

Publications (2)

Publication Number Publication Date
CN104918307A CN104918307A (en) 2015-09-16
CN104918307B true CN104918307B (en) 2019-05-14

Family

ID=54086906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510178443.4A Active CN104918307B (en) 2015-04-15 2015-04-15 A kind of terminal

Country Status (1)

Country Link
CN (1) CN104918307B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113836955A (en) * 2021-08-20 2021-12-24 青岛中科英泰商用系统股份有限公司 Output configuration method and system for scanning gun, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI115494B (en) * 1999-09-08 2005-05-13 Nokia Corp Base station frequency synchronization
JP2002111686A (en) * 2000-10-04 2002-04-12 Sony Corp Communication method and communication device
SG124302A1 (en) * 2005-01-13 2006-08-30 Oki Techno Ct Singapore Pte Architecture and protocol for software defined radio system
CN100558143C (en) * 2006-04-17 2009-11-04 华为技术有限公司 Mobile broadcast network system and realize the method for this Network Synchronization
US8005465B2 (en) * 2006-11-08 2011-08-23 Nokia Corporation Connectionless information transfer from advertising device
US9020433B2 (en) * 2011-10-05 2015-04-28 Apple Inc. Low power wireless device discovery

Also Published As

Publication number Publication date
CN104918307A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
CN104901724B (en) A kind of data transmission method
CN104539504B (en) A kind of event triggering method and device
CN109246723B (en) Configuration method of discontinuous reception parameters, terminal and network side equipment
CN109547308A (en) A kind of control method of smart home, device, storage medium and server
CN106022108B (en) A kind of synchronization management method and terminal device
CN109450747B (en) Method and device for awakening smart home equipment and computer storage medium
CN109117039B (en) Display method and terminal equipment
CN108390795B (en) Household appliance and monitoring method thereof, smart home system and readable storage medium
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN104936211A (en) Wireless resource distribution method
CN110392412B (en) Network distribution method, device, equipment and medium for Internet of things equipment
CN104918307B (en) A kind of terminal
CN105227627B (en) A kind of playback equipment packet control process and user terminal
CN112698772A (en) Document template processing method and device and document creating method and device
WO2024066089A1 (en) Cooking plan determination method and apparatus, storage medium, and electronic apparatus
CN103324727A (en) Sharing control method and system
CN108234052A (en) The method, apparatus and system that a kind of clock synchronizes
CN111953573B (en) Equipment distribution network processing method, equipment distribution network processing device and intelligent panel
CN105978853B (en) Session scheduling method, scheduling server and terminal
CN110809046B (en) Equipment network distribution method and device, electronic equipment and storage medium
CN112667334A (en) Configuration method and device of equipment control information, electronic equipment and storage medium
CN110536186B (en) Remote sensing control method and device, electronic equipment and storage medium
CN111831380A (en) Task execution method and device, storage medium and electronic device
CN108206784B (en) Network topology generation method and device for smart home
CN112788080A (en) Control method of sweeping robot, sweeping robot and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210224

Address after: 518057 Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 17th Floor (15th Floor of Natural Floor) 1702-1703

Patentee after: Shenzhen Microphone Holdings Co.,Ltd.

Address before: 518040 21 floor, east block, Times Technology Building, 7028 Shennan Road, Futian District, Shenzhen, Guangdong.

Patentee before: DONGGUAN GOLDEX COMMUNICATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right