Communication method and electronic equipment
By using wireless ad hoc network technology to monitor and send distress information after disconnection of electronic equipment, the problems of large number of equipment and high power consumption in emergencies are solved, and the user experience and emergency rescue efficiency are improved.
Patent Information
- Application Number
- CN202310773257.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-27
- Publication Date
- 2024-12-27
AI Technical Summary
In emergencies, existing electronic devices need to be carried with auxiliary devices, resulting in poor user experience and large number of devices, increasing power consumption and complexity.
After receiving the rescue activation information through the connection with the second electronic device, disconnecting it, using wireless ad hoc networking technology to monitor the channel and send rescue information, reducing the number of equipment and power consumption, and improving user convenience.
It realizes reducing the number of users' equipment, reducing power consumption, and improving the efficiency and user experience of emergency rescue in an emergency situation.
Smart Images

Figure CN119211899A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and more specifically, to a communication method and electronic equipment. Background Art
[0002] With the development of technology, electronic devices have powerful processing capabilities. Due to various considerations of cost, power consumption and user usage frequency, existing electronic devices are usually not equipped with a transceiver module required by a certain communication technology, and thus do not have the function of communicating with other electronic devices using the communication technology.
[0003] In order to meet the user's demand for using the communication technology, the electronic device can be connected to an auxiliary device, and the auxiliary device is provided with a transceiver module corresponding to the communication technology. Through the connection between the electronic device and the auxiliary device, the electronic device can control the transceiver module in the auxiliary device to send information to other electronic devices according to the user's operation, and can also process the information received by the transceiver module in the auxiliary device, thereby realizing the user's demand for using the communication technology.
[0004] However, in some emergency situations, if the user needs to use the communication technology, the user needs to carry the electronic device and the auxiliary device, the number of devices carried is large, and the user experience is poor. Summary of the invention
[0005] The present application provides a communication method and electronic device, which can reduce the number of devices that users need to carry in emergency situations and improve user experience.
[0006] In a first aspect, a communication method is provided, which is applied to a first electronic device, the method comprising: receiving rescue start information sent by a second electronic device through a first connection with the second electronic device; monitoring a channel in response to receiving the rescue start information; and sending a distress message when receiving the rescue information through the channel.
[0007] In the solution of the present application, after the first electronic device receives the rescue start information sent by the second electronic device, it can monitor the channel and send a distress message when the rescue information is received through the channel. That is to say, after receiving the rescue start information, the monitoring process of the channel and the sending of the distress message by the first electronic device do not depend on the existence of the first connection. Therefore, after the second electronic device sends the rescue start information to the first electronic device, emergency rescue can be achieved using the first electronic device, and the user no longer needs to carry the second electronic device, which improves the convenience of user use in emergency rescue situations and improves the user experience.
[0008] In some possible implementations, during the process of monitoring the channel, the first connection is disconnected.
[0009] Disconnecting the first connection can reduce the overall power consumption of the first electronic device and the second electronic device, and increase the possibility of the user being rescued.
[0010] In some possible implementations, the rescue activation information is determined by the second electronic device according to a user operation, and the rescue activation information includes the help information.
[0011] The rescue information determined according to the user operation has richer content, can more accurately reflect the needs of the rescuer, and improve the efficiency of rescue. The first electronic device can no longer be equipped with a device for interacting with the user, which reduces the power consumption of the first electronic device, prolongs the standby time, and increases the possibility of the user being rescued.
[0012] In some possible implementations, the monitoring of the channel includes: using a wireless communication module to receive and process a signal transmitted in the channel to obtain the rescue information, the wireless communication module includes multiple layers in the open system interconnection reference model except the application layer; the rescue activation information is obtained by the second electronic device processing the user operation using the application layer in the open system interconnection reference model.
[0013] The application layer of the OSI reference model is set in the second electronic device to process the user operation of the user in the second electronic device. Multiple layers of the OSI reference model other than the application layer are set in the first electronic device, so that the first electronic device has the ability to process the signal transmitted in the channel and can process and obtain the rescue signal. Therefore, the device setting of the layer in the OSI reference model is more reasonable.
[0014] In some possible implementations, the multiple layers may include other layers in the Open Systems Interconnection Reference Model except the application layer.
[0015] The dependence of the first electronic device on the function of the second electronic device is reduced, and any electronic device provided with the application layer in the OSI reference model can be used as the second electronic device, thereby improving the extensiveness and convenience of the application of the first electronic device.
[0016] In some possible implementations, the monitoring of the channel and the sending of the distress message are performed using wireless ad hoc network technology.
[0017] Wireless ad hoc network technology does not rely on preset infrastructure. It has the characteristics of temporary networking, rapid deployment, no control center, and strong anti-destruction. Using wireless ad hoc network technology for rescue can increase the possibility of users being rescued.
[0018] In a second aspect, a communication method is provided, which is applied to a second electronic device, and the method includes: establishing a first connection with a first electronic device; sending a rescue start message to the first electronic device through the first connection, so that the first electronic device uses a wireless self-organizing network module to monitor the channel, and uses the wireless self-organizing network module to send a distress message when receiving the rescue information through the channel.
[0019] In some possible implementations, the first connection is disconnected during the process in which the first electronic device monitors the channel.
[0020] In some possible implementations, the method further includes: determining the rescue activation information according to a user operation, wherein the rescue activation information includes the help request information.
[0021] In some possible implementations, determining the rescue start information based on the user operation includes: using the application layer in the open system interconnection reference model to process the user operation to obtain the rescue start information; the first electronic device is used to receive and process the signal transmitted in the channel using a wireless communication module to obtain the rescue information, and the wireless communication module includes multiple layers in the open system interconnection reference model except the application layer.
[0022] In some possible implementations, the multiple layers include other layers in the Open Systems Interconnection Reference Model except the application layer.
[0023] In some possible implementations, the monitoring of the channel and the sending of the distress message are performed by the first electronic device using wireless ad hoc network technology.
[0024] In a third aspect, a communication device is provided, comprising a unit for executing any one of the methods in the first aspect or the second aspect. The device may be an electronic device or a chip in an electronic device. The device may include a transceiver unit and a processing unit.
[0025] When the device is an electronic device, the processing unit may be a processor, and the transceiver unit may be a communication interface; when the program instructions are executed in the processor, the electronic device executes any one of the methods in the first aspect or the second aspect.
[0026] The electronic device may further include a memory for storing program instructions.
[0027] When the device is a chip in a terminal device, the processing unit may be a processing unit inside the chip, and the transceiver unit may be an output interface, a pin or a circuit, etc. When the processor executes the program instructions, the chip executes any one of the methods in the first aspect or the second aspect.
[0028] The chip may also include a memory, which may be a memory within the chip (eg, a register, a cache, etc.) or a memory located outside the chip (eg, a read-only memory, a random access memory, etc.); the memory is used to store program instructions.
[0029] In one possible implementation, the communication device is located in the first electronic device, and the transceiver unit is used to receive the rescue start information sent by the second electronic device through the first connection with the second electronic device; the processing unit is used to monitor the channel in response to the reception of the rescue start information; the transceiver unit is also used to send a distress message when receiving the rescue information through the channel.
[0030] In one possible implementation, the communication device is located in the second electronic device, and the processing unit is used to establish a first connection between the second electronic device and the first electronic device; the transceiver unit is used to send rescue start information to the first electronic device through the first connection, so that the first electronic device uses the wireless self-organizing network module to monitor the channel, and uses the wireless self-organizing network module to send a distress message when receiving the rescue information through the channel.
[0031] According to a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When the computer program code is executed by a processor, the processor executes any one of the communication methods in the first aspect or the second aspect.
[0032] In a fifth aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is executed by a processor, the processor executes any one of the communication methods in the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a schematic diagram of a hardware system of an electronic device applicable to the present application;
[0034] Figure 2 is a schematic diagram of a software system for an electronic device applicable to the present application;
[0035] Figure 3 is a schematic diagram of a communication system applicable to an embodiment of the present application;
[0036] Figure 4 is a schematic flow chart of a communication method provided in an embodiment of the present application;
[0037] Figure 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0038] Figure 6 is a schematic diagram of the functions of an electronic device provided by an embodiment of the present application;
[0039] Figure 7 is a schematic flow chart of another communication method provided in an embodiment of the present application;
[0040] Figure 8 is a schematic structural diagram of a communication system provided in an embodiment of the present application;
[0041] Fig. 9 is a schematic diagram of an image interface provided in an embodiment of the present application;
[0042] Fig.10 is a schematic diagram of another image interface provided in an embodiment of the present application;
[0043] Fig.11 is a schematic diagram of an item search function of an electronic device provided in an embodiment of the present application;
[0044] Fig.12 is a schematic diagram of another image interface provided in an embodiment of the present application;
[0045] Fig.13 It is a schematic diagram of the Internet of Things device control function of the electronic device provided in an embodiment of the present application;
[0046] Fig.14 It is a schematic structural diagram of the OSI reference model;
[0047] Fig.15 It is a schematic structural diagram of an electronic device;
[0048] Fig.16 is a schematic diagram of a communication system provided in an embodiment of the present application;
[0049] Fig.17 is a schematic structural diagram of one or more communication scenarios provided in an embodiment of the present application;
[0050] Fig.18 is a schematic structural diagram of a communication device provided in an embodiment of the present application;
[0051] Fig.19 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0053] Figure 1 A hardware system of an electronic device suitable for the present application is shown.
[0054] The method provided in the embodiments of the present application can be applied to various electronic devices capable of network communication, such as mobile phones, tablet computers, wearable devices, laptop computers, netbooks, personal digital assistants (PDAs), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0055] Figure 1 1 shows a schematic diagram of the structure of the electronic device 100. The electronic device 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. 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.
[0056] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0057] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0058] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0059] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0060] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0061] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0062] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0063] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0064] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0065] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0066] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[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 electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0068] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0069] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0070] 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 supplies 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. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0071] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0072] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0073] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 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.
[0074] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0075] 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), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 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 performs filtering, 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.
[0076] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 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), BT, GNSS, WLAN, NFC, FM, and / or IR technology. 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).
[0077] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0078] The display screen 194 is used to display images, videos, 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 electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0079] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0080] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0081] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0082] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0083] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0084] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0085] 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 electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0086] 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 electronic device 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 may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. 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.
[0087] The electronic device 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 headphone jack 170D, and the application processor.
[0088] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0089] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0090] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0091] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0092] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0093] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0094] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0095] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0096] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 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 flip cover can be automatically unlocked.
[0097] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0098] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0099] The 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. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 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 the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0100] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 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 electronic device 100 is in a pocket to prevent accidental touches.
[0101] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0102] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 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 electronic device 100 reduces the performance of a 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 electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0103] 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 electronic device 100, which is different from the position of the display screen 194.
[0104] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0105] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0106] Motor 191 can generate vibration prompts. 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. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0107] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
[0108] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0109] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0110] Figure 2 1 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the system library of the Android runtime (Android runtime), and the kernel layer. The application layer can include a series of application packages.
[0111] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0112] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0113] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0114] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0115] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0116] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0117] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0118] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0119] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0120] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0121] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0122] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0123] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0124] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0125] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0126] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0127] A 2D graphics engine is a drawing engine for 2D drawings.
[0128] The kernel layer is the layer between hardware and software. The kernel layer can include driver modules such as display driver, camera driver, audio driver and sensor driver.
[0129] Figure 3 Schematic diagram of a communication system applicable to an embodiment of the present application. Figure 3 , the communication system includes a first electronic device 310 and a second electronic device 320.
[0130] The second electronic device 320 is provided with a long range radio (LoRa) module 321. The LoRa module 321 is used to implement LoRa communication. LoRa communication uses spread spectrum technology, and the sensitivity is closer to Shannon's limit theorem, which reduces the signal-to-noise ratio requirement and has a longer propagation distance.
[0131] The first electronic device 310 and the second electronic device 320 can be connected by wire. In the case where the first electronic device 310 and the second electronic device 320 are connected by wire, the first electronic device 310 can use the LoRa module 321 of the second electronic device 320 to perform LoRa communication with other electronic devices.
[0132] The LoRa module 321 can be understood as a radio frequency transceiver module or a communication interface for implementing LoRa communication. The communication information sent by other electronic devices received by the LoRa module 321 can be sent to the first electronic device 310, and the first electronic device can process the communication information. Thus, the cost, volume and power consumption of the second electronic device 320 can be reduced.
[0133] In order to achieve LoRa communication with other electronic devices, the user needs to carry the first electronic device 310 and the second electronic device 320. In emergency situations such as when rescue is needed, the user needs to carry more electronic devices, resulting in a poor user experience.
[0134] In order to solve the above problems, an embodiment of the present application provides a communication method.
[0135] Combine the following Figures 4 to 19 The communication method provided in the embodiment of the present application is described in detail.
[0136] Figure 4 4 is a schematic flow chart of a communication method provided in an embodiment of the present application. The method is applied to a first electronic device. The method includes steps S410 to S430, and these steps are described in detail below.
[0137] Step S410: receiving rescue start information sent by a second electronic device through a first connection with the second electronic device.
[0138] It should be understood that before S410, the first electronic device and the second electronic device may establish a first connection.
[0139] The first connection between the first electronic device and the second electronic device may be established by wired communication technology or wireless communication technology. For example, the first connection may be a USB connection, a Bluetooth connection, a Wi-Fi connection, or a device-to-device (D2D) connection.
[0140] When a first connection exists between the first electronic device and the second electronic device, the first electronic device can receive control commands and data sent by the second electronic device.
[0141] For example, when a first connection exists between a first electronic device and a second electronic device, the second electronic device can communicate with other electronic devices by using the first electronic device. Exemplarily, the first electronic device can have a communication function that the second electronic device can or cannot implement. For example, the first electronic device can have a wireless ad hoc network module, and the second electronic device can communicate with other electronic devices other than the first electronic device by using the wireless ad hoc network module of the first electronic device through the first connection.
[0142] The wireless ad hoc network module is set up based on wireless ad hoc network technology. A wireless ad hoc network is a temporary multi-hop autonomous system composed of a group of mobile nodes with wireless transceivers. It does not rely on preset infrastructure and has the characteristics of temporary networking, rapid deployment, no control center, and strong anti-destruction.
[0143] Wireless ad hoc networks can utilize the routing and forwarding functions of mobile terminals to communicate without infrastructure, thus making up for the lack of network communication infrastructure. Wireless ad hoc network technology provides a solution for the collaborative work of electronic devices.
[0144] The electronic device that communicates using the wireless ad hoc network module can serve as a node in the wireless ad hoc network and communicate with other electronic devices in the wireless ad hoc network.
[0145] Exemplarily, the wireless ad hoc network module may be a long range radio (LoRa) module. LoRa is a low power wide area network (LPWAN) technology. Low power wide area network (LPWAN) is a network layer technology of the Internet of Things that has emerged in recent years to meet the communication needs of long distances and low power consumption in the Internet of Things. It has the characteristics of low cost, low power consumption, wide coverage, and large connections.
[0146] The second electronic device may send rescue start information to the first electronic device through the first connection to instruct the first electronic device to enter an emergency rescue state.
[0147] Step S420: In response to receiving the rescue start information, monitor the channel.
[0148] After receiving the rescue start information through the first connection, the first electronic device may enter an emergency rescue state. In the emergency rescue state, the first electronic device may monitor the channel.
[0149] The monitoring of channels can also be understood as the monitoring of time-frequency resources.
[0150] In an emergency rescue state, both the first electronic device and the second electronic device need to reduce power consumption as much as possible. Maintaining the first connection will increase the power consumption of the first electronic device or the second electronic device. Therefore, in an emergency rescue state, the first connection can be disconnected. The first electronic device and / or the second electronic device can disconnect the first connection.
[0151] After receiving the rescue start information, the first electronic device may no longer communicate with other electronic devices using communication technologies other than the wireless ad hoc network, thereby reducing the power consumption of the first electronic device.
[0152] Step S430: sending a distress message when receiving the rescue message through the channel.
[0153] Compared with the state of sending signals, the electronic device in the signal receiving state has lower power consumption. When the channel is monitored, the first electronic device is in the signal receiving state. After receiving the rescue start information, the first electronic device can use the communication protocol stack to monitor the channel, and when receiving the rescue information through the channel, send a distress signal, which can reduce the power consumption of the first electronic device.
[0154] It should be understood that after receiving the rescue start information, the first electronic device can establish a connection with the rescue electronic device that sent the rescue start information, and send a distress message to the rescue electronic device through the connection. Alternatively, after receiving the rescue start information, the first electronic device can send the distress message by broadcasting.
[0155] The distress message may be preset. The distress message may also be determined by the first electronic device or the second electronic device according to a user operation. In the case where the distress message is determined according to a user operation, the information content of the distress message is more flexible. For example, in the case where the distress message is determined according to a user operation, the distress message may be used to indicate one or more of the number of people waiting for rescue, the health conditions of the people waiting for rescue, the environmental conditions, the location information, etc.
[0156] Providing an interactive device in the first electronic device will increase the size of the first electronic device and reduce the convenience of the user carrying the first electronic device. Therefore, the second electronic device may be provided with an interactive device. The second electronic device may obtain user operations by using the interactive device, and determine rescue start information according to the user operations, and the rescue start information includes a distress message.
[0157] The first electronic device may monitor the channel by using a wireless communication module. The wireless communication module may include all or part of the layers in an open system interconnect (OSI) reference model.
[0158] For example, the wireless communication module may include multiple layers in addition to the application layer. The second electronic device may use the application layer in the OSI reference model to process the user operation to obtain the rescue start information. Thus, the second electronic device is used to interact with the user, and the application layer set in the second electronic device can realize the processing of the user operation; the first electronic device is used for wireless communication in emergency rescue situations, and the multiple layers in the OSI reference model set in the first electronic device can realize the reception and processing of the signals transmitted in the channel, and the settings of each layer in the OSI reference model are more reasonable.
[0159] The rescue information may have a preset format or content. Alternatively, the rescue information may be any valid information determined by the first electronic device. For example, the rescue information may be a preset medium access control (MAC) frame; or, the rescue information may be any one of a plurality of information such as connection establishment request information and connection establishment response information. The MAC layer in the OSI reference model may determine whether the received information is a preset MAC frame.
[0160] The data link layer in the OSI reference model includes the MAC layer, and the data link layer and the lower physical layer can be set in the first electronic device. A layer higher than the data link layer, such as a network layer and a transport layer, can also be set in the first electronic device. Exemplarily, a layer higher than the data link layer and a layer lower than the layer can be set in the first electronic device, and a layer higher than the layer can be set in the second electronic device, and the layer is a layer other than the application layer in the OSI reference model.
[0161] In some embodiments, all layers of the OSI reference model except the application layer can be set in the first electronic device. That is, the wireless communication module can include a transport layer, a network layer, a data link layer, and a physical layer, that is, it includes other layers of the OSI reference model except the application layer. Thus, the first electronic device is less dependent on the function of the second electronic device, and all electronic devices provided with the application layer in the OSI reference model can be used as the second electronic device, thereby improving the breadth and convenience of the application of the first electronic device.
[0162] It should be understood that the first electronic device can use the wireless communication module to send a distress message.
[0163] The wireless communication module may be a wireless ad hoc network module. That is, the monitoring of the channel and the sending of the distress message may be performed by the first electronic device using wireless ad hoc network technology. Using wireless ad hoc network technology for rescue may increase the possibility of the user being rescued.
[0164] The communication technology used for the first connection and the communication technology used by the first electronic device to monitor the channel may be the same as or different from each other.
[0165] Through S410 to S430, after the first electronic device receives the rescue start information sent by the second electronic device, it can monitor the channel and send a distress message when receiving the rescue information through the channel. After receiving the rescue start information, the first electronic device's monitoring process of the channel and the sending of the distress message do not depend on the existence of the first connection. Therefore, after the second electronic device sends the rescue start information to the first electronic device, emergency rescue can be achieved using the first electronic device, and the user no longer needs to carry the second electronic device, which improves the convenience of user use in emergency rescue situations and improves the user experience.
[0166] Combine the following Figures 5 to 16 , taking the first connection as a USB connection, and the first electronic device using wireless ad hoc network technology to perform channel monitoring and send distress information as an example, a communication system including the first electronic device and the second electronic device is described.
[0167] Figure 5 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
[0168] Figure 5 The electronic device 500 shown may be a first electronic device. The electronic device 500 includes a communication chip 501, a battery 502, a power management unit (PMU) 503, a universal serial bus (USB)-inter-integrated circuit (I2C) converter 504, a control key 505, a crystal 506, a memory 507, a buzzer 508 and a USB interface.
[0169] The communication chip 501 has the functions of wireless ad hoc network communication, Bluetooth communication, and Wi-Fi communication.
[0170] The crystal 506 is used to provide a clock signal for the communication chip 501 .
[0171] The USB-I2C converter 504 is used to convert the I2C signal output by the communication chip 501 into a USB signal, or to convert the USB signal received through the USB interface 509 into an I2C signal and transmit it to the communication chip 501 .
[0172] When the electronic device 500 is connected to another electronic device via the USB interface 509, the PMU 503 uses the power provided by the other electronic device to charge the battery 502. When the electronic device 500 is not connected to another electronic device via the USB interface 509, the PMU 503 controls the battery 502 to supply power to components in the electronic device 500. The other electronic device may be a second electronic device.
[0173] The first electronic device and other electronic devices can be connected through various communication methods, that is, the communication connection between the first electronic device 500 and other electronic devices can be implemented using various communication technologies. Figure 6 As shown, the various communication technologies that can be used for the connection between the first electronic device 500 and other electronic devices may include Bluetooth, Wi-Fi, USB, wireless ad hoc network technology, etc.
[0174] Bluetooth technology is an open global standard for wireless data and voice communications. It uses ultra high frequency (UHF) radio waves in the industrial scientific medical (ISM) band of 2.4 to 2.485 GHz. It is a radio technology that supports short-range communication between devices (generally within 10 meters).
[0175] Wi-Fi, also known as "mobile hotspot", is a wireless networking technology that actually converts wired network signals into wireless signals and uses wireless routers for electronic devices that support its technology.
[0176] USB is a serial bus standard and also a technical specification for input and output interfaces. USB is an external bus standard that regulates the connection and communication between electronic devices and external devices. The USB interface has hot-swap function. The USB interface can connect to a variety of peripherals. USB has the advantages of fast transmission speed, easy use, hot-swap support, flexible connection, independent power supply, etc., and is widely used.
[0177] Wireless ad hoc networking technology can meet the needs of a large number of information exchanges between people. Some wireless ad hoc networking technologies can transmit farther than other wireless methods under the same power consumption conditions, achieving the unity of low power consumption and long distance. For example, LoRa, as a wireless ad hoc networking technology, has a 3-5 times longer communication distance than traditional wireless RF communication under the same power consumption.
[0178] When the first electronic device is connected to other electronic devices via Bluetooth, it can have functions such as item search and distance reminder. When the first electronic device is connected to other electronic devices via Wi-Fi, it can have functions such as wireless USB flash drive and smart home control. When the first electronic device is connected to other electronic devices via USB, it can have the function of assisting wireless ad hoc network communication. When the first electronic device is connected to other electronic devices via wireless ad hoc network, it can have the function of emergency rescue.
[0179] The switching of the first electronic device 500 between different communication modes and the switching of functions can be referred to in Figure 7 Description.
[0180] Figure 7 Detailed description of the invention The communication method includes steps S701 to S705.
[0181] Step S701: power on the first electronic device.
[0182] The various communication technologies that may be used for the connection between the second electronic device and other electronic devices may include Bluetooth, Wi-Fi, USB, etc.
[0183] After the first electronic device 500 is powered on, it can be connected to the second electronic device via Bluetooth, Wi-Fi, or USB. In other words, after the first electronic device is powered on, it can be discovered via Bluetooth and connected via Wi-Fi.
[0184] After S701 , S702 , S703 , or S704 may be performed.
[0185] Step S702: The first electronic device establishes a Bluetooth connection with the second electronic device.
[0186] The second electronic device may be a mobile terminal such as a mobile phone.
[0187] The second electronic device can discover the first electronic device 500 through Bluetooth and connect to the first electronic device 500 through Bluetooth. Figure 8 As shown, after the first electronic device 500 establishes a Bluetooth connection with the second electronic device 810, data and commands can be transmitted via Bluetooth to achieve Bluetooth communication.
[0188] When the first electronic device 500 is connected to the second electronic device 810 via Bluetooth, functions such as object search and distance reminder can be implemented.
[0189] Multiple Bluetooth antennas may be provided in the first electronic device 500 and / or the second electronic device 810. An electronic device provided with multiple Bluetooth antennas receives a signal sent by a Bluetooth antenna in another electronic device. According to the relative positions of the multiple antennas and the phase difference of the signals received by the multiple antennas, the angle of arrival (AOA) may be determined. According to the difference between the time when the signal is sent and received, the distance between the two electronic devices may be determined. Thus, according to the AOA and the distance, the relative position between the two electronic devices may be determined.
[0190] Alternatively, an electronic device provided with multiple Bluetooth antennas uses the multiple antennas to send signals, and an electronic device provided with at least one Bluetooth antenna can determine the angle of departure (AOA) based on the signals received by the at least one Bluetooth antenna and the relative positions between the multiple Bluetooth antennas. Thus, the relative positions between the two electronic devices can be determined based on the AOD and the distance.
[0191] like Fig. 9 As shown, the second electronic device 810 can display a direction icon 920 and a distance icon 930 on a graphical user interface (GUI) 910. The icon 920 can indicate the direction of the first electronic device 500 relative to the second electronic device 810, and the distance icon 930 can indicate the distance between the first electronic device 500 and the second electronic device 810.
[0192] Or, if Fig.10 As shown, the second electronic device 810 can also display a play icon 1020 using the graphical user interface 1010. When the user clicks the play icon 1020, the second electronic device 810 can send play information to the first electronic device 500 through the Bluetooth connection between the second electronic device 810 and the first electronic device 500, so that the first electronic device 500 makes a sound, which is convenient for the user to find the first electronic device 500. The first electronic device 500 can make a sound using a buzzer or the like.
[0193] The function of searching for objects at close range can be achieved by displaying the relative position between the second electronic device 810 and the first electronic device 500, or by the second electronic device sending information to the first electronic device 500 via a Bluetooth connection so that the first electronic device 500 emits a sound.
[0194] The first electronic device 500 can emit a sound when the Bluetooth connection is disconnected to achieve the function of the principle reminder.
[0195] For the implementation of the item search function in long-distance situations, please refer to Fig.11 .
[0196] The second electronic device 810 may generate a public key and a private key corresponding to the first electronic device 500, and upload the public key and the device identification of the first electronic device 500 to the cloud 1140. The cloud 1140 may be a cloud server.
[0197] The first electronic device 500 may send search information in a broadcasting manner via Bluetooth, and the search information includes a device identification of the first electronic device 500. Electronic devices within the Bluetooth signal coverage of the first electronic device 500 may receive the search information. The electronic device receiving the search information may be the good Samaritan device 1130.
[0198] The good Samaritan device 1130 can use the device identifier carried in the search information to obtain the public key corresponding to the first electronic device 500 from the cloud 1140. The good Samaritan device 1130 can encrypt the location information using the public key and upload the encrypted location information to the cloud 1140.
[0199] It should be understood that the location information can be used to indicate the location of the good Samaritan device 1130, or the location of the first electronic device 500 determined by the good Samaritan device 1130. In the case where the location information can be used to indicate the location of the good Samaritan device 1130, the location of the good Samaritan device 1130 can be used as the location of the first electronic device 500.
[0200] The second electronic device 810 can receive the encrypted location information from the cloud, and decrypt it using the private key corresponding to the first electronic device 500, thereby obtaining the decrypted location information and determining the location of the first electronic device 500.
[0201] After determining the location of the first electronic device 500 , the second electronic device 810 may display a map using a graphical user interface, and display the location of the first electronic device 500 on the map according to the location of the first electronic device 500 .
[0202] It should be understood that after the second electronic device 810 generates the public key and private key corresponding to the first electronic device 500, the public key and private key corresponding to the first electronic device 500 can be shared with other electronic devices of the same user. The electronic devices of the same user can be electronic devices logged in with the same account. Thus, the electronic devices with the same user can receive the encrypted location information from the cloud, and use the private key corresponding to the first electronic device 500 to decrypt it, thereby obtaining the decrypted location information and determining the location of the first electronic device 500.
[0203] After S702, if the Bluetooth between the first electronic device 500 and the second electronic device is disconnected, the first electronic device 500 is restored to the state after S701, that is, Bluetooth is discoverable and Wi-Fi is connectable, and S702, S703 or S704 can be performed.
[0204] Step S703 : The first electronic device 500 establishes a Wi-Fi connection with the second electronic device 810 .
[0205] When the first electronic device 500 and the second electronic device 810 are connected to the same Wi-Fi wireless local area network, the first electronic device 500 and the second electronic device 810 are connected to each other by Wi-Fi.
[0206] When the first electronic device 500 and the second electronic device 810 are connected by Wi-Fi, the first electronic device 500 and the second electronic device 810 can transmit data and information. The first electronic device 500 can be used as a wireless storage device of the second electronic device 810. The wireless storage device can also be called a wireless USB flash disk (USB flash disk, USB disk, U disk). The second electronic device 810 can view and manage the data stored in the first electronic device 500.
[0207] like Fig.12 As shown in (a) of FIG. 1 , when the first electronic device 500 is connected to the second electronic device 810 by Wi-Fi, the second electronic device 810 may display a graphical user interface 1210. The graphical user interface 1210 includes an icon 1220 of the first electronic device 500. After obtaining the operation of the user clicking the icon 1220, the second electronic device 810 may display the following Fig.12 The graphical user interface 1230 is shown in (b) of FIG. The graphical user interface 1210 includes icons of a disk 1241 and a disk 1242 in the electronic device 500 .
[0208] When the first electronic device 500 is connected to a Wi-Fi wireless local area network, the first electronic device 500 can also control other IoT devices connected to the Wi-Fi wireless local area network.
[0209] like Fig.13 As shown, the second electronic device 810 can be connected to the first electronic device 500. The first electronic device can bind the first electronic device 500 and the Internet of Things device 1340 according to the user's binding operation, and upload the correspondence between the identifier of the first electronic device 500 and the identifier of the Internet of Things device 1340 to the server.
[0210] When the first electronic device 500 and the Internet of Things device 1340 are connected to the same Wi-Fi wireless local area network, the first electronic device 500 can control the Internet of Things device 1340 according to the user's control operation on the first electronic device 500. The first electronic device 500 sends control information to the server using the Wi-Fi wireless local area network according to the user's control operation, and the control information includes the identifier of the electronic device 500, the identifier of the Internet of Things device 1340, and the control instruction information. The server determines that the identifier of the first electronic device 500 in the control information and the identifier of the Internet of Things device 1340 have a corresponding relationship based on at least one corresponding relationship. After determining that the identifier of the first electronic device 500 in the control information and the identifier of the Internet of Things device 1340 have a corresponding relationship, the server can send the control instruction information to the Internet of Things device 1340 using the Wi-Fi wireless local area network. The control instruction information is used to control the Internet of Things device 1340.
[0211] It should be understood that the user's binding operation may be an operation of the user on a user interface provided by an application program acquired by the second electronic device 810. The application program, as a client, may send the corresponding relationship between the identifier of the first electronic device 500 and the identifier of the Internet of Things device 1340 to the server. The first electronic device 500 may be provided with a control key 505. The user's control operation on the first electronic device 500 may be pressing the control key 505.
[0212] Exemplarily, the IoT device 1340 may be a desk lamp, and the control instruction information is used to control the IoT device 1340, i.e., the desk lamp, to turn on or off, so that the first electronic device 500 can control turning the light on or off.
[0213] After S703, if the Wi-Fi between the first electronic device 500 and the second electronic device 810 is disconnected, the first electronic device 500 is restored to the state after S701, that is, Bluetooth is discoverable and Wi-Fi is connectable, and S702, S703 or S704 can be performed.
[0214] Step S704: The first electronic device establishes a USB connection with the second electronic device.
[0215] The USB interface has the feature of being hot-swappable, and the user can insert the first electronic device 500 into the USB interface of the second electronic device 810 to establish a USB connection between the first electronic device 500 and the second electronic device 810 .
[0216] When the first electronic device 500 is connected to the second electronic device 810 via USB, the second electronic device can charge the first electronic device 500 and transmit data and information to the first electronic device 500.
[0217] There may be one or more communication technology connections between the first electronic device 500 and the second electronic device 810. Exemplarily, when multiple communication technology connections may be established between the first electronic device 500 and the second electronic device 810, a connection with the communication technology with the highest priority may be established according to the user's set priority or the default priority. For example, a USB connection may have the highest priority, a Bluetooth connection may have a higher priority, and a Wi-Fi connection may have a lower priority.
[0218] The first electronic device 500 is provided with a wireless ad hoc network module. The second electronic device can utilize the wireless ad hoc network module in the first electronic device 500 to perform wireless ad hoc network communication with other electronic devices. That is to say, when there is a USB connection between the first electronic device 500 and the second electronic device 810, the first electronic device 500 has the function of assisting wireless ad hoc network communication, assisting the second electronic device 810 connected to the first electronic device 500 via USB to communicate with other electronic devices via wireless ad hoc network technology, and realizing data and information transmission between the second electronic device 810 and other electronic devices via wireless ad hoc network.
[0219] The wireless ad hoc network module may include multiple layers in the open system interconnect (OSI) reference model. Fig.14 and Fig.15 The OSI reference model and electronic devices provided with the OSI reference model are described and combined Fig.16 , the settings of the OSI reference model in the first electronic device 500 and the second electronic device 810 are explained.
[0220] Fig.14 A structural diagram of an OSI reference model is shown.
[0221] The OSI reference model may include multiple layers such as a physical layer 1401 , a data link layer 1402 , a network layer 1403 , a transport layer 1404 , and an application layer 1405 .
[0222] The physical layer (PHY) 1401 is the lowest layer in the OSI reference model, which mainly defines the electrical, mechanical, process and functional standards of the system. Such as: voltage, physical data rate, maximum transmission distance, physical connector and other similar characteristics. The main function of the physical layer is to use the transmission medium to provide physical connection for the data link layer and is responsible for the physical transmission of data streams. The basic unit of physical layer transmission is bit stream, that is, 0 and 1, which is the most basic electrical signal or optical signal, and is the most basic physical transmission feature.
[0223] The physical layer 1401 can implement functions such as channel assessment, carrier sensing, coding modulation, framing, and signal reception and transmission.
[0224] Coding and modulation technologies include narrowband modulation technology (such as frequency-shift keying (FSK), phase shift keying (PSK), etc.), spread spectrum modulation technology (such as frequency hopping spread spectrum (FHSS), direct sequence spread spectrum (DSSS), etc.), and carrier-free ultra-wideband modulation technology.
[0225] The data link layer 1402 establishes a data link connection between communication entities. The basic unit of transmission is "frame", and provides error control and flow control services for the network layer. The data link layer includes the medium access control (MAC) sublayer and the logical link control (LLC) sublayer. The main task of the medium access control sublayer is to specify how to transmit frames on the physical line. The logical link control sublayer manages the communication between devices on the same network link. The data link control sublayer is mainly responsible for logically identifying different protocol types and encapsulating them. That is to say, the data link control sublayer will accept network protocol data, packet datagrams and add more control information to transmit the packet to its target device.
[0226] The data link layer 1402 can perform link layer management and channel management. Through link layer management, a link data path is established and maintained. Through channel management, transmit receive (TRX) scheduling is achieved.
[0227] The network layer 1403 mainly creates logical links for data transmission between nodes, and selects the best path for packets through routing algorithms, thereby realizing functions such as congestion control and network interconnection. The network layer is a key layer that overlooks the network with routers as the highest nodes. It is responsible for the routing selection work of transmitting packets from the source network to the target network. The Internet is a collection of multiple networks. It is with the help of the routing path selection function of the network layer that the connection between multiple networks can be smooth and information can be shared. The services provided by the network layer are connection-oriented and connectionless services. Connection-oriented services are reliable connection services. Before data is exchanged, a connection must be established, and then data is transmitted. After the end, the service that previously established the connection is terminated. The network layer implements connection-oriented services in the form of virtual circuit services. Connectionless services are unreliable services that cannot prevent the loss, retransmission or disorder of messages. The advantage of connectionless services is that their service methods are flexible and convenient, and they are very fast. The network layer implements connectionless services in the form of datagram services.
[0228] The network layer 1403 can perform link monitoring and routing management, thereby realizing network layer data processing.
[0229] The transport layer 1404 is an interface layer between the upper and lower layers in the network architecture. The transport layer is not just a separate structural layer, but the core of the entire analysis system protocol. The transport layer mainly provides end-to-end services for users and handles transmission problems such as datagram errors and data packet order. The transport layer is a key layer in the computer communication architecture. It shields the communication details of the lower layer data from the upper layer, so that users do not need to consider the details of the physical layer, data link layer and network layer. The transport layer uses the network connection service provided by the network layer. According to system requirements, you can choose to use connection-oriented services or connectionless services for data transmission.
[0230] The transport layer 1404 can perform congestion control and adjust the transport layer data path. The transport layer 1404 can also perform security management and encrypt and decrypt data in the transport layer data path. The transport layer can also be used to implement relays. The transport layer 1404 can also determine whether the received data has packet loss, control retransmission in the case of packet loss, and sort the received data to improve the reliability of data transmission.
[0231] The application layer 1405 is the highest layer in the OSI reference model and is directly facing the user. The user's communication content must be resolved by the application process, which requires the application layer to use different application protocols to solve different types of application requirements and ensure that the low-level communication protocols used by these different types of applications are consistent. The application layer contains several independent user general service protocol modules to provide dedicated program services for communication between network users. It should be noted that the application layer is not an application program, but provides services for applications.
[0232] The application layer 1405 provides services for applications that provide voice or text information transmission, ranging and other functions.
[0233] The OSI reference model may also include a session layer and a presentation layer.
[0234] The main function of the session layer is to maintain the transmission connection between two nodes, ensure that point-to-point transmission is not interrupted, and manage data exchange and other functions. The session layer establishes, manages, and terminates sessions in the application process. The session layer can also decide which communication method to use, full-duplex communication or half-duplex communication, through dialogue control. The session layer coordinates requests and responses through its own protocol.
[0235] The presentation layer provides services for the representation of information transmitted between application processes. The layers below the presentation layer mainly complete the reliable data transmission from the source to the destination, and the presentation layer is more concerned with the syntax and semantics of the transmitted data. The main function of the presentation layer is to handle the representation of information exchanged between two communication systems, mainly including data format changes, data encryption and decryption, data compression and decompression, etc. Under the premise of a certain network bandwidth, the smaller the data compression, the faster the transmission rate, so the data compression and decompression of the presentation layer are regarded as the key factors in controlling the network transmission rate. The data encryption service provided by the presentation layer is an important network security element, which ensures the secure transmission of data and is also the key that various security services pay the most attention to. The services provided by the presentation layer to the application layer include: syntax conversion, syntax selection and connection management.
[0236] Exemplarily, the presentation layer and the session layer may also be arranged in the application layer 1405 .
[0237] An ad hoc network is a network that combines mobile communications and computer networks. The information exchange of the network adopts the packet switching mechanism in computer networks. The electronic devices in the ad hoc network are portable terminals that can be moved. Each electronic device in the ad hoc network has both the functions of a router and a host.
[0238] In the OSI reference model for wireless ad hoc network technology, the application layer 1405 can be used for group member management, and can also be used to present the state of the ad hoc network and group members to the user. The transport layer 1404 and the network layer 1403 can be used for authentication management and security monitoring. Authentication management includes identity authentication. In the process of two electronic devices establishing a wireless ad hoc network connection, the two electronic devices can perform identity authentication. The data link layer 1402 is used for address allocation and inter-group roaming. Address allocation can be understood as setting the identification of different electronic devices in the ad hoc network. Inter-group roaming can be understood as the electronic device provided with the OSI reference model for wireless ad hoc networks switching between different ad hoc networks. The physical layer 1401 can be used for system management. System management can be understood as the control and management of the sleep state and wake-up state of the operating system in the electronic device provided with the OSI reference model for wireless ad hoc networks.
[0239] Fig.15 It is a structural diagram of an electronic device.
[0240] In an electronic device provided with an OSI reference model for a wireless ad hoc network, a software system of the electronic device may include an application layer, an application framework layer, a hardware abstraction layer, and a kernel layer.
[0241] The application layer includes wireless ad hoc network applications. Users can interact with electronic devices and generate control commands and data by using the user interface provided by the wireless ad hoc network applications.
[0242] The application framework layer is used for application layer management. Application layer management is used for group member maintenance, network status management, business management, etc., so as to provide services for application layer services such as voice and SMS provided by wireless ad hoc network applications.
[0243] The hardware abstraction layer (HAL) is an interface layer between the operating system kernel and the hardware circuit, and its purpose is to abstract the hardware.
[0244] HAL includes a wireless ad hoc network software development kit (SDK). The wireless ad hoc network SDK is used to transmit control commands and data between the framework layer and the kernel layer.
[0245] The kernel layer includes chip drivers, which are used to obtain maintenance data and serial peripheral interface (SPI) drivers.
[0246] The kernel layer may include a transmission node for transmitting control commands and data with the HAL. The transmission node may also be referred to as a wireless ad hoc network communication node.
[0247] Maintenance and testing data can be understood as log information, which can include information related to troubleshooting (debugging).
[0248] The kernel layer can distribute and aggregate the transmitted instructions and data. Aggregation can be understood as sending instructions and data from different business modules through the same underlying channel. Distribution can be understood as sending instructions and data from the underlying channel to the business module corresponding to the instruction or data. In the embodiment of the present application, the underlying channel can be understood as a wireless ad hoc network chip.
[0249] The SPI driver can transmit maintenance data, wireless ad hoc network control commands, and wireless ad hoc network data with the SPI in the wireless ad hoc network chip in the electronic device.
[0250] The wireless ad hoc network chip includes SPI and a processor. The SPI transmits maintenance and measurement data and wireless ad hoc network control commands to the processor, and transmits wireless ad hoc network data from the SPI driver of the kernel layer to the processor of the wireless ad hoc network chip, or from the processor of the wireless ad hoc network chip to the SPI driver of the kernel layer.
[0251] The wireless ad hoc network chip may be provided with a wireless ad hoc network module. The wireless ad hoc network module may include Fig.14 The OSI reference model shown has layers other than the application layer, and the application layer can be set outside the wireless ad hoc network chip. The function of the application layer can be realized by using a chip with a software system in the electronic device.
[0252] The wireless ad hoc network chip may be provided with a real time operating system (RTOS) for utilizing the wireless ad hoc network module to implement wireless ad hoc network communication between the electronic device in which the chip is located and other electronic devices.
[0253] The processor of the wireless ad hoc network chip is used to establish a wireless ad hoc network connection with other electronic devices according to the wireless ad hoc network control command, and use the wireless ad hoc network module to process the wireless ad hoc network data from the kernel layer and send it to the other electronic device, or use the wireless ad hoc network data module to process the signal received from the other electronic device, obtain the wireless ad hoc network data and transmit it to the kernel layer.
[0254] Specifically, the wireless ad hoc network module may include a transport layer, a network layer, a data link layer and a physical layer.
[0255] When the first electronic device 500 is connected to the second electronic device 810 via USB, the wireless ad hoc network chip may be provided in the first electronic device 500 .
[0256] Fig.16 1 is a schematic structural diagram of a communication system provided in an embodiment of the present application. The communication system includes a first electronic device 500 and a second electronic device 810.
[0257] The first electronic device 500 is provided with a wireless ad hoc network chip and a USB-I2C converter 504. The second electronic device 810 is provided with an application layer, a framework layer, a hardware abstraction layer and a kernel layer.
[0258] and Fig.15 The structure shown is different, the hardware abstraction layer of the second electronic device 810 is provided with a USB device layer, and in the kernel layer of the second electronic device 810, a USB driver is provided in the chip driver.
[0259] The USB device layer is used to transmit control commands and data between the framework layer and the kernel layer. The USB driver is used to establish a USB connection with the first electronic device 500.
[0260] The communication chip 501 includes a wireless ad hoc network chip. The USB-I2C converter 504 is used to convert the I2C signal output by the wireless ad hoc network chip into a USB signal and transmit it to the USB driver, or convert the USB signal received from the USB driver into an I2C signal and transmit it to the wireless ad hoc network chip.
[0261] The functions of the application layer in the OSI reference model may be implemented by the second electronic device 810 , and the other layers in the OSI reference model except the application layer may be implemented by the wireless ad hoc network chip of the first electronic device 500 .
[0262] Thus, the second electronic device 810 can perform wireless ad hoc network communication with other electronic devices by utilizing other layers except the application layer in the OSI reference model provided in the second electronic device 810 .
[0263] When the first electronic device 500 and the second electronic device 810 are connected via USB, S705 may be performed.
[0264] Step S705 : the first electronic device 500 receives the rescue start information sent by the second electronic device 810 .
[0265] After S705, the first electronic device 500 may enter an emergency rescue state to implement an emergency rescue function.
[0266] When the first electronic device 500 is in an emergency rescue state, the first electronic device can be in a receiving state, and the wireless ad hoc network chip can detect the channel to receive rescue information. When receiving a rescue signal, the first electronic device 500 sends a rescue message.
[0267] like Fig.17 As shown, the rescue information may be sent by the third electronic device 1710. The third electronic device 1710 may receive the rescue information sent by the first electronic device 500. The third electronic device 1710 may be an electronic device used for search and rescue, or may be another electronic device passing near the first electronic device 500.
[0268] The rescue start information may include a help message. The help message may be determined according to the user's operation on the second electronic device 810. The help message may include one or more of the number of people waiting for rescue, health conditions of the people waiting for rescue, environmental conditions, location information, etc.
[0269] The second electronic device 810 may generate and send rescue activation information to the first electronic device 500 according to user operation, where the rescue activation information includes a help request message.
[0270] After receiving the rescue start information, the first electronic device 500 may store the rescue information and send the rescue information when receiving a rescue signal.
[0271] The first electronic device 500 can establish a connection with the third electronic device that sends the rescue information, thereby sending the rescue information to the third electronic device in a unicast manner. Alternatively, the first electronic device 500 can send the rescue information in a broadcast manner. Sending the rescue information in a broadcast manner can avoid information interaction with the third electronic device during the process of establishing the connection in a unicast case, thereby reducing the power consumption of the first electronic device 500.
[0272] After S705, for example, after the first electronic device 500 enters an emergency rescue state, the USB connection between the second electronic device 810 and the first electronic device 500 may be disconnected to reduce the overall power consumption of the communication system where the first electronic device 500 and the second electronic device 810 are located.
[0273] After the first electronic device 500 receives the rescue start information sent by the second electronic device 810, the first electronic device 500 may output disconnection reminder information, which may instruct the user to unplug the interface inserted into the USB interface of the second electronic device 810 to disconnect the USB connection between the first electronic device 500 and the second electronic device 810. The interface inserted into the USB interface of the second electronic device 810 may be the USB interface of the first electronic device 500. Alternatively, the interface inserted into the USB interface of the second electronic device 810 may also be a USB interface of a data cable, and the USB interface of the data cable is connected to the first electronic device 500 when the first electronic device 500 and the second electronic device 810 are connected via USB.
[0274] After the first electronic device 500 receives the rescue start information sent by the second electronic device 810, the first electronic device 500 may also autonomously disconnect the USB connection between the first electronic device 500 and the second electronic device 810, that is, the first electronic device 500 may no longer receive the electrical signal of the USB interface connected to the second electronic device 810, or may no longer process the electrical signal of the USB interface connected to the second electronic device 810.
[0275] The rescue start information can be understood as application layer information, which is used to control the first electronic device 500 to enter an emergency rescue state.
[0276] In an emergency rescue state, the first electronic device 500 may use the transport layer and the network layer to perform identity authentication with other electronic devices. Alternatively, in an emergency rescue state, the first electronic device 500 may no longer perform identity authentication with other electronic devices.
[0277] The first electronic device 500 can use the transport layer or the network layer to add the identifier of the first electronic device 500 to the sent distress message, so that the electronic device receiving the distress message can authenticate the first electronic device 500. For example, the electronic device receiving the distress message can determine whether the identifier of the first electronic device 500 belongs to a blacklist identifier, etc. In the case that the identifier of the first electronic device 500 does not belong to the blacklist, the electronic device receiving the distress message can output distress indication information to inform the user of the electronic device, so as to rescue the user of the first electronic device 500. It should be understood that the user of the first electronic device 500 can be the user of the second electronic device 810. The electronic device receiving the distress message may no longer authenticate the first electronic device 500 that sent the distress message after receiving the distress message.
[0278] In an emergency rescue state, the first electronic device 500 may no longer use the transport layer to encrypt the transmitted signal, so as to increase the possibility of the distress signal being received and recognized, and improve the possibility of the user being rescued.
[0279] The first electronic device 500 may utilize the data link layer for rescue access, thereby implementing a rescue request and a rescue response.
[0280] The rescue information may have a preset first MAC frame format, so that the first electronic device 500 may process the signal received by the physical layer using the MAC layer in the data link layer to determine whether the signal carries the rescue information.
[0281] The first electronic device 500 can use the MAC layer in the data link layer to encapsulate the distress message, and the encapsulated distress message. After that, the first electronic device 500 can use the physical layer to send the encapsulated distress message. The distress message encapsulated by the MAC layer can have a preset second MAC frame format. The first MAC frame format and the second MAC frame format can be the same or different. The rescue message can be understood as a rescue request, and the distress message can be understood as a rescue response.
[0282] The electronic device receiving the encapsulated distress information sent by the first electronic device 500 can determine that the received information carries the distress information according to the second MAC frame format. In other words, the information with the second MAC frame format carries the distress information, and the second MAC frame format is the format of the distress information, indicating the existence of the distress information.
[0283] The first electronic device 500 may monitor the channel using the physical layer. When the first electronic device 500 is in an emergency rescue state, the channel monitored by the physical layer may be called a rescue channel.
[0284] When the first electronic device 500 is in an emergency rescue state, the first electronic device 500 can obtain a reset operation of the user. The first electronic device 500 includes a control key 505, and the reset operation can be a long press, short press, or continuous press operation of the control key 505 by the user.
[0285] According to the reset operation of the user, the first electronic device 500 may proceed to S706.
[0286] Step S706: the first electronic device 500 is reset.
[0287] After being reset, the first electronic device 500 is restored to a state of being discoverable by Bluetooth and connectable by Wi-Fi. That is, the reset first electronic device 500 can establish a Bluetooth connection, a Wi-Fi connection or a USB connection with the second electronic device 810.
[0288] Through S701 to S706, the first electronic device 500 can be connected to the second electronic device 810 through multiple communication methods. In the case where the second electronic device 810 sets the first electronic device 500 to an emergency rescue state, the first electronic device 500 sends a distress message independent of the connection between the second electronic device 810, and the user can only carry the first electronic device 500, thereby improving the flexibility and convenience of using the first electronic device.
[0289] It should be understood that the above examples are intended to help those skilled in the art understand the embodiments of the present application, rather than to limit the embodiments of the present application to the specific numerical values or specific scenarios illustrated. Those skilled in the art can obviously make various equivalent modifications or changes based on the above examples, and such modifications or changes also fall within the scope of the embodiments of the present application.
[0290] Combination of the above Figures 1 to 17 The parameter adjustment method of the embodiment of the present application is described in detail. Fig.18 and Fig.19 , describes the device embodiment of the present application in detail. It should be understood that the parameter adjustment device in the embodiment of the present application can execute the various parameter adjustment methods in the aforementioned embodiment of the present application, that is, the specific working process of the following various products can refer to the corresponding process in the aforementioned method embodiment.
[0291] Fig.18 It is a schematic diagram of a communication device provided in an embodiment of the present application.
[0292] It should be understood that the communication device 1800 can perform Figure 4 and Figure 7 The communication method shown. Figure 5 In the electronic device 500 shown, the communication device 1800 may be arranged in the communication chip 501. The communication device 1800 includes a transceiver unit 1810 and a processing unit 1820.
[0293] In some embodiments, the communication device is located in the first electronic device.
[0294] The transceiver unit 1810 is used to receive the rescue start information sent by the second electronic device through the first connection with the second electronic device.
[0295] The processing unit 1820 is configured to monitor the channel in response to receiving the rescue start information.
[0296] The transceiver unit 1810 is further configured to send a distress message when receiving a rescue message through the channel.
[0297] Optionally, during the process of monitoring the channel, the first connection is disconnected.
[0298] Optionally, the rescue start information is determined by the second electronic device according to a user operation, and the rescue start information includes the help information.
[0299] Optionally, the processing unit 1820 is specifically configured to receive and process the signal transmitted in the channel by using a wireless communication module to obtain the rescue information, and the wireless communication module includes other layers in the open system interconnection reference model except the application layer.
[0300] The rescue start information is obtained by the second electronic device processing the user operation using the application layer in the open system interconnection reference model.
[0301] Optionally, the monitoring of the channel and the sending of the distress message are performed using wireless ad hoc network technology.
[0302] In other embodiments, the communication device 1800 may be located in the second electronic device.
[0303] The processing unit 1820 is configured to establish a first connection with a first electronic device;
[0304] The transceiver unit 1810 is used to send rescue start information to the first electronic device through the first connection, so that the first electronic device uses the wireless ad hoc network module to monitor the channel and uses the wireless ad hoc network module to send a distress message when receiving rescue information through the channel.
[0305] Optionally, during the process of the first electronic device monitoring the channel, the first connection is disconnected.
[0306] Optionally, the processing unit 1820 is further configured to determine the rescue start information according to a user operation, where the rescue start information includes the help request information.
[0307] Optionally, the processing unit 1820 is specifically configured to determine the rescue start information according to the user operation, including: processing the user operation by using an application layer in an open system interconnection reference model to obtain the rescue start information.
[0308] The first electronic device is used to receive and process the signal transmitted in the channel by using a wireless communication module to obtain the rescue information. The wireless communication module includes other layers in the open system interconnection reference model except the application layer.
[0309] Optionally, the monitoring of the channel and the sending of the distress message are performed by the first electronic device using wireless ad hoc network technology.
[0310] It should be noted that the above communication device 1800 is embodied in the form of a functional unit. The term "unit" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.
[0311] For example, a "unit" may be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions.
[0312] Therefore, the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0313] Fig.19 A structural schematic diagram of an electronic device provided by the present application is shown. Fig.19 The dotted line in indicates that the unit or the module is optional. The electronic device 1900 can be used to implement the communication method described in the above method embodiment.
[0314] Fig.19 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
[0315] The electronic device 1900 includes one or more processors 1901, which can support the parameter adjustment method in the electronic device 1900 implementation method embodiment. The processor 1901 can be a general-purpose processor or a special-purpose processor. For example, the processor 1901 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, such as discrete gates, transistor logic devices or discrete hardware components.
[0316] The processor 1901 may be used to control the electronic device 1900, execute software programs, and process data of the software programs. The electronic device 1900 may also include a communication unit 1905 to implement input (reception) and output (transmission) of signals.
[0317] For example, the electronic device 1900 may be a chip, the communication unit 1905 may be an input and / or output circuit of the chip, or the communication unit 1905 may be a communication interface of the chip, and the chip may be a component of a terminal device or other electronic devices.
[0318] For another example, the electronic device 1900 may be a terminal device, and the communication unit 1905 may be a transceiver of the terminal device, or the communication unit 1905 may be a transceiver circuit of the terminal device.
[0319] The electronic device 1900 may include one or more memories 1902 on which a program 1904 is stored. The program 1904 can be executed by the processor 1901 to generate instructions 1903, so that the processor 1901 executes the parameter adjustment method described in the above method embodiment according to the instructions 1903.
[0320] Optionally, data may be stored in the memory 1902. Optionally, the processor 1901 may read data stored in the memory 1902. The data may be stored at the same storage address as the program 1904, or may be stored at a different storage address than the program 1904.
[0321] The processor 1901 and the memory 1902 may be provided separately or integrated together; for example, integrated on a system on chip (SOC) of a terminal device.
[0322] Exemplarily, the memory 1902 can be used to store the related program 1904 of the parameter adjustment method provided in the embodiment of the present application, and the processor 1901 can be used to call the related program 1904 of the communication method stored in the memory 1902 to execute the communication method of the embodiment of the present application. For example, through a first connection with a second electronic device, a rescue start-up information sent by the second electronic device is received; in response to the reception of the rescue start-up information, a channel is monitored; and when the rescue information is received through the channel, a distress message is sent. For another example, a first connection is established with a first electronic device; through the first connection, a rescue start-up information is sent to the first electronic device, so that the first electronic device uses a wireless ad hoc network module to monitor the channel, and uses the wireless ad hoc network module to send a distress message when the rescue information is received through the channel.
[0323] It should be understood that the above examples are intended to help those skilled in the art understand the embodiments of the present application, rather than to limit the embodiments of the present application to the specific numerical values or specific scenarios illustrated. Those skilled in the art can obviously make various equivalent modifications or changes based on the above examples, and such modifications or changes also fall within the scope of the embodiments of the present application.
[0324] The present application also provides a computer program product, which, when executed by the processor 1901, implements the image processing method described in any method embodiment of the present application.
[0325] The computer program product may be stored in the memory 1902 , for example, a program 1904 , which is converted into an executable target file that can be executed by the processor 1901 after preprocessing, compilation, assembly, and linking.
[0326] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the image processing method described in any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.
[0327] The computer-readable storage medium is, for example, memory 1902. Memory 1902 may be a volatile memory or a nonvolatile memory, or memory 1902 may include both a volatile memory and a nonvolatile memory. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0328] In this application, "at least one" means one or more, and "more" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0329] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0330] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0331] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0332] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0333] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0334] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0335] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A communication method, characterized in that: Applied to a first electronic device, the method includes: receiving rescue start information sent by the second electronic device through the first connection with the second electronic device; In response to receiving the rescue start information, monitoring the channel; When receiving the rescue information through the channel, sending the rescue information.
2. The method according to claim 1, characterized in that During the process of monitoring the channel, the first connection is disconnected.
3. The method according to claim 1 or 2, characterized in that: The rescue start information is determined by the second electronic device according to a user operation, and the rescue start information includes the help information.
4. The method according to any one of claims 1 to 3, characterized in that The monitoring of the channel includes: using a wireless communication module to receive and process a signal transmitted in the channel to obtain the rescue information, wherein the wireless communication module includes other layers in the open system interconnection reference model except the application layer; The rescue start information is obtained by the second electronic device processing the user operation using the application layer in the open system interconnection reference model.
5. The method according to any one of claims 1 to 4, characterized in that The monitoring of the channel and the sending of the distress message are performed using wireless ad hoc network technology.
6. A communication method, characterized in that: Applied to a second electronic device, the method includes: Establishing a first connection with a first electronic device; Through the first connection, rescue start information is sent to the first electronic device, so that the first electronic device uses the wireless ad hoc network module to monitor the channel, and uses the wireless ad hoc network module to send a distress message when receiving the rescue information through the channel.
7. The method according to claim 6, characterized in that During the process of the first electronic device monitoring the channel, the first connection is disconnected.
8. The method according to claim 6 or 7, characterized in that: The method further comprises: The rescue start information is determined according to the user operation, and the rescue start information includes the help information.
9. The method according to any one of claims 6 to 8, characterized in that: Determining the rescue start information according to the user operation includes: processing the user operation by using the application layer in the open system interconnection reference model to obtain the rescue start information; The first electronic device is used to receive and process the signal transmitted in the channel by using a wireless communication module to obtain the rescue information. The wireless communication module includes other layers in the open system interconnection reference model except the application layer.
10. The method according to any one of claims 6 to 9, characterized in that: The monitoring of the channel and the sending of the distress message are performed by the first electronic device using wireless ad hoc network technology.
11. An electronic device, characterized in that: It comprises a processor and a communication interface, wherein the communication interface is used for the electronic device to exchange information with other electronic devices, and when the program instructions are executed in the processor, the electronic device executes any one of claims 1 to 5 or any one of claims 6 to 10.
12. A chip, characterized in that: The method comprises a processor, and when the processor executes instructions, the processor performs the method according to any one of claims 1 to 5 or any one of claims 6 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 5 or any one of claims 6 to 10.