Transfer method and device of signal stream, computer equipment and storage medium

By scanning and generating ultrasound authentication signals in the mobile terminal, automatic pairing and connection between the mobile terminal and electronic devices is achieved, solving the problem of cumbersome user operation during signal transfer and improving convenience and efficiency.

CN119012313APending Publication Date: 2024-11-22TOUCHAIR TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814004.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

When switching signal streams between mobile terminals and large-screen devices, existing technologies require users to log in to their accounts and reopen the interface on another device, which is inconvenient and may cause them to miss important information.

Method used

By scanning electronic devices within a preset range, an ultrasonic authentication signal is generated using Bluetooth signals to achieve automatic pairing and signal transfer between the mobile terminal and the target electronic device, including processing by the device scanning, signal request, device determination, and pairing and connection modules.

Benefits of technology

It improves the convenience of signal transfer between mobile terminals and electronic devices, reduces user operation steps, and avoids missing information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012313A_ABST
    Figure CN119012313A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a signal flow circulation method and device, computer equipment and a storage medium. The method comprises the following steps: scanning electronic equipment in a preset range to obtain a candidate equipment list; wherein the candidate device list comprises device identifiers of one or more candidate electronic devices; under the condition that the mobile terminal executes a preset circulation action, sending a Bluetooth broadcast signal to the electronic equipment represented by the equipment identifier in the candidate equipment list; wherein the Bluetooth broadcast signal is used for requesting a candidate electronic device to send an ultrasonic authentication signal for pairing and interconnection between devices; target electronic equipment is determined according to the received ultrasonic authentication signal; and transferring the signal flow of the mobile terminal to the target electronic equipment based on the ultrasonic authentication signal sent by the target electronic equipment. According to the technical scheme provided by the embodiment of the invention, the convenience of signal flow circulation between the mobile terminal and the electronic equipment can be improved to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of the Internet, and specifically to a signal flow transfer method, device, computer equipment, and storage medium. Background Art

[0002] When people enter a home environment or are in an office environment, they tend to transfer the image content on mobile devices such as mobile phones to large-screen devices, and transfer the sound content to Bluetooth speakers, so that they can have a more comfortable experience. However, sometimes users may use mobile terminals to watch when they are not around large-screen devices, and when users arrive near large-screen devices, they need to project the image in the mobile terminal to the large-screen device for viewing. Currently, when a user needs to switch between two devices, he needs to log in to the account on the other device and then reopen the interface, which may cause missing of some important things. Moreover, when the user needs to be in a short period of time, he needs to log in to the mobile terminal and reopen the interface, which brings great inconvenience to the user. Summary of the invention

[0003] In view of this, multiple embodiments of this specification are dedicated to providing a signal flow transfer method, apparatus, computer equipment, storage medium and computer program product to improve the convenience of signal flow transfer between mobile terminals and electronic devices to a certain extent.

[0004] An embodiment of the present specification proposes a signal flow transfer method, characterized in that the method is applied to a mobile terminal, and the method includes: scanning electronic devices within a preset range to obtain a candidate device list; wherein the candidate device list includes device identifications and signal strengths of one or more candidate electronic devices; when the mobile terminal executes a preset flow transfer action, sending a Bluetooth broadcast signal to the electronic device represented by the device identification in the candidate device list; wherein the Bluetooth broadcast signal is used to request the candidate electronic device to send an ultrasonic authentication signal for pairing and interconnection between devices; determining a target electronic device for the received ultrasonic authentication signal; wherein the target electronic device is an electronic device to be received by the mobile terminal signal flow transfer; wherein the signal flow is one or more of an audio signal, an image signal or a video signal; based on the ultrasonic authentication signal sent by the target electronic device, transferring the signal flow of the mobile terminal to the target electronic device.

[0005] The embodiment of the present specification proposes a signal flow transfer device, which is applied to a mobile terminal, and the signal flow transfer device includes: a device scanning module, which is used to scan electronic devices within a preset range to obtain a candidate device list; wherein the candidate device list includes the device identification and signal strength of one or more candidate electronic devices; a signal request module, which is used to send a Bluetooth broadcast signal to the electronic device represented by the device identification in the candidate device list when the mobile terminal executes a preset flow action; wherein the Bluetooth broadcast signal is used to request the candidate electronic device to send an ultrasonic authentication signal for pairing and interconnection between devices; a device determination module, which is used to determine the target electronic device based on the received ultrasonic authentication signal; wherein the target electronic device is the electronic device to receive the mobile terminal signal flow transfer; wherein the signal flow is one or more of an audio signal, an image signal or a video signal; a pairing connection module, which is used to transfer the signal flow of the mobile terminal to the target electronic device based on the ultrasonic authentication signal sent by the target electronic device.

[0006] An embodiment of the present specification provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method described in the above embodiment when executing the computer program.

[0007] The embodiments of this specification provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in the above embodiments is implemented.

[0008] The embodiments of this specification provide a computer program product, including computer instructions, and the computer instructions are used to enable a computer to execute the method described in the above embodiments.

[0009] The implementation method of this specification obtains a list of candidate devices by utilizing Bluetooth to scan Bluetooth signals emitted by other electronic devices, and can filter out electronic devices whose distance is greater than a preset distance based on the signal strength of the received Bluetooth signal, and then determine whether the mobile terminal has performed a preset transfer action. If the preset transfer action is performed, a Bluetooth broadcast signal can be sent to qualified electronic devices to notify the candidate electronic devices to send an ultrasonic authentication signal for pairing and interconnection between devices. Subsequently, the qualified electronic devices will send an ultrasonic authentication signal. The electronic device that receives the signal stream to be transferred is determined based on the received ultrasonic authentication signal, and then the signal stream of the mobile terminal is transferred to the target electronic device based on the ultrasonic authentication signal emitted by the electronic device, thereby improving the convenience of signal stream transfer between the mobile terminal and the electronic device to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1The figure is a flow chart of a signal flow transfer method provided by an embodiment.

[0011] Figure 2 The figure is a schematic flow chart of a signal flow transfer device provided in one embodiment.

[0012] Figure 3 Shown is a schematic diagram of a computer device provided by an embodiment. DETAILED DESCRIPTION

[0013] In order to enable those skilled in the art to better understand the solution of this specification, the technical solution in the implementation of this specification will be clearly and completely described below in conjunction with the drawings in the implementation of this specification. Obviously, the described implementation is only a part of the implementation of this specification, not all of the implementations. Based on the implementation in this specification, all other implementations obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0014] When people enter a home environment or are in an office environment, they tend to transfer the image content on mobile devices such as mobile phones to large-screen devices, and transfer the sound content to Bluetooth speakers, so that they can have a more comfortable experience. However, sometimes users may use mobile terminals to watch when they are not around large-screen devices, and when users arrive near large-screen devices, they need to project the image in the mobile terminal to the large-screen device for viewing. Currently, when a user needs to switch between two devices, he needs to log in to the account on the other device and then reopen the interface, which may cause missing of some important things. Moreover, when the user needs to be in a short period of time, he needs to log in to the mobile terminal and reopen the interface, which brings great inconvenience to the user.

[0015] For example, a user joins a video conference while outdoors. When he arrives at the office, he needs to use a large-screen device (such as a computer, TV, projector, etc.) to see the content of the interface more clearly. At this time, the user needs to open the conference software on the large-screen device and log in to reconnect to the conference. Alternatively, the user can also use normal screen projection, by connecting the mobile terminal and the large-screen device to the same WiFi, and then transferring the screen of the mobile terminal to the large-screen device by entering the projection code. The above two methods will bring great inconvenience to the user's conference operation.

[0016] Therefore, the embodiments of this specification propose a method for transferring signal streams to facilitate the transfer of signal streams between a mobile terminal and an electronic device to a certain extent.

[0017] See also Figure 1The embodiment of this specification provides a signal flow transfer method. The signal flow transfer method is applied to a mobile terminal, and the method may include the following steps.

[0018] Step S110: Scan electronic devices within a preset range to obtain a candidate device list; wherein the candidate device list includes device identifications and signal strengths of one or more candidate electronic devices.

[0019] In this embodiment, the mobile terminal may be a mobile phone, or a smart wearable device such as a smart watch or a smart ring. The electronic device may be a large screen device such as a computer, a smart TV, a smart projector, etc. The electronic device may also be a sound output device such as a Bluetooth speaker.

[0020] In this embodiment, scanning electronic devices within a preset range can be scanning Bluetooth signals emitted by other electronic devices within the target space range. Of course, scanning can also be performed using WiFi, RFID, etc., and the specific scanning method is not limited in this specification embodiment.

[0021] In this embodiment, the candidate device list is a large screen device or audio device scanned by the mobile terminal, etc. After scanning, the devices scanned by the mobile terminal can be viewed in the background, and the strength information of the signal received from the electronic device is displayed, so that the distance between the mobile terminal and the electronic device can be roughly estimated based on the strength information.

[0022] Step S120: When the mobile terminal executes the preset transfer action, request the electronic device represented by the device identifier in the candidate device list to send a Bluetooth broadcast signal; wherein the Bluetooth broadcast signal is used to notify the candidate electronic device to send an ultrasonic authentication signal for pairing and interconnection between devices.

[0023] In this embodiment, if a signal flow transfer operation is required, in addition to signal scanning, it is also necessary to determine whether the mobile terminal itself needs to perform a transfer operation. The preset transfer action can be determined by parameter information returned by a built-in sensor of the mobile terminal. The built-in sensor can be a gyroscope, an inertial measurement unit, an acceleration sensor, etc., through which data obtained by the user when the handheld mobile terminal is moving is obtained. For example, if the preset flow transfer is a mobile terminal from moving to lying flat, the data changes from moving to lying flat can be measured multiple times based on these sensors to determine whether the user has performed the preset transfer action.

[0024] In this embodiment, when an electronic device that can project the screen is scanned and the mobile terminal executes a preset transfer action, a Bluetooth broadcast signal can be requested to be sent to the electronic device to be transferred, wherein the Bluetooth broadcast signal includes an ultrasonic authentication signal for requesting the electronic device to send pairing and interconnection information.

[0025] In this embodiment, the ultrasonic authentication signal is an ultrasonic signal formed by the electronic device after compiling the pairing interconnection information. Then, the electronic device can broadcast the ultrasonic signal using a speaker so that the mobile terminal can receive the ultrasonic authentication signal. After the mobile terminal receives the ultrasonic authentication signal, the ultrasonic authentication signal can be parsed to obtain the pairing interconnection information with the electronic device. Then, the electronic device can be paired and connected based on the pairing interconnection information, so that the screen of the mobile terminal can be projected into the electronic device.

[0026] Step S130: determining a target electronic device for the received ultrasonic authentication signal; wherein the target electronic device is an electronic device to be transmitted by a mobile terminal signal stream to be received; wherein the signal stream is one or more of an audio signal, an image signal or a video signal.

[0027] In this embodiment, the ultrasonic authentication signal is an ultrasonic signal. First, an ultrasonic transmitting device (such as a speaker) inside the mobile terminal can be used to convert the electrical signal into an ultrasonic signal. Sometimes the generated ultrasonic signal needs to be modulated to meet specific application requirements. Modulation can be an adjustment of frequency, amplitude or phase, etc., in order to transmit or process more information. The generated and modulated ultrasonic signal is transmitted in the air. Then the smart device can receive the transmitted ultrasonic signal.

[0028] In this embodiment, the ultrasonic authentication signal is to convert the pairing interconnection information into an ultrasonic signal. First, the pairing interconnection information to be transmitted is digitized and embedded into the ultrasonic signal using modulation technology. Common digital modulation methods include pulse code modulation (PCM), pulse position modulation (PPM), orthogonal frequency division multiplexing (OFDM), etc. The terminal identification information is converted into a frequency change and embedded into the ultrasonic signal. Frequency modulation can be achieved by changing the frequency of the ultrasonic signal, such as frequency modulation keying (FSK) or frequency modulation (FM). The pairing interconnection information is converted into an amplitude change and embedded into the ultrasonic signal. Amplitude modulation can be achieved by changing the amplitude of the ultrasonic signal, such as amplitude modulation keying (ASK) or amplitude modulation (AM). The pairing interconnection information is converted into a phase change and embedded into the ultrasonic signal. Phase modulation can be achieved by changing the phase of the ultrasonic signal, such as phase modulation keying (PSK) or phase modulation (PM). Before modulation, some coding techniques are usually used to process the terminal identification information to enhance the reliability and anti-interference ability of the signal. Common coding techniques include error coding (such as convolutional codes and error correction codes) and data compression coding (such as Huffman coding and entropy coding).

[0029] In this embodiment, after receiving the ultrasonic authentication signal, it is possible to determine which electronic device needs to be connected based on the time when the ultrasonic authentication signal is received or the time it takes for the ultrasonic authentication signal to propagate in the air based on the ultrasonic authentication signal, and the electronic device to be received as the flow signal stream is determined as the target electronic device.

[0030] In this embodiment, the signal stream may be an audio signal, such as music information played by music software, text information read by novel software, etc. The signal stream may also be a picture signal, such as PPT information, Word documents, PDF documents, meeting information, etc. being played by a mobile phone. The signal stream may also be video information, such as a video being played by a mobile phone, etc.

[0031] Step S140: Based on the ultrasonic authentication signal sent by the target electronic device, the signal stream of the mobile terminal is transferred to the target electronic device.

[0032] In this embodiment, ultrasonic signal decoding is the process of restoring the signal transmitted by ultrasonic waves into useful information. This process involves multiple steps, including signal reception, preprocessing, feature extraction and decoding. Among them, the signal received by the speaker of the mobile terminal is usually an analog signal, which needs to be converted into a digital signal by an analog-to-digital converter (ADC). Before decoding, signal preprocessing is a very important step, mainly including: filtering: using filters to remove noise and interference and enhance the quality of the signal. Gain control: adjusting the gain of the signal to ensure that the signal is within the appropriate amplitude range. Synchronization and alignment: ensuring that the received signal is synchronized with the transmitted signal for accurate decoding. Feature extraction is to extract key features from the preprocessed signal, which are necessary for the decoding process. For example: Envelope detection: Envelope detection of the signal can extract the amplitude change of the signal. Pulse code modulation (PCM): If the signal is pulse code modulated, the corresponding pulse information can be extracted. Spectral analysis: Analyze the spectral characteristics of the signal through methods such as Fourier transform. Decoding is to convert the extracted features into meaningful information. This step depends on the encoding method of the ultrasonic signal. Common encoding methods include: Amplitude Shift Keying (ASK): Decodes binary information represented by amplitude changes. Frequency Shift Keying (FSK): Decodes binary information represented by frequency changes. Phase Shift Keying (PSK): Decodes binary information represented by phase changes.

[0033] In this embodiment, after the target electronic device is determined, the ultrasonic authentication signal sent by the target electronic device can be parsed to obtain pairing connection information (such as WiFi, WiFi password, authentication code, etc.), and then based on the pairing connection information, the mobile terminal can be connected to the electronic device, so that the signal stream of the mobile terminal can be transferred to the target electronic device.

[0034] In some implementations, scanning electronic devices within a preset range may include: using a Bluetooth module of the mobile terminal to scan Bluetooth signals emitted by electronic devices within the preset range.

[0035] In this embodiment, the Bluetooth scanning signal has the following advantages: Low power consumption: Bluetooth technology adopts a low power design, so the Bluetooth scanning signal has lower power consumption than other wireless communication technologies. Short-range communication: The principle of Bluetooth communication determines that its transmission distance is relatively short, generally about 10 meters. Such a short-range communication range helps to improve the security and privacy of data transmission. Wide range of device compatibility: Bluetooth technology has been widely used in various devices, such as mobile phones, tablets, audio devices, smart home devices, etc. This means that Bluetooth scanning signals can communicate and interact between various devices. Automatic connection: Bluetooth devices can achieve fast pairing and connection through the automatic connection function. Once a pairing relationship is established between devices, they can automatically identify and connect, providing a more convenient user experience. Multi-device connection: Bluetooth technology supports connecting multiple devices at the same time, which is very useful for applications that need to communicate with multiple devices at the same time in some scenarios. Broadcast mode: Bluetooth devices can send specific broadcast signals in broadcast mode, and other devices can discover and connect by scanning these broadcast signals. This method can easily realize the discovery and interaction between devices. Therefore, Bluetooth means can be used to scan whether there are large-screen devices (electronic devices) around that can be paired. It should be noted that Bluetooth can maintain a continuous scanning state, or it can start Bluetooth scanning after detecting that the user has performed a screen projection action. The implementation method of this specification does not limit the order of Bluetooth scanning.

[0036] In some embodiments, the signal flow transfer method may further include: screening out candidate electronic devices whose signal strength is greater than or equal to a preset strength in the candidate device list to obtain a target candidate electronic device list; wherein the target candidate electronic device list includes one or more device identifications of target electronic candidate devices; accordingly, in the step of requesting the electronic device represented by the device identification in the candidate device list to send a Bluetooth broadcast signal, the method includes: requesting the electronic device represented by the device identification in the target candidate electronic device list to send a Bluetooth broadcast signal; wherein the Bluetooth broadcast signal is used to notify the target candidate electronic device to send an ultrasonic authentication signal for pairing and interconnection between devices.

[0037] In this embodiment, the distance between the mobile terminal and the electronic device can also be preliminarily estimated based on the strength of the received Bluetooth signal. When the Bluetooth signal broadcast by other electronic devices is scanned to be less than a preset threshold, it can be considered that the distance between the electronic device and the mobile terminal is greater than the preset threshold, and there is no need to project the screen of the mobile terminal to these electronic devices, or there is no need to transfer the audio signal of the mobile terminal to these electronic devices, and there is no need to continue to interact with these electronic devices.

[0038] In this embodiment, the target candidate electronic device is an electronic device corresponding to the Bluetooth signal strength received by the mobile terminal being greater than a preset threshold. Specifically, for example, the preset threshold is set to -30dBm. When the received signal strength is greater than or equal to -30dBm, it means that the distance between the mobile terminal and the electronic device is within the estimated range; when the received signal strength is less than -30dBm, it means that the distance between the mobile terminal and the electronic device is outside the estimated range, and these electronic devices can be excluded as devices to be projected. The target candidate electronic device list is a collection of all target candidate electronic devices.

[0039] In this embodiment, the signal flow transfer method may also include: obtaining the signal strength of Bluetooth signals transmitted by different electronic devices scanned by the mobile terminal at a predetermined distance; and determining a preset strength according to the strength of the received Bluetooth signals corresponding to different electronic devices.

[0040] In this embodiment, since the strength of Bluetooth signals sent by different devices may be different, the strength of Bluetooth signals sent by different electronic devices at different distances can be measured, so that more appropriate data can be selected as the preset strength based on the measurement results.

[0041] In some embodiments, before the step of requesting the electronic device represented by the device identifier in the candidate device list to send a Bluetooth broadcast signal, the signal flow flow method may also include: obtaining spatial posture data fed back by the built-in inertial measurement unit of the mobile terminal; when the spatial posture data represents the process of the mobile terminal from moving to lying flat, sending a Bluetooth broadcast signal to the electronic device represented by the device identifier in the candidate device list.

[0042] In this embodiment, the seamless transfer of the screen requires the user to perform certain actions. When the user makes a preset action on the mobile phone, the seamless screen projection action can be started. If the screen of the mobile terminal is projected to the electronic device only when the mobile terminal is close to the smart device, this may not meet the user's expectations. Therefore, it is possible to detect whether the user has performed an action on the mobile terminal, and when the user has performed the action, start the subsequent screen projection operation.

[0043] In this embodiment, an inertial measurement unit (IMU) is an electronic device used to measure and report specific forces, angular velocities, and orientations of an object. IMUs typically include accelerometers, gyroscopes, and sometimes magnetometers, which provide six-axis or nine-axis motion data. IMUs can be composed of accelerometers, gyroscopes, and magnetometers, where accelerometers: measure linear acceleration, including gravitational acceleration; gyroscopes: measure angular velocity, that is, the rotation speed of an object around a certain axis; magnetometers (optional): measure the Earth's magnetic field to help determine the orientation of an object. IMUs infer the current state of an object, including position, velocity, and direction, by measuring acceleration and angular velocity. Accelerometers provide information about the forces on an object, gyroscopes provide information about the rotation of an object, and magnetometers can provide additional directional references. IMUs can provide motion data in real time, which is very important for rapid response and adjustment; they can provide multi-axis motion data simultaneously, which is suitable for complex motion analysis; modern IMUs are usually small in size and light in weight, and can be integrated into various small devices. Therefore, the parameter information of the IMU can be obtained to determine whether the user has performed the preset action from moving to laying flat. Only when the user holds the mobile terminal and performs the action from moving to laying flat, the Bluetooth broadcast signal for requesting the candidate electronic device to send an ultrasonic authentication signal for pairing and interconnection between devices is sent.

[0044] In some embodiments, determining the target electronic device for a received ultrasonic authentication signal may include: obtaining the transmission time of each of the ultrasonic authentication signals; calculating the transmission time of each ultrasonic authentication signal based on the reception time of each ultrasonic authentication signal by the mobile terminal and the transmission time of each of the ultrasonic authentication signals; and determining the candidate electronic device represented by the ultrasonic authentication signal corresponding to the shortest transmission time among the transmission times as the target electronic device.

[0045] In this embodiment, obtaining the emission time of each ultrasonic authentication signal can be that each electronic device compiles the emission time into a Bluetooth signal for transmission, and then the mobile terminal can receive the Bluetooth signal and parse it to obtain the signal sending time of the ultrasonic authentication signal. Then, in the case of receiving the ultrasonic authentication signal, the signal reception time of the ultrasonic authentication signal can be recorded. Then, the signal transmission time of the first unlock request signal can be calculated based on the signal reception time and the signal transmission time. The signal transmission distance of the first unlock request signal is calculated according to s=vt, where s is the distance between the mobile terminal and the electronic device, v is the speed of sound propagation in the air, and t is the signal transmission time of the ultrasonic authentication signal.

[0046] In this embodiment, the target electronic device is an electronic device that the mobile terminal determines can be used for screen projection. Since the propagation speed of ultrasonic signals in the air medium is the same, if the time of ultrasonic authentication signal emitted by an electronic device is shorter, it means that the distance between the electronic device and the mobile terminal is closest. At this time, the electronic device corresponding to the shortest signal transmission time can be determined as the target electronic device.

[0047] In some embodiments, the signal flow transfer method may further include: calculating the position distance between the mobile terminal and the electronic device corresponding to the shortest transmission time based on the shortest transmission time; when the position distance is less than a preset distance, determining the candidate electronic device represented by the ultrasonic authentication signal corresponding to the shortest transmission time as the target electronic device.

[0048] In this embodiment, in addition to considering the shortest signal transmission time, it is also necessary to calculate the distance between the mobile terminal and the electronic device corresponding to the shortest transmission time according to the shortest transmission time. If the distance is greater than the preset distance, it means that the distance between the mobile terminal and the electronic device is far, and it is not necessary to project the content displayed by the mobile terminal to the electronic device. If the distance is less than or equal to the preset threshold, it means that the distance between the mobile terminal and the electronic device is within the set range, and the electronic device can be determined as the target electronic device.

[0049] In some embodiments, based on the ultrasonic authentication signal sent by the target electronic device, transferring the signal stream of the mobile terminal to the target electronic device can include: parsing the ultrasonic authentication signal to obtain pairing interconnection information and device attribute information for establishing a connection with the target electronic device; wherein the pairing interconnection information includes the local area network information and an authentication code of the target electronic device; based on the local area network information, connecting the mobile terminal to the local area network represented by the local area network information; and transferring the signal stream corresponding to the mobile terminal and the device attribute information to the target electronic device according to the authentication code.

[0050] In this embodiment, after determining the target electronic device that needs to receive the flow, the signal flow of the mobile terminal needs to be transferred to the target electronic device. At this time, the mobile terminal and the target electronic device need to be connected to the same network environment. At this time, the ultrasonic authentication signal sent by the target electronic device can be parsed, and then the LAN information (including the LAN name and LAN password) can be parsed. At this time, the mobile terminal automatically connects to the LAN where the target electronic device is currently located and joins the LAN environment where the target electronic device is located based on the LAN password. Then, the authentication code can be sent to the target electronic device for verification operation, so that a data transmission channel is established between the mobile terminal and the target electronic device and a senseless flow operation is performed based on the wireless transmission protocol.

[0051] In a specific embodiment, for example, if the target electronic device is a screen projection device, the screen projection code can be sent to the screen projection device for verification operation, so that a data transmission channel is established between the mobile terminal and the target electronic device and a screen projection operation is performed based on a wireless screen projection protocol. In this embodiment, before preparing for screen projection or after screen projection, a screen projection window display interface can be provided on the screen of the mobile terminal, and the user determines the target shared window. Among them, the target shared window can also be an active frame, such as the interface of an application. The target shared window can also be a part selected from the screen of a smart device, so that part of the target shared window can be projected to the screen projection device. For example, the user chooses to open a video software and chooses to project the window displayed in the video software. In this way, even if the video software is placed in the background, the video being played by the video software can be played in the screen projection device.

[0052] In some embodiments, the signal flow transfer method may further include: scanning electronic devices within a preset range when it is detected that the screen of the mobile terminal is turned on, or when it is detected that a predetermined application in the mobile terminal is opened.

[0053] In this embodiment, in order to save the power consumption of the mobile terminal when scanning the surrounding electronic devices, thereby affecting the battery life of the mobile terminal, the scanning can be started when the screen of the mobile terminal is lit. Of course, the scanning can also be started when the user opens the predetermined application. In the case where the target electronic device is a smart large-screen device, the predetermined application can be video playback software, conference software, Office software, etc., or the scanning function of the mobile terminal is triggered only when the user is detected in the conference mode in the office software, thereby ensuring that the power consumption of the mobile terminal is further reduced during normal use of the method. In the case where the target electronic device is a Bluetooth speaker, the predetermined application can be a music playback software, a broadcasting platform, etc.

[0054] In some embodiments, the signal flow transfer method may also include: receiving an ultrasonic ranging signal sent by a target electronic device; wherein the ultrasonic ranging signal is sent at a preset time interval; determining the position distance between the mobile terminal and the target electronic device based on a second moment when the ultrasonic ranging signal is received and a first moment when the ultrasonic ranging signal is transmitted; when the position distance is greater than a preset distance, disconnecting the screen projection connection between the mobile terminal and the target electronic device.

[0055] In this embodiment, during the signal flow transfer of the mobile terminal, the target electronic device can send an ultrasonic ranging signal once at intervals, and transmit the first moment of sending the ultrasonic ranging signal to the mobile terminal via Bluetooth broadcast. After receiving the ultrasonic ranging signal, the mobile terminal can record the reception time of the ultrasonic ranging signal, that is, the second moment. Then, the signal transmission time of the ultrasonic ranging signal between the mobile terminal and the target electronic device can be calculated by subtracting the first moment from the second moment, and the position distance between the mobile terminal and the target electronic device is calculated based on the signal transmission time. When the position distance is greater than the preset threshold, it means that the user has moved the mobile terminal away from the target electronic device, and there is no need to continue to transfer the signal flow of the mobile terminal to the target electronic device. If the position distance is still less than or equal to the preset threshold, it means that the target electronic device is still around the target electronic device, then the mobile terminal can continue to be in the projection state.

[0056] In some embodiments, the electronic device includes at least two symmetrically arranged first speakers and second speakers, the first speaker sends a first ultrasonic authentication signal, and the second speaker sends a second ultrasonic authentication signal; based on the ultrasonic authentication signal sent by the target electronic device, the signal stream of the mobile terminal is transferred to the target electronic device, which may include: determining the target signal stream to be transferred according to the time when the first ultrasonic authentication signal and the second ultrasonic authentication signal are received; based on the first ultrasonic authentication signal / second ultrasonic authentication signal sent by the target electronic device, the target signal stream is transferred to the target electronic device.

[0057] In this embodiment, some electronic devices include two speakers, so it is possible to determine which side of the target electronic device is located based on the position of the speaker. Specifically, for example, the first speaker and the second speaker are located on the left and right sides of the target electronic device, respectively. If the mobile terminal first receives the ultrasonic authentication signal emitted by the first speaker, it means that the mobile terminal is located on the left side of the target electronic device, and the full screen of the mobile terminal can be displayed according to the pre-set settings. If the mobile terminal first receives the ultrasonic authentication signal emitted by the second speaker, it means that the mobile terminal is located on the right side of the target electronic device, and the mobile terminal can be displayed according to the pre-set settings. Part of the page of the mobile terminal, or the current active window. It should be noted that the specific display method can be displayed according to the user's pre-set settings. And the positions of the first speaker and the second speaker can be symmetrical left and right, or symmetrical up and down.

[0058] In this embodiment, if the first ultrasonic authentication signal is received first, the signal flow transfer method described in the above embodiment can be performed based on the first ultrasonic authentication signal; if the second ultrasonic authentication signal is received first, the signal flow transfer method described in the above embodiment can be performed based on the second ultrasonic authentication signal.

[0059] See also Figure 2 In some implementations, a signal flow transfer device may be provided, the signal flow transfer device is applied to a mobile terminal, and the signal flow transfer device may include: a device scanning module, a signal request module, a device determination module, and a pairing connection module.

[0060] The device scanning module is used to scan electronic devices within a preset range to obtain a candidate device list; wherein the candidate device list includes device identifications and signal strengths of one or more candidate electronic devices.

[0061] A signal request module is used to send a Bluetooth broadcast signal to the electronic device represented by the device identifier in the candidate device list when the mobile terminal executes a preset flow action; wherein the Bluetooth broadcast signal is used to request the candidate electronic device to send an ultrasonic authentication signal for pairing and interconnection between devices.

[0062] The device determination module is used to determine the target electronic device for the received ultrasonic authentication signal; wherein the target electronic device is the electronic device to which the mobile terminal signal stream is to be received; wherein the signal stream is one or more of an audio signal, an image signal or a video signal.

[0063] The pairing connection module is used to transfer the signal flow of the mobile terminal to the target electronic device based on the ultrasonic authentication signal sent by the target electronic device.

[0064] The specific functions and effects achieved by the signal flow transfer device can be explained in reference to other embodiments of this specification, and will not be repeated here. Each module in the signal flow transfer device can be implemented in whole or in part by software, hardware, and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0065] See also Figure 3 In some implementations, a computer device may be provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method steps in the implementation are implemented.

[0066] In some embodiments, a computer-readable storage medium may be provided, on which a computer program is stored. When the computer program is executed by a processor, the method steps in the embodiments are implemented.

[0067] In some embodiments, a computer program product may be provided, comprising computer instructions, wherein the computer instructions are used to cause a computer to execute the method steps in the embodiments.

[0068] Those of ordinary skill in the art can understand that all or part of the processes in the implementation method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the implementation methods of the methods described. Among them, any reference to memory, storage, database or other media used in the various implementations provided in this specification may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0069] It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0070] The descriptions of the various embodiments of this specification are made in a progressive manner. Different embodiments focus on describing the parts that are different from other embodiments. After reading this specification, a person skilled in the art can know that the various embodiments in this specification, as well as the various technical features disclosed in the embodiments, can be combined in more ways. To make the description concise, not all possible combinations of the various technical features in the embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0071] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0072] The multiple embodiments in this specification emphasize the parts that are different from other embodiments, and the various embodiments can be explained in comparison with each other. Any combination of the multiple embodiments in this specification by technicians in the relevant field based on general technical knowledge is included in the disclosure scope of this specification.

[0073] The above description is only an implementation method of this case and is not intended to limit the scope of protection of the claims of this case. For those skilled in the art, this case may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this case should be included in the scope of the claims of this case.

Claims

1. A signal flow transfer method, characterized in that: The method is applied to a mobile terminal, and the method comprises: Scanning electronic devices within a preset range to obtain a candidate device list; wherein the candidate device list includes device identifications and signal strengths of one or more candidate electronic devices; When the mobile terminal executes the preset transfer action, a Bluetooth broadcast signal is sent to the electronic device represented by the device identifier in the candidate device list; wherein the Bluetooth broadcast signal is used to request the candidate electronic device to send an ultrasonic authentication signal for pairing and interconnection between devices; Determine a target electronic device for the received ultrasonic authentication signal; wherein the target electronic device is an electronic device to be received by a mobile terminal signal stream; wherein the signal stream is one or more of an audio signal, an image signal or a video signal; Based on the ultrasonic authentication signal sent by the target electronic device, the signal stream of the mobile terminal is transferred to the target electronic device.

2. The method according to claim 1, characterized in that: Scan electronic devices within a preset range, including: The Bluetooth module of the mobile terminal is used to scan Bluetooth signals emitted by electronic devices within a preset range.

3. The method according to claim 2, characterized in that The method further comprises: Screening out candidate electronic devices whose signal strength is greater than or equal to a preset strength from the candidate device list to obtain a target candidate electronic device list; wherein the target candidate electronic device list includes device identifications of one or more target electronic candidate devices; Correspondingly, in the step of requesting an electronic device represented by a device identifier in the candidate device list to send a Bluetooth broadcast signal, the method includes: requesting an electronic device represented by a device identifier in the target candidate electronic device list to send a Bluetooth broadcast signal; wherein, the Bluetooth broadcast signal is used to notify the target candidate electronic device to send an ultrasonic authentication signal for pairing and interconnection between devices.

4. The method according to claim 3, characterized in that The method further comprises: Acquire the signal strength of Bluetooth signals transmitted by different electronic devices scanned by the mobile terminal at a predetermined distance; The preset strength is determined according to the strength of the received Bluetooth signals corresponding to different electronic devices.

5. The method according to claim 1, characterized in that Before the step of requesting the electronic device represented by the device identifier in the candidate device list to send a Bluetooth broadcast signal, the method further includes: Acquire spatial attitude data fed back by a built-in inertial measurement unit of the mobile terminal; In a case where the spatial posture data represents a process of the mobile terminal from moving to lying flat, a request is made to send a Bluetooth broadcast signal to the electronic device represented by the device identifier in the candidate device list.

6. The method according to claim 1, characterized in that Based on the received ultrasonic authentication signal, the target electronic device is determined, including: Obtaining the emission time of each of the ultrasonic authentication signals; Calculating the transmission time of each ultrasonic authentication signal based on the reception time of each ultrasonic authentication signal received by the mobile terminal and the transmission time of each ultrasonic authentication signal; The candidate electronic device represented by the ultrasonic authentication signal corresponding to the shortest transmission time among the transmission times is determined as the target electronic device.

7. The method according to claim 6, characterized in that The method further comprises: Calculating the location distance between the mobile terminal and the electronic device corresponding to the shortest transfer time according to the shortest transfer time; When the position distance is less than the preset distance, the candidate electronic device represented by the ultrasonic authentication signal corresponding to the shortest transmission time is determined as the target electronic device.

8. The method according to claim 1, characterized in that Based on the ultrasonic authentication signal sent by the target electronic device, transferring the signal stream of the mobile terminal to the target electronic device includes: Parsing the ultrasonic authentication signal to obtain pairing interconnection information and device attribute information for establishing a connection with the target electronic device; wherein the pairing interconnection information includes local area network information and an authentication code of the target electronic device; Based on the local area network information, connecting the mobile terminal to the local area network represented by the local area network information; The signal stream corresponding to the mobile terminal and the device attribute information is transferred to the target electronic device according to the authentication code.

9. The method according to claim 1, characterized in that: The method further comprises: When it is detected that the screen of the mobile terminal is turned on, or when it is detected that a predetermined application program in the mobile terminal is opened, electronic devices within a preset range are scanned.

10. The method according to claim 1, characterized in that The method further comprises: Receiving an ultrasonic ranging signal sent by a target electronic device; wherein the ultrasonic ranging signal is sent at a preset time interval; Determine the position distance between the mobile terminal and the target electronic device according to the second time when the ultrasonic ranging signal is received and the first time when the ultrasonic ranging signal is transmitted; When the location distance is greater than a preset distance, the signal stream is transferred back to the mobile terminal.

11. The method according to claim 1, characterized in that: The electronic device comprises at least two symmetrically arranged first speakers and second speakers, the first speaker sends a first ultrasonic authentication signal, and the second speaker sends a second ultrasonic authentication signal; Based on the ultrasonic authentication signal sent by the target electronic device, transferring the signal stream of the mobile terminal to the target electronic device includes: Determine a target signal stream to be transferred according to the time when the first ultrasonic authentication signal and the second ultrasonic authentication signal are received; Based on the first ultrasonic authentication signal / the second ultrasonic authentication signal sent by the target electronic device, the target signal stream is transferred to the target electronic device.

12. A signal flow transfer device, characterized in that: The signal flow transfer device is applied to a mobile terminal, and the signal flow transfer device includes: A device scanning module, used to scan electronic devices within a preset range to obtain a candidate device list; wherein the candidate device list includes device identifications and signal strengths of one or more candidate electronic devices; A signal request module, configured to send a Bluetooth broadcast signal to an electronic device represented by a device identifier in the candidate device list when the mobile terminal executes a preset flow action; wherein the Bluetooth broadcast signal is used to request the candidate electronic device to send an ultrasonic authentication signal for pairing and interconnection between devices; A device determination module, used to determine a target electronic device for the received ultrasonic authentication signal; wherein the target electronic device is an electronic device to be received by a mobile terminal signal stream; wherein the signal stream is one or more of an audio signal, an image signal or a video signal; The pairing connection module is used to transfer the signal flow of the mobile terminal to the target electronic device based on the ultrasonic authentication signal sent by the target electronic device.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 11 is implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

15. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method according to any one of claims 1 to 11.