Equipment connection method and electronic equipment

By identifying the supported short-range communication technology by broadcast messages from the receiving device, and selecting Bluetooth or star flash technology for pairing connections according to the support situation, the problem of difficult to quickly identify and choose the most suitable connection method in the prior art is solved, and power consumption reduction and user experience improvement are achieved.

CN119545573APending Publication Date: 2025-02-28HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311155905.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-08-29
Filing Date
2023-09-07
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the context of the development of IoT technology, it is difficult for the prior art to quickly identify the short-distance communication technology supported by multiple electronic devices and choose the most suitable connection method, resulting in increased power consumption and reduced user experience.

Method used

By receiving broadcast messages from the device, identify the short-range communication technology supported by the device, and select the most suitable connection method for pairing and connection based on the supported technology and its own capabilities. The specific method includes determining whether the device supports other short-range communication technologies after receiving a broadcast message from another device, and selecting Bluetooth or star flash technology for pairing connections based on the support situation.

Benefits of technology

It realizes the short-distance communication technology supported by the device quickly, reduces the power consumption of electronic devices, and improves the user experience, and better adapts to the current scenario through intelligent selection of connection methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention provides an equipment connection method and electronic equipment. In the method, a field indicating whether the equipment supports another technology is carried in one broadcast, so that the equipment can identify various short-distance communication technologies supported by opposite-end equipment only by turning on a switch of one short-distance communication technology, and the power consumption of the electronic equipment is reduced. And moreover, the user does not need to independently search the short-distance communication technology supported by the equipment, so that the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the China Patent Office on August 29, 2023, with application number 202311103355.9 and application name “A device connection method and electronic device”, the entire contents of which are incorporated by reference in this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a device connection method and an electronic device. Background Art

[0003] In recent years, with the continuous development of Internet of Things technology, traditional short-range communication technologies, such as Bluetooth (BT), can no longer meet more application scenarios and needs. At the same time, the new short-range communication technology of Star Flash, which is used to provide short-range communication system performance, has emerged. However, when multiple electronic devices support multiple short-range communication technologies at the same time, there is no relevant solution for how to quickly identify the connection methods supported by other electronic devices and choose which connection method is more suitable for the current scenario. Summary of the invention

[0004] The present application provides a device connection method and an electronic device, which are used to quickly identify the short-range communication technology supported by the device and reduce the power consumption of the electronic device.

[0005] In a first aspect, the present application provides a device connection method, the method comprising: a first device receives a first broadcast message from a second device, the first broadcast message being a broadcast message corresponding to a first short-range communication technology supported by the second device, the first broadcast message carrying first indication information, the first indication information being used to indicate whether the second device supports the second short-range communication technology; when the first indication information indicates that the second device supports the second short-range communication technology, and the first device itself supports the second short-range technology, the first device pairs and connects with the second device through a connection method corresponding to the second short-range communication technology.

[0006] Through the above technical solution, the first device can identify other short-range communication technologies supported by the second device based on the broadcast message of a short-range communication technology supported by the second device. In this way, the short-range communication technology supported by the second device can be quickly identified without turning on the switches of multiple short-range communication technologies, thereby reducing the power consumption of electronic devices.

[0007] In a possible implementation, this application takes two short-distance communication technologies as examples and can be divided into two cases:

[0008] Case 1: The first short-distance communication technology is Bluetooth technology, and the second short-distance communication technology is Star Flash technology

[0009] When the first indication information indicates that the second device does not support StarFlash technology, pairing and connecting with the second device is performed through the connection method corresponding to Bluetooth technology; or when the first indication information indicates that the second device supports StarFlash technology, and the first device itself does not support StarFlash technology, pairing and connecting with the second device is performed through the connection method corresponding to Bluetooth technology.

[0010] That is to say, when at least one of the first device and the second device does not support the Star Flash technology, pairing and connection can be performed via Bluetooth.

[0011] The second case: the first short-distance communication technology is Star Flash technology, and the second short-distance communication technology is Bluetooth technology

[0012] When the first indication information indicates that the second device does not support Bluetooth technology, pairing and connecting with the second device is performed through the connection method corresponding to the Star Flash technology; or when the first indication information indicates that the second device supports the Bluetooth technology and the first device itself does not support Bluetooth technology, pairing and connecting with the second device is performed through the connection method corresponding to the Star Flash technology.

[0013] That is to say, when at least one of the first device and the second device does not support Bluetooth technology, pairing and connection can be performed through Star Flash.

[0014] In one possible implementation, when the first indication information indicates that the second device supports the second short-range communication technology, and the first device itself supports the second short-range technology, a connection mode corresponding to a communication technology is selected from the first short-range communication technology and the second short-range communication technology as the target connection mode according to the current scene information; then, the first device is paired and connected with the second device through the target connection mode.

[0015] Through the above technical solution, when the first device and the second device both support Bluetooth and StarFlash technology, they can further select a connection method corresponding to one of the Bluetooth technology and StarFlash technology for pairing and connection based on the current scene information. This can make the selected connection method more suitable for the current scene and improve the user experience.

[0016] In a possible implementation, the method further includes:

[0017] The first device displays a first interface, which includes identification information of the second device; in response to a user's triggering operation on the identification information of the second device, a second interface is displayed, which includes first prompt information, and the first prompt information is used to prompt the user that the second device supports a second short-range communication technology.

[0018] In a possible implementation, the second interface further includes a confirmation button; in response to the user's triggering operation on the confirmation button, the first device turns on the switch of the second short-range communication technology. Through the above technical solution, the user can understand whether the second device supports the second short-range communication technology according to the prompt information on the interface, and can trigger the button on the interface to turn on the switch of the second short-range communication technology, so that the first device and the second device are paired and connected.

[0019] In a second aspect, the present application also provides a device connection method, the method comprising:

[0020] After the first device establishes a physical connection with the second device, the first device receives a first message sent by the second device, where the first message carries second indication information, and the second indication information is used to indicate at least one short-range communication technology supported by the second device; when the at least one short-range communication technology supported by the second device indicated by the second indication information and the at least one short-range communication technology supported by the first device both include the first short-range communication technology and the second short-range communication technology, the first device is paired and connected with the second device through the connection method corresponding to the second short-range communication technology.

[0021] Through the above technical solution, the first device and the second device can interact with each other through hardware connection using the short-range communication technology supported by their own devices, so that the short-range communication technology supported by the devices can be identified without turning on Bluetooth and / or Star Flash switches, thereby reducing power consumption.

[0022] In a possible implementation, the first short-range communication technology is Bluetooth technology, and the second short-range communication technology is Star Flash technology.

[0023] When the second indication information indicates that the second device supports Starflash technology and Bluetooth technology, and the first device supports Starflash technology but does not support Bluetooth technology, the first device is paired and connected with the second device through the connection method corresponding to Starflash technology; or when the second indication information indicates that the second device supports Starflash technology and the Bluetooth technology, and the first device supports Bluetooth technology but does not support Starflash technology, the first device is paired and connected with the second device through the connection method corresponding to Bluetooth technology; or when the second indication information indicates that the second device supports Starflash technology and the first device supports Bluetooth technology and Starflash technology, the first device is paired and connected with the second device through the connection method corresponding to Starflash technology; or when the second indication information indicates that the second device supports Bluetooth technology and the first device supports Bluetooth technology and Starflash technology, the first device is paired and connected with the second device through the connection method corresponding to Bluetooth technology.

[0024] Through the above technical solution, when at least one of the two devices does not support Bluetooth technology, they are connected through Star Flash pairing; when at least one of the two devices does not support Star Flash technology, they are connected through Bluetooth pairing.

[0025] In a possible implementation, the method further includes:

[0026] The first device sends a second message to the second device, where the second message carries third indication information, and the third indication information is used to indicate at least one short-range communication technology supported by the first device.

[0027] In a possible implementation, the method further includes:

[0028] When the second indication information indicates that at least one short-range communication technology supported by the second device includes the second short-range communication technology, and the first device itself supports the second short-range technology, a connection mode corresponding to one communication technology is selected as the target connection mode from at least one short-range communication technology according to the current scene information; and paired connection is performed with the second device through the target connection mode.

[0029] Through the above technical solution, when the first device and the second device both support Bluetooth and StarFlash technology, they can further select a connection method corresponding to one of the Bluetooth technology and StarFlash technology for pairing and connection based on the current scene information. This can make the selected connection method more suitable for the current scene and improve the user experience.

[0030] In a possible implementation, the method further includes:

[0031] The first device displays a third interface, which includes a second prompt message and a connection button. The second prompt message is used to prompt the user that the connection will turn on the switch of the second short-range communication technology; in response to the user's triggering operation on the connection button, the switch of the second short-range communication technology is turned on.

[0032] Through the above technical solution, the user can choose to turn on the switch of the second short-range communication technology according to the prompt information, so that the first device and the second device can be paired and connected.

[0033] In a third aspect, the present application provides an electronic device, comprising a processor; a memory; and one or more computer programs; wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when called and executed by the processor, enable the electronic device to execute the above-mentioned first aspect and any possible design method of the first aspect; or the second aspect and any possible design method of the second aspect.

[0034] In a fourth aspect, the present application also provides an electronic device, which includes a module / unit for executing the first aspect or any possible design of the first aspect; or the second aspect and any possible design of the second aspect; these modules / units can be implemented by hardware, or the corresponding software can be implemented by hardware.

[0035] In a fifth aspect, the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the method of the first aspect and any possible design of the first aspect; or the method of the second aspect and any possible design of the second aspect.

[0036] In a sixth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes the first aspect of the embodiment of the present application and any possible design method of the first aspect; or the second aspect and any possible design method of the second aspect.

[0037] For each of the above-mentioned aspects from the third to the sixth aspects and the technical effects that may be achieved by each of the aspects, please refer to the above-mentioned description of the technical effects that can be achieved by various possible schemes in the first and second aspects, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1A A schematic diagram of an application scenario provided for an embodiment of the present application;

[0039] Figure 1B A schematic diagram of another application scenario provided for an embodiment of the present application;

[0040] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0041] Figure 3 A flow chart of a device connection method provided in an embodiment of the present application;

[0042] Figure 4 A schematic diagram of the structure of a Bluetooth broadcast is provided for an embodiment of the present application;

[0043] Figure 5A A user interface schematic diagram is provided for an embodiment of the present application;

[0044] Figure 5B A user interface schematic diagram is provided for an embodiment of the present application;

[0045] Figure 6 A flow chart of a device connection method is provided for an embodiment of the present application;

[0046] Figure 7 A schematic diagram of the structure of a star flash broadcast provided in an embodiment of the present application;

[0047] Fig. 8A A schematic diagram of a user interface provided in an embodiment of the present application;

[0048] Figure 8B A schematic diagram of a user interface provided in an embodiment of the present application;

[0049] Fig. 9 A flow chart of a device connection method provided in an embodiment of the present application;

[0050] Fig.10 A schematic diagram of device connections provided in an embodiment of the present application;

[0051] Fig.11 A schematic diagram of a user interface provided in an embodiment of the present application;

[0052] Fig.12 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the following embodiments of the present application.

[0054] For example, Figure 1A FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1A As shown, the application scenario may include an electronic device 10 and an electronic device 20. Among them, the electronic device 10 and the electronic device 20 both support at least one short-range communication technology. It should be understood that in the embodiment of the present application, the electronic device supporting Bluetooth and / or Star Flash technology is used as an example for introduction.

[0055] As a possible implementation method, the sending electronic device, such as electronic device 10, can carry a field in the Bluetooth broadcast indicating whether the electronic device supports StarFlash technology, so that the electronic device receiving the Bluetooth broadcast, such as electronic device 20, can determine whether the electronic device 10 supports StarFlash technology based on the Bluetooth broadcast.

[0056] As another possible implementation method, the sending electronic device, such as electronic device 10, can carry a field in the Star Flash broadcast to determine whether the electronic device supports Bluetooth technology. In this way, the electronic device receiving the Star Flash broadcast, such as electronic device 20, can determine whether the electronic device 10 supports Bluetooth technology based on the Star Flash broadcast.

[0057] In some embodiments, assuming that both the electronic device 10 and the electronic device 20 turn on the Bluetooth switch, the electronic device 10 can turn on the Bluetooth low energy (Bluetooth low energy, BLE) to scan the surrounding devices with Bluetooth turned on, such as receiving the Bluetooth broadcast 1 broadcast by the electronic device 20. Then, the electronic device 10 can determine whether the electronic device 20 supports the Sparklink technology based on the Bluetooth broadcast 1. When the electronic device 20 supports the Sparklink technology, if the electronic device 10 also supports the Sparklink technology, the electronic device 10 and the electronic device 20 can be paired and connected through Sparklink. Specifically, the pairing connection can be performed through the Sparklink low energy (SLE) in the Sparklink technology. If the electronic device 20 supports the Sparklink technology and the electronic device 10 does not support the Sparklink technology, the electronic device 10 and the electronic device 20 are paired and connected through Bluetooth. When the electronic device 20 does not support the Sparklink technology, the electronic device 10 and the electronic device 20 can be paired and connected through Bluetooth.

[0058] In other embodiments, it is assumed that both the electronic device 10 and the electronic device 20 turn on the Star Flash switch, for example, the electronic device 10 turns on the SLE to scan the surrounding devices. When the electronic device 10 receives the Star Flash broadcast 1 of the electronic device 20, it can be determined whether the electronic device 20 supports Bluetooth technology according to the Star Flash broadcast 1. When the electronic device 20 supports Bluetooth technology, if the electronic device 10 also supports Bluetooth technology, the electronic device 10 and the electronic device 20 can select Star Flash for pairing and connection. If the electronic device 20 supports Bluetooth technology and the electronic device 10 does not support Bluetooth technology, the electronic device 10 and the electronic device 20 are paired and connected through Star Flash. When the electronic device 20 does not support Bluetooth technology, the electronic device 10 and the electronic device 20 can be paired and connected through Star Flash.

[0059] It should be understood that Figure 1A The electronic device 10 and / or the electronic device 20 shown may be a mobile phone, a tablet computer, a wearable device (e.g., a watch, a bracelet, a smart helmet, smart glasses, etc.), a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the embodiments of the present application are not limited thereto. The electronic device 10 and / or the electronic device 20 involved in the embodiments of the present application may be a foldable electronic device, such as a foldable mobile phone, a foldable tablet computer, etc., and the present application is not limited thereto. Furthermore, exemplary embodiments of the electronic device 10 and / or the electronic device 20 include but are not limited to devices equipped with Or other electronic devices with operating systems.

[0060] Another example, such as Figure 1B FIG. 1 is a schematic diagram of another application scenario provided by an embodiment of the present application. Figure 1B As shown, the application scenario may include an electronic device 30 and an external device 40. The electronic device 30 may be a mobile phone, a tablet computer, a wearable device (e.g., a watch, a bracelet, a smart helmet, smart glasses, etc.), a vehicle-mounted device, an AR / VR device, a laptop computer, a UMPC, a netbook, a PDA, etc., which is not limited in the present embodiment of the application. The external device 40 may be a stylus, a leather keyboard, etc. It should be understood that Figure 1B The example above only takes a tablet computer and a stylus pen as examples, and this application is not limited to the above devices.

[0061] In some embodiments, an external device 40, such as a stylus, can exchange information for pairing and connection with an electronic device 30, such as a tablet computer, by means of wireless charging. Assuming that when the stylus is adsorbed onto the tablet computer, the stylus can send at least one short-range communication technology supported by the stylus to the tablet computer, so that the tablet computer can learn at least one short-range communication technology supported by the stylus. When at least one short-range communication technology supported by the stylus includes the Star Flash technology, and the tablet computer itself also supports the Star Flash technology, the tablet computer can pair and connect with the stylus through the connection method corresponding to the Star Flash technology. When at least one of the tablet device and the stylus does not support the Star Flash technology, they can be paired and connected via Bluetooth. Optionally, the tablet computer can also send the short-range communication technology supported by itself to the stylus, so that the stylus and the tablet computer can know each other's short-range communication technologies supported by each other.

[0062] It should be understood that the way of exchanging information between the electronic device 20 and the external device 40 is not limited to the charging method, but can also be through other methods such as near field communication technology (NFC) or universal serial bus (USB) connection, and this application is not limited to this.

[0063] It should be understood that Figure 1A and Figure 1B The pairing connection methods in the two application scenarios can be used separately or in combination, such as Figure 1A The electronic device 10 and the electronic device 20 in the embodiment can also be Figure 1B The pairing connection is performed in the manner described in the text, and this application does not limit this.

[0064] The following uses a mobile phone as an example to introduce the structure of an electronic device to which the embodiments of the present application are applicable. It should be understood that the electronic device can be Figure 1A The electronic device 10 or the electronic device 20 may also be Figure 1B The electronic device 30 in.

[0065] like Figure 2 As shown, the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0066] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. Among them, the controller can be the nerve center and command center of the mobile phone 100. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. The processor 110 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory can save instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.

[0067] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transmit data between the mobile phone 100 and peripheral devices. The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.

[0068] The wireless communication function of the mobile phone 100 can be realized by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0069] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the mobile phone 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0070] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), star flash technology, global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (IR), etc., which are applied to the mobile phone 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0071] In some embodiments, the antenna 1 of the mobile phone 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), the fifth generation (5G) mobile communication system, future communication systems such as the sixth generation (6G) system, BT, GNSS, WLAN, NFC, FM and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0072] The display screen 194 is used to display the display interface of the application, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. In an embodiment of the present application, the display screen 194 can be used to display prompt information, which can be used to prompt the user whether to turn on the star flash function or the Bluetooth function, etc.

[0073] The camera 193 is used to capture still images or videos. The camera 193 may include a front camera and a rear camera.

[0074] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, and software code of at least one application (such as iQiyi application, WeChat application, etc.). The data storage area can store data (such as images, videos, etc.) generated during the use of the mobile phone 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0075] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as pictures and videos are stored in the external memory card.

[0076] The mobile phone 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.

[0077] The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194. The gyroscope sensor 180B can be used to determine the motion posture of the mobile phone 100. In some embodiments, the angular velocity of the mobile phone 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B.

[0078] The gyroscope sensor 180B can be used to determine the motion posture of the mobile phone 100. In some embodiments, the angular velocity of the mobile phone 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shaking of the mobile phone 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the mobile phone 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0079] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the mobile phone 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation. The magnetic sensor 180D includes a Hall sensor. The mobile phone 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the mobile phone 100 is a flip phone, the mobile phone 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the automatic unlocking of the flip cover and other features are set. The acceleration sensor 180E can detect the magnitude of the acceleration of the mobile phone 100 in all directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and is applied to applications such as horizontal and vertical screen switching, pedometers, etc.

[0080] Distance sensor 180F is used to measure distance. Mobile phone 100 can measure distance by infrared or laser. In some embodiments, when shooting a scene, mobile phone 100 can use distance sensor 180F to measure distance to achieve fast focus. Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. Mobile phone 100 emits infrared light outward through the light emitting diode. Mobile phone 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near mobile phone 100. When insufficient reflected light is detected, mobile phone 100 can determine that there is no object near mobile phone 100. Mobile phone 100 can use proximity light sensor 180G to detect that the user holds the mobile phone 100 close to the ear to talk, so as to automatically turn off the screen to save power. Proximity light sensor 180G can also be used in leather case mode, pocket mode to automatically unlock and lock the screen.

[0081] The ambient light sensor 180L is used to sense the ambient light brightness. The mobile phone 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile phone 100 is in a pocket to prevent accidental touches. The fingerprint sensor 180H is used to collect fingerprints. The mobile phone 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.

[0082] The temperature sensor 180J is used to detect temperature. In some embodiments, the mobile phone 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile phone 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the mobile phone 100 heats the battery 142 to avoid abnormal shutdown of the mobile phone 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the mobile phone 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.

[0083] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the mobile phone 100, which is different from the position of the display screen 194. In an embodiment of the present application, the touch sensor 180K can detect the user's touch operation on the display screen, such as detecting the user's confirmation operation on the display interface to turn on the star flash switch, and then the mobile phone 100 can respond to the operation and turn on the star flash function of the mobile phone 100.

[0084] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals of vibrating bones of the human body. The bone conduction sensor 180M can also contact the human body's pulse to receive blood pressure beating signals.

[0085] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The mobile phone 100 can receive the button input and generate a key signal input related to the user settings and function control of the mobile phone 100. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the mobile phone 100.

[0086] Understandably, Figure 2 The components shown do not constitute a specific limitation on the mobile phone. The mobile phone may also include more or fewer components than those shown in the figure, or combine or separate some components, or arrange the components differently.

[0087] In addition, at least one of the following embodiments includes one or more, wherein more means greater than or equal to two. In addition, it should be understood that in the description of this application, the words "first", "second" and the like are only used for the purpose of distinguishing the description.

[0088] like Figure 3 As shown, it is a flow chart of a device connection method provided in an embodiment of the present application, see Figure 3 As shown, the method may include the following steps:

[0089] It should be understood that Figure 3 The illustrated embodiment is described by taking the example of only turning on the Bluetooth function before two electronic devices are paired and connected.

[0090] Step 301: The first device receives the Bluetooth broadcast of the second device.

[0091] For the convenience of description, in the embodiment of the present application, the two electronic devices may be respectively referred to as "first device" and "second device". The first device may be Figure 1A In the electronic device 10 shown in the scene, the second device can be Figure 1A The electronic device 20 in the illustrated scenario; or the first device may be Figure 1A In the electronic device 20 in the illustrated scenario, the second device may be Figure 1A The electronic device 10 in the illustrated scenario; or, the first device may be Figure 1B In the electronic device 30 shown in the scene, the second device may be Figure 1B The external device 40 in the illustrated scenario; or the first device may be Figure 1B In the illustrated scenario, the external device 40, the second device may be Figure 1B An external device 40 in the illustrated scenario.

[0092] In some embodiments, when the second device turns on the Bluetooth switch, it can perform Bluetooth broadcasting, and then the first device can receive the Bluetooth broadcasting of the second device. The Bluetooth broadcasting of the second device can carry first indication information, and the first indication information is used to indicate whether the second device supports the Star Flash function. As an example, the first indication information can be a field in the Bluetooth broadcasting. For example, Figure 4 As shown in FIG. 1 , a schematic diagram of the structure of a Bluetooth broadcast provided in an embodiment of the present application is provided. For example, a private universally unique identifier (UUID) identifier can be added to the existing Bluetooth broadcast, and the UUID identifier can be used to indicate whether the device supports the Star Flash technology. Specifically, Figure 4 A UUID is added to the AD data shown in , and the payload corresponding to the UUID can represent the Star Flash address of the second device.

[0093] Step 302: The first device determines whether the second device supports the Star Flash technology according to the Bluetooth broadcast of the second device. If the second device supports the Star Flash technology, continue to step 303; if the second device does not support the Star Flash technology, continue to step 305.

[0094] When the first device receives the Bluetooth broadcast of the second device, it can determine whether the second device supports the StarFlash technology based on the fields in the Bluetooth broadcast. In this way, it can identify whether the opposite device supports the StarFlash technology through the Bluetooth broadcast.

[0095] Step 303: The first device determines whether the device supports the Star Flash technology. If the first device supports the Star Flash technology, continue to execute step 304; if the first device does not support the Star Flash technology, execute step 305.

[0096] In some embodiments, if the first device determines that the second device supports the StarFlash technology based on the Bluetooth broadcast, it can then further determine whether its own device supports the StarFlash technology, thereby determining the pairing connection method between the first device and the second device.

[0097] It should be understood that the execution order of step 302 and step 303 is not limited in the embodiment of the present application. For example, step 303 may be executed first, and then step 302. In other words, the first device may first determine whether its own device supports the Star Flash technology, and then determine whether the second device supports the Star Flash technology. There is no specific limitation on this.

[0098] Step 304: The first device is connected to the second device through Star Flash pairing.

[0099] In some embodiments, when both the first device and the second device support Bluetooth technology and StarFlash technology, StarFlash technology may be preferentially selected for pairing and connection.

[0100] In other embodiments, when both the first device and the second device support Bluetooth technology and Starflash technology, the connection method can be further selected based on the current scene information. The current scene information may include device type, service type, channel status (own service status), etc. Exemplarily, assuming that the current first device and / or the second device has more than 7 links connected via Bluetooth, the Starflash connection method can be selected to pair the first device with the second device; assuming that there is currently a large amount of data service on the Starflash connection link, the Bluetooth connection method can be selected to pair the first device with the second device; assuming that the amount of service data to be transmitted after the devices are connected is large and a larger service bandwidth is required, the Starflash connection method can be selected to pair the first device with the second device.

[0101] The pairing connection process is introduced by taking the user interface as an example. Figure 5A As shown, assuming that the device identifier of the first device is: HUAWEI Mate 50pro, the device can display Figure 5AThe interface 500 shown is a Bluetooth search interface. The interface 500 may include an available device list 501, which is a list of device identifiers with Bluetooth function turned on that are searched by the first device. The user can select the second device in the device identifier list 501, for example, the user can select the device identifier "HUAWEI Mate 50" 502, and then the first device can respond to the user operation and display an interface 510, which may include prompt information 511, a "confirm" button 512, and a "cancel" button 513. Among them, the prompt information 511 may be a prompt information on whether the second device supports Star Flash, for example, the prompt information may be: HUAWEI Mate 50 supports Star Flash technology, and the connection will turn on Star Flash by default. The user can select the "confirm" button 512, and the first device can respond to the operation and turn on the Star Flash function of its own device. If the user selects the "cancel" button 513, the first device does not turn on the Star Flash function of its own device.

[0102] It should be understood that Figure 5A The interface shown is only an example. In actual applications, after the user selects the device ID that he wants to connect to, if the peer device supports Star Flash technology, he can also jump to the Star Flash interface. The user can click the device ID again in the Star Flash interface to connect to Star Flash, etc. This application does not make specific restrictions on this. Alternatively, in an embodiment of the present application, a prompt message indicating whether the device supports Star Flash technology can also be displayed on the Bluetooth search interface. For example, a text description "Support Star Flash Technology" can be added after the device ID, or an icon description can be added, so that the user can intuitively see whether the searched device supports Star Flash technology, etc. This application does not make specific restrictions on this.

[0103] Correspondingly, when the first device turns on the Star Flash function, it can be considered that the first device determines to connect with the second device through Star Flash pairing, and then the second device can receive the pairing connection request message sent by the first device. Figure 5B As shown, an interface 520 may be displayed on the second device, and the interface 520 may include a prompt message 521, an "Agree" button 522, and a "Reject" button 523. Among them, the prompt message 521 may be: HUAWEI Mate 50pro requests to be connected through Star Flash pairing. If agreed, Star Flash will be turned on by default. When the user selects the "Agree" button 522, the second device can turn on the Star Flash function and connect to the first device through Star Flash pairing. When the user selects the "Reject" button 523, the second device can refuse to connect to the first device through Star Flash pairing. It should be understood that when the peer device does not have a display screen, it may not be displayed. Figure 5B The prompt information shown is not limited in this application.

[0104] Step 305: The first device is connected to the second device via Bluetooth pairing.

[0105] If at least one of the first device and the second device does not support the Star Flash technology, the first device and the second device are connected via Bluetooth pairing. Figure 5A , assuming that the first device supports Star Flash technology and the second device does not support Star Flash technology, when the user selects the device identifier "HUAWEI Mate 50" 502, a prompt message may be displayed on the first device, for example, the prompt message may be: HUAWEI Mate50 does not support Star Flash technology.

[0106] Through the above embodiment, the first device only turns on the Bluetooth function and can identify whether the second device has StarFlash capability through Bluetooth broadcast. There is no need for the user to search and confirm whether the second device supports StarFlash capability. This can improve the efficiency of identifying device capabilities and enhance user experience.

[0107] like Figure 6 As shown, it is a flow chart of a device connection method provided in an embodiment of the present application, see Figure 6 As shown, the method may include the following steps:

[0108] It should be understood that Figure 6 The illustrated embodiment is introduced by taking the example of only turning on the Star Flash function before two electronic devices are paired and connected.

[0109] Step 601: The first device receives the star flash broadcast of the second device.

[0110] In some embodiments, when the second device turns on the star flash switch, it can perform star flash broadcasting, and then the first device can receive the star flash broadcasting of the second device. The star flash broadcasting of the second device can carry second indication information, and the second indication information is used to indicate whether the second device supports the Bluetooth function. As an example, the second indication information can be a field in the star flash broadcasting. For example, Figure 7 As shown in FIG. 1 , a schematic diagram of the structure of a star flash broadcast provided in an embodiment of the present application is provided. For example, a private UUID identifier can be added to the existing star flash broadcast, and the UUID identifier can be used to indicate whether the device supports Bluetooth technology. Specifically, Figure 7 The data content part shown in is added with UUID, for example, the payload corresponding to the UUID can represent the Bluetooth address of the second device.

[0111] Step 602: The first device determines whether the second device supports Bluetooth technology according to the star flash broadcast of the second device. If the second device supports Bluetooth technology, continue to step 603; if the second device does not support Bluetooth technology, continue to step 605.

[0112] When the first device receives the Star Flash broadcast from the second device, it can determine whether the second device supports Bluetooth technology based on the fields in the Star Flash broadcast. In this way, it can identify whether the opposite device supports Bluetooth technology through the Star Flash broadcast.

[0113] Exemplary References Fig. 8A As shown, assuming that the first device is: HUAWEI Mate 50pro, the Star Flash search interface of the first device can be found at Fig. 8A The interface 800 shown in the figure may include an available device list 801, which is a list of device identifiers with the star flash function turned on that are searched by the first device. The user can select the second device in the device identifier list 801, for example, the user can select the device identifier "HUAWEI Mate 50" 802, and the first device can respond to the user operation and display the interface 810. Among them, the interface 810 may include prompt information 811, a "confirm" button 812, and a "cancel" button 813. Among them, the prompt information 811 may include prompt information on whether the second device supports Bluetooth, for example, the prompt information may be: HUAWEI Mate 50 supports Bluetooth technology, and the connection will turn on Bluetooth by default. The user can select the "confirm" button 812, and the first device can respond to the operation and turn on the Bluetooth function of its own device. If the user selects the "cancel" button 813, the first device does not turn on the Bluetooth function of its own device.

[0114] It should be understood that Fig. 8A The interface shown is only an example. In actual applications, after the user selects the device ID that he wants to connect to, if the peer device supports Bluetooth technology, he can also jump to the Bluetooth interface. The user can click the device ID again in the Bluetooth interface to connect via Bluetooth, etc. This application does not make specific restrictions on this. Alternatively, in an embodiment of this application, a prompt message indicating whether the device supports Bluetooth technology can also be displayed on the Star Flash search interface. For example, a text description "Supports Bluetooth technology" can be added after the device ID, or an icon description can be added so that the user can intuitively see whether the searched device supports Bluetooth technology, etc. This application does not make specific restrictions on this.

[0115] Accordingly, when the first device turns on the Bluetooth function, it can be considered that the first device determines to pair with the second device via Bluetooth, and then the second device can receive the pairing connection request message sent by the first device. Figure 8BAs shown, the second device may display an interface 820, which may include a prompt message 821, an "Agree" button 822, and a "Reject" button 823. Among them, the prompt message 821 may be: HUAWEI Mate 50pro requests to be connected via Bluetooth pairing. If agreed, Bluetooth will be turned on by default. When the user selects the "Agree" button 822, the second device can turn on the Bluetooth function and connect to the first device via Bluetooth pairing. When the user selects the "Reject" button 823, the second device can refuse to connect to the first device via Bluetooth pairing.

[0116] Step 603: The first device determines whether the device supports Bluetooth technology. If the first device supports Bluetooth technology, the process proceeds to step 604. If the first device does not support Bluetooth technology, the process proceeds to step 605.

[0117] It should be understood that the execution order of step 602 and step 603 is not limited in the embodiment of the present application. For example, step 603 may be executed first and then step 602. In other words, the first device may first determine whether its own device supports Bluetooth technology, and then determine whether the second device supports Bluetooth technology. There is no specific limitation on this.

[0118] Step 604: The first device is connected to the second device via Bluetooth pairing.

[0119] In some embodiments, when the first device determines that the second device supports Bluetooth technology based on the Star Flash broadcast, and the first device itself also supports Bluetooth technology, Bluetooth can be selected for pairing and connection.

[0120] In other embodiments, when the first device and the second device support both Starflash and Bluetooth technologies, a connection mode can be further selected from Starflash connection and Bluetooth connection for pairing and connection based on the current scene information. The current scene information may include device type, service type, channel status (own service status), etc. For example, if there is currently a large amount of data service on the Starflash connection link, you can select the Bluetooth connection mode to pair and connect the first device with the second device; for another example, assuming that the amount of service data to be transmitted is large and a larger service bandwidth is required, you can select the Starflash connection mode to pair and connect the first device with the second device.

[0121] Step 605: The first device is connected to the second device through Star Flash pairing.

[0122] When at least one of the first device and the second device does not support Bluetooth technology (for example, the first device supports Bluetooth technology, but the second device does not; or the first device does not support Bluetooth technology, but the second device supports Bluetooth technology; or neither the first device nor the second device supports Bluetooth technology), you can select Star Flash for pairing and connection.

[0123] Through the above embodiment, the first device only turns on the Star Flash function, and can identify whether the second device has Bluetooth capability through Star Flash broadcast, without the user having to search and confirm whether the second device supports Bluetooth capability. This can improve the efficiency of identifying device capabilities and enhance user experience.

[0124] like Fig. 9 As shown, it is a flow chart of a device connection method provided in an embodiment of the present application, see Fig. 9 As shown, the method may include the following steps:

[0125] Step 901: A first device establishes a physical connection with a second device.

[0126] In some embodiments, the first device and the second device can be connected by magnetic wireless charging, or by NFC, or by USB / PogoPin (precision connector) wired connection. Fig.10 As shown, it is a schematic diagram of the device connection provided in the embodiment of the present application. Fig.10 In the schematic diagram (a) shown in FIG. 1 , the stylus pen and the tablet computer can be connected by magnetic attraction. Fig.10 In the schematic diagram shown in (b), the stylus pen and the tablet computer can be connected via NFC. Fig.10 In the schematic diagram shown in (c), the stylus pen and the tablet computer can be connected by wire via a USB charging base.

[0127] Step 902: The first device and the second device exchange information for pairing connection.

[0128] Among them, the information used for pairing connection includes the media access layer identifier of the short-range communication technology supported by each device (for example, it may include the media access layer identifier of StarFlash and the media access layer identifier of Bluetooth), product number, version number, etc.

[0129] In some embodiments, the first device and the second device may exchange information via a dedicated communication channel, such as a MAC ID, a Product ID, or other channels.

[0130] Specifically, the first device may first send relevant information of its own device to the second device, and when the second device receives it, it may feedback corresponding information to the first device, so as to ensure that the first device can recognize and trust each other with the second device. Alternatively, the second device may first send relevant information of its own device to the first device, and when the first device receives it, it may feedback corresponding information to the second device, which is not limited in this application.

[0131] Step 903: The first device sends a first message to the second device.

[0132] Among them, the first message carries third indication information, and the third indication information is used to indicate at least one short-range communication technology supported by the first device itself. Exemplarily, if the first device supports Bluetooth technology and Starflash technology, the third indication information may be the Bluetooth address and Starflash address of the first device. For another example, when the first device only supports Bluetooth technology, the third indication information may be the Bluetooth address of the first device; when the first device only supports Starflash technology, the third indication information may be the Starflash address of the first device.

[0133] Step 904: The second device sends a second message to the first device.

[0134] Among them, the second message carries fourth indication information, and the fourth indication information is used to indicate at least one short-range communication technology supported by the second device itself. Exemplarily, if the second device supports Bluetooth technology and Starflash technology, the fourth indication information may be the Bluetooth address and Starflash address of the second device. For another example, when the second device only supports Bluetooth technology, the fourth indication information may be the Bluetooth address of the second device; when the second device only supports Starflash technology, the fourth indication information may be the Starflash address of the second device.

[0135] In a possible implementation, only one of step 903 and step 904 may be performed. For example, when the first device is a stylus pen and the second device is a tablet computer, only step 903 may be performed and step 904 may not be performed.

[0136] It should be understood that the execution order of step 903 and step 904 is not limited in the embodiment of the present application. For example, step 904 may be executed first and then step 903. The present application does not make any specific limitation on this.

[0137] Step 905: If both the first device and the second device support the StarFlash technology and the Bluetooth technology, pairing and connection are performed through StarFlash.

[0138] In some embodiments, when both the first device and the second device support StarFlash technology and Bluetooth technology, StarFlash may be selected for pairing and connection.

[0139] In other embodiments, when both the first device and the second device support the StarFlash technology and the Bluetooth technology, it can be further determined whether to select StarFlash or Bluetooth for connection based on the current scene information.

[0140] For example, Fig.11As shown, assuming that the stylus supports the Star Flash technology and the tablet computer also supports the Star Flash technology, after the stylus and the tablet computer interact with each other, an interface 1100 may be displayed on the tablet computer, and the interface 1100 may include a prompt box 1101. The prompt box 1101 may include identification information 1102 of the stylus, such as HUAWEI M-Pencil 3, prompt information 1103, a "Connect" button 1104, and a "Cancel" button 1105. Among them, the prompt information 1103 may be: the connection will turn on the Star Flash by default. When the user clicks the "Connect" button 1104, the tablet computer can respond to the operation, turn on the Star Flash switch, and establish a pairing connection with the stylus through the Star Flash.

[0141] In a possible implementation, if the Star Flash switch has been turned on on the tablet computer, a prompt message may also be displayed on the tablet computer, and the prompt message is used to remind the user to connect through Star Flash. For example, the prompt message 1103 may be: Please confirm whether to connect through Star Flash pairing. When the user clicks the "Connect" button 1104, the tablet computer may respond to the operation and establish a pairing connection with the stylus through Star Flash.

[0142] Step 906: If at least one of the first device and the second device does not support the Star Flash technology, the first device and the second device are connected via Bluetooth pairing.

[0143] Step 907: If at least one of the first device and the second device does not support Bluetooth technology, the first device and the second device are connected through Star Flash pairing.

[0144] Through the above embodiments, information interaction of short-range communication technologies supported by the device can be completed based on hardware connection, so that the short-range communication technologies supported by the device can be identified without turning on Bluetooth and / or Star Flash switches, thereby reducing power consumption.

[0145] It should be noted that all or part of the above embodiments provided in this application can be freely and arbitrarily combined with each other, and the combined technical solutions are also within the protection scope of this application.

[0146] In the embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of the electronic device as the execution subject. In order to implement the functions in the methods provided by the embodiments of the present application, the electronic device may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0147] like Fig.12As shown, some other embodiments of the present application disclose an electronic device. Fig.12 As shown, the electronic device 1200 includes: a transceiver 1201; a processor 1202; a memory 1203; and one or more computer programs 1204 (not shown in the figure). Optionally, it may also include a display screen 1205. Optionally, the above-mentioned components may be connected via one or more communication buses 1206.

[0148] The display screen 1201 is used to display prompt information. The memory 1203 stores one or more computer programs, and when the instructions are called and executed by the one or more processors 1202, the electronic device 1200 executes the method steps in the above embodiment.

[0149] In the embodiment of the present application, the processor 1202 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiment of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor. The software module may be located in the memory 1203, and the processor 1202 reads the program instructions in the memory 1203, and completes the steps of the above method in combination with its hardware.

[0150] In the embodiment of the present application, the memory 1203 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as RAM. The memory may also be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing instructions and / or data.

[0151] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0152] Based on the above embodiments, the present application further provides a computer storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method provided in the above embodiments.

[0153] A computer program product is also provided in an embodiment of the present application, including instructions, which, when executed on a computer, enable the computer to execute the method provided in the above embodiment.

[0154] The present application embodiment is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the present application embodiment. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow chart and / or box in the flow chart and / or block diagram can be realized by instructions. These instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart or multiple flows and / or one box or multiple boxes of the block diagram.

[0155] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0156] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

Claims

1. A device connection method, characterized in that: include: A first device receives a first broadcast message from a second device, where the first broadcast message is a broadcast message corresponding to a first short-range communication technology supported by the second device, and the first broadcast message carries first indication information, where the first indication information is used to indicate whether the second device supports the second short-range communication technology; When the first indication information indicates that the second device supports the second short-range communication technology, and the first device itself supports the second short-range communication technology, the first device is paired and connected with the second device through a connection method corresponding to the second short-range communication technology.

2. The method according to claim 1, characterized in that The first short-distance communication technology is Bluetooth technology, and the second short-distance communication technology is Star Flash technology.

3. The method according to claim 2, characterized in that The method further comprises: When the first indication information indicates that the second device does not support the Star Flash technology, pairing and connecting with the second device through a connection method corresponding to the Bluetooth technology; or When the first indication information indicates that the second device supports the Star Flash technology, and the first device itself does not support the Star Flash technology, pairing and connection with the second device are performed through a connection method corresponding to the Bluetooth technology.

4. The method according to claim 1, characterized in that The first short-distance communication technology is Star Flash technology, and the second short-distance communication technology is Bluetooth technology.

5. The method according to claim 4, characterized in that The method further comprises: When the first indication information indicates that the second device does not support the Bluetooth technology, pairing and connecting with the second device through a connection method corresponding to the Star Flash technology; or When the first indication information indicates that the second device supports the Bluetooth technology, and the first device itself does not support the Bluetooth technology, pairing and connection with the second device are performed through the connection method corresponding to the Star Flash technology.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the first indication information indicates that the second device supports the second short-range communication technology, and the first device itself supports the second short-range communication technology, selecting a connection mode corresponding to a communication technology from the first short-range communication technology and the second short-range communication technology as the target connection mode according to the current scenario information; The first device is paired and connected with the second device through the target connection mode.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The first device displays a first interface, where the first interface includes identification information of the second device; In response to a user triggering operation on the identification information of the second device, a second interface is displayed, where the second interface includes first prompt information, where the first prompt information is used to prompt the user that the second device supports the second short-range communication technology.

8. The method according to claim 7, characterized in that The second interface also includes a confirmation button; In response to the user triggering operation on the confirmation button, the first device turns on a switch for the second short-range communication technology.

9. A device connection method, characterized in that: include: After the first device establishes a physical connection with the second device, the first device receives a first message sent by the second device, where the first message carries second indication information, and the second indication information is used to indicate at least one short-range communication technology supported by the second device; When the at least one short-range communication technology supported by the second device indicated by the second indication information and the at least one short-range communication technology supported by the first device both include the first short-range communication technology and the second short-range communication technology, the first device is paired and connected with the second device through the connection method corresponding to the second short-range communication technology.

10. The method according to claim 9, characterized in that The first short-distance communication technology is Bluetooth technology, and the second short-distance communication technology is Star Flash technology; The method further comprises: When the second indication information indicates that the second device supports the StarFlash technology and the Bluetooth technology, and the first device supports the StarFlash technology but does not support the Bluetooth technology, the first device is paired and connected with the second device through the connection method corresponding to the StarFlash technology; or When the second indication information indicates that the second device supports the StarFlash technology and the Bluetooth technology, and the first device supports the Bluetooth technology but does not support the StarFlash technology, the first device is paired and connected with the second device through the connection method corresponding to the Bluetooth technology; or When the second indication information indicates that the second device supports the Starflash technology, and the first device supports the Bluetooth technology and the Starflash technology, the first device is paired and connected with the second device through the connection method corresponding to the Starflash technology; or When the second indication information indicates that the second device supports the Bluetooth technology, and the first device supports the Bluetooth technology and the Star Flash technology, the first device is paired and connected with the second device through a connection method corresponding to the Bluetooth technology.

11. The method according to claim 9 or 10, characterized in that The method further comprises: The first device sends a second message to the second device, where the second message carries third indication information, and the third indication information is used to indicate at least one short-range communication technology supported by the first device.

12. The method according to any one of claims 9 to 11, characterized in that: The method further comprises: When the at least one short-range communication technology supported by the second device indicated by the second indication information includes the second short-range communication technology, and the first device itself supports the second short-range technology, selecting a connection mode corresponding to a communication technology in the at least one short-range communication technology as the target connection mode according to the current scenario information; The first device is paired and connected with the second device through the target connection mode.

13. The method according to any one of claims 9 to 12, characterized in that: The method further comprises: The first device displays a third interface, the third interface including second prompt information and a connection button, the second prompt information is used to prompt the user that the connection will turn on the switch of the second short-range communication technology; In response to a user triggering operation on the connection button, a switch for the second short-range communication technology is turned on.

14. An electronic device, characterized in that: The electronic device comprises a processor; a memory; and one or more computer programs; Wherein, the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when called and executed by the processor, enable the electronic device to execute the method as described in any one of claims 1 to 8 or any one of claims 9 to 13.

15. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 8 or any one of claims 9 to 13.

Citation Information

Cited By

  • Intelligent terminal non-inductive connection method and system supporting multi-device priority decision

    CN121262672A