CN116506921A - Data traffic sharing method and device, electronic equipment and computer medium - Google Patents

Data traffic sharing method and device, electronic equipment and computer medium Download PDF

Info

Publication number
CN116506921A
CN116506921A CN202210061255.3A CN202210061255A CN116506921A CN 116506921 A CN116506921 A CN 116506921A CN 202210061255 A CN202210061255 A CN 202210061255A CN 116506921 A CN116506921 A CN 116506921A
Authority
CN
China
Prior art keywords
electronic device
response signal
data traffic
sender
sharing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210061255.3A
Other languages
Chinese (zh)
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 CN202210061255.3A priority Critical patent/CN116506921A/en
Publication of CN116506921A publication Critical patent/CN116506921A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/026Services making use of location information using location based information parameters using orientation information, e.g. compass
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a data traffic sharing method, a device, an electronic device and a computer medium, wherein the data traffic sharing method applied to a first electronic device comprises the following steps: broadcasting a position detection signal in response to a sharing instruction for indicating the shared data traffic; receiving a response signal in response to the position detection signal; and if the sender of the response signal is determined to share the data traffic with the first electronic device according to the response signal, sending data connection information to the sender of the response signal, wherein the data connection information is used for connecting a sharing network provided by the first electronic device. Therefore, the user operation in the data traffic sharing process is reduced, and the data traffic sharing can be more conveniently carried out.

Description

Data traffic sharing method and device, electronic equipment and computer medium
Technical Field
The disclosure relates to the technical field of communication, and in particular relates to a data traffic sharing method, a device, electronic equipment and a computer medium.
Background
The mobile terminal can access the mobile communication network through a client identification module (Subscriber Identity Module, SIM); when the mobile communication network needs to be accessed, the mobile data flow must be applied to the operator server through the SIM card; for example, the mobile terminals that need to use the mobile data traffic apply for the mobile data traffic that needs to be used for one month to the operator server through their SIM cards, respectively.
For some mobile terminals, the mobile data traffic applied by the SIM card may run out in advance, and the mobile data traffic applied is too low; for other mobile terminals, the mobile data flow applied by the SIM card may not be used up, and there is excessive mobile data flow applied, resulting in data flow waste.
In the related art, a plurality of terminals can use mobile data traffic of one terminal through a data traffic sharing mode, so that data traffic waste is reduced.
However, when sharing data traffic, the user is required to set up the shared network and inform other users that the convenience of the user is poor.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a data traffic sharing method, a device, an electronic apparatus, and a computer medium.
According to a first aspect of an embodiment of the present disclosure, there is provided a data traffic sharing method, applied to a first electronic device, the method including:
broadcasting a position detection signal in response to a sharing instruction for indicating the shared data traffic;
receiving a response signal responsive to the position detection signal;
and if the sender of the response signal is determined to share the data traffic with the first electronic device according to the response signal, sending data connection information to the sender of the response signal, wherein the data connection information is used for connecting a sharing network provided by the first electronic device.
Optionally, the method further comprises:
determining the position information of the sender of the response signal according to the response signal;
and if the position information meets the preset position screening condition, determining that the sender of the response signal is to share data flow with the first electronic equipment.
Optionally, the location information includes a current azimuth angle of a sender of the response signal relative to the first electronic device, the location filtering condition includes a target angle range, and the method further includes:
if the current azimuth angle is in the target angle range, determining that the position information meets the position screening condition; and/or
The location information includes a current distance between a sender of the response signal and the first electronic device, the location screening condition includes a target distance range, and the method further includes:
and if the current distance is within the target distance range, determining that the position information meets the position screening condition.
Optionally, the location information of the sender of the response signal includes a movement track of the sender, the location filtering condition includes a preset track, and the method further includes:
And if the coincidence ratio of the moving track and the preset track exceeds a preset similarity threshold, determining that the position information meets the position screening condition.
Optionally, after providing the shared network, the method further comprises:
and stopping providing the shared network in response to receiving a termination message for instructing the first electronic device to stop providing the shared network.
According to a second aspect of an embodiment of the present disclosure, there is provided a data traffic sharing method applied to a second electronic device, the method including:
in response to receiving a detection signal broadcast by a first electronic device, sending a response signal to the first electronic device, wherein the response signal is used for enabling the first electronic device to determine the second electronic device to share data traffic;
if the data connection information sent by the first electronic equipment is received, connecting a shared network provided by the first electronic equipment according to the data connection information;
and if the connection of the shared network is stopped, sending a termination message to the first electronic equipment, wherein the termination message is used for stopping the first electronic equipment from providing the shared network.
According to a third aspect of embodiments of the present disclosure, there is provided a data traffic sharing apparatus, applied to a first electronic device, the apparatus including:
the first signal receiving and transmitting module is configured to respond to a sharing instruction for indicating the shared data traffic and broadcast a position detection signal;
the first signal transceiver module is further configured to receive a response signal responsive to the position detection signal;
and the data sharing module is configured to send data connection information to the sender of the response signal if the sender of the response signal is determined to share data traffic with the first electronic device according to the response signal, wherein the data connection information is used for connecting a sharing network provided by the first electronic device.
Optionally, the apparatus further comprises:
a first determining module configured to determine, according to the response signal, location information of a sender of the response signal;
and the second determining module is configured to determine that the sender of the response signal is to share data traffic with the first electronic device if the position information meets a preset position screening condition.
Optionally, the location information includes a current azimuth angle of a sender of the response signal relative to the first electronic device, the location filtering condition includes a target angle range, and the apparatus further includes:
And a third determining module configured to determine that the location information satisfies the location screening condition if the current azimuth angle is within the target angle range.
Optionally, the location information includes a current distance between a sender of the response signal and the first electronic device, the location filtering condition includes a target distance range, and the apparatus further includes:
and a fourth determining module configured to determine that the location information satisfies the location screening condition if the current distance is within the target distance range.
Optionally, the location information of the sender of the response signal includes a movement track of the sender, the location filtering condition includes a preset track, and the apparatus further includes:
and a fifth determining module configured to determine that the position information satisfies the position screening condition if the coincidence degree of the moving track and the preset track exceeds a preset similarity threshold.
Optionally, the apparatus further comprises:
and the termination module is configured to stop providing the shared network in response to the received termination message for instructing the first electronic device to stop providing the shared network after the first electronic device provides the shared network.
According to a fourth aspect of embodiments of the present disclosure, there is provided a data traffic sharing apparatus applied to a second electronic device, the apparatus including:
a second signal transceiver module configured to send a response signal to a first electronic device in response to receiving a detection signal broadcast by the first electronic device, where the response signal is used to enable the first electronic device to determine the second electronic device to share data traffic;
the data connection module is configured to connect a shared network provided by the first electronic equipment according to the data connection information if the data connection information sent by the first electronic equipment is received;
the second signal transceiver module is further configured to send a termination message to the first electronic device if it is determined to stop connecting to the shared network, the termination message being used to stop the first electronic device from providing the shared network.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method provided by the first aspect of the embodiments of the present disclosure.
According to a sixth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method provided by the second aspect of the embodiments of the present disclosure.
According to a seventh aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method provided by the first aspect of embodiments of the present disclosure.
According to an eighth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method provided by the second aspect of embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: the first electronic device may broadcast a location probe signal and receive a response signal to determine an object sharing data traffic and send data connection information to the object. Therefore, the operation of a user in the data traffic sharing process can be reduced, and the data traffic sharing can be more conveniently carried out.
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 illustrating a data traffic sharing method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a data traffic sharing method according to another exemplary embodiment.
Fig. 3 is a flow chart illustrating a data traffic sharing method according to yet another exemplary embodiment.
Fig. 4 is a schematic diagram of an application scenario illustrated according to an example embodiment.
Fig. 5 is a block diagram illustrating a data traffic sharing device according to an example embodiment.
Fig. 6 is a block diagram illustrating a data traffic sharing apparatus according to another exemplary embodiment.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Fig. 8 is a block diagram of an electronic device, according to another example 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.
First, possible application scenarios of the present disclosure are explained.
As described in the background art, a plurality of terminals can use mobile data traffic of one terminal in a data traffic sharing manner, so as to reduce data traffic waste.
For example, a user who wants to share data traffic may turn on a hotspot function on a terminal, so that the mobile phone can provide a shared network, and then, the user may inform other users of the name and the password of the shared network, so that the other users can access the shared network, thereby realizing sharing of the data traffic.
However, in the above process, the user needs to perform corresponding operations in each link to realize sharing of data traffic, so that the convenience of use of the user is poor.
Based on the above, the disclosure provides a data traffic sharing method, a device, an electronic device and a computer medium, so as to more conveniently realize sharing of data traffic.
Fig. 1 is a flowchart illustrating a data traffic sharing method according to an exemplary embodiment, where the method may be applied to a first electronic device. Referring to fig. 1, the method may include steps S101 to S103.
In step S101, a location detection signal is broadcast in response to a sharing instruction for indicating sharing data traffic.
For example, the user may send the sharing instruction to the first electronic device by clicking a corresponding touch button. Alternatively, in another possible implementation manner, the user may trigger the sharing instruction through a preset gesture.
After receiving the sharing instruction, the first electronic device may broadcast a probe signal.
In step S102, a response signal in response to the position detection signal is received.
It will be appreciated that the probe signal broadcast by the first electronic device may enable at least one other electronic device to receive the probe signal, and by receiving the response signal in response to the location probe signal, the sender of each response signal may be identified, so that the sender of the response signal to share data traffic with the first electronic device may be determined.
In step S103, if it is determined that the sender of the response signal is to share data traffic with the first electronic device according to the response signal, data connection information is sent to the sender of the response signal, where the data connection information is used to connect to the shared network provided by the first electronic device.
Therefore, after receiving the sharing instruction, the first electronic device can determine the electronic device (the sender of the response signal) sharing the data traffic by broadcasting the detection signal, and can send the data connection information to the electronic device, so that the electronic device can be connected to the sharing network provided by the first electronic device according to the data connection information, and the sharing of the data traffic is realized. Thus, the sharing of the data traffic can be realized more conveniently.
Fig. 2 is a flow chart illustrating a data traffic sharing method according to another exemplary embodiment. Referring to fig. 2, the method may be applied to a second electronic device, and the method may include steps S201 to S203.
In step S201, in response to receiving the probe signal broadcast by the first electronic device, a response signal is sent to the first electronic device, where the response signal is used to enable the first electronic device to determine the second electronic device to share the data traffic.
In step S202, if the data connection information sent by the first electronic device is received, the shared network provided by the first electronic device is connected according to the data connection information.
In step S203, if it is determined to stop connecting to the shared network, a termination message for stopping the first electronic device from providing the shared network is transmitted to the first electronic device.
Thus, the first electronic device can broadcast the position detection signal and receive the response signal, so as to determine the second electronic device sharing the data traffic, and send the data connection information to the second electronic device. Therefore, the operation of a user in the data traffic sharing process can be reduced, and the data traffic sharing can be more conveniently carried out.
Meanwhile, under the condition that the second electronic equipment determines to stop connecting the shared network, the second electronic equipment sends a termination message to the first electronic equipment, so that the first electronic equipment can stop providing the shared network when the second electronic equipment stops connecting the shared network, and unnecessary power consumption of the first electronic equipment is reduced.
Fig. 3 is a flow chart illustrating a data traffic sharing method according to yet another exemplary embodiment. Referring to fig. 3, the method may include steps S301 to S308.
In step S301, the first electronic device broadcasts a probe signal in response to the sharing instruction.
The probe signal broadcast by the first electronic device may enable at least one other electronic device to receive the probe signal, and the electronic device receiving the probe signal may send a response signal in response to the probe signal, so that the first electronic device may receive the response signal fed back by the at least one electronic device.
Taking a second electronic device to share data traffic with the first electronic device as an example in this example, the second electronic device may send a response signal to the first electronic device in response to the probe signal after receiving the probe signal (step S302).
In step S303, after receiving the response signal sent by at least one electronic device, the first electronic device determines, according to the response signal, location information of a sender of the response signal.
In step S304, if the location information meets a preset location screening condition, it is determined that the sender of the response signal is to share data traffic with the first electronic device.
For example, the first electronic device may be preset with location screening conditions. After determining the location information of the sender of at least one response signal, determining whether the location information of each sender meets the location screening condition according to the location screening condition, and if the location information meets the location screening condition, determining that the sender corresponding to the location information is to share data traffic with the first electronic device.
Therefore, when the data traffic is to be shared, the user can share the data traffic by placing the first electronic device and other devices to be shared according to the position screening condition, and the operation of the user is simplified.
For example, the first electronic device may communicate with the second electronic device via UWB (english: ultra Wide Band, chinese: ultra wideband).
In one possible implementation, the location information may include a current azimuth of a sender of the response signal (the second electronic device) relative to the first electronic device, the location screening condition may include a target angular range, and the method may further include: and if the current azimuth angle is in the target angle range, determining that the position information meets the position screening condition.
For example, the first electronic device may determine the current azimuth based on an AOA (Angle of Arrival, chinese) measurement method.
Fig. 4 is a schematic diagram of an application scenario illustrated according to an exemplary embodiment, and referring to fig. 4, the first electronic device 10 may determine a current azimuth α of the second electronic device 20 with respect to the first electronic device 10. In the case that the current azimuth angle α is within the target angle range, it may be determined that the second electronic device is to share data traffic with the first electronic device, and the first electronic device may send data connection information to the second electronic device.
In this way, the user can place the first electronic device and the second electronic device according to the target angle range, so that the second electronic device can be connected to the shared network provided by the first electronic device by itself.
In another possible implementation, the location information may include a current distance of a sender of the response signal (the second electronic device) from the first electronic device, the location filtering condition may include a target distance range, and the method may further include: and if the current distance is within the target distance range, determining that the position information meets the position screening condition.
For example, the first electronic device may determine a current spacing of the first electronic device from the second electronic device based on a time-of-flight ranging method. Referring to fig. 4, the current distance D may be a distance between geometric centers of the first electronic device 10 and the second electronic device 20. Of course, other reference points may be selected on the first electronic device and the second electronic device to determine the current distance, which is not described herein.
And under the condition that the current distance is within the target distance range, the second electronic device can be determined to share the data traffic with the first electronic device, and the first electronic device can send the data connection information to the second electronic device. In this way, the user can place the first electronic device and the second electronic device according to the target distance range, so that the second electronic device can be connected to the shared network provided by the first electronic device by itself.
Of course, the location may include a current azimuth and a current spacing to accurately determine a sender (second electronic device) to share data traffic with the first electronic device in the presence of multiple senders of response signals (second electronic devices).
In one possible implementation, the location information of the sender (the second electronic device) of the response signal may include a movement track of the sender, the location filtering condition may include a preset track, and the method may further include: if the coincidence degree of the moving track and the preset track exceeds the preset similarity threshold, determining that the position information meets the position screening condition.
For example, after receiving the sharing instruction, the first electronic device may continuously broadcast the detection signal, so that the current azimuth angle and the current distance of the second electronic device relative to the first electronic device may be monitored in real time through the response signal, so that the movement track of the second electronic device may be determined.
For example, the preset trajectory may be that the second electronic device moves around the first electronic device one round, or the preset trajectory may also reciprocate on a certain side of the first electronic device.
In the scheme, whether the second electronic device shares the data flow with the first electronic device is determined according to the movement track of the second electronic device, so that the situation that the second electronic device is connected to the sharing network by mistake due to the fact that the user places the second electronic device under the condition of blindness can be reduced.
In step S305, in the case where it is determined that the second electronic device is to share data traffic with the first electronic device, the first electronic device may send data connection information to the second electronic device, and the data connection information may be used to connect to a shared network provided by the first electronic device.
In step S306, the second electronic device may connect to the shared network provided by the first electronic device according to the data connection information.
Thus, sharing of data traffic can be realized conveniently.
In one possible implementation, the data connection information may include a name of the shared network and a password. Thus, the first electronic device can directly send the password of the shared network to the second electronic device, and the possibility of password leakage of the shared network can be reduced.
After the first electronic device provides the shared network, the second electronic device may send a termination message to the first electronic device in case it is determined to terminate the connection to the shared network, the termination message may be used to instruct the first electronic device to stop providing the shared network (step S307).
In step S308, the first electronic device may stop providing the shared network in response to the termination message.
Therefore, under the condition that the data traffic sharing requirement is not met, the first electronic equipment can stop providing the sharing network, and unnecessary power consumption of the first electronic equipment is reduced.
In a possible implementation manner, in a case where there are a plurality of second electronic devices to share data traffic with the first electronic device, the step S308 may include:
and stopping providing the shared network if the termination messages sent by all the second electronic devices to share the data traffic with the first electronic device are received. Thus, the situation that the second electronic equipment still needs to share the data traffic and the first electronic equipment stops providing the shared network can be reduced.
In another possible implementation manner, the first electronic device may have a device sharing list stored therein, and the response signal may include a device identification code of a sender of the response signal. If the device identification code is in the device sharing list, the sender of the response signal can be confirmed to share data traffic with the first electronic device. In one possible implementation, the user may update the device share list as needed.
Fig. 5 is a block diagram of a data traffic sharing apparatus 400 according to an exemplary embodiment, and referring to fig. 5, the apparatus 400 may be applied to a first electronic device, and the apparatus 400 may include a first signal transceiver module 401 and a data sharing module 402.
The first signal transceiver module 401 may be configured to broadcast a location probe signal in response to a sharing instruction for indicating a shared data traffic;
the first signal transceiver module 401 may be further configured to receive a response signal in response to the position detection signal;
the data sharing module 402 may be configured to send data connection information to the sender of the response signal, where the data connection information is used to connect to the shared network provided by the first electronic device, if it is determined that the sender of the response signal is to share data traffic with the first electronic device according to the response signal.
In this scheme, the first electronic device may broadcast the position detection signal, receive the response signal, determine an object sharing the data traffic, and send data connection information to the object. Therefore, the operation of a user in the data traffic sharing process can be reduced, and the data traffic sharing can be more conveniently carried out.
Illustratively, the apparatus 400 may further include: a first determining module configured to determine, based on the response signal, location information of a sender of the response signal; the second determining module is configured to determine that the sender of the response signal is to share the data traffic with the first electronic device if the location information meets a preset location screening condition.
Illustratively, the location information may include a current azimuth of a sender of the response signal relative to the first electronic device, the location screening condition may include a target angular range, and the apparatus 400 may further include: and the third determining module is configured to determine that the position information meets the position screening condition if the current azimuth angle is within the target angle range.
Illustratively, the location information may include a current distance of the sender of the response signal from the first electronic device, the location screening condition may include a target distance range, and the apparatus 400 may further include: and the fourth determining module is configured to determine that the position information meets the position screening condition if the current distance is within the target distance range.
Illustratively, the location information of the sender of the response signal may include a movement track of the sender, the location filtering condition may include a preset track, and the apparatus 400 may further include: and the fifth determining module is configured to determine that the position information meets the position screening condition if the coincidence degree of the moving track and the preset track exceeds a preset similarity threshold.
Illustratively, the apparatus 400 may further include: and the termination module is configured to stop providing the shared network in response to the received termination message for instructing the first electronic device to stop providing the shared network after the first electronic device provides the shared network.
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. 6 is a block diagram illustrating a data traffic sharing apparatus 500 according to another exemplary embodiment, the apparatus 500 may be applied to a second electronic device, and the apparatus 500 may include a second signal transceiver module 501 and a data connection module 502.
The second signal transceiver module 501 may be configured to send a response signal to the first electronic device in response to receiving the probe signal broadcast by the first electronic device, where the response signal is used to enable the first electronic device to determine a second electronic device to share data traffic;
the data connection module 502 may be configured to connect to a shared network provided by the first electronic device according to the data connection information if the data connection information sent by the first electronic device is received;
the second signal transceiver module 501 may be further configured to send a termination message to the first electronic device, if it is determined to stop connecting to the shared network, the termination message being used to stop the first electronic device from providing the shared network.
In this scheme, the first electronic device may broadcast the position detection signal and receive the response signal, so as to determine the second electronic device sharing the data traffic, and send the data connection information to the second electronic device. Therefore, the operation of a user in the data traffic sharing process can be reduced, and the data traffic sharing can be more conveniently carried out.
Meanwhile, under the condition that the second electronic equipment determines to stop connecting the shared network, the second electronic equipment sends a termination message to the first electronic equipment, so that the first electronic equipment can stop providing the shared network when the second electronic equipment stops connecting the shared network, and unnecessary power consumption of the first electronic equipment is reduced.
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.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the traffic data sharing method provided by the present disclosure.
Fig. 7 is a block diagram of an electronic device 600, according to an example embodiment. For example, the electronic device 600 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, and the like.
Referring to fig. 7, an electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the data traffic sharing method described above as being applied to the first electronic device. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 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 component 606 provides power to the various components of the electronic device 600. The power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen between the electronic device 600 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 608 includes a front camera and/or a rear camera. When the electronic device 600 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 600 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 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 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 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor assembly 614 may detect an on/off state of the electronic device 600, a relative positioning of the components, such as a display and keypad of the electronic device 600, the sensor assembly 614 may also detect a change in position of the electronic device 600 or a component of the electronic device 600, the presence or absence of a user's contact with the electronic device 600, an orientation or acceleration/deceleration of the electronic device 600, and a change in temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 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 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the electronic device 600 and other devices, either wired or wireless. The electronic device 600 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 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 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 electronic device 600 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 elements for performing the data traffic sharing method described above as being applied to the first electronic device.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of electronic device 600 to perform the data traffic sharing method described above as being applied to a first electronic device. 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.
In another exemplary embodiment, a computer program product is also provided, comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above described data traffic sharing method applied to a first electronic device when executed by the programmable apparatus.
Fig. 8 is a block diagram of an electronic device 700, according to an example embodiment. For example, the electronic device 700 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.
Referring to fig. 8, an electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the data traffic sharing method described above as being applied to the second electronic device. Further, the processing component 702 can include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 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 component 706 provides power to the various components of the electronic device 700. Power component 706 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 700.
The multimedia component 708 includes a screen between the electronic device 700 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 708 includes a front-facing camera and/or a rear-facing camera. When the electronic device 700 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 700 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 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 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 714 includes one or more sensors for providing status assessment of various aspects of the electronic device 700. For example, the sensor assembly 714 may detect an on/off state of the electronic device 700, a relative positioning of the components, such as a display and keypad of the electronic device 700, a change in position of the electronic device 700 or a component of the electronic device 700, the presence or absence of a user's contact with the electronic device 700, an orientation or acceleration/deceleration of the electronic device 700, and a change in temperature of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 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 714 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communication between the electronic device 700 and other devices, either wired or wireless. The electronic device 700 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 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 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 electronic device 700 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 elements for performing the data traffic sharing method described above as being applied to a second electronic device.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 704, comprising instructions executable by processor 720 of electronic device 700 to perform the data traffic sharing method described above as being applied to a second electronic device. 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.
In another exemplary embodiment, a computer program product is also provided, comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above described data traffic sharing method applied to a second electronic device when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. 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 (10)

1. The data traffic sharing method is characterized by being applied to a first electronic device, and comprises the following steps:
Broadcasting a position detection signal in response to a sharing instruction for indicating the shared data traffic;
receiving a response signal responsive to the position detection signal;
and if the sender of the response signal is determined to share the data traffic with the first electronic device according to the response signal, sending data connection information to the sender of the response signal, wherein the data connection information is used for connecting a sharing network provided by the first electronic device.
2. The method according to claim 1, wherein the method further comprises:
determining the position information of the sender of the response signal according to the response signal;
and if the position information meets the preset position screening condition, determining that the sender of the response signal is to share data flow with the first electronic equipment.
3. The method of claim 2, wherein the location information comprises a current azimuth of a sender of the response signal relative to the first electronic device, the location screening condition comprising a target angular range, the method further comprising:
if the current azimuth angle is in the target angle range, determining that the position information meets the position screening condition; and/or
The location information includes a current distance between a sender of the response signal and the first electronic device, the location screening condition includes a target distance range, and the method further includes:
and if the current distance is within the target distance range, determining that the position information meets the position screening condition.
4. The method of claim 2, wherein the location information of the sender of the response signal includes a movement track of the sender, the location screening condition includes a preset track, the method further comprising:
and if the coincidence ratio of the moving track and the preset track exceeds a preset similarity threshold, determining that the position information meets the position screening condition.
5. The method according to any one of claims 1 to 4, wherein after providing the shared network, the method further comprises:
and stopping providing the shared network in response to receiving a termination message for instructing the first electronic device to stop providing the shared network.
6. The data traffic sharing method is characterized by being applied to a second electronic device, and the method comprises the following steps:
In response to receiving a detection signal broadcast by a first electronic device, sending a response signal to the first electronic device, wherein the response signal is used for enabling the first electronic device to determine the second electronic device to share data traffic;
if the data connection information sent by the first electronic equipment is received, connecting a shared network provided by the first electronic equipment according to the data connection information;
and if the connection of the shared network is stopped, sending a termination message to the first electronic equipment, wherein the termination message is used for stopping the first electronic equipment from providing the shared network.
7. A data traffic sharing device, applied to a first electronic device, the device comprising:
the first signal receiving and transmitting module is configured to respond to a sharing instruction for indicating the shared data traffic and broadcast a position detection signal;
the first signal transceiver module is further configured to receive a response signal responsive to the position detection signal;
and the data sharing module is configured to send data connection information to the sender of the response signal if the sender of the response signal is determined to share data traffic with the first electronic device according to the response signal, wherein the data connection information is used for connecting a sharing network provided by the first electronic device.
8. A data traffic sharing device, applied to a second electronic device, the device comprising:
a second signal transceiver module configured to send a response signal to a first electronic device in response to receiving a detection signal broadcast by the first electronic device, where the response signal is used by the first electronic device to determine the second electronic device to share data traffic;
the data connection module is configured to connect a shared network provided by the first electronic equipment according to the data connection information if the data connection information sent by the first electronic equipment is received;
the second signal transceiver module is further configured to send a termination message to the first electronic device if it is determined to stop connecting to the shared network, the termination message being used to stop the first electronic device from providing the shared network.
9. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1 to 5 or the steps of the method of claim 6.
10. A non-transitory computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 5 or the steps of the method of claim 6.
CN202210061255.3A 2022-01-19 2022-01-19 Data traffic sharing method and device, electronic equipment and computer medium Pending CN116506921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210061255.3A CN116506921A (en) 2022-01-19 2022-01-19 Data traffic sharing method and device, electronic equipment and computer medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210061255.3A CN116506921A (en) 2022-01-19 2022-01-19 Data traffic sharing method and device, electronic equipment and computer medium

Publications (1)

Publication Number Publication Date
CN116506921A true CN116506921A (en) 2023-07-28

Family

ID=87327216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210061255.3A Pending CN116506921A (en) 2022-01-19 2022-01-19 Data traffic sharing method and device, electronic equipment and computer medium

Country Status (1)

Country Link
CN (1) CN116506921A (en)

Similar Documents

Publication Publication Date Title
US11895630B2 (en) Method and device for identifying downlink transmissions
CN106790043B (en) Method and device for sending message in live broadcast application
CN109600303B (en) Content sharing method and device and storage medium
CN107635074B (en) Method, apparatus and computer-readable storage medium for controlling alarm
US20220256497A1 (en) Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling
US11284398B2 (en) Communication link configuration method and device
CN111314211A (en) Message forwarding method and device
US20240063980A1 (en) System information reception method and apparatus, and system information transmission method and apparatus
CN110547029B (en) Information configuration and reporting method and device, base station and user equipment
CN106533907B (en) Information sending method and device
CN109417802B (en) Method and device for transmitting flight information
US20210410088A1 (en) Method and apparatus for broadcasting configuration information of synchronizing signal block, and method and apparatus for receiving configuration information of synchronizing signal block
CN111837411B (en) Information transmitting method, base station switching method, information receiving method and device
EP4149164A1 (en) Radio notification area updating method and radio notification area updating apparatus
US11956755B2 (en) Method and apparatus for transmitting paging signaling
CN109150901B (en) Information source prompting method and device, electronic equipment and storage medium
CN112954596B (en) Data sharing method, device, equipment and storage medium
CN110337823B (en) Information configuration method and device, service processing method and device and base station
CN113726905A (en) Data acquisition method, device and equipment based on home terminal equipment
CN116506921A (en) Data traffic sharing method and device, electronic equipment and computer medium
CN111601363A (en) Method, device and storage medium for assisting intelligent equipment to automatically access wireless network
CN106791200B (en) Information display method and device
CN113645695B (en) Method, device and storage medium for processing radio resource control link configuration signaling
CN111885561B (en) Wireless network connection, NFC information writing method, device and storage medium
CN107645505B (en) Information acquisition method, device and storage medium

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