CN112689319B - Network access method and device - Google Patents

Network access method and device Download PDF

Info

Publication number
CN112689319B
CN112689319B CN201910996137.XA CN201910996137A CN112689319B CN 112689319 B CN112689319 B CN 112689319B CN 201910996137 A CN201910996137 A CN 201910996137A CN 112689319 B CN112689319 B CN 112689319B
Authority
CN
China
Prior art keywords
time point
target reference
preset
beacon frame
receiving
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
CN201910996137.XA
Other languages
Chinese (zh)
Other versions
CN112689319A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910996137.XA priority Critical patent/CN112689319B/en
Publication of CN112689319A publication Critical patent/CN112689319A/en
Application granted granted Critical
Publication of CN112689319B publication Critical patent/CN112689319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to a network access method and device. The method comprises the following steps: receiving a target reference time point sent by a target reference device, and sending a discovery beacon frame when the detection target reference time point reaches a first preset time point; so that the second device wakes up at a second preset time point, which is later than the first preset time point, and prepares to receive the discovery beacon frame. In the scheme, the target time point sent by the target reference device is used as the third party time, so that the first equipment and the second equipment can agree on the receiving and transmitting time of the discovery beacon frame by taking the third party time as a reference, and the scheme that the second equipment completes discovery and network access with the lowest power consumption is ensured.

Description

Network access method and device
Technical Field
The disclosure relates to the field of communication technologies, and in particular, to a network access method and device.
Background
The Wireless sensing (English: wi-Fi) protocol is a Wireless network (Wi-Fi) protocol based on a position proximity, so that the use of Wi-Fi can be expanded to a larger range, and the Wi-Fi device can realize low power consumption and rapid clicking to acquire services provided by other surrounding Wi-Fi devices through the Wi-Fi device without a cellular data network, wi-Fi hot spots or a global positioning system (Global Positioning System, GPS) connection.
In the process of using Wi-Fi Aware protocol, wi-Fi Aware equipment needs to do device Discovery, and in the process of doing device Discovery, a master device (English: master device) periodically sends a Discovery Beacon frame (English: discovery Beacon) on a channel to announce the existence of the device. New equipment (English: new device) needing to access the network monitors Discovery Beacon in a passive scanning (English: passive scan) mode to find the peripheral master device, and then adds the network where the master device is located according to the Discovery Beacon application.
In the process of sending Discovery Beacon, the master device wakes up and sends Discovery Beacon according to a fixed time interval (English) period, and immediately enters into a sleep state after the sending is completed.
It is desirable that the new device be able to predict the exact time that the master device sent the Discovery Beacon so that the new device wakes up at the exact point in time and receives the Discovery Beacon sent by the master device.
However, the ideal state cannot be achieved in the current Wi-Fi Aware access scheme, and time synchronization cannot be achieved between the new device and the master device, so that the new device depends on keeping active (english) for a longer time to do a passive scan, so as to achieve the purpose of discovering the master device and receiving Discovery Beacon sent by the master device.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a network access method and apparatus. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a network access method, the method being applied to a first device, the method including:
receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a first preset time point, a discovery beacon frame is sent; so that the second device wakes up at a second preset point in time, which is later than the first preset point in time, and is ready to receive the discovery beacon frame.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: receiving a target reference time point sent by a target reference device, and sending a discovery beacon frame when the detection target reference time point reaches a first preset time point; so that the second device wakes up at a second preset time point, which is later than the first preset time point, and prepares to receive the discovery beacon frame. In the scheme, the target time point sent by the target reference device is used as the third party time, so that the first equipment and the second equipment can agree on the receiving and transmitting time of the discovery beacon frame by taking the third party time as a reference, and the scheme that the second equipment completes discovery and network access with the lowest power consumption is ensured.
In one embodiment, the receiving the reference time point sent by the target reference device includes:
simultaneously receiving indication information sent by a plurality of reference devices, wherein the indication information comprises the following components: a reference time point;
selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
In one embodiment, the indication information includes: referencing an identification code of the device; the selecting a target reference device from the plurality of reference devices according to a preset condition includes:
selecting the reference device with the largest identification code value as the target reference device;
or alternatively, the process may be performed,
and selecting the reference device with the smallest identification code value as the target reference device.
In one embodiment, the receiving the target reference time point sent by the target reference device includes:
receiving a beacon frame sent by an AP device of a target wireless access point;
and acquiring a timing synchronization function value from the beacon frame as the target reference time point.
In one embodiment, the acquiring the timing synchronization function value from the beacon frame as the target reference time point includes:
Acquiring a timing synchronization function value from the beacon frame;
and adding a preset processing value into the timing synchronization function value to obtain the target reference time point.
In one embodiment, the sending the discovery beacon frame when the target reference time point is detected to reach the first preset time point includes:
and when detecting that the value of the preset bit of the target reference time point is changed to a first preset value, transmitting a discovery beacon frame.
According to a second aspect of embodiments of the present disclosure, there is provided a network access method, the method being applied to a second device, the method comprising:
receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a second preset time point, entering an awake state to prepare to receive a discovery beacon frame sent by the first device at a first preset time point, wherein the second preset time point is later than the first preset time point;
and after receiving the discovery beacon frame, applying to join a network corresponding to the first device which transmits the discovery beacon frame.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: and receiving a target reference time point sent by a target reference device, entering an awake state when the detection target reference time point reaches a second preset time point so as to prepare to receive a discovery beacon frame sent by first equipment at the first preset time point, wherein the second preset time point is later than the first preset time point, and applying to join a network corresponding to the first equipment sending the discovery beacon frame after receiving the discovery beacon frame. In the scheme, the target time point sent by the target reference device is used as the third party time, so that the first equipment and the second equipment can agree on the receiving and transmitting time of the discovery beacon frame by taking the third party time as a reference, and the scheme that the second equipment completes discovery and network access with the lowest power consumption is ensured.
In one embodiment, the receiving the reference time point sent by the target reference device includes:
simultaneously receiving indication information sent by a plurality of reference devices, wherein the indication information comprises the following components: a reference time point;
selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
In one embodiment, the indication information includes: referencing an identification code of the device; the selecting a target reference device from the plurality of reference devices according to a preset condition includes:
selecting the reference device with the largest identification code value as the target reference device;
or alternatively, the process may be performed,
and selecting the reference device with the smallest identification code value as the target reference device.
In one embodiment, the receiving the target reference time point sent by the target reference device includes:
receiving a beacon frame sent by an AP device of a target wireless access point;
and acquiring a timing synchronization function value from the beacon frame as the target reference time point.
In one embodiment, the acquiring the timing synchronization function value from the beacon frame as the target reference time point includes:
Acquiring a timing synchronization function value from the beacon frame;
and adding a preset processing value into the timing synchronization function value to obtain the target reference time point.
In one embodiment, the entering the wake-up state when the target reference time point is detected to reach a second preset time point includes:
and when the change of the value of the preset bit of the target reference time point to a second preset value is detected, entering an awake state.
According to a third aspect of embodiments of the present disclosure, there is provided a network access apparatus, the apparatus being applied to a first device, the apparatus comprising:
the first receiving module is used for receiving a target reference time point sent by the target reference device;
the first sending module is used for sending a discovery beacon frame when detecting that the target reference time point received by the first receiving module reaches a first preset time point; so that the second device wakes up at a second preset point in time, which is later than the first preset point in time, and is ready to receive the discovery beacon frame.
In one embodiment, the first receiving module includes: a first receiving sub-module and a first selecting sub-module;
The first receiving submodule is configured to simultaneously receive indication information sent by a plurality of reference devices, where the indication information includes: a reference time point;
the first selecting submodule is used for selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
In one embodiment, the indication information includes: referencing an identification code of the device; the first selection submodule includes: a second selection sub-module;
the second selecting submodule is used for selecting the reference device with the largest identification code value as the target reference device; or, the reference device with the smallest identification code value is selected as the target reference device.
In one embodiment, the first receiving module includes: the second receiving sub-module and the first obtaining sub-module;
the second receiving sub-module is used for receiving a beacon frame sent by the target wireless Access Point (AP) equipment;
the first obtaining sub-module is configured to obtain a timing synchronization function value from the beacon frame received by the second receiving sub-module as the target reference time point.
In one embodiment, the first acquisition submodule includes: the second acquisition sub-module and the first processing sub-module;
the second obtaining sub-module is used for obtaining a timing synchronization function value from the beacon frame received by the second receiving sub-module;
the first processing sub-module is configured to add a preset processing value to the timing synchronization function value acquired by the second acquiring sub-module, so as to obtain the target reference time point.
In one embodiment, the first transmitting module includes: a first transmitting sub-module;
the first transmitting sub-module is configured to transmit a discovery beacon frame when it is detected that the value of the preset bit of the target reference time point is changed to a first preset value.
According to a fourth aspect of embodiments of the present disclosure, there is provided a network access apparatus, the apparatus being applied to a second device, the apparatus comprising:
the second receiving module is used for receiving a target reference time point sent by the target reference device;
the wake-up state entering module is used for entering a wake-up state when the target reference time point is detected to reach a second preset time point, so as to prepare to receive a discovery beacon frame sent by the first equipment at a first preset time point, wherein the second preset time point is later than the first preset time point;
And the joining module is used for applying to join the network corresponding to the first equipment for sending the discovery beacon frame after receiving the discovery beacon frame.
In one embodiment, the second receiving module includes: a third receiving sub-module and a third selecting sub-module;
the third receiving submodule is configured to simultaneously receive indication information sent by the multiple reference devices, where the indication information includes: a reference time point;
the third selecting submodule is used for selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
In one embodiment, the indication information includes: referencing an identification code of the device; the third selection submodule includes: a fourth selection sub-module;
the fourth selecting submodule is used for selecting the reference device with the largest identification code value as the target reference device; or, the reference device with the smallest identification code value is selected as the target reference device.
In one embodiment, the second receiving module includes: a third receiving sub-module and a third obtaining sub-module;
The third receiving sub-module is configured to receive a beacon frame sent by the AP device of the target wireless access point;
the third obtaining sub-module is configured to obtain a timing synchronization function value from the beacon frame received by the third receiving sub-module as the target reference time point.
In one embodiment, the third acquisition submodule includes: a fourth acquisition sub-module and a second processing sub-module;
the fourth obtaining sub-module is configured to obtain a timing synchronization function value from the beacon frame;
the second processing sub-module is configured to add a preset processing value to the timing synchronization function value acquired by the fourth acquiring sub-module, so as to obtain the target reference time point.
In one embodiment, the wake state entry module comprises: the wake-up state enters a sub-module;
the wake-up state entering submodule is used for entering the wake-up state when detecting that the value of the preset bit of the target reference time point is changed to a second preset value.
According to a fifth aspect of embodiments of the present disclosure, there is provided a network access apparatus, the apparatus being applied to a first device, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
Wherein the processor is configured to:
receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a first preset time point, a discovery beacon frame is sent; so that the second device wakes up at a second preset point in time, which is later than the first preset point in time, and is ready to receive the discovery beacon frame.
According to a sixth aspect of embodiments of the present disclosure, there is provided a network access apparatus, the apparatus being applied to a second device, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a second preset time point, entering an awake state to prepare to receive a discovery beacon frame sent by the first device at a first preset time point, wherein the second preset time point is later than the first preset time point;
and after receiving the discovery beacon frame, applying to join a network corresponding to the first device which transmits the discovery beacon frame.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of any of the first aspects.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of any of the first aspects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart of an illustrated network entry method according to an exemplary embodiment.
Fig. 2 is a flow chart of a network entry method according to a second exemplary embodiment.
Fig. 3 is a flow chart of a network entry method according to a third exemplary embodiment.
Fig. 4 is a flowchart of a network entry method according to a fourth exemplary embodiment.
Fig. 5 is a block diagram illustrating an access device according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a first receiving module in a network access device according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a first selection sub-module in an access device according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a first receiving module in a network access device according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating a first acquisition sub-module in a network access device according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating a first transmitting module in an access device according to an exemplary embodiment.
Fig. 11 is a block diagram illustrating an access device according to an exemplary embodiment.
Fig. 12 is a block diagram illustrating a second receiving module in a network access device according to an exemplary embodiment.
Fig. 13 is a block diagram illustrating a third selection sub-module in a network access device according to an exemplary embodiment.
Fig. 14 is a block diagram illustrating a second receiving module in a network access device according to an exemplary embodiment.
Fig. 15 is a block diagram illustrating a third acquisition sub-module in a network access device according to an exemplary embodiment.
Fig. 16 is a block diagram illustrating an awake state entry module in an access device, according to an example embodiment.
Fig. 17 is a block diagram illustrating a method for accessing a network device 80 according to an exemplary embodiment.
Fig. 18 is a block diagram illustrating a method for accessing a network device 90 according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a flowchart of an access method according to an exemplary embodiment, and as shown in fig. 1, the method is used in a first device, and includes the following steps S101-S102:
in step S101, a target reference time point transmitted by a target reference device is received.
In step S102, when the detection target reference time point reaches a first preset time point, a discovery beacon frame is transmitted; so that the second device wakes up at a second preset time point, which is later than the first preset time point, and prepares to receive the discovery beacon frame.
The target time point sent by the target reference device is used as third party time, so that the first equipment and the second equipment can agree on the receiving and transmitting time of the Discovery Beacon by taking the third party equipment as a reference, and the second equipment is guaranteed to finish the scheme of discovering network access with the lowest power consumption.
For example: the first device and the second device can be contracted to wake up and start sending the Discovery Beacon when the third-party time reaches a preset time point, and the second device can wake up to do a passive scan a little time before the third-party time reaches the preset time point so as to prepare to receive the Discovery Beacon sent by the first device, so that the first device can be prevented from needing keep active for a longer time to do a passive scan, and the power consumption of the first device is effectively reduced.
When the received target reference time point sent by the target reference device is 3:00, and when the first device and the second device can agree that the third party time reaches 5:00, the first device is awakened and starts to send Discovery beacons, and the second device can be awakened at 4:45 to do a passive scan in preparation for receiving the Discovery beacons sent by the first device. In an actual scene, when the second device detects that the target reference time point reaches 4:45, the second device is awakened to perform a passive scan so as to prepare to receive the Discovery Beacon sent by the first device, when the first device detects that the target reference time point reaches 5:00, the second device is awakened and starts to send the Discovery Beacon, and at the moment, the second device can scan the Discovery Beacon sent by the first device, so that the network access process is completed.
Of course, in the above embodiment, the first device and the second device may also be awakened at the same time, for example: the first device and the second device may agree that when the third party time reaches 5:00, the first device is awakened and starts to send the Discovery Beacon, and at the same time, the second device is awakened at 5:00 to make a passive scan to receive the Discovery Beacon sent by the first device. However, there may be a time difference between the process of waking up the first device and sending the Discovery Beacon and the process of waking up the second device and receiving the Discovery Beacon, so that the reliability of receiving the Discovery Beacon by the second device is low, that is, the second device may not receive the Discovery Beacon sent by the first device, but in practical application, the scheme may also be implemented.
The first device in this embodiment may be the master device described above, and the second device is the new device described above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: receiving a target reference time point sent by a target reference device, and sending a discovery beacon frame when the detection target reference time point reaches a first preset time point; so that the second device wakes up at a second preset time point, which is later than the first preset time point, and prepares to receive the discovery beacon frame. In the scheme, the target time point sent by the target reference device is used as the third party time, so that the first equipment and the second equipment can agree on the receiving and transmitting time of the discovery beacon frame by taking the third party time as a reference, and the scheme that the second equipment completes discovery and network access with the lowest power consumption is ensured.
In one embodiment, the step S101 includes the following sub-steps A1-A2:
in A1, indication information sent by a plurality of reference devices is received simultaneously, where the indication information includes: reference time points.
In A2, selecting a target reference device from a plurality of reference devices according to a preset condition; the reference time point included in the indication information transmitted by the target reference device is a target reference time point.
If multiple reference devices may exist near the first device, the first device may receive the indication information carrying the reference time point sent by each reference device, but the first device and the second device need to agree a commonly accepted target reference device from the reference devices, so that the purpose of accessing the network with low power consumption is achieved by using the reference time point carried in the indication information sent by the target reference device as the target reference time point.
In one implementation, the first device and the second device may select the target reference means according to the time at which the indication information is received. For example: the first equipment and the second equipment both select the reference device corresponding to the received first indication information as the target reference device, or the first equipment and the second equipment both select the reference device corresponding to the received last indication information as the target reference device.
However, the above-mentioned selecting the target reference device according to the receiving time may have a problem that the reference device corresponding to the first indication information received by the first device is different from the reference device corresponding to the first indication information received by the second device, so that the target reference time point owned by the first device is different from the target reference time point owned by the second device, which may also cause that the second device cannot receive the Discovery Beacon sent by the first device, or the second device keeps the wake-up time longer.
In order to improve the reliability of network access, the above indicated information may include: referencing an identification code of the device; at this time, the above A2 includes the following substeps:
selecting the reference device with the largest identification code value as a target reference device;
Or alternatively, the process may be performed,
and selecting the reference device with the smallest identification code value as the target reference device.
The identification code of the reference device can uniquely identify the reference device, so that the target reference devices selected by the first equipment and the second equipment from a plurality of reference devices are identical, and then the target reference time points owned by the first equipment and the second equipment are also identical, so that the second equipment can receive Discovery beacons sent by the first equipment, or the time for the second equipment to stay awake is reduced, and the power consumption of the second equipment is reduced.
For example, the identification code of the reference device may include a hardware Address (english) of the reference device.
A wireless access point (Wireless Access Point, abbreviated as wifi AP) is a common device, and an important role of a Beacon frame sent by the wireless access point is to issue a timing synchronization function (Timer Synchronization Function, abbreviated as TSF) value to a device on a network (english: device) periodically. Each device in the basic service area (Basic Service Set, abbreviated BSS) must hold a copy of the TSF value; the copy is an internal timer synchronized with the TSF values of all other workstations in the basic service area. The TSF operates at a 1MHz clock, jumping every microsecond (English: tick).
When the AP is ready to transmit a Beacon frame, the TSF value is copied to the Beacon frame's timestamp (64 bits) field. The device in connection with the AP will obtain the TSF value from the received Beacon frame, but will adjust slightly to account for the processing time of the antenna and transceiver. The device connected to the wifi AP maintains the internal TSF value, so that even if a Beacon frame is missed, the device can be roughly synchronous with the integral TSF value, and can be corrected by receiving the subsequent Beacon frame.
Since the Beacon frame sent by the AP carries the TSF value, the AP may be used as the target reference device in the present disclosure, and the step S101 includes the following substeps B1-B2:
in B1, a beacon frame transmitted by a target wireless access point AP device is received.
In B2, a timing synchronization function value is acquired from the beacon frame as a target reference point in time.
Most of the wifi aways use scenes such as markets, airports and other public places are basically provided with a large number of wifi APs, so that TSF values are relatively easy to obtain. The first device and the second device may agree to transmit and receive Discovery Beacon according to the TSF value for a precise time.
The first device may obtain the TSF value of the surrounding APs through wifi Beacon or Probe Response (english) frames on a 2.4/5G channel.
In one embodiment, since the first device or the second device has a certain delay for the beacon frame when receiving the beacon frame sent by the target AP device, the processing time of the antenna and the transceiver is included in the calculation, and at this time, the timing synchronization function value is obtained from the beacon frame as the target reference time point, which includes the following substeps C1-C2:
in C1, a timing synchronization function value is acquired from the beacon frame.
In C2, adding a preset processing value into the timing synchronization function value to obtain a target reference time point.
For example, the preset processing value may be obtained based on the processing time of the antenna and the transceiver.
In one embodiment, when the detection target reference time point reaches a first preset time point, a discovery beacon frame is transmitted, comprising the sub-steps of:
and when detecting that the value of the preset bit of the target reference time point is changed to a first preset value, transmitting a discovery beacon frame.
When the target reference time point is the TSF value or after the TSF value and the preset processing value, the first device transmits the discovery beacon frame when the value of the preset bit in the value is changed to the first preset value because the value is continuously changed.
For example: the first device transmits a discovery beacon frame when the lower 16bits of the TSF value is 0. Since the Time of discovery beacon frame transmission can be configured, for example, the Time of discovery beacon frame transmission needs to be 50 Time units (Time Unit, abbreviated as: TU; 1tu=1024 μs) or more and 200TU or less, and 2 16 64TU,2 17 128TU, so the first device may choose to send a discovery beacon frame when the lower 16bits is 0, or the lower 17bits is 0 in the corresponding scheme.
Fig. 2 is a flowchart of an access method according to an exemplary embodiment, and as shown in fig. 2, the method is used in a second device, and includes the following steps S201-S203:
in step S201, a target reference time point transmitted by a target reference device is received.
In step S202, when the detection target reference time point reaches a second preset time point, the wake-up state is entered to prepare for receiving a discovery beacon frame transmitted by the first device at the first preset time point, where the second preset time point is later than the first preset time point.
In step S203, after receiving the discovery beacon frame, it is applied to join a network corresponding to the first device that transmitted the discovery beacon frame.
The second device takes the target reference time point sent by the target reference device as the third party time in the same manner, and enters an awake state when the target reference time point reaches a second preset time point, so as to prepare to receive the discovery beacon frame sent by the first device at the first preset time point.
The implementation method of applying to join the network corresponding to the first device sending the discovery beacon frame after the second device receives the discovery beacon frame is the same as that in the related art, and is not repeated here.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: and receiving a target reference time point sent by a target reference device, entering an awake state when the detection target reference time point reaches a second preset time point so as to prepare to receive a discovery beacon frame sent by first equipment at the first preset time point, wherein the second preset time point is later than the first preset time point, and applying to join a network corresponding to the first equipment sending the discovery beacon frame after receiving the discovery beacon frame. In the scheme, the target time point sent by the target reference device is used as the third party time, so that the first equipment and the second equipment can agree on the receiving and transmitting time of the discovery beacon frame by taking the third party time as a reference, and the scheme that the second equipment completes discovery and network access with the lowest power consumption is ensured.
In one implementation, the above step S201 includes the following sub-steps D1-D2:
in D1, indication information sent by a plurality of reference devices is received simultaneously, where the indication information includes: reference time points.
In D2, selecting a target reference device from a plurality of reference devices according to a preset condition; the reference time point included in the indication information transmitted by the target reference device is a target reference time point.
The implementation manner of the steps D1-D2 is the same as the steps A1-A2 in the above embodiment, and will not be repeated here.
In one implementation, the indication information includes: referencing an identification code of the device; the step D2 includes the following sub-steps:
selecting the reference device with the largest identification code value as a target reference device;
or alternatively, the process may be performed,
and selecting the reference device with the smallest identification code value as the target reference device.
The implementation manner of this step is the same as that in the above embodiment, and will not be described here again.
In one implementation, the above step S201 includes the following sub-steps E1-E2:
in E1, a beacon frame sent by the target wireless access point AP device is received.
In E2, a timing synchronization function value is acquired from the beacon frame as a target reference point in time.
The implementation manner of the steps E1-E2 is the same as the steps B1-B2 in the above embodiment, and will not be repeated here.
In one embodiment, the acquisition of the timing synchronization function value from the beacon frame as the target reference point in time includes the following substeps F1-F2:
In F1, acquiring a timing synchronization function value from a beacon frame;
in F2, adding a preset processing value into the timing synchronization function value to obtain a target reference time point.
The implementation manner of the steps F1-F2 is the same as that of the steps C1-C2 in the above embodiment, and will not be repeated here.
In one embodiment, entering the awake state when the detection target reference time point reaches a second preset time point comprises the sub-steps of:
and when the change of the value of the preset bit of the target reference time point to the second preset value is detected, entering an awake state.
When the target reference time point is the TSF value or after the TSF value and the preset processing value, the second device wakes up when the value of the preset bit in the target reference time point is changed to the second preset value due to the continuous change of the value.
For example: the first device transmits a discovery beacon frame when the lower 16bits of the TSF value is 0, then the second device wakes up some time in advance to ensure that the discovery beacon frame of the first device is received when the lower 16bits of the TSF value is about to be 0.
Fig. 3 is a flowchart of an access method according to an exemplary embodiment, as shown in fig. 3, including the following steps S301-S307:
In step S301, the first device receives indication information sent by a plurality of reference devices at the same time, where the indication information includes: reference time point and identification code of reference device.
In step S302, the first device selects the reference device with the largest identification code value as the target reference device; the reference time point included in the indication information transmitted by the target reference device is a target reference time point.
In step S303, the second device receives indication information sent by the plurality of reference devices at the same time, where the indication information includes: reference time point and identification code of reference device.
In step S304, the second device selects the reference device with the largest identification code value as the target reference device; the reference time point included in the indication information transmitted by the target reference device is a target reference time point.
In step S305, when the second device detection target reference time point reaches the second preset time point, the awake state is entered.
In step S306, when the first device detection target reference time point reaches the first preset time point, a discovery beacon frame is transmitted.
In step S307, after the second device receives the discovery beacon frame sent by the first device, it applies to join the network corresponding to the first device that sends the discovery beacon frame.
Step S301 and step S302 may occur before step S303 and step S304, may occur after step S303 and step S304, or may occur simultaneously with step S303 and step S304.
Fig. 4 is a flowchart of an access method according to an exemplary embodiment, as shown in fig. 4, including the following steps S401-S407:
in step S401, the first device receives beacon frames sent by a plurality of wireless access point AP devices and a hardware Address MAC Address of the AP device at the same time.
In step S402, the first device selects an AP device with the largest MAC Address as a target AP device; the timing synchronization function value included in the beacon frame transmitted by the target AP device is the target reference point in time.
In step S403, the second device receives beacon frames transmitted by the AP devices and MAC addresses of the AP devices simultaneously.
In step S404, the second device selects the AP device with the largest MAC Address as the target AP device; the timing synchronization function value included in the beacon frame transmitted by the target AP device is the target reference point in time.
In step S405, when the second device detects that the value of the preset bit of the timing synchronization function value is changed to the second preset value, the second device enters a wake-up state.
In step S406, when the first device detects that the value of the preset bit of the timing synchronization function value is changed to the first preset value, a discovery beacon frame is transmitted.
In step S407, after the second device receives the discovery beacon frame sent by the first device, it applies to join the network corresponding to the first device that sends the discovery beacon frame.
Step S401 and step S402 may occur before step S403 and step S404, may occur after step S403 and step S404, or may occur simultaneously with step S403 and step S404.
The above scheme in the embodiment of the disclosure is applicable to a usage scenario where the first device and the second device are relatively close to each other, so that the acquired lists of the peripheral AP devices are the same.
If the devices are far away or in places without routing, if the devices of the two parties contain a GPS or modem module, the devices can agree to send and receive Discovery beacons by means of a third party time such as GPS or base station timing, and the processing mode is similar to TSF time of a WIFI AP Beacon, and the GPS or modem module is the target reference device.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure.
Fig. 5 is a block diagram of an access apparatus that may be implemented as part or all of a first device by software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 5, the network access device includes:
a first receiving module 11, configured to receive a target reference time point sent by a target reference device;
a first sending module 12, configured to send a discovery beacon frame when detecting that the target reference time point received by the first receiving module 11 reaches a first preset time point; so that the second device wakes up at a second preset point in time, which is later than the first preset point in time, and is ready to receive the discovery beacon frame.
In one embodiment, as shown in fig. 6, the first receiving module 11 includes: a first receiving sub-module 111 and a first selecting sub-module 112;
the first receiving sub-module 111 is configured to simultaneously receive indication information sent by a plurality of reference devices, where the indication information includes: a reference time point;
the first selecting sub-module 112 is configured to select a target reference device from the plurality of reference devices according to a preset condition; the reference time point included in the indication information sent by the target reference device is the target reference time point.
In one embodiment, the indication information includes: referencing an identification code of the device; as shown in fig. 7, the first selecting sub-module 112 includes: a second selection submodule 1121;
the second selecting submodule 1121 is configured to select the reference device with the largest identifier value as the target reference device; or, the reference device with the smallest identification code value is selected as the target reference device.
In one embodiment, as shown in fig. 8, the first receiving module 11 includes: a second receiving sub-module 113 and a first acquiring sub-module 114;
the second receiving sub-module 113 is configured to receive a beacon frame sent by the AP device of the target wireless access point;
the first obtaining sub-module 114 is configured to obtain a timing synchronization function value from the beacon frame received by the second receiving sub-module 113 as the target reference time point.
In one embodiment, as shown in fig. 9, the first obtaining sub-module 114 includes: a second acquisition submodule 1141 and a first processing submodule 1142;
the second obtaining sub-module 1141 is configured to obtain a timing synchronization function value from the beacon frame received by the second receiving sub-module;
The first processing sub-module 1142 is configured to add a preset processing value to the timing synchronization function value acquired by the second acquiring sub-module 1141, so as to obtain the target reference time point.
In one embodiment, as shown in fig. 10, the first transmitting module 12 includes: a first transmitting sub-module 121;
the first transmitting sub-module 121 is configured to transmit a discovery beacon frame when detecting that the value of the preset bit of the target reference time point is changed to a first preset value.
Fig. 11 is a block diagram of an access apparatus that may be implemented as part or all of a second device by software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 11, the network access device includes:
a second receiving module 21 for receiving a target reference time point transmitted by the target reference device;
a wake-up state entering module 22, configured to enter a wake-up state to prepare to receive a discovery beacon frame sent by the first device at a first preset time point when the target reference time point is detected to reach a second preset time point, where the second preset time point is later than the first preset time point;
and a joining module 23, configured to apply for joining a network corresponding to the first device that sends the discovery beacon frame after receiving the discovery beacon frame.
In one embodiment, as shown in fig. 12, the second receiving module 21 includes: a third receiving sub-module 211 and a third selecting sub-module 212;
the third receiving sub-module 211 is configured to simultaneously receive indication information sent by a plurality of reference devices, where the indication information includes: a reference time point;
the third selecting sub-module 212 is configured to select a target reference device from the plurality of reference devices according to a preset condition; the reference time point included in the indication information sent by the target reference device is the target reference time point.
In one embodiment, as shown in fig. 13, the indication information includes: referencing an identification code of the device; the third selection sub-module 212 includes: a fourth selection sub-module 2121;
the fourth selection submodule 2121 is configured to select the reference device with the largest identifier value as the target reference device; or, the reference device with the smallest identification code value is selected as the target reference device.
In one embodiment, as shown in fig. 14, the second receiving module 21 includes: a third receiving sub-module 213 and a third acquisition sub-module 214;
the third receiving sub-module 213 is configured to receive a beacon frame sent by the AP device;
The third obtaining sub-module 214 is configured to obtain a timing synchronization function value from the beacon frame received by the third receiving sub-module 213 as the target reference time point.
In one embodiment, as shown in fig. 15, the third obtaining sub-module 214 includes: a fourth acquisition sub-module 2141 and a second processing sub-module 2142;
the fourth obtaining submodule 2141 is configured to obtain a timing synchronization function value from the beacon frame;
the second processing sub-module 2142 is configured to add a preset processing value to the timing synchronization function value acquired by the fourth acquiring sub-module 2141, so as to obtain the target reference time point.
In one embodiment, as shown in fig. 16, the wake state entry module 22 includes: the wake state enters sub-module 221;
the wake-up state entry sub-module 221 is configured to enter a wake-up state when it is detected that the value of the preset bit at the target reference time point is changed to a second preset value.
The embodiment of the disclosure also provides a network access device, which is applied to the first equipment, and comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
Receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a first preset time point, a discovery beacon frame is sent; so that the second device wakes up at a second preset point in time, which is later than the first preset point in time, and is ready to receive the discovery beacon frame.
The processor may be further configured to:
the reference time point sent by the receiving target reference device includes:
simultaneously receiving indication information sent by a plurality of reference devices, wherein the indication information comprises the following components: a reference time point;
selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
The indication information comprises the following steps: referencing an identification code of the device; the selecting a target reference device from the plurality of reference devices according to a preset condition includes:
selecting the reference device with the largest identification code value as the target reference device;
or alternatively, the process may be performed,
and selecting the reference device with the smallest identification code value as the target reference device.
The receiving the target reference time point sent by the target reference device includes:
receiving a beacon frame sent by an AP device of a target wireless access point;
and acquiring a timing synchronization function value from the beacon frame as the target reference time point.
The obtaining the timing synchronization function value from the beacon frame as the target reference time point includes:
acquiring a timing synchronization function value from the beacon frame;
and adding a preset processing value into the timing synchronization function value to obtain the target reference time point.
When the target reference time point is detected to reach a first preset time point, sending a discovery beacon frame, including:
and when detecting that the value of the preset bit of the target reference time point is changed to a first preset value, transmitting a discovery beacon frame.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 17 is a block diagram illustrating an apparatus 80 for network entry, which is suitable for use with a first device, according to an exemplary embodiment. For example, the apparatus 80 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
The apparatus 80 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 80, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 80. Examples of such data include instructions for any application or method operating on the device 80, contact data, phonebook data, messages, pictures, video, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 80. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 80.
The multimedia component 808 includes a screen between the device 80 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 80 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 80 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 80. For example, the sensor assembly 814 may detect an on/off state of the device 80, a relative positioning of the components, such as a display and keypad of the device 80, the sensor assembly 814 may also detect a change in position of the device 80 or a component of the device 80, the presence or absence of user contact with the device 80, an orientation or acceleration/deceleration of the device 80, and a change in temperature of the device 80. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 80 and other devices in a wired or wireless manner. The device 80 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 80 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 80 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of apparatus 80, causes apparatus 80 to perform the above-described network access method, the method comprising:
receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a first preset time point, a discovery beacon frame is sent; so that the second device wakes up at a second preset point in time, which is later than the first preset point in time, and is ready to receive the discovery beacon frame.
The reference time point sent by the receiving target reference device includes:
simultaneously receiving indication information sent by a plurality of reference devices, wherein the indication information comprises the following components: a reference time point;
selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
The indication information comprises the following steps: referencing an identification code of the device; the selecting a target reference device from the plurality of reference devices according to a preset condition includes:
selecting the reference device with the largest identification code value as the target reference device;
Or alternatively, the process may be performed,
and selecting the reference device with the smallest identification code value as the target reference device.
The receiving the target reference time point sent by the target reference device includes:
receiving a beacon frame sent by an AP device of a target wireless access point;
and acquiring a timing synchronization function value from the beacon frame as the target reference time point.
The obtaining the timing synchronization function value from the beacon frame as the target reference time point includes:
acquiring a timing synchronization function value from the beacon frame;
and adding a preset processing value into the timing synchronization function value to obtain the target reference time point.
When the target reference time point is detected to reach a first preset time point, sending a discovery beacon frame, including:
and when detecting that the value of the preset bit of the target reference time point is changed to a first preset value, transmitting a discovery beacon frame.
The embodiment of the disclosure also provides a network access device, which is applied to the second equipment, and comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a target reference time point sent by a target reference device;
When the target reference time point is detected to reach a second preset time point, entering an awake state to prepare to receive a discovery beacon frame sent by the first device at a first preset time point, wherein the second preset time point is later than the first preset time point;
and after receiving the discovery beacon frame, applying to join a network corresponding to the first device which transmits the discovery beacon frame.
The processor may be further configured to:
the reference time point sent by the receiving target reference device includes:
simultaneously receiving indication information sent by a plurality of reference devices, wherein the indication information comprises the following components: a reference time point;
selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
The indication information comprises the following steps: referencing an identification code of the device; the selecting a target reference device from the plurality of reference devices according to a preset condition includes:
selecting the reference device with the largest identification code value as the target reference device;
or alternatively, the process may be performed,
and selecting the reference device with the smallest identification code value as the target reference device.
The receiving the target reference time point sent by the target reference device includes:
receiving a beacon frame sent by an AP device of a target wireless access point;
and acquiring a timing synchronization function value from the beacon frame as the target reference time point.
The obtaining the timing synchronization function value from the beacon frame as the target reference time point includes:
acquiring a timing synchronization function value from the beacon frame;
and adding a preset processing value into the timing synchronization function value to obtain the target reference time point.
And when the target reference time point is detected to reach a second preset time point, entering an awake state, wherein the method comprises the following steps:
and when the change of the value of the preset bit of the target reference time point to a second preset value is detected, entering an awake state.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 18 is a block diagram illustrating an apparatus 90 for network entry, which is suitable for use with a second device, according to an exemplary embodiment. For example, apparatus 90 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
The apparatus 90 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and a communication component 916.
The processing component 902 generally controls overall operation of the apparatus 90, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 902 can include one or more modules that facilitate interaction between the processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operations at the apparatus 90. Examples of such data include instructions for any application or method operating on device 90, contact data, phonebook data, messages, pictures, video, and the like. The memory 904 may be implemented by any type of volatile or nonvolatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 906 provides power to the various components of the device 90. Power supply components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 90.
The multimedia component 908 comprises a screen between the device 90 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 90 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a Microphone (MIC) configured to receive external audio signals when the device 90 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
The I/O interface 912 provides an interface between the processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 90. For example, the sensor assembly 914 may detect the open/closed state of the device 90, the relative positioning of the components, such as the display and keypad of the device 90, the sensor assembly 914 may also detect a change in position of the device 90 or a component of the device 90, the presence or absence of user contact with the device 90, the orientation or acceleration/deceleration of the device 90, and a change in temperature of the device 90. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communication between the apparatus 90 and other devices in a wired or wireless manner. The device 90 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 90 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory 904 including instructions executable by the processor 920 of the apparatus 90 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of apparatus 90, causes apparatus 90 to perform the above-described network access method, the method comprising:
receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a second preset time point, entering an awake state to prepare to receive a discovery beacon frame sent by the first device at a first preset time point, wherein the second preset time point is later than the first preset time point;
and after receiving the discovery beacon frame, applying to join a network corresponding to the first device which transmits the discovery beacon frame.
The reference time point sent by the receiving target reference device includes:
simultaneously receiving indication information sent by a plurality of reference devices, wherein the indication information comprises the following components: a reference time point;
selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
The indication information comprises the following steps: referencing an identification code of the device; the selecting a target reference device from the plurality of reference devices according to a preset condition includes:
Selecting the reference device with the largest identification code value as the target reference device;
or alternatively, the process may be performed,
and selecting the reference device with the smallest identification code value as the target reference device.
The receiving the target reference time point sent by the target reference device includes:
receiving a beacon frame sent by an AP device of a target wireless access point;
and acquiring a timing synchronization function value from the beacon frame as the target reference time point.
The obtaining the timing synchronization function value from the beacon frame as the target reference time point includes:
acquiring a timing synchronization function value from the beacon frame;
and adding a preset processing value into the timing synchronization function value to obtain the target reference time point.
And when the target reference time point is detected to reach a second preset time point, entering an awake state, wherein the method comprises the following steps:
and when the change of the value of the preset bit of the target reference time point to a second preset value is detected, entering an awake state.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (20)

1. A method of network access, the method being applied to a first device, the method comprising:
receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a first preset time point, a discovery beacon frame is sent; causing a second device to wake up at a second preset point in time, the second preset point in time being earlier than the first preset point in time, and to prepare to receive the discovery beacon frame;
the receiving the target reference time point sent by the target reference device includes:
receiving a beacon frame sent by an AP device of a target wireless access point;
acquiring a timing synchronization function value from the beacon frame;
and adding a preset processing value into the timing synchronization function value to obtain the target reference time point, wherein the preset processing value is obtained based on the processing time of the antenna and the transceiver.
2. The method of claim 1, wherein the receiving the target reference point in time transmitted by the target reference device comprises:
Simultaneously receiving indication information sent by a plurality of reference devices, wherein the indication information comprises the following components: a reference time point;
selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
3. The method according to claim 2, wherein the indication information includes: referencing an identification code of the device; the selecting a target reference device from the plurality of reference devices according to a preset condition includes:
selecting the reference device with the largest identification code value as the target reference device;
or alternatively, the process may be performed,
and selecting the reference device with the smallest identification code value as the target reference device.
4. The method of claim 1, wherein the transmitting a discovery beacon frame when the target reference time point is detected to reach a first preset time point comprises:
and when detecting that the value of the preset bit of the target reference time point is changed to a first preset value, transmitting a discovery beacon frame.
5. A method of network access, the method being applied to a second device, the method comprising:
Receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a second preset time point, entering an awake state to prepare to receive a discovery beacon frame sent by first equipment at a first preset time point, wherein the second preset time point is earlier than the first preset time point;
after receiving the discovery beacon frame, applying for joining a network corresponding to the first device which transmits the discovery beacon frame;
the receiving the target reference time point sent by the target reference device includes:
receiving a beacon frame sent by an AP device of a target wireless access point;
acquiring a timing synchronization function value from the beacon frame;
and adding a preset processing value into the timing synchronization function value to obtain the target reference time point, wherein the preset processing value is obtained based on the processing time of the antenna and the transceiver.
6. The method of claim 5, wherein the receiving the target reference point in time transmitted by the target reference device comprises:
simultaneously receiving indication information sent by a plurality of reference devices, wherein the indication information comprises the following components: a reference time point;
selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
7. The method according to claim 6, wherein the indication information includes: referencing an identification code of the device; the selecting a target reference device from the plurality of reference devices according to a preset condition includes:
selecting the reference device with the largest identification code value as the target reference device;
or alternatively, the process may be performed,
and selecting the reference device with the smallest identification code value as the target reference device.
8. The method of claim 5, wherein the entering the awake state when the target reference time point is detected to reach a second preset time point comprises:
and when the change of the value of the preset bit of the target reference time point to a second preset value is detected, entering an awake state.
9. A network access apparatus, the apparatus being applied to a first device, the apparatus comprising:
the first receiving module is used for receiving a target reference time point sent by the target reference device;
the first sending module is used for sending a discovery beacon frame when detecting that the target reference time point received by the first receiving module reaches a first preset time point; causing a second device to wake up at a second preset point in time, the second preset point in time being earlier than the first preset point in time, and to prepare to receive the discovery beacon frame;
The first receiving module includes:
a second receiving sub-module, configured to receive a beacon frame sent by an AP device of a target wireless access point;
the second acquisition sub-module is used for acquiring a timing synchronization function value from the beacon frame received by the second receiving sub-module;
the first processing sub-module is used for adding a preset processing value into the timing synchronization function value acquired by the second acquisition sub-module so as to obtain the target reference time point, and the preset processing value is acquired based on the processing time of the antenna and the transceiver.
10. The apparatus of claim 9, wherein the first receiving means comprises: a first receiving sub-module and a first selecting sub-module;
the first receiving submodule is configured to simultaneously receive indication information sent by a plurality of reference devices, where the indication information includes: a reference time point;
the first selecting submodule is used for selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
11. The apparatus of claim 10, wherein the indication information includes: referencing an identification code of the device; the first selection submodule includes: a second selection sub-module;
The second selecting submodule is used for selecting the reference device with the largest identification code value as the target reference device; or, the reference device with the smallest identification code value is selected as the target reference device.
12. The apparatus of claim 9, wherein the first transmitting module comprises: a first transmitting sub-module;
the first transmitting sub-module is configured to transmit a discovery beacon frame when it is detected that the value of the preset bit of the target reference time point is changed to a first preset value.
13. A network access apparatus, the apparatus being for use with a second device, the apparatus comprising:
the second receiving module is used for receiving a target reference time point sent by the target reference device;
the wake-up state entering module is used for entering a wake-up state when the target reference time point is detected to reach a second preset time point so as to prepare to receive a discovery beacon frame sent by first equipment at a first preset time point, wherein the second preset time point is earlier than the first preset time point;
the joining module is used for applying to join a network corresponding to the first equipment for sending the discovery beacon frame after receiving the discovery beacon frame;
The second receiving module includes:
a third receiving sub-module, configured to receive a beacon frame sent by the AP device of the target wireless access point;
a fourth obtaining sub-module, configured to obtain a timing synchronization function value from the beacon frame;
and the second processing sub-module is used for adding a preset processing value into the timing synchronization function value acquired by the fourth acquisition sub-module so as to acquire the target reference time point, wherein the preset processing value is acquired based on the processing time of the antenna and the transceiver.
14. The apparatus of claim 13, wherein the second receiving means comprises: a third receiving sub-module and a third selecting sub-module;
the third receiving submodule is configured to simultaneously receive indication information sent by the multiple reference devices, where the indication information includes: a reference time point;
the third selecting submodule is used for selecting a target reference device from the plurality of reference devices according to preset conditions; the reference time point included in the indication information sent by the target reference device is the target reference time point.
15. The apparatus of claim 14, wherein the indication information includes: referencing an identification code of the device; the third selection submodule includes: a fourth selection sub-module;
The fourth selecting submodule is used for selecting the reference device with the largest identification code value as the target reference device; or, the reference device with the smallest identification code value is selected as the target reference device.
16. The apparatus of claim 13, wherein the wake state entry module comprises: the wake-up state enters a sub-module;
the wake-up state entering submodule is used for entering the wake-up state when detecting that the value of the preset bit of the target reference time point is changed to a second preset value.
17. A network access apparatus, the apparatus being applied to a first device, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a first preset time point, a discovery beacon frame is sent; causing a second device to wake up at a second preset point in time, the second preset point in time being earlier than the first preset point in time, and to prepare to receive the discovery beacon frame;
the receiving the target reference time point sent by the target reference device includes:
Receiving a beacon frame sent by an AP device of a target wireless access point;
acquiring a timing synchronization function value from the beacon frame;
and adding a preset processing value into the timing synchronization function value to obtain the target reference time point, wherein the preset processing value is obtained based on the processing time of the antenna and the transceiver.
18. A network access apparatus, the apparatus being for use with a second device, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a target reference time point sent by a target reference device;
when the target reference time point is detected to reach a second preset time point, entering an awake state to prepare to receive a discovery beacon frame sent by first equipment at a first preset time point, wherein the second preset time point is earlier than the first preset time point;
after receiving the discovery beacon frame, applying for joining a network corresponding to the first device which transmits the discovery beacon frame;
the receiving the target reference time point sent by the target reference device includes:
receiving a beacon frame sent by an AP device of a target wireless access point;
Acquiring a timing synchronization function value from the beacon frame;
and adding a preset processing value into the timing synchronization function value to obtain the target reference time point, wherein the preset processing value is obtained based on the processing time of the antenna and the transceiver.
19. A computer readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 4.
20. A computer readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the steps of the method of any of claims 5 to 8.
CN201910996137.XA 2019-10-18 2019-10-18 Network access method and device Active CN112689319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910996137.XA CN112689319B (en) 2019-10-18 2019-10-18 Network access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910996137.XA CN112689319B (en) 2019-10-18 2019-10-18 Network access method and device

Publications (2)

Publication Number Publication Date
CN112689319A CN112689319A (en) 2021-04-20
CN112689319B true CN112689319B (en) 2023-08-29

Family

ID=75445542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910996137.XA Active CN112689319B (en) 2019-10-18 2019-10-18 Network access method and device

Country Status (1)

Country Link
CN (1) CN112689319B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108024319A (en) * 2016-11-04 2018-05-11 中兴通讯股份有限公司 The transmission method and device of a kind of control information
CN108377531A (en) * 2016-10-29 2018-08-07 华为技术有限公司 A kind of data communications method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9351250B2 (en) * 2013-01-31 2016-05-24 Qualcomm Incorporated Methods and apparatus for low power wake up signal and operations for WLAN
JP6598616B2 (en) * 2015-09-17 2019-10-30 キヤノン株式会社 Communication device, control method, and program
CN112055401A (en) * 2016-01-22 2020-12-08 华为技术有限公司 Method for negotiating target wake-up time, access point and site

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377531A (en) * 2016-10-29 2018-08-07 华为技术有限公司 A kind of data communications method and device
CN108024319A (en) * 2016-11-04 2018-05-11 中兴通讯股份有限公司 The transmission method and device of a kind of control information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
R1-141446 "Signal Design for D2D Discovery and Broadcast";Qualcomm Inc.;《3GPP tsg_ran\WG1_RL1》;20140322;全文 *

Also Published As

Publication number Publication date
CN112689319A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN109923904B (en) Channel monitoring method and device
US20230098973A1 (en) Direct link data transmission method and apparatus, and storage medium
US20210160779A1 (en) Wake-up method, wake-up apparatus, electronic device and computer-readable storage medium
CN108496395B (en) Paging synchronization indication method and device, paging synchronization method and device and base station
CN109121468B (en) Access method and device related to network slice
US11178637B2 (en) Paging message receiving method and device, and paging configuration method and device
CN109155972B (en) Wake-up method, wake-up apparatus, electronic device, and computer-readable storage medium
US20230292269A1 (en) Method and apparatus for determining offset indication, and method and apparatus for determining offset
US20220338195A1 (en) Method for indicating buffered downlink data, downlink data acquisition method and access point
US20240063980A1 (en) System information reception method and apparatus, and system information transmission method and apparatus
CN105578391B (en) Information processing method, device and system and terminal equipment
US20210352600A1 (en) Vehicle-to-everything synchronization method and device
CN109451799B (en) Time domain information indication method of public control resource set of residual key system information
US20230224771A1 (en) Method and apparatus for updating radio notification area
CN111800769A (en) Proximity-aware networking management method and apparatus
CN109644425B (en) Method and device for transmitting paging signaling
US11297626B2 (en) Information indication method and apparatus, base station and user equipment
US11218940B2 (en) Cell reselection method and device, and storage medium
WO2019227442A1 (en) Synchronization broadcast block configuration and parsing methods and devices, base station and user equipment
CN112689319B (en) Network access method and device
CN115336329B (en) Method, device, equipment and storage medium for transmitting and determining tracking area code
US20200059845A1 (en) Wireless communication method and apparatus
CN109565649B (en) Method and device for transmitting synchronization indication information
WO2021012194A1 (en) Paging method and apparatus, and travel route reporting method and apparatus
US20210410150A1 (en) Methods and apparatuses for self-interference processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant