Underwater communication method and system and related apparatus

By using sound wave signals in the underwater communication system, the serious problem of wireless signal attenuation is solved, long-distance underwater communication is realized, and the accurate transmission of information is ensured through identity identification.

WO2025067319A1PCT designated stage expired Publication Date: 2025-04-03HUAWEI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/121365
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-27
Filing Date
2024-09-26
Publication Date
2025-04-03

AI Technical Summary

Technical Problem

The prior art is difficult to achieve long-distance underwater communication because wireless signals are severely attenuated in water.

Method used

Sound wave signals are used for underwater communication, which attenuate less in water and propagate farther. The electronic device transmits a sound wave signal carrying an identity mark to communicate underwater by receiving the user's operation.

Benefits of technology

Underwater communication between multiple electronic devices is realized, communication distance is improved, information is carried with identity identification, and the receiver is able to identify the sender.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024121365_03042025_PF_FP_ABST
    Figure CN2024121365_03042025_PF_FP_ABST
Patent Text Reader

Abstract

The present application discloses an underwater communication method and system and a related apparatus. The underwater communication method is applied to a first electronic device, and comprises: receiving and responding to a first operation of a user, and setting the identity of the first electronic device as a first identity; when the first electronic device is underwater, receiving and responding to a second operation of the user, and displaying one or more messages, wherein the one or more messages include a first message; and receiving and responding to a third operation that the user selects to send the first message, and sending a first acoustic signal, the first acoustic signal carrying the first message and the first identity. Thus, underwater communication between electronic devices can be implemented.
Need to check novelty before this filing date? Find Prior Art

Description

Underwater communication method, system and related device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on September 27, 2023, with application number 202311270413.7 and application name “A method, system and related devices for underwater communication”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communications, and in particular to an underwater communication method, system, and related devices. Background Art

[0003] With the continuous development of communication technology, more and more electronic devices support underwater communication, which provides great convenience for users who need to work underwater or have underwater sports hobbies such as diving.

[0004] When the electronic device worn by the user is underwater, the user can use the electronic device to communicate with other electronic devices through traditional wireless communication methods such as Bluetooth and wireless radio frequency.

[0005] However, in water, wireless signals are severely attenuated, making long-distance underwater communication impossible.

[0006] Summary of the Invention

[0007] The present application provides an underwater communication method, system and related devices, which realize underwater communication between multiple electronic devices. In addition, the attenuation of acoustic wave signals in water is smaller than that of traditional wireless signals. The use of acoustic wave signals can increase the distance of underwater communication.

[0008] In a first aspect, the present application provides an underwater communication method, applied to a first electronic device; the method includes: receiving and responding to a first operation of a user, setting the identity of the first electronic device to a first identity; when the first electronic device is underwater, receiving and responding to a second operation of the user, displaying one or more messages, the one or more messages including the first message; receiving and responding to a third operation of the user selecting to send the first message, sending a first sound wave signal, the first sound wave signal carrying the first message and the first identity.

[0009] In this way, using acoustic signals for underwater communication has a longer transmission distance than traditional wireless communication methods. Moreover, the information sent carries an identity to inform the receiver of the sender of the information.

[0010] Furthermore, the user can set their own identity, and they can also change it based on different usage scenarios. For example, a user might be an instructor on one date and a buddy on the next. The user can set their identity to instructor on the first date and change it to buddy on the second date, and so on. This allows users to change the identity set in their electronic device based on their changing identity, making it easier for recipients to quickly identify the sender of a message based on the identity in the message.

[0011] In a possible implementation, before receiving the second operation, the method further includes: the first electronic device detecting that the first electronic device is underwater.

[0012] In a possible implementation, the first operation is an operation of the user selecting a first identity identifier; the method further includes: before receiving the first operation, displaying an identity list, the identity list including multiple identity identifiers, the multiple identity identifiers including the first identity identifier.

[0013] In this way, multiple optional identity identifications can be provided to users, which facilitates user operation and reduces operation time.

[0014] In a possible implementation, the first operation is an operation of a user inputting a first identity identifier.

[0015] In this way, the user can also enter the identity identification himself.

[0016] In a possible implementation, the first electronic device further includes a first button; and the second operation is an operation performed by a user on the first button.

[0017] In this way, underwater, the first electronic device can be triggered to display one or more messages by pressing a button (including a crown, etc.).

[0018] In one possible implementation, the first electronic device also includes a second button and a third button; receiving and sending a first sound wave signal in response to the user's third operation of selecting to send the first message, specifically including: receiving and displaying a selection mark on the first message in response to the user's operation on the second button, the selection mark is used to prompt the user that the first message is selected; receiving and sending the first sound wave signal in response to the user's operation on the third button.

[0019] In this way, underwater, the first electronic device can be triggered to send the first message by pressing a button (including a crown, etc.).

[0020] In one possible implementation, the first electronic device may include a first button; the second operation is a pressing operation performed by a user on the first button; the third operation is a rotation operation performed by a user on the first button; and the third operation is a pressing operation performed by a user on the first button.

[0021] In another possible implementation, in one possible implementation, the first electronic device may include a first button and a second button; the second operation is a pressing operation performed by a user on the first button; the third operation is a rotation operation performed by a user on the second button; the third operation is a pressing operation performed by a user on the second button.

[0022] It is understandable that the above-mentioned various implementation methods are only examples. The first electronic device may include one or more buttons, and the operation methods of the second operation and the third operation may also be other operation methods, which are not limited in this application.

[0023] In one possible implementation, the method also includes: monitoring a first physiological parameter of the user, where the first physiological parameter is any one of the following: body temperature, heart rate, blood pressure, blood oxygen concentration, and central nervous system toxin concentration; when the first electronic device is underwater and detects that the first physiological parameter does not belong to the first interval, sending a second sound wave signal, the second sound wave signal carries second information and a first identity identifier, and the second information is used to notify the recipient that the first physiological parameter of the user of the first electronic device is abnormal.

[0024] In this way, when an abnormal physiological parameter of the user is detected, the first electronic device can be triggered to send information to notify the user of the first electronic device that an abnormal condition has occurred.

[0025] In one possible implementation, the method also includes: monitoring a first environmental equipment parameter, where the first environmental equipment parameter is any one of the following: water temperature, water depth, water flow rate, ambient light intensity, water pressure, oxygen remaining, remaining safety time, no-decompression time, and diving time; when the first electronic device is underwater and it is monitored that the first environmental equipment parameter does not belong to the second interval, a third sound wave signal is sent, and the third sound wave signal carries third information and a first identity identifier, and the third information is used to notify the recipient that the first environmental equipment parameter of the first electronic device is abnormal.

[0026] In this way, when abnormal parameters of environmental equipment are detected, the first electronic device can be triggered to send information to notify the companion that the equipment or environment of the first electronic device is abnormal.

[0027] In one possible implementation, the method further includes: monitoring the diving status, which includes any one or more of the following: ascending, descending, and staying; when the first environmental equipment parameter reaches a first value, sending a fourth sound wave signal, the fourth sound wave signal carries fourth information and a first identity identifier, the fourth information includes the first environmental equipment parameter and the first diving status, and the first diving status is the diving status of the first electronic device.

[0028] In this way, when it is monitored that the environmental equipment parameters reach a specific value, the first electronic device can be triggered to send out the diving status and the environmental equipment parameters together.

[0029] In one possible implementation, the method further includes: monitoring a first diving parameter, where the first diving parameter is any one of the following: stay duration, ascent speed, and descent speed; when the first electronic device is underwater and it is detected that the first diving parameter does not belong to a third interval, sending a fifth sound wave signal, the fifth sound wave signal carries fifth information and a first identity identifier, and the fifth information is used to notify a recipient that the first diving parameter of the first electronic device is abnormal.

[0030] In this way, when an abnormal diving parameter is detected, the first electronic device can be triggered to send information to notify the user of the first electronic device that the abnormal condition has occurred.

[0031] It is understandable that the above-mentioned multiple implementation methods are only examples. In some possible implementation methods, the first electronic device may also send a specific message when it detects that any one or more parameters such as physiological parameters, environmental equipment parameters, diving status, diving parameters, etc. meet specific conditions. This application does not limit this.

[0032] In one possible implementation, the first sound wave signal also carries a first group identifier, which is used to indicate that the first electronic device belongs to the first group; the method also includes: before receiving the second operation, receiving a fourth operation of the user joining the first group; in response to the fourth operation, broadcasting the first group identifier and the first identity identifier; receiving the first group identifier and the second identity identifier sent by the second electronic device, the second identity identifier being the identity identifier of the second electronic device; and displaying a member list of the first group, the member list including the first identity identifier and the second identity identifier.

[0033] In this way, electronic devices in the same group can communicate with each other.

[0034] In one possible implementation, the first sound wave signal also carries a first group identifier, which is used to indicate that the first electronic device belongs to the first group; the method also includes: before receiving the second operation, receiving a fifth operation of the user creating the first group; in response to the fifth operation, broadcasting the first group identifier and the first identity identifier; receiving the first group identifier and the second identity identifier sent by the second electronic device, the second identity identifier being the identity identifier of the second electronic device; broadcasting the first group identifier and a member list of the first group, the member list including the first identity identifier and the second identity identifier.

[0035] In this way, the first electronic device can create a first group and determine the first electronic device as the center device of the group in response to the operation of creating the group. The center device can broadcast the member list of the group after updating the member list.

[0036] In other possible implementations, the first electronic device may also determine that the first electronic device is the central device of the group based on any one or more of the identity of the first electronic device (such as a coach, etc.), the device's battery life (such as the remaining battery level), the time of joining the group, etc. This application does not limit this.

[0037] In one possible implementation, the method also includes: when a sixth sound wave signal sent by a second electronic device is received, displaying the sixth information and the second identity identifier, the sixth sound wave signal carries the sixth information, the first group identifier, and the second identity identifier; when a seventh sound wave signal sent by a third electronic device is received, not displaying the seventh information, the seventh sound carries the seventh information and the third identity identifier, the third identity identifier is the identity identifier of the third electronic device, and the third electronic device does not belong to the first group.

[0038] In this way, when a message is received from an electronic device that does not belong to the same group, the message may not be displayed.

[0039] In one possible implementation, the method also includes: when the first electronic device is underwater, sending an eighth sound wave signal at a first moment, the eighth sound wave signal carrying a first identity identifier and a first moment; receiving a ninth sound wave signal sent by the second electronic device at a second moment, the ninth sound wave signal being a sound wave signal sent by the second electronic device when the eighth sound wave signal is received, the ninth sound wave signal carrying the emission moment of the ninth sound wave signal and the second identity identifier of the second electronic device; in response to the ninth sound wave signal, outputting distance information based on the emission moment of the ninth sound wave signal and the second moment, the distance information being used to indicate the distance between the first electronic device and the second electronic device.

[0040] In this way, the first electronic device can determine the distance between itself and the second electronic device in real time, which makes it easier to determine the distance between itself and its companions, thereby improving diving safety.

[0041] In a possible implementation, before transmitting the eighth sound wave signal, the method further includes: the first electronic device receives and responds to a user's operation of turning on the distance monitoring function, turning on the distance monitoring function.

[0042] In this way, after the distance monitoring function is enabled, the first electronic device can monitor the distance between the first electronic device and the second electronic device in real time.

[0043] In another possible implementation, the first electronic device can monitor the distance between the first electronic device and the second electronic device in real time without manual operation by the user.

[0044] In one possible implementation, the method also includes: when the first electronic device is underwater, sending an eighth sound wave signal at a first moment, the eighth sound wave signal carrying a first identity identifier; receiving a ninth sound wave signal sent by the second electronic device at a second moment, the ninth sound wave signal being the sound wave signal sent by the second electronic device when receiving the eighth sound wave signal, and the ninth sound wave signal carrying the second identity identifier of the second electronic device; sending a tenth sound wave signal at a third moment, the tenth sound wave signal carrying the first identity identifier; receiving an eleventh sound wave signal sent by the second electronic device at a fourth moment, the eleventh sound wave signal being the sound wave signal sent by the second electronic device when receiving the tenth sound wave signal, and the eleventh sound wave signal carrying the second identity identifier of the second electronic device; outputting a distance prompt based on the first time interval and the second time interval, the distance prompt being used to prompt a user of a change in the distance between the first electronic device and the second electronic device, the first time interval being the time interval between the first moment and the second moment, and the second time interval being the time interval between the third moment and the fourth moment.

[0045] In this way, the first electronic device can determine the distance change between it and the second electronic device in real time, thereby improving diving safety.

[0046] In one possible implementation, outputting a distance prompt based on a first time interval and a second time interval specifically includes: when the first time interval is greater than the second time interval, outputting a first distance prompt, the first distance prompt being used to prompt a user that the distance between the first electronic device and the second electronic device is decreasing; when the first time interval is less than the second time interval, outputting a second distance prompt, the second distance prompt being used to prompt a user that the distance between the first electronic device and the second electronic device is increasing.

[0047] In this way, a distance prompt can be output in real time to indicate whether the distance between the two electronic devices is increasing or decreasing.

[0048] In one possible implementation, the method further includes: before receiving the first operation, displaying a first prompt, the first prompt being used to prompt the user that the first electronic device has not yet been set up with an identity identifier; receiving and responding to the user's first operation, setting the identity identifier of the first electronic device to the first identity identifier, specifically including: receiving and responding to the user's first operation, displaying a second prompt, the second prompt being used to prompt the user that the identity identifier of the first electronic device is the first identity identifier.

[0049] In this way, the first electronic device can set an identity based on the user's operation.

[0050] In the second aspect, the present application provides an underwater communication method, which is applied to a buoy device, and the buoy device stores first position information, and the first position information is used to indicate the position of the buoy device; the method includes: at a fifth moment, receiving a twelfth sound wave signal sent from underwater by a first electronic device, the twelfth sound wave signal carries a first identity identifier and a first transmission time of the first electronic device, and the first transmission time is the transmission time of the twelfth sound wave signal; determining second position information based on the fifth moment, the first transmission time and the first position information, and the second position information is used to indicate the position of the first electronic device; sending a first wireless signal to a second electronic device that is not submerged in water, and the first wireless signal includes the second position information.

[0051] In this way, the location information of the underwater electronic device can be sent to the electronic devices on shore through the buoy device, so that the electronic devices on shore can determine the location of the underwater electronic device.

[0052] In a possible implementation manner, the method further includes: after determining the second position information, sending a thirteenth sound wave signal to the first electronic device, where the thirteenth sound wave signal carries the second position information.

[0053] In this way, the buoy device can also send the location information of the first electronic device to the first electronic device, so that the user of the first electronic device can determine his or her own location.

[0054] In a third aspect, the present application provides an electronic device, namely, a first electronic device, comprising one or more processors, one or more memories, a display screen, and a sound module. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, the computer program code comprising computer instructions. When the one or more processors execute the computer instructions, the first electronic device performs the underwater communication method according to any possible implementation of any of the above aspects.

[0055] In a possible implementation, the sound module is attached to the rear shell of the first electronic device, and the sound module is used to drive the rear shell to vibrate and send sound wave signals.

[0056] In this way, the sound wave signal can be directly transmitted into the water through the vibration of the rear shell, reducing transmission loss.

[0057] In a fourth aspect, an embodiment of the present application provides a computer storage medium comprising computer instructions, which, when executed on a first electronic device, enables the first electronic device to execute an underwater communication method in any possible implementation of any of the above aspects.

[0058] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a first electronic device, enables the first electronic device to execute the underwater communication method in any possible implementation of any of the above aspects.

[0059] The beneficial effects of the third to fifth aspects can refer to the beneficial effects of the first aspect mentioned above.

[0060] In a sixth aspect, the present application provides a buoy device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are configured to store computer program code, the computer program code comprising computer instructions. When the one or more processors execute the computer instructions, the buoy device executes the underwater communication method according to any possible implementation of the second aspect.

[0061] In a seventh aspect, an embodiment of the present application provides a computer storage medium comprising computer instructions. When the computer instructions are executed on a buoy device, the buoy device executes the underwater communication method in any possible implementation of the second aspect.

[0062] In an eighth aspect, an embodiment of the present application provides a computer program product, which, when executed on a buoy device, enables the buoy device to execute the underwater communication method in any possible implementation of the second aspect.

[0063] The beneficial effects of the sixth to eighth aspects can refer to the beneficial effects of the second aspect mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] FIG1A is a schematic diagram of the system architecture of an underwater communication system 10 provided in an embodiment of the present application;

[0065] FIG1B is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;

[0066] FIG1C is a schematic diagram showing the connection relationship of a sound wave signal transceiver module provided in an embodiment of the present application;

[0067] FIG1D is a schematic diagram showing the positional relationship of a sound module 170D in an electronic device 100 according to an embodiment of the present application;

[0068] FIG1E is a schematic diagram showing the positional relationship of another sound module 170D in the electronic device 100 according to an embodiment of the present application;

[0069] FIG1F is a schematic diagram illustrating the relationship between the deformation of a sound module 170D and the waveform of a generated sound wave signal provided by an embodiment of the present application;

[0070] 2A-2F are schematic diagrams of a set of interfaces for setting the identity of the electronic device 100 according to an embodiment of the present application;

[0071] 3A-3F are schematic diagrams of interfaces of a group of electronic devices 100 transmitting information underwater, provided by an embodiment of the present application;

[0072] 4A-4E are schematic diagrams of interfaces for a group of electronic devices 100 to join / exit a group, provided in an embodiment of the present application;

[0073] 5A-5F are schematic diagrams of interfaces for setting information sending conditions of a group of electronic devices 100 provided in an embodiment of the present application;

[0074] FIG5G is a schematic diagram of an interface of an electronic device 100 receiving a receipt message according to an embodiment of the present application;

[0075] FIG5H is a schematic diagram of an interface for outputting a distance change prompt by an electronic device 100 according to an embodiment of the present application;

[0076] FIG6A is a schematic diagram of a flow chart of an underwater communication method provided in an embodiment of the present application;

[0077] FIG6B is a schematic diagram of the structure of an acoustic wave signal provided in an embodiment of the present application;

[0078] FIG6C is a waveform diagram of an acoustic signal provided in an embodiment of the present application;

[0079] FIG7 is a schematic diagram of a process of an electronic device 200 receiving target information sent by an electronic device 100 underwater, provided by an embodiment of the present application;

[0080] FIG8 is a schematic diagram of a process of an electronic device 100 joining a group according to an embodiment of the present application;

[0081] FIG9 is a schematic diagram of a process of another electronic device 100 joining a group provided by an embodiment of the present application;

[0082] FIG10 is a flow chart of a method for determining a change in the distance between an electronic device 100 and an electronic device 200 based on underwater communication according to an embodiment of the present application;

[0083] FIG11 is a schematic diagram of functional modules of an electronic device 100 provided in an embodiment of the present application;

[0084] FIG12 is a schematic diagram of the system architecture of an underwater communication system 20 provided in an embodiment of the present application;

[0085] FIG13 is a schematic diagram showing a flow chart of an underwater communication method provided in an embodiment of the present application;

[0086] FIG14 shows a flow chart of another underwater communication method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0087] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0088] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0089] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.

[0090] FIG1A shows a schematic diagram of the architecture of an underwater communication system 10 provided in an embodiment of the present application.

[0091] As shown in FIG. 1A , the underwater communication system 10 may include an electronic device 100 and an electronic device 200 .

[0092] The electronic device 100 may include one or more buttons, such as button 11, button 12, and button 13. In some embodiments, button 11 may be set at the ten o'clock position of the electronic device 100, button 12 may be set at the two o'clock position of the electronic device 100, and button 13 may be set at the four o'clock position of the electronic device 100. The electronic device 200 may also include one or more buttons, such as button 21, button 22, and button 23. The relevant description of the buttons of the electronic device 200 can refer to the relevant description of the buttons of the electronic device 100 and will not be repeated here. After the electronic devices 100 and 200 are immersed in water, the user can use the buttons to send and view information.

[0093] When both the electronic device 100 and the electronic device 200 are underwater, the electronic device 100 and the electronic device 200 can achieve underwater communication through underwater acoustic carrier communication technology. The electronic device 100 can generate an acoustic wave signal carrying information through a buzzer, and propagate the acoustic wave signal to the surroundings using water as a propagation medium. The electronic device 200 can receive the acoustic wave signal carrying information through a microphone or a sound pickup sensor to achieve underwater communication between the electronic device 100 and the electronic device 200. It is understandable that the electronic device 200 can also send information to the electronic device 100 in the above manner. Among them, the acoustic wave signal may include an ultrasonic signal, an infrasonic wave signal, and an acoustic wave signal audible to the human ear. The embodiment of the present application does not limit the frequency range of the acoustic wave signal.

[0094] In some embodiments, when the electronic device 100 and the electronic device 200 are not underwater, the electronic device 100 and the electronic device 200 can communicate through wireless communication methods such as Bluetooth and wireless LAN, which is not limited in this application.

[0095] It is understood that the embodiment shown in FIG1A is merely an example. In the embodiments of the present application, the underwater communication system 10 may further include more electronic devices. Furthermore, the electronic device 100 (or electronic device 200) may also include more or fewer buttons, and the positions of the buttons may also be different from those in the above embodiment, which is not limited in the present application.

[0096] It should be noted that the electronic device 100 and the electronic device 200 can be the watch shown in Figure 1A, or can be other wearable devices such as bracelets and smart glasses. The embodiments of the present application do not limit the specific types and device forms of the electronic device 100 and the electronic device 200.

[0097] FIG. 1B shows a schematic diagram of the hardware structure of the electronic device 100 .

[0098] The electronic device 100 can be a wearable device such as a watch, a bracelet, smart glasses, etc. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device.

[0099] The electronic device 100 may include a processor 110, 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 audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sound module 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, and a display screen 194. Optionally, the electronic device 100 may further include a wireless communication module 160. The sensor module 180 may include one or more sensors, such as a pressure sensor 180A, a temperature sensor 180J, a touch sensor 180K, a heart rate sensor 180N, a light sensor 180O, and a depth sensor 180P. Optionally, the sensor module 180 may further include any one or more of sensors such as a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, and a sound pickup sensor 180Q.

[0100] It should be understood that the structure illustrated in the embodiments of the present invention 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, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0101] 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 processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0102] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0103] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0104] In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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.

[0105] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0106] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the display 194, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). 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.

[0107] The wireless communication module 160 can provide a solution for any one or more wireless communications applied to the electronic device 100, 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 technology (IR), etc. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 can receive electromagnetic waves via an antenna, demodulate and filter the electromagnetic wave signals, and send the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna.

[0108] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0109] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be made of 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), a MiniLED, a MicroLED, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.

[0110] The internal memory 121 may include one or more random access memories (RAMs) and one or more non-volatile memories (NVMs). The RAM can be directly read and written by the processor 110 and can be used to store executable programs (e.g., machine instructions) of the operating system or other running programs, as well as user and application data. The NVM can also store executable programs and user and application data, and can be pre-loaded into the RAM for direct reading and writing by the processor 110.

[0111] The audio module 170 may include a speaker 170A, a receiver 170B, a microphone 170C, a sound module 170D, etc. The electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the sound module 170D, and the application processor.

[0112] 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 provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0113] The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound wave signals.

[0114] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound wave signals.

[0115] Microphone 170C, also called "microphone" or "microphone", is used to convert sound wave signals into electrical signals. 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 wave 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 realize collection of sound wave signals, noise reduction, identification of sound sources, realization of directional recording function, etc. In the embodiment of the present application, the microphone 170C can be used to collect sound wave signals emitted by other electronic devices.

[0116] The sound module 170D can be used to convert electrical signals into sound signals. In an embodiment of the present application, the sound module 170D is used to generate sound wave signals carrying information. The sound module 170D may include a moving coil type, a piezoelectric type, or other sensors that can realize electroacoustic conversion. In some embodiments, the sound module 170D may include a buzzer. In other embodiments, the sound module 170D may include a sound-generating device made of piezoelectric material, such as a piezoelectric sheet. The shape of the piezoelectric sheet may be annular, semicircular, or other shapes, which is not limited in the present application.

[0117] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. In some embodiments, pressure sensor 180A can also be used to measure a user's physiological parameters (e.g., blood pressure). In other embodiments, pressure sensor 180A can be used to measure water pressure and determine the user's diving depth based on the relationship between water pressure and water depth.

[0118] The gyroscope 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 gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope 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 gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0119] The magnetic sensor 180D includes a Hall sensor, and the electronic device 100 can detect a magnetic field using the magnetic sensor 180D.

[0120] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0121] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.

[0122] Temperature sensor 180J is used to detect temperature. Temperature sensor 180J may include a body temperature sensor and a water temperature sensor. The body temperature sensor is used to monitor the user's body temperature. The water temperature sensor can be used to monitor water temperature. In some embodiments, the temperature sensor can also be used to monitor the temperature of electronic device 100.

[0123] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. 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 applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0124] Heart rate sensor 180N can be used to monitor the user's heart rate.

[0125] The light sensor 180O, also known as an ambient light sensor, is used to sense the brightness of ambient light. In the embodiment of the present application, the electronic device 100 can determine the user's environment based on the brightness of ambient light detected by the light sensor 180O.

[0126] The depth sensor 180P can be used to detect the depth of the electronic device 100 underwater.

[0127] The sound pickup sensor 180Q can be used to collect sound wave signals so that the electronic device 100 can identify the information carried in the collected sound wave signals. The sound pickup sensor 180Q can be a dynamic, capacitive, or piezoelectric acoustic sensor.

[0128] Keys 190 include a power button, volume button, and crown. Keys 190 can be mechanical or touch-sensitive. Electronic device 100 can receive key inputs and generate key signal inputs related to user settings and function control of electronic device 100. In this embodiment of the present application, keys 190 may include keys 11, 12, and 13 shown in FIG1A above.

[0129] Motor 191 can generate vibration alerts. This can be used for incoming message alerts or touch vibration feedback. Depending on the type of message received, motor 191 can generate different vibration feedback effects. The vibration feedback effects can also be customized.

[0130] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, notifications, etc.

[0131] In the embodiment of the present application, the hardware structure of the electronic device 200 and the hardware structure of other electronic devices in the underwater communication system 10 can also refer to the relevant description of the hardware structure of the electronic device 100 shown in Figure 1B above, and will not be repeated here.

[0132] FIG1C shows a schematic diagram of the connection relationship of a sound wave signal transceiver module provided in an embodiment of the present application.

[0133] As shown in FIG1C , the electronic device 100 may include a processor 110 , a receiving module 101 , a transmitting module 102 , a filtering and amplifying circuit 103 , a power amplifying circuit 104 , an analog-to-digital converter 105 , and a digital-to-analog converter 106 .

[0134] The receiving module 101 can collect sound wave signals and may include a dynamic coil, piezoelectric, or other sensor capable of converting sound into electricity. For example, the receiving module 101 may include any one or more of the following: a microphone 170C, a sound pickup sensor 180Q, etc. The receiving module 101 can convert the collected sound wave signals into electrical signals and transmit the electrical signals to the filtering and amplifying circuit 103.

[0135] The filtering and amplifying circuit 103 can filter and amplify the electrical signal sent by the receiving module 101, filter the noise signal, amplify the filtered electrical signal, and send the processed electrical signal to the analog-to-digital converter 105.

[0136] The analog-to-digital converter 105 can receive the electrical signal sent by the filtering and amplifying circuit 103 , convert the electrical signal (ie, analog signal) into a digital signal, and send the digital signal to the processor 110 .

[0137] The processor 110 may receive the digital signal sent by the analog-to-digital converter 105 and determine the information and identity carried by the received sound wave signal based on the digital signal. After determining the information to be sent, the processor 110 may also encode the information and the identity of the electronic device 100 to obtain a digital signal corresponding to the target information, and send the digital signal corresponding to the target information to the digital-to-analog converter 106.

[0138] The DAC 106 may receive a digital signal sent by the processor 110 and convert the digital signal into an analog signal, ie, an electrical signal corresponding to the digital signal. The DAC 106 may then send the converted electrical signal to the power amplifier circuit 104 .

[0139] After receiving the electrical signal sent by the digital-to-analog converter 106 , the power amplifier circuit 104 may amplify the electrical signal and send the processed electrical signal to the transmitting module 102 .

[0140] The transmitting module 102 may include a moving coil type, a piezoelectric type, or other sensor capable of achieving electroacoustic conversion. The transmitting module 102 may receive the electrical signal sent by the power amplifier circuit 104, convert the electrical signal into an acoustic wave signal, and then transmit the acoustic wave signal outward. In some embodiments, the transmitting module 102 may be provided with a drive transmitting circuit, which is used to drive the transmitting module 102 to transmit the acoustic wave signal. In other embodiments, the drive transmitting circuit may also be provided outside the transmitting module 102 and connected to the transmitting module 102 to drive the transmitting module 102 to transmit the acoustic wave signal.

[0141] In some embodiments, the transmitting module 102 and the receiving module 101 may also share the same module and use a half-duplex mode to implement signal transmission or reception, which is not limited in this application.

[0142] It should be noted that the connection relationship between the acoustic signal transceiver modules in the electronic device 200 and other electronic devices in the underwater communication system 10 can also refer to the embodiment shown in Figure 1C above, and will not be repeated here.

[0143] FIG1D shows a schematic diagram of the positional relationship of a sound module 170D in an electronic device 100 provided in an embodiment of the present application.

[0144] As shown in FIG1D , a sound module 170D and a battery 142 may be arranged in sequence below the display screen 194. The sound module 170D may be fixed between the display screen 194 and the battery 142 via a support frame. The sound module 170D and the battery 142 may be fixed (e.g., adhered, etc.) above and below the support frame, respectively. There is a gap (also referred to as an upper gap) between the sound module 170D and the display screen 194, and a gap (also referred to as a lower gap) between the sound module 170D and the battery 142. The upper and lower gaps may provide space for the sound module 170D to vibrate up and down. Moreover, since the battery expands after long-term use, the lower gap may also provide space for the battery to expand. The support frame may be made of an insulating material, or the surface of the support frame may be insulated. The support frame may have a ring-shaped (or rectangular or other shape) structure, and the specific shape of the support frame may be determined by the shapes of the battery 142 and the sound module 170D.

[0145] In this way, vibration space is reserved above and below the sound-emitting module 170D, which facilitates the vibration and sound generation of the sound-emitting module 170D.

[0146] In the embodiment shown in FIG. 1D , the sound module 170D may be a buzzer.

[0147] FIG1E shows a schematic diagram of the positional relationship of another sound module 170D provided in an embodiment of the present application in an electronic device 100 .

[0148] As shown in Figure 1E, the sound module 170D can be set between the back shell 151 and the battery 142 of the electronic device 100, wherein the battery 142 can be set below the display screen 194. The back shell 151 refers to the shell that is close to the user's skin when the electronic device 100 is worn by the user. The sound module 170D can fit tightly with the back shell 151.

[0149] When the electronic device 100 is in water and the sound module 170D vibrates and makes sound, since the rear shell 151 and the sound module 170D are attached together, the sound module 170D can drive the rear shell 151 to vibrate together, propagating the sound wave signal into the water, and then propagating the sound wave signal to other electronic devices through the water.

[0150] In this way, the sound module 170D can directly transmit the sound wave signal into the water by driving the rear shell 151 to vibrate, without the need to transmit the generated sound wave signal through the gas inside the shell to the shell, and then from the shell to the water, thereby shortening the propagation path of the sound wave signal and improving the propagation efficiency.

[0151] In the embodiment shown in FIG1E , the sound module 170D can be a piezoelectric sheet made of a piezoelectric material. The piezoelectric sheet can have different shapes. For example, if the body of the electronic device 100 is circular, the shape of the piezoelectric sheet can be annular. In this case, a sensor can be provided at a position in the annular shape, and the sensor can be used to monitor the user's heart rate and other physiological parameters. It is understandable that the annular piezoelectric sheet here is only an example. In the embodiment of the present application, the shape of the piezoelectric sheet can also be a square frame, a semicircle, a semicircular ring, etc., and the present application does not limit this.

[0152] It is understood that the embodiments shown in Figures 1D and 1E are merely two examples. In the embodiments of the present application, the sound module 170D may also be disposed at other locations within the electronic device 100, and this application is not limited thereto. Furthermore, the sound module 170D and other related components provided in the embodiments of the present application are compact and lightweight, making them easy to integrate into small electronic devices and convenient for users to wear.

[0153] In some embodiments, if the positional relationship between the sound module 170D and the various components of the electronic device 100 adopts the positional relationship shown in Figure 1E above, the transmitting module or the receiving module can be integrated with the structural housing such as the rear housing 151 through gluing or injection molding. Optionally, in this case, the transmitting module and the receiving module can also share the same module and use half-duplex mode to realize signal transmission or reception.

[0154] The relationship between the vibration of the sound generating module 170D and the generated sound waveform will be described below.

[0155] As shown in Figure 1F, the position of the sound module 170D when not vibrating can be referred to as the initial position. During the process of vibrating and emitting sound, the sound module 170D can deform upward or downward. The waveform of the sound wave signal generated by the vibration of the sound module 170D can be the curve C1 in the two-dimensional coordinate axis shown in Figure 1F. In this two-dimensional coordinate axis, the horizontal axis can represent time, the vertical axis can represent amplitude, and the curve C1 can represent the waveform of the sound wave signal. The waveform of the sound wave signal can be related to the deformation direction and degree of the sound module 170D.

[0156] Taking one cycle of curve C1 as an example, curve C1 may include a peak point A1 and a valley point A2 within this cycle. The amplitude of peak point A1 is the highest amplitude of the sound wave signal, and the amplitude corresponding to valley point A2 is the lowest amplitude of the sound wave signal. Within this time period, peak point A1 may be generated when the sound module 170D deforms upward to its highest position, and valley point A2 may be generated when the sound module 170D deforms downward to its lowest position. The higher the highest position of the sound module 170D, the higher the amplitude of peak point A1, and the lower the lowest position of the sound module 170D, the higher the absolute value of the amplitude of valley point A2.

[0157] It can be understood that Figure 1F only exemplifies the correspondence between the vibration direction and amplitude of the sound module 170D and the waveform of the generated sound wave signal. In the embodiment of the present application, the waveform of the sound wave signal may also be a waveform different from that of the above embodiment, and the present application does not limit it here.

[0158] An embodiment of the present application provides an underwater communication method, which is applied to an electronic device 100. The method includes: receiving and responding to a first operation of a user, setting the identity of the electronic device 100 to a first identity; when the electronic device 100 is underwater, receiving and responding to a second operation of the user, displaying one or more messages, the one or more messages including the first message; receiving and responding to a third operation of the user selecting to send the first message, sending a first sound wave signal, the first sound wave signal carrying the first message and the first identity.

[0159] In this way, underwater communication can be achieved using acoustic signals as the carrier of information. Moreover, acoustic signals have less attenuation when propagating underwater and can propagate over a greater distance than traditional wireless communications.

[0160] The following is a schematic diagram of a set of interfaces for enabling underwater communication functions and setting identity identification provided in an embodiment of the present application.

[0161] For example, as shown in FIG2A , the electronic device 100 may display a main interface 210 , and the main interface 210 may display time, such as “08:00”.

[0162] The electronic device 100 may receive and respond to a user's sliding operation on the main interface 210 to display a drop-down menu 220 as shown in FIG2B . The drop-down menu 220 may include one or more controls, such as a do not disturb control, a location control, an underwater communication control 221, and the like.

[0163] The electronic device 100 may receive and, in response to a user's click operation on the underwater communication control 221 , display the underwater communication interface 230 as shown in FIG. 2C .

[0164] As shown in Figure 2C , the underwater communication interface 230 may include an enable switch 231, which can be used to enable or disable the underwater communication function of the electronic device 100. The enable switch 231 can have two states: on and off. The state of the enable switch 231 can be used to indicate to the user whether the underwater communication function is enabled. In the embodiment shown in Figure 2C , the enable switch 231 is in the off state, indicating that the underwater communication function is not currently enabled on the electronic device 100. The underwater communication interface 230 may also include one or more setting items, such as an identity entry 232 and a group entry 233. In some embodiments, if the enable switch 231 is in the off state, one or more of the setting items (including the identity entry 232 and the group entry 233) may be grayed out. In this grayed-out state, the one or more setting items cannot trigger the electronic device 100 to display the corresponding interface. In other embodiments, if the enable switch 231 is in the off state, the underwater communication interface 230 may not display the one or more setting items, which is not limited in this application.

[0165] The electronic device 100 can receive and respond to the user's click operation on the enable switch 231, as shown in Figure 2D, to switch the state of the enable switch 231 from off to on. After the enable switch 231 is turned on, one or more setting items in the underwater communication interface 230 can be restored from the grayed-out state to the normal state. In the normal state, the one or more setting items can trigger the electronic device 100 to display the corresponding interface. Among them, the identity identification entry 232 can be used to trigger the electronic device 100 to set the identity identification of the electronic device 100. The identity identification entry 232 can also display an identity prompt 232a, such as the text "No identification", to prompt the user that the identity identification is not currently set. In other embodiments, regardless of whether the enable switch 231 is in the on state, the one or more setting items can be displayed in the underwater communication interface 230, and the one or more setting items are all in the normal state.

[0166] The electronic device 100 may receive and, in response to a user click operation on the identity identification entry 232 , display an identity selection interface 240 as shown in FIG. 2E .

[0167] As shown in Figure 2E, the identity selection interface 240 can display one or more identity identifiers, such as coach 1, coach 2, student 1, student 2, etc. In Figure 2E, a check mark 241 is displayed on "coach 1", and the check mark 241 can be a rectangular box, or other graphics, patterns, etc. The check mark 241 can be used to prompt the user that the currently selected identity identifier is "coach 1". It should be noted that the electronic device 100 can receive and respond to the user's sliding operation on the identity selection interface 240 (or the user's operation on a button, etc.) to switch the selected identity identifier. The identity selection interface 240 can also include a confirmation control 242, which is used to trigger the electronic device 100 to set the currently selected identity identifier as the identity identifier of the electronic device 100.

[0168] The electronic device 100 may receive and respond to the user's click operation on the confirmation control 242 by setting the currently selected identity, Coach 1, as the identity of the electronic device 100 and displaying the underwater communication interface 230 shown in FIG2F . In some embodiments, if the identity set on the electronic device 100 is different, the information list displayed by the electronic device 100 may be different, and the information list allows the user to select the information to be sent.

[0169] As shown in FIG. 2F , in the underwater communication interface 230 , the identity prompt 232 a displayed in the identity entry 232 may be the text “Coach 1 ”, which is used to prompt the user that the currently set identity is “Coach 1 ”.

[0170] In this way, the electronic device 100 can enable the underwater communication function before entering the water and set the identity based on the user's operation.

[0171] It is understood that the embodiments shown in Figures 2A to 2F above are merely examples, and in embodiments of the present application, the electronic device 100 may also enable the underwater communication function through other means. In some embodiments, the electronic device 100 may be installed with a diving application. In this case, the electronic device 100 may enable the underwater communication function within the diving application. In other embodiments, underwater communication-related functions may also be provided within a sports application (or other applications, etc.). In this case, the electronic device 100 may also enable the underwater communication function through the sports application, etc., and this application does not limit this.

[0172] The following is a schematic diagram of an interface for a group of electronic devices 100 providing information to other electronic devices underwater, as provided in an embodiment of the present application.

[0173] For example, when the electronic device 100 detects that the user is diving, as shown in FIG3A , the electronic device 100 may display a diving status interface 310. This diving status interface 310 may include one or more diving metrics, such as the current oxygen level, diving depth, diving speed, maximum and average depths of the current dive, underwater time, etc. The diving status interface 310 may also display the current time and the battery level of the electronic device 100.

[0174] The electronic device 100 may receive and respond to the user's operation on the button 11 by displaying the advanced menu interface 320 as shown in FIG. 3B .

[0175] As shown in FIG3B , advanced menu interface 320 may display a menu list, which may include one or more options, such as a gas replacement option, a message list option 321, and a view historical message option 322. In FIG3B , a check mark 323 may be displayed on message list option 321, indicating to the user that message list option 321 is currently selected. For other details regarding check mark 323, please refer to the description of the embodiment shown in FIG2E . Optionally, advanced menu interface 320 may also display one or more key operation prompts to indicate the user the functions of the corresponding keys. For example, the key operation prompt 324 displayed near button 11 can be used to prompt the user that the operation of button 11 can trigger the electronic device 100 to return to the previous interface (i.e., the diving status interface 310); the key operation prompt 325 displayed near button 12 can be used to prompt the user that the operation of button 12 can trigger the electronic device 100 to switch the currently selected option; the key operation prompt 326 displayed near button 13 can be used to prompt the user that the operation of button 13 can be used to trigger the electronic device 100 to display the interface corresponding to the currently selected option.

[0176] The electronic device 100 may receive and, in response to the user's operation on the key 13 , display a message list 330 as shown in FIG. 3C .

[0177] As shown in FIG3C , message list 330 may include one or more preset messages, such as preset message 331, preset message 332, and preset message 333. Preset message 331 may include the text "Maintain this depth," preset message 332 may include the text "Reached the bottom," and preset message 333 may include the text "Running low on gas." In FIG3C , a check mark 334 may also be displayed on preset message 332 to indicate to the user that preset message 333 is the selected preset message. Optionally, message list 330 may also display multiple key operation prompts. The specific content of these multiple key operation prompts can be found in the relevant description of the embodiment shown in FIG3B .

[0178] The electronic device 100 can receive and respond to the user's operation on the button 13, send a sound wave signal carrying the preset information 332, and display the sending interface 340 shown in FIG3D.

[0179] As shown in FIG3D , the sending interface 340 may display a sending status 341. The sending status may include sending, sent, sending failed, etc. The sending status 341 may be used to prompt the user that the sending status of the current message is sending.

[0180] In some embodiments, the sending interface 340 may also display a sending message. The sending message may include the preset information selected by the user (e.g., the preset information 332 shown in FIG. 3C ) and the identity of the electronic device 100 (i.e., Coach 1). Optionally, the sending message may also include the current depth of the electronic device 100 and / or the sending time. For example, the sending message may be "Coach 1 @ depth 46.1m, reached the bottom at 5-23 10:25:31."

[0181] After the electronic device 100 completes the sending, as shown in FIG3E , the electronic device 100 may update the sending status 341 in the sending interface 340 from “sending” to “sent”.

[0182] After the underwater communication function is turned on, the electronic device 200 can collect the sound wave signal sent by the electronic device 100 through the sound pickup sensor and / or microphone, and parse the sound wave signal to obtain the information sent by the electronic device 100. As shown in Figure 3F, when the electronic device 200 receives the information sent by the electronic device 100, it can display an information prompt window 351 on the diving status interface 350. The information prompt window 351 can display the content of the information sent by the electronic device 100, such as "Coach 1 @ depth 46.1m, has reached the bottom." It is understandable that after the electronic device 200 receives the sound wave signal, the electronic device 200 can also output a reception reminder by flashing an indicator light, vibrating, making a sound, etc. to prompt the user that the information has been received.

[0183] It is understandable that after the electronic device 200 displays the information prompt window 351, the electronic device 200 may also send a sound wave signal carrying receipt information to the electronic device 100 based on the user's operation. The specific interface diagram may also refer to the relevant description in the embodiments shown in Figures 3A to 3E above, which will not be repeated here.

[0184] In some embodiments, the electronic device 200 may also enable the underwater communication function after detecting that the electronic device 200 has entered water, and collect sound wave signals propagating in the water through devices such as sound pickup sensors and / or microphones.

[0185] In this way, the electronic device 100 can send messages to the electronic device 200 (or other electronic devices) through acoustic wave signals underwater, and can also receive messages sent by the electronic device 200, thereby realizing long-distance underwater communication.

[0186] The following is a schematic diagram of an interface for a group of electronic devices 100 to join a group, provided in an embodiment of the present application.

[0187] 4A , the electronic device 100 displays an underwater communication interface 230, which may be the same as the underwater communication interface 230 shown in FIG2F . The electronic device 100 may receive and respond to a user's operation on the entry group entry 233 by displaying the entry group interface 410 shown in FIG4B .

[0188] 4B , the group entry interface 410 may include a numeric keypad 411 and an input area 412. The electronic device 100 may receive and respond to user input operations on the numeric keypad 411 by displaying the numeric sequence input by the user in the input area 412, such as "5678".

[0189] The electronic device 100 can add the electronic device 100 to the group corresponding to the number sequence according to the number sequence input by the user, and display the member list interface 420 as shown in FIG4C .

[0190] As shown in Figure 4C, the member list interface 420 can display the identity of one or more group members, and the one or more group members all belong to the group with a group identifier (identifier, ID) of 5678. The identity of the one or more group members may include: Coach 1, Student 1, Student 2, etc. The member list interface 420 can be used to prompt the user the number of group members in the group and the identity of each group member. The member list interface 420 can also display a group ID, such as "Group ID: NO.5678". Optionally, the member list interface 420 can also include a return control 421 for triggering the electronic device 100 to return to the underwater communication interface 230.

[0191] The electronic device 100 may receive and respond to the user's operation on the button 12 by displaying a group operation interface 430 as shown in FIG4D .

[0192] 4D , the group operation interface 430 may include a return menu control 431 and an exit group control 432. The return menu control 431 may be used to trigger the electronic device 100 to return to the underwater communication interface 230. The exit group control 432 may be used to trigger the electronic device 100 to exit the current group.

[0193] The electronic device 100 may receive and, in response to the user's operation on the exit group control 432 , display an exit interface 440 as shown in FIG4E .

[0194] As shown in FIG4E , exit interface 440 may display an exit prompt 441, a yes control 442, and a no control 443. Exit prompt 441 is used to ask the user whether to confirm exiting the current group. For example, exit prompt 441 may be the text "Are you sure you want to exit group (NO.5678)?" The yes control 442 is used to trigger electronic device 100 to exit the current group, and the no control 443 is used to trigger electronic device 100 to close exit interface 440 and redisplay group operation interface 430 or member list interface 420.

[0195] In this way, the electronic device 100 can join a group or exit a group it has joined.

[0196] It is understandable that the embodiment shown in Figures 4A to 4E is only an example. In the embodiment of the present application, the electronic device 100 can also be grouped in other ways, and the present application does not limit this.

[0197] In some embodiments, the electronic device 100 may also create a group using the method shown in FIG. 4A to FIG. 4E , which is not limited in this application.

[0198] The following is a schematic diagram of an interface for setting automatic sending conditions of the electronic device 100 provided in an embodiment of the present application.

[0199] For example, as shown in FIG5A , the electronic device 100 displays an underwater communication interface 230. For a description of the underwater communication interface 230, reference may be made to the description of the embodiment shown in FIG2F . Furthermore, the underwater communication interface 230 may also include an automatic send settings entry 234 and a history message entry 235. The automatic send settings entry 234 may be used to trigger the electronic device 100 to display the automatic send settings interface. The history message entry 235 may be used to trigger the electronic device 100 to display received history messages.

[0200] The electronic device 100 may receive and, in response to the user's operation on the automatic sending setting item 234 , display the automatic sending setting interface 510 as shown in FIG. 5B .

[0201] 5B , the automatic sending setting interface 510 may include one or more setting items, such as a diving status item 511 , an environmental equipment item 512 , a physiological parameter item 513 , and a periodic sending item 514 . Each setting item may be used to trigger the electronic device 100 to display a corresponding sending condition setting interface.

[0202] For example, the electronic device 100 may receive and, in response to a user operation on the diving status entry 511 , display a diving status setting interface 520 as shown in FIG. 5C .

[0203] As shown in FIG5C , diving status setting interface 520 may include one or more setting options, each of which may correspond to a diving status parameter, such as descent depth, ascent depth, safety stop time, or remaining no-decompression time. Furthermore, each setting option may be used to set the automatic transmission condition corresponding to that diving status parameter and, in some embodiments, may also be used to set the message to be sent. Upon detecting that the diving status parameter satisfies the corresponding automatic transmission condition, electronic device 100 may transmit a sound wave signal carrying the message.

[0204] As another example, the electronic device 100 may receive and, in response to a user operation on the environmental equipment entry 512 , display an environmental equipment setting interface 530 as shown in FIG. 5D .

[0205] As shown in FIG5D , the environmental equipment settings interface 530 may include one or more settings options, each of which may correspond to a diving status parameter, such as oxygen level or ambient temperature. Each setting option may be used to set the automatic transmission condition corresponding to the environmental equipment parameter and, in some embodiments, may also be used to set the information to be sent. Upon detecting that the environmental equipment parameter satisfies the corresponding automatic transmission condition, the electronic device 100 may transmit a sound wave signal carrying the information.

[0206] As another example, the electronic device 100 may receive and respond to the user's operation on the physiological parameter entry 513 by displaying a physiological parameter setting interface 540 as shown in FIG. 5E .

[0207] As shown in Figure 5E, the physiological parameter setting interface 540 may include one or more setting options, each of which may correspond to a physiological parameter, such as heart rate, blood oxygen saturation, body temperature, blood pressure, etc. Moreover, each setting option can be used to set the automatic transmission condition corresponding to the physiological parameter, and in some embodiments, it can also be used to set the information to be sent. When it is detected that the physiological parameter meets the corresponding automatic transmission condition, the electronic device 100 can send a sound wave signal carrying the information.

[0208] As another example, the electronic device 100 may receive and, in response to a user operation on the periodic sending item 514 , display a period setting interface 550 as shown in FIG. 5F .

[0209] As shown in Figure 5F, the period setting interface 550 may include one or more setting options, such as a depth setting option 551 and a time setting option 552. Among them, the depth setting option 551 can be used to set the corresponding relationship between the depth change and the sending of information. For example, the electronic device 100 can set the depth change to 15 meters. In this case, the electronic device 100 can send a message every time the depth of the electronic device 100 changes by 15 meters underwater. The time setting option 552 can be used to set the information sending cycle. For example, the electronic device 100 can set the time interval to 10 minutes. In this case, the electronic device 100 can send a message every 10 minutes underwater. Optionally, the one or more setting options can also be used to set the electronic device (such as the electronic device 200) that receives the information.

[0210] In this way, the information transmission conditions of the electronic device 100 can be set.

[0211] It can be understood that the embodiments shown in Figures 5A to 5F above are just some examples. In the embodiments of the present application, the electronic device 100 can set more, fewer or different information sending conditions from the above embodiments, and the present application does not limit this.

[0212] In some embodiments, after sending information to the electronic device 200, the electronic device 100 may receive a receipt message sent by the electronic device 200 and display a receipt interface 560 as shown in FIG5G.

[0213] As shown in FIG5G , the receipt interface 560 may display a receipt message, such as “Student 1 has received the message.” The receipt message may be used to notify the user that the other party has received the previously sent message.

[0214] In this way, the user of the electronic device 100 can determine whether the electronic device 200 receives the information.

[0215] In some embodiments, electronic device 100 may periodically communicate with electronic device 200 and determine the change in distance between electronic device 100 and electronic device 200 based on the time interval between transmitting a signal and receiving a receipt message. When electronic device 100 detects that the distance between electronic device 200 and electronic device 100 has increased, as shown in FIG5H , electronic device 100 may output a distance change prompt, indicating that the user is moving away from electronic device 200. The distance change prompt may be text, such as "You are moving away from student 1." Student 1 is the identifier of electronic device 200.

[0216] It will be understood that the embodiment shown in FIG5H is merely an example. In an embodiment of the present application, the electronic device 100 may also output a distance change prompt when detecting that the distance between the electronic device 100 and the electronic device 200 (or other electronic devices) is getting smaller, prompting the user that the user is approaching the electronic device 200. This application does not limit this.

[0217] In this way, the user can be reminded of changes in the distance between the user and users of other electronic devices, which facilitates management and improves the safety of diving.

[0218] The following describes a process of an underwater communication method provided in an embodiment of the present application.

[0219] As shown in FIG6A , a specific process of an underwater communication method provided in an embodiment of the present application may include the following steps:

[0220] S601: The electronic device 100 detects the user's operation of setting an identity, and sets the identity of the electronic device 100.

[0221] For the operation of setting the user's identity, reference may be made to the relevant descriptions in the embodiments shown in FIG. 2D to FIG. 2F .

[0222] The identification of electronic device 100 can be used to identify the identity of the user using electronic device 100. In some embodiments, the identification can consist of an identity and a sequence number, such as Coach 1, Coach 2, Student 1, Student 2, Student 3, Safety Officer 1, Buddy 1, Dive Guide 1, etc. The identity can include any one or more of the following: Coach, Student, Buddy, Safety Officer, Dive Guide, etc.

[0223] It should be noted that the electronic device 100 can receive and respond to the user's operation of setting the identity identifier to determine the identity identifier. In other embodiments, the electronic device 100 can also receive and respond to the user's operation of setting the identity identifier to determine the identity, and determine the serial number in the identity identifier based on the device serial number (SerialNo, SN) code of the electronic device 100, and further determine the identity identifier of the electronic device 100. In this way, it is possible to avoid different electronic devices setting the same identity identifier.

[0224] It is understandable that the above embodiments are merely examples. In the embodiments of the present application, the identity identifier may also adopt other identifiers that can be used to identify the user identity of the electronic device 100, and the identity identifier may also be determined in other ways, which is not limited in the present application.

[0225] S602, the electronic device 100 enables underwater communication mode.

[0226] In some embodiments, the electronic device 100 may receive and respond to a user's operation to enable the underwater communication mode, thereby enabling the underwater communication mode. For example, the user's operation to enable the underwater communication mode may be the operation of the enable switch 231 in the embodiment shown in FIG. 2C .

[0227] In some embodiments, the electronic device 100 may enable underwater communication mode when it detects that the electronic device 100 has entered water. After the electronic device 100 has entered water, the detection result of the depth sensor of the electronic device 100 will change. Moreover, due to the influence of factors such as water pressure, the capacitance of the display screen of the electronic device 100 will also change. Therefore, the electronic device 100 can determine whether the electronic device 100 has entered water by the change in the capacitance value of the display screen and / or the change in the detection result of the depth sensor. For example, the electronic device 100 may determine that the electronic device 100 has entered water when it detects that the depth of the electronic device 100 underwater reaches a depth threshold (e.g., 0.5 meters, 2 meters, etc.).

[0228] It should be noted that the electronic device 100 may execute step S602 after executing step S601, or may execute step S601 after executing step S602.

[0229] In some embodiments, when the electronic device 100 enables the underwater communication mode, if the electronic device 100 detects that the identity of the electronic device 100 has not been set, the user may be prompted to set the identity of the electronic device 100.

[0230] S603: When it is detected that the electronic device 100 enters water, the electronic device 100 starts diving monitoring, where the diving monitoring is used to monitor any one or more of physiological parameters, environmental equipment parameters, and diving status parameters.

[0231] The method for determining whether the electronic device 100 has been submerged in water may refer to the relevant description of step S602 above.

[0232] Physiological parameters may include any one or more of the following: body temperature, heart rate, blood pressure, blood oxygen concentration, central nervous system (CNS) concentration, etc.

[0233] Environmental equipment parameters may include any one or more of the following: water temperature, water depth, water flow rate, ambient light intensity, water pressure, oxygen remaining, remaining safety time, no-decompression time, diving time, etc.

[0234] The diving status parameters may include diving status and diving parameters. The diving status may include any one or more of the following: ascending, descending, staying, etc.; the diving parameters may include any one or more of the following: staying time, ascending speed, descending speed, etc.

[0235] The electronic device 100 can enable detection of multiple parameters at the same time, or can enable monitoring of different parameters among the multiple parameters separately. For example, taking diving monitoring that requires monitoring parameters such as water depth, water temperature, body temperature, blood pressure, and oxygen balance as an example, the electronic device 100 can start monitoring all of the above parameters when it detects that the electronic device 100 has entered the water; the electronic device 100 can also monitor water depth, body temperature, and blood pressure before entering the water, and start monitoring other parameters such as water temperature and oxygen balance when underwater communication is enabled. It can be understood that the embodiment here is only an example of how the electronic device 100 can start monitoring all parameters at the same time, or can start monitoring different parameters separately. In other embodiments, the multiple parameters can also include more, fewer, or different parameters from the above embodiments, and this application is not limited here.

[0236] S604: The electronic device 100 detects that the diving monitoring result meets the information sending condition 1.

[0237] The diving monitoring result may include the monitoring result of the electronic device 100 on any one or more parameters described in step S603 above.

[0238] The electronic device 100 may store one or more information sending conditions, including information sending condition 1.

[0239] Information sending condition 1 may be a restriction condition on one of the parameters in the diving monitoring result, for example: the water temperature is lower than 10°C, the remaining safety time is less than 5 minutes, or the water depth reaches 20 meters.

[0240] Information sending condition 1 may also be a restriction condition of multiple parameters in the diving monitoring results, for example, diving to a water depth of 10 meters, floating to a water depth of 20 meters, or staying for 5 minutes, etc.

[0241] It should be noted that, in some embodiments, each parameter in the diving monitoring results may also be preset with a preset interval. The preset interval may be the normal value range of the parameter. If it does not fall within the interval, it indicates that the user's current situation may be dangerous. In this case, the restriction condition for the parameter in the diving monitoring results may be that the monitored value of the parameter does not fall within the preset interval. In other embodiments, the preset interval may also be an abnormal value range. In this case, the restriction condition for the parameter in the diving monitoring results may be that the monitored value of the parameter falls within the preset abnormal value range. In other embodiments, the restriction condition for the parameter in the diving monitoring results may also be that the parameter is detected to have reached a preset threshold, such as a diving depth of 20 meters.

[0242] It is understandable that the embodiments here are merely illustrative. In the embodiments of the present application, the information sending condition 1 may also include more, less, or different content from the above embodiments, and the present application does not limit this.

[0243] S605 , the electronic device 100 determines target information based on the information sending condition 1 , wherein the target information includes the preset information 1 corresponding to the information sending condition 1 and the identity of the electronic device 100 .

[0244] The electronic device 100 may store one or more pieces of preset information, and the one or more pieces of preset information may correspond to the one or more information sending conditions mentioned in step S604.

[0245] Illustratively, Table 1 shows a correspondence between information sending conditions and preset information stored in the electronic device 100 .

[0246] Table 1

[0247] According to Table 1, the electronic device 100 can determine the corresponding preset information based on the information sending condition. For example, when the information sending condition is that the user has stayed at the same location for 3 minutes, the preset information is "I have stayed for 3 minutes"; when the information sending condition is that the oxygen remaining is 20 bar, the preset information is "My oxygen is 20 bar left"; when the information sending condition is that the ambient temperature (such as water temperature) is 10°C, the preset information is "The ambient temperature is 10°C"; when the information sending condition is that the heart rate is lower than 50 beats / minute (bpm), the preset information is "My heart rate is lower than 50bpm"; when the information sending condition is that the heart rate is lower than 50bpm, the preset information is "My heart rate is lower than 50bpm"; When the condition for sending the message is that the blood oxygen saturation reaches 95%, the preset message is "Blood oxygen saturation is 95%"; when the condition for sending the message is that the user is detected floating and the current water depth is 5 meters, the preset message is "I have ascended to a depth of 5 meters"; when the condition for sending the message is that the user is detected diving and the current water depth is 15 meters, the preset message is "I have dived to a depth of 15 meters"; when the condition for sending the message is that the user is detected staying at the same depth for 2 minutes and the water depth is 10 meters, the preset message is "I have stayed safely at position 10 for 2 minutes".

[0248] It can be understood that the embodiment shown in Table 1 is only an example. In the embodiment of the present application, the electronic device 100 may store more, fewer or different information sending conditions and preset information than the embodiment shown in Table 1, and the present application does not limit this.

[0249] After detecting that the diving monitoring result meets the information sending condition 1, the electronic device 100 can determine the preset information 1 corresponding to the information sending condition 1 according to the correspondence between the stored multiple information sending conditions and the multiple preset information.

[0250] In other embodiments, the electronic device 100 may store the correspondence between information sending conditions, identity identifiers, and preset information.

[0251] For example, Table 2 shows the correspondence between information sending conditions, identity identifiers, and preset information stored in an electronic device 100 provided in an embodiment of the present application.

[0252] Table 2

[0253] According to Table 2, the electronic device 100 can also determine the preset information based on the information sending condition and the identity identifier. For example, when the information sending condition is that the user stays at the same location for 1 minute, if the identity identifier is coach 1, the preset information is "Stop", and if the identity identifier is student 1, the preset information is "I have stayed for 1 minute"; when the information sending condition is that the ambient temperature is 5°C, if the identity identifier is coach 1, the preset information is "The ambient temperature is low, pay attention to safety", and if the identity identifier is student 1, the preset information is "The ambient temperature is 5℃"; when the message sending condition is that the user is detected floating up and the current water depth is 25 meters, if the identity is coach 1, the preset message is "surface to a depth of 25 meters, follow me closely"; if the identity is student 1, the preset message is "I have floated to a depth of 25 meters"; when the message sending condition is that the user is detected diving and the diving speed is 5 meters / minute, if the identity is coach 1, the preset message is "maintain a diving speed of 5 meters / minute"; if the identity is student 1, the preset message is "the current diving speed is 5 meters / minute".

[0254] It can be understood that the embodiment shown in Table 2 is only an example. In the embodiment of the present application, the electronic device 100 may store more, fewer or different information sending conditions, identity identifiers and preset information than the embodiment shown in Table 2, and the present application does not limit this.

[0255] After detecting that the diving monitoring result meets the information sending condition 1, the electronic device 100 can determine the preset information 1 corresponding to the electronic device 100 when the information sending condition 1 is met based on the identity of the electronic device 100 and the correspondence between the information sending conditions, identity and preset information stored in the electronic device 100.

[0256] After determining the preset information 1, the electronic device 100 can obtain the target information, which may include the preset information 1 and the identity of the electronic device 100. Optionally, if the electronic device 100 belongs to a group, the target information may also include the group identifier of the group. For details about the group identifier, please refer to the relevant content in the embodiment shown in FIG. 8 below and will not be described in detail here.

[0257] After determining the target information, the electronic device 100 may execute step S608 described below.

[0258] S606 , the electronic device 100 detects the user's operation of opening the message list and displays one or more preset information, including preset information 1 .

[0259] Exemplarily, the user's operation of opening the message list may be the user's operation on button 13 in the embodiment shown in FIG. 3B , and the message list may be the message list 330 shown in FIG. 3C .

[0260] In some embodiments, the one or more preset information items displayed in the message list may be all preset information items stored by the electronic device 100. In other embodiments, the one or more preset information items displayed in the message list may also be one or more preset information items determined by the electronic device 100 based on the electronic device 100's identity and / or the diving monitoring results. It should be noted that in this case, the diving monitoring results do not meet the information transmission conditions in steps S604 and S605 above.

[0261] For example, Table 3 shows the correspondence between diving monitoring results, identity identifiers, and preset information stored in an electronic device 100 provided in an embodiment of the present application.

[0262] Table 3

[0263] As shown in Table 3, the electronic device 100 can determine one or more preset messages to display based on the dive monitoring result and the user's identity. For example, if the user's identity is Instructor 1, the corresponding preset messages may include: "Stop," "Ascend," "Dive," "Follow me closely," "Everyone report the situation," "Check the barometer reading," "Ready to finish," etc. If the user's identity is Student 1, the corresponding preset messages may include: "Received," "Requesting support," "All normal," "Danger, help!", etc. If the dive monitoring result indicates that the user is ascending, and the user's identity is Instructor 1, the corresponding preset messages may include: "Ascend, follow closely!", "Look here, there's something," "Maintain speed," "Accelerate," "Decelerate," etc. If the dive monitoring result indicates that the user is ascending, and the user's identity is Student 1, the corresponding preset messages may include: "Received," "I have begun my ascent," etc.

[0264] It is understandable that the embodiment shown in Table 3 is only an example. In the embodiment of the present application, the electronic device 100 may store more, fewer or different diving monitoring results, identification marks and preset information than the embodiment shown in Table 3, and the present application does not limit this.

[0265] S607 , the electronic device 100 detects a sending operation for the preset information 1 and determines target information, where the target information includes the preset information 1 and an identity identifier of the electronic device 100 .

[0266] The sending operation of the preset information 1 may be the user's operation on the button 13 in the embodiment shown in FIG. 3C .

[0267] The target information may include the preset information 1 and the identity of the electronic device 100. Optionally, if the electronic device 100 belongs to a group, the target information may further include a group identity of the group.

[0268] After determining the target information, the electronic device 100 may execute step S608 described below.

[0269] S608: The electronic device 100 sends a sound wave signal, where the sound wave signal carries target information.

[0270] After determining the target information, the electronic device 100 can encode the target information to obtain a code sequence of the sound wave signal, and then control the sound module 170D to generate a sound wave signal corresponding to the code sequence according to the code sequence. In this way, the generated sound wave signal carries the target information.

[0271] The structural composition of the sound wave signal is introduced below.

[0272] For example, FIG6B shows a schematic structural diagram of an acoustic wave signal provided in an embodiment of the present application.

[0273] As shown in Figure 6B, the sound wave signal may include a pilot signal, a synchronization signal, a message body and a check error correction code, and optionally, may further include header information. Among them, the pilot signal may be a preset signal, and the electronic device at the receiving end (e.g., electronic device 200) may determine whether the sound wave signal carries the target information based on whether the received sound wave signal carries the pilot signal. The synchronization signal may be used for synchronization. After the electronic device 200 decodes the received sound wave signal, the electronic device 200 may determine the first position of the message body from the decoded decoding sequence based on the synchronization signal. The header information may be used to indicate the length of the coding sequence, and the header information may also be used to indicate the sequence corresponding to each part of the information. The message body may include the target information. The check error correction code may be used to verify the decoding sequence.

[0274] It is understandable that the embodiment shown in FIG6B is only an example. In the embodiment of the present application, the acoustic wave signal may also include less, more or different content from the above embodiment, and the present application does not limit this.

[0275] As shown in FIG6B , the coding sequence of the acoustic signal includes not only the coding sequence corresponding to the target information, but also a pilot sequence, a synchronization sequence, a parity check code, etc. The pilot sequence, the synchronization sequence, and the parity check code may correspond to the pilot signal, the synchronization signal, and the parity check code, etc., in the acoustic signal, respectively. The pilot sequence may be a preset sequence, and the synchronization sequence, the parity check code, and the header sequence may be determined after obtaining the coding sequence of the target information.

[0276] In the process of encoding the target information, the electronic device 100 can use any one of the coding algorithms such as Morse code, orthogonal frequency division multiplexing (OFDM), code division multiple access (CDMA) to encode the target information, or use a custom coding algorithm to encode the target information in the time domain and / or frequency domain. The embodiment of the present application does not limit the encoding method of the target information.

[0277] For example, Table 4 shows the coding sequences corresponding to different preset information.

[0278] Table 4

[0279] As shown in Table 4, the electronic device 100 can determine the corresponding coding sequence based on the preset information. For example, when the preset information is "Insufficient oxygen remaining," the corresponding coding sequence may be "long long long long"; when the preset information is "Ambient temperature is too low," the corresponding coding sequence may be "short long short short"; and when the preset information is "Emergency call for help," the corresponding coding sequence may be "short long short long long." "Long" and "short" may also be replaced by "1" and "0," respectively.

[0280] It can be understood that the embodiment shown in Table 4 is only an example. In the embodiments of the present application, more, less or different preset information and coding sequences may be included than those shown in Table 4, and the correspondence between the preset information and the coding sequence may also be different from the above embodiments. This application does not limit this.

[0281] For example, Table 5 shows the coding sequences corresponding to different identity identifiers.

[0282] Table 5

[0283] As shown in Table 5, the electronic device 100 can also determine the coding sequence corresponding to the identity based on the identity. For example, when the identity is "Coach 1," the corresponding coding sequence can be "long-long-short"; when the identity is "Student 1," the corresponding coding sequence can be "short-short"; and when the identity is "Buddy 2," the corresponding coding sequence can be "long-short-long." "Long" and "short" can also be replaced by "1" and "0," respectively.

[0284] It can be understood that the embodiment shown in Table 5 is only an example. In the embodiments of the present application, more, fewer or different identity identifiers and coding sequences may be included than those shown in Table 5, and the correspondence between the identity identifiers and coding sequences may also be different from the above embodiments. This application does not limit this.

[0285] After determining the target information, the electronic device 100 can determine the coding sequence corresponding to the preset information 1 based on the relationship between the preset information and the coding sequence, and determine the coding sequence corresponding to the identity identifier of the electronic device 100 based on the relationship between the identity identifier and the coding sequence, thereby obtaining the coding sequence corresponding to the target information, and then obtaining the coding sequence of the sound wave signal.

[0286] After obtaining the coding sequence of the sound wave signal, the electronic device 100 can drive the sound module to generate sound based on the coding sequence to generate a sound wave signal carrying target information.

[0287] Exemplarily, if the coding sequence of the sound wave signal X(t) is “short, long, long, long”, the waveform diagram of the sound wave signal X(t) is shown in FIG6C .

[0288] As shown in Figure 6C, the horizontal axis represents time and the vertical axis represents the amplitude of the sound wave signal. The duration of the sound wave signal X(t) is T. In the time period from t1 to t2, the sound wave signal includes two rectangular pulse waves, and the width of each rectangular pulse wave in the time domain is x1; in the time period from t2 to t3, the sound wave signal includes four rectangular pulse waves, and the width of each rectangular pulse wave in the time domain is x2; where x2>x1, t1 <t2<t3。

[0289] It is understood that the embodiment shown in FIG6C is merely an example. In the embodiments of the present application, the waveform of the acoustic signal may be different from that of the above-described embodiment, and the present application does not limit this. It should be noted that the terms "long" and "short" in the coding sequence may refer to the duration of a single rectangular pulse wave in the acoustic signal or the wavelength of the acoustic signal, and the present application does not limit this.

[0290] By using the underwater communication method provided in the embodiments of the present application, the electronic device 100 can transmit information via acoustic signals, enabling long-distance underwater communication. Furthermore, the electronic device 100 can not only transmit user-selected information but also promptly alert the user to safety when it detects that the user may be in danger. It can also promptly send a distress message to companions when the user is in danger, thereby increasing diving safety.

[0291] In some embodiments, when the value of any of the above-mentioned physiological parameters, environmental equipment parameters, and diving status parameters is detected to be outside the preset range, for example, when the user's oxygen level is insufficient or the user's heart rate is too fast, the electronic device 100 can output a danger prompt at the same time as sending the specified information, notifying the user of the current situation. Optionally, it can also output self-rescue measures corresponding to the current situation. In this way, the user can take some self-rescue measures and wait for support from companions.

[0292] In other embodiments, the electronic device 100 can receive and, in response to a user's operation to set a diving type, set the current diving type. Diving types may include recreational scuba diving, technical diving, free diving, snorkeling, and the like. The electronic device 100 may store one or more preset information corresponding to different diving types. If the user manually sends information, the electronic device 100 may display one or more preset information corresponding to the current diving type for the user to select, and determine the preset information based on the user's operation. The electronic device 100 may also store a correspondence between diving types, information transmission conditions, and preset information. Upon detecting that the diving monitoring results meet the information transmission conditions, the electronic device 100 may determine the corresponding preset information based on the current diving type and the information transmission conditions met by the diving monitoring results. After determining the preset information, the subsequent steps performed by the electronic device 100 refer to the relevant description of steps S605 and S608 in the embodiment shown in FIG. 6A above and are not further described here.

[0293] In this way, the electronic device 100 can display preset information that better matches the current diving type, which helps the user select more appropriate preset information.

[0294] In some embodiments, after entering water, the electronic device 100 can obtain and output the location information of the electronic device 100 in real time. In some embodiments, the location information of the electronic device 100 can include the depth of the electronic device 100 underwater and the latitude and longitude of the electronic device 100. In other embodiments, the electronic device 100 can construct a three-dimensional spatial coordinate system, the origin of which can be the location where the electronic device 100 entered the water or another preset location. In this case, the location information of the electronic device 100 can also be the coordinates of the electronic device 100 in the three-dimensional spatial coordinate system. The electronic device 100 can determine the location information of the electronic device 100 using sensors such as a gyroscope, accelerometer, and depth sensor. For example, the electronic device 100 can determine the depth of the electronic device 100 underwater based on the value measured by the depth sensor. For another example, after entering water, the electronic device 100 can obtain the movement trajectory of the electronic device 100 in the water using sensors such as a gyroscope and accelerometer, and determine the relative position relationship between the electronic device 100 and the location where the electronic device 100 entered the water.

[0295] In this way, users can obtain their current location in real time.

[0296] It is understood that, when the electronic device 100 obtains the location information of the electronic device 100, the target information in the embodiment shown in FIG. 6A may also optionally include the location information of the electronic device 100. In this way, the receiving electronic device can obtain the location of the electronic device 100 in real time, facilitating group communication and collaboration, and reducing the risk of diving.

[0297] In some embodiments, the acoustic signal receiving module 101 shown in FIG. 1C can also be replaced with a miniature sonar module (or piezoelectric ceramic sensor). The miniature sonar module can be an integrated miniature sonar sensor that can be used to receive and transmit acoustic signals. The electronic device 100 can increase the transmission power of the acoustic signal by increasing the voltage of the transmitted signal, thereby increasing the communication distance of underwater communication. The electronic device 100 can also achieve longer-distance underwater communication by configuring a miniature sonar module with better performance.

[0298] In some embodiments, the electronic device 100 may also increase the distance of underwater communication by defining private low-frequency wireless communication, reducing propagation path loss, defining redundant check fields, increasing transmission power, and the like.

[0299] In other embodiments, the electronic device 100 may also use anti-interference algorithms such as noise reduction algorithms and Doppler frequency shift algorithms to reduce noise interference in water and reduce interference to sound wave signals.

[0300] The following describes a process for an electronic device 200 to receive target information sent by an electronic device 100 underwater, provided by an embodiment of the present application.

[0301] As shown in FIG7 , the specific process of the electronic device 200 receiving target information sent by the electronic device 100 underwater may include the following steps:

[0302] S701: The electronic device 200 detects the user's operation of setting an identity, and sets the identity of the electronic device 200.

[0303] S702, the electronic device 200 enables underwater communication mode.

[0304] The relevant contents of step S701 to step S702 can refer to the relevant description of step S601 to step S602 shown in Figure 6A above, and will not be repeated here.

[0305] S703: The electronic device 200 collects sound wave signals through a sound pickup sensor and / or a microphone.

[0306] After enabling the underwater communication mode, the electronic device 200 may start collecting sound wave signals through the sound pickup sensor and / or microphone.

[0307] In some embodiments, the electronic device 200 may also start collecting acoustic wave signals after detecting that the electronic device 200 has entered water. The method for detecting that the electronic device 200 has entered water may refer to the description of step S602 shown in FIG.

[0308] S704: The electronic device 200 identifies the target information carried by the sound wave signal.

[0309] After the electronic device 100 transmits the sound wave signal and the sound wave signal is transmitted to the electronic device 200, the electronic device 200 can decode the collected sound wave signal and identify the target information carried by the sound wave signal.

[0310] In some embodiments, if the electronic device 100 joins a group (for example, group 1), the sound wave signal sent by the electronic device 100 may also carry a group identifier, which may be located in the header information or message body in the message structure shown in FIG6B . After receiving the sound wave signal, the electronic device 200 may verify the group identifier. When it is determined that the group identifier carried by the sound wave signal is the same as the group identifier of the group to which the electronic device 200 belongs, the electronic device 200 further identifies other information carried by the sound wave signal (for example, identity identification and information content, etc.). If the group identifier carried by the sound wave signal is different from the group identifier of the group to which the electronic device 200 belongs, the electronic device 200 may stop processing the sound wave signal without reminding the user that the information has been received.

[0311] S705, the electronic device 200 outputs an information reminder to remind the user that the information has been received.

[0312] After identifying the target information, the electronic device 200 may output an information reminder, which is used to prompt the user that the electronic device 200 has received the information.

[0313] Information reminder methods may include any one or more of the following: vibration, flashing indicator light, voice prompt, display information notification, etc.

[0314] S706, the electronic device 200 displays the target information.

[0315] The electronic device 200 may receive and display the target information in response to the user's operation of viewing the target information. The user's operation of viewing the target information may be an operation on a key.

[0316] In other embodiments, the electronic device 200 may also display the target information after outputting the information reminder.

[0317] By adopting the underwater communication method provided in the embodiment of the present application, the electronic device 100 and the electronic device 200 can achieve underwater communication through acoustic wave signals, and the communication distance is greater than wireless communication methods such as Bluetooth.

[0318] In some embodiments, the electronic device 100 may store historical messages, including previously received and / or sent messages. The electronic device 100 may receive and display historical messages in response to a user's operation to view historical messages (e.g., an operation on the historical message entry 235 shown in FIG. 5A ). The electronic device 100 may also receive and delete one or more historical messages in response to a user's operation to delete historical messages.

[0319] In this way, unnecessary information can be deleted in time, reducing the storage pressure of the electronic device 100.

[0320] In some embodiments, the electronic device 100 can join a group. In this case, the electronic device 100 can communicate underwater with other electronic devices in the same group.

[0321] The following describes a process for an electronic device 100 to join a group provided by an embodiment of the present application.

[0322] As shown in FIG8 , the specific process of the electronic device 100 joining a group may include the following steps:

[0323] S801: The electronic device 100 detects an operation of a user joining group 1.

[0324] The user's operation of joining group 1 may be an operation of inputting the group identifier (ID) of group 1. For example, in the embodiment shown in FIG4B , the user inputs the group ID of group 1. The group ID may be a numerical sequence, such as "5678".

[0325] S802 , the electronic device 100 broadcasts a group joining message, where the group joining message includes the group identifier of group 1 and the identity identifier of the electronic device 100 .

[0326] In some embodiments, the electronic device 100 may broadcast a group entry message to the surrounding area in response to the user's operation of joining group 1. The group entry message may include the group identifier of group 1 and the identity identifier of the electronic device 100.

[0327] The group identifier may be used to identify the group, and the group identifier may include any one or more of the following: group ID, group name, etc.

[0328] For the relevant content of the identity identification of the electronic device 100, reference can be made to the relevant description in the embodiment shown in FIG6A above, which will not be repeated here.

[0329] In some embodiments, before joining group 1, electronic device 100 may receive and, in response to a user's operation to set an identity, set the identity of electronic device 100. In other embodiments, when electronic device 100 joins group 1, if the identity has not been set, electronic device 100 may prompt the user to perform the identity setting operation.

[0330] S803: Determine whether the group ID in the group joining message is the same as the group ID of the group to which the electronic device 200 belongs.

[0331] In some embodiments, when receiving the group joining message, the electronic device 200 has already joined a group and has stored the group ID of the group in the electronic device 200. The electronic device 200 can compare the group ID of group 1 in the group joining message with the group ID stored in the electronic device 200.

[0332] When the group ID of group 1 is the same as the group ID of the group to which the electronic device 200 belongs, the electronic device 100 may execute the following step S804.

[0333] When the group identifier of group 1 is different from the group identifier of the group to which the electronic device 200 belongs, the electronic device 200 may not process the received message.

[0334] In other embodiments, when the electronic device 200 receives the group joining message, the electronic device 200 has not yet joined the group, and the electronic device 200 has already received the user's operation to join the group. In this case, the electronic device 200 can determine the group ID of the group to be joined based on the user's operation to join the group. The electronic device 200 can compare the group ID of group 1 in the group joining message with the group ID of the group to be joined.

[0335] When the group ID of group 1 is the same as the group ID of the group to be joined, the electronic device 100 may execute the following step S804.

[0336] When the group ID of group 1 is different from the group ID of the group to be joined, the electronic device 200 may not process the received message.

[0337] S804 , the electronic device 200 adds the identity of the electronic device 100 to the member list of group 1 .

[0338] In some embodiments, when the electronic device 200 receives the group joining message, it has already joined group 1. At this time, the electronic device 200 stores the group identifier of group 1 and the member list of group 1. The member list of group 1 stored by the electronic device 200 may include the identities of one or more electronic devices, the one or more electronic devices including the electronic device 200, and the one or more electronic devices all belong to group 1.

[0339] For example, Table 6 shows a member list of group 1 stored by the electronic device 200 before receiving a group joining message provided in an embodiment of the present application.

[0340] Table 6

[0341] As shown in Table 6, before receiving the group joining message, the member list of Group 1 stored by electronic device 200 may include the identities of one or more electronic devices: Student 1, Instructor 2, and Dive Guide 1. Optionally, the member list may also include the group ID of Group 1, such as ID 5678, which is used for the group corresponding to the identity.

[0342] After receiving the group joining message, electronic device 200 may add the identity of electronic device 100 to the member list of group 1.

[0343] For example, Table 7 shows a member list of group 1 stored by the electronic device 200 after receiving a group joining message provided by an embodiment of the present application.

[0344] Table 7

[0345] As shown in Table 7, after receiving the group joining message, the member list of Group 1 stored by electronic device 200 may include the identities of one or more electronic devices: Student 1, Instructor 2, Dive Guide 1, and Instructor 1. Instructor 1 is the identity of electronic device 100. Optionally, the member list may also include the group ID of Group 1, such as ID 5678, which is used for the group corresponding to that identity. Compared to Table 6, Table 7 adds the identity of electronic device 100.

[0346] It is understandable that the embodiments shown in Table 6 and Table 7 are only examples. In the embodiments of the present application, the member list of group 1 may also include more or less content, and the present application does not limit this.

[0347] S805 , the electronic device 200 broadcasts a message indicating that it is in the group. The message includes the identity of the electronic device 200 and the group identifier of group 1 .

[0348] If electronic device 200 is determined to also belong to Group 1, it can broadcast a message indicating it is already in the group to the surrounding area. This message includes the identity of electronic device 200 and the group ID of Group 1. The identity of electronic device 200 can refer to the description of the identity of electronic device 100 described above. The identity of electronic device 200 is different from the identity of electronic device 100.

[0349] It should be noted that if group 1 includes other electronic devices in addition to electronic device 200, the electronic device may also broadcast a group-already message after receiving the group joining message broadcast by electronic device 100 and determining that it belongs to group 1. The group-already message includes the identity of the electronic device and the group identifier of group 1.

[0350] S806: The electronic device 100 stores and displays a member list of group 1 based on the received one or more group messages.

[0351] The electronic device 100 may receive the "already in group" message broadcasted by each electronic device in the group 1, and each "already in group" message may include the group identifier of the group 1 and the identity identifier of the electronic device.

[0352] Based on one or more received group messages, the electronic device 100 can obtain the identity identifiers of all electronic devices in group 1 and obtain a member list of group 1. The member list of group 1 can include the identity identifiers of all electronic devices in group 1. The specific content of the member list can refer to the relevant description in the above step S803.

[0353] After determining the member list of group 1, the electronic device 100 may store and display the member list of group 1. Optionally, while displaying the member list of group 1, the electronic device 100 may also display the group ID of group 1 to prompt the user that the currently displayed member list is the member list of group 1.

[0354] In this way, electronic devices such as the electronic device 100 and the electronic device 200 can be organized into a group, so that after the user wears the electronic device 100 and enters the water, the user can communicate underwater with one or more electronic devices in the same group.

[0355] It is understandable that the specific process of the electronic device 100 sending information underwater through acoustic signals can refer to the embodiment shown in Figure 6A above, and the specific process of the electronic device 100 receiving information can refer to the embodiment shown in Figure 7 above. In some embodiments, if the electronic device 100 joins a group, the target information sent by the electronic device 100 may include a group identifier. In other embodiments, multiple electronic devices belonging to the same group can be provided with the same pilot signal. This facilitates communication between multiple electronic devices belonging to the same group. In some application scenarios, a diving instructor can also use an electronic device to send group messages to all students in the group, enabling mutual communication of instructions between the instructor and the students, and facilitating diving teaching and management.

[0356] In some embodiments, during the group formation stage shown in FIG8 , the electronic device 100 may also send group joining messages to other electronic devices through wireless communication methods such as Bluetooth and wireless LAN, and the electronic device 200 (or other electronic devices) may also use the above wireless communication methods to send a group entry message to the electronic device 100, which is not limited in this application. In other embodiments, after the electronic device 100 enters the water, the electronic device 100 may also send a group joining message to other electronic devices through acoustic signals to form a group with other electronic devices, which is not limited in this application.

[0357] The following describes another method flow for an electronic device 100 to join a group provided by an embodiment of the present application.

[0358] As shown in FIG9 , the specific process of electronic device 100 joining group 1 may include the following steps:

[0359] S901 : When the electronic device 200 detects the user's operation of creating group 1 , the electronic device 200 is determined to be the center device of group 1 .

[0360] In some embodiments, the electronic device 200 may receive and, in response to a user operation of creating a group (eg, group 1), determine the electronic device 200 as the central device of the group.

[0361] In some embodiments, multiple electronic devices (including electronic device 200) may also input the same group ID at the same time to create the same group. In this case, the multiple electronic devices may determine the electronic device with the specified identity as the central device based on the identity of each electronic device. For example, if the identity of electronic device 200 is "coach", electronic device 200 may determine that electronic device 200 is the central device based on the identity. After determining the central device, other devices in the group will send a group entry message to the central device. The group entry message may include the group identifier and the identity of the electronic device. The central device may receive multiple group entry messages and determine and store the member list of the group based on the group entry messages.

[0362] It will be understood that the above embodiments are just two examples. In some embodiments, the electronic device 200 may also determine the central device based on other factors, such as determining the electronic device with the longest battery life as the central device, determining the electronic device with the highest battery power as the central device, or determining the electronic device that joins the group the earliest as the central device, etc. This application does not limit this.

[0363] S902 , the electronic device 100 detects an operation of a user joining group 1 .

[0364] S903 , the electronic device 100 broadcasts a group joining message, where the group joining message includes the group identifier of group 1 and the identity identifier of the electronic device 100 .

[0365] S904: The electronic device 200 determines whether the group ID in the group joining message is the same as the group ID of the group to which the electronic device 200 belongs.

[0366] For the specific contents of steps S902 to S904 , reference may be made to the relevant contents of steps S801 to S803 shown in FIG. 8 .

[0367] When the group ID of group 1 is the same as the group ID of the group to which the electronic device 200 belongs, the electronic device 100 may execute the following step S905 .

[0368] When the group identifier of group 1 is different from the group identifier of the group to which the electronic device 200 belongs, the electronic device 200 may not process the received message.

[0369] S905 , the electronic device 200 updates the member list of group 1 based on the identity of the electronic device 100 .

[0370] After determining that the group to which electronic device 100 belongs is the same as the group to which electronic device 200 belongs, electronic device 200 may add the identity of electronic device 100 to the member list of group 1. The member list may include the identities of all members in group 1.

[0371] S906 , the electronic device 200 broadcasts a message indicating that the electronic device is already in the group. The message indicates that the electronic device 20 ...

[0372] In some embodiments, the electronic device 200 may broadcast the member list and the group identifier each time after the member list is updated.

[0373] In other embodiments, the electronic device 200 may also check whether the member list has changed at fixed intervals. If the member list has changed, the member list and group ID are broadcast; if the member list has not changed, the member list and group ID are not broadcast. This can avoid multiple broadcasts caused by multiple changes in the member list within a short period of time.

[0374] S907: The electronic device 100 stores and displays a member list of group 1 based on the group message.

[0375] In this way, only the central device in the group needs to send the group member list to the electronic device newly joining the group, and each electronic device in the group does not need to send a message that it is already in the group, thereby reducing the power consumption of the devices in the group.

[0376] It is understandable that the above Figures 8 and 9 only exemplarily introduce two ways for electronic devices 100 to join a group. In the embodiment of the present application, the electronic device 100 may also join a group in a manner different from the above embodiment, and the present application does not limit this.

[0377] The following describes a specific process of a method for determining a change in the distance between an electronic device 100 and an electronic device 200 based on underwater communication provided by an embodiment of the present application.

[0378] As shown in FIG10 , the process of the method for determining the distance change between the electronic device 100 and the electronic device 200 based on underwater communication may include the following steps:

[0379] S1001: The electronic device 100 detects that a user has enabled a distance monitoring function and determines a sending schedule.

[0380] In some embodiments, the user's operation to enable the distance monitoring function can be to click a designated distance monitoring switch, or the user can set a periodic information transmission operation, such as the operation of the time setting option 552 in the embodiment shown in Figure 5F above. In some embodiments, the electronic device 100 can also enable the distance monitoring function by default when the underwater communication function is enabled, and monitor the distance changes with the designated electronic device (or with each electronic device in the group) in real time after entering the water.

[0381] In some embodiments, the transmission schedule may include multiple transmission times, each transmission time indicating the time at which the electronic device 100 transmits information, and the time interval between any two adjacent transmission times is the information transmission period of the electronic device 100. In other embodiments, the transmission schedule may also include a start time and an information transmission period, where the start time is the time at which the electronic device 100 transmits the first piece of information.

[0382] For example, Table 8 shows a sending schedule provided in an embodiment of the present application.

[0383] Table 8

[0384] As shown in Table 8, the sending schedule may include a sending order and a sending time, and the sending order corresponds to the sending time. According to Table 8, the electronic device 100 sends information for the first time at 10:05, the second time at 10:10, the third time at 10:15, the fourth time at 10:20, and so on.

[0385] As another example, Table 9 shows another sending schedule provided in an embodiment of the present application.

[0386] Table 9

[0387] As shown in Table 9, the sending schedule stored in the electronic device 100 may include an information sending period and a start time, wherein the information sending period is 5 minutes and the start time is 10:05.

[0388] It can be understood that Table 8 and Table 9 are just examples of two sending schedules. In the embodiment of the present application, the sending schedule may include more, less or different content than the above Table 8 and Table 9, and the present application does not limit this.

[0389] In some embodiments, the user's operation of enabling the distance monitoring function may include setting an information sending period and / or setting a peer device for receiving information. It should be noted that before setting a peer device (e.g., electronic device 200), electronic device 100 needs to obtain the identity of the peer device. For example, if electronic device 100 and electronic device 200 belong to the same group, electronic device 100 may set electronic device 200 as the peer device for receiving information.

[0390] If the user has set an information transmission cycle and has not set a peer device for receiving information, the electronic device 100 can determine a transmission schedule based on the identity of the electronic device 100 and the information transmission cycle. For example, the electronic device 100 can use a hash algorithm based on the identity of the electronic device 100 to determine the start time of information transmission, and then determine the transmission schedule based on the information transmission cycle and the start time.

[0391] When the user sets up a peer device (such as electronic device 200) for receiving information and does not set an information sending cycle, electronic device 100 can use a hash algorithm (or other algorithm) to obtain a sending schedule based on the identity of electronic device 100 and the identity of electronic device 200.

[0392] When the user sets an information sending cycle and a peer device for receiving information, the electronic device 100 can determine a sending schedule based on the identity of the electronic device 100, the identity of the electronic device 200 and the information sending cycle.

[0393] In other embodiments, the user's operation of turning on the distance monitoring function may also be an operation on the distance monitoring switch. In this case, the electronic device 100 may determine the sending schedule based on the identity of the electronic device 100 using an algorithm such as a hash algorithm.

[0394] S1002 , the electronic device 100 sends a periodic communication notification to the electronic device 200 , where the periodic communication notification is used to notify the electronic device 200 to perform periodic communication with the electronic device 100 .

[0395] The electronic device 100 may send a periodic communication notification in response to a user's operation to enable the distance monitoring function. It should be noted that if the user enables the distance monitoring function before the electronic device 100 enters the water, the electronic device 100 may broadcast the periodic communication notification via Bluetooth or other wireless communication methods, or send the periodic communication notification to multiple electronic devices with which communication connections have been established. If the user enables the distance monitoring function after the electronic device 100 enters the water, the electronic device 100 may send the periodic communication notification via acoustic signals or other methods.

[0396] In some embodiments, the periodic communication notification may include an identity identifier of the electronic device 100 , which is used to notify the electronic device 200 to perform periodic communication with the electronic device 100 .

[0397] In other embodiments, the periodic communication notification may include the identity of the electronic device 100 and the sending schedule. In this case, the periodic communication notification may be used to notify the electronic device 200 that the electronic device 100 will send information to the electronic device 200 at the sending time indicated in the sending schedule.

[0398] Optionally, in the case where the user is provided with a peer device for receiving information, the periodic communication notification may further include an identity of the peer device.

[0399] S1003: The electronic device 200 determines a transmission schedule based on the periodic communication notification.

[0400] In some embodiments, the periodic communication notification may include a sending schedule. In this case, the electronic device 200 may obtain the sending schedule from the periodic communication notification.

[0401] In some embodiments, the periodic communication notification does not include a sending schedule. In this case, the electronic device 200 can obtain the sending schedule based on the identity of the electronic device 100 in the periodic communication notification using a hash algorithm (or other algorithm).

[0402] In some embodiments, if the periodic communication notification also includes the identity of the electronic device 200, the electronic device 200 may also determine the sending schedule based on the identity of the electronic device 100 and the identity of the electronic device 200 using an algorithm such as a hash algorithm.

[0403] S1004: The electronic device 100 sends a sound wave signal carrying information according to a sending schedule.

[0404] After determining the sending schedule, the electronic device 100 may periodically send the sound wave signal carrying the information according to the sending schedule.

[0405] In some embodiments, the information sent by the electronic device 100 each time may be the same, while in other embodiments, the information sent by the electronic device 100 each time may be different. For example, each message sent may include a sending order, and the sending order may be used to determine the sending time of the message.

[0406] S1005: The electronic device 200 receives the information sent by the electronic device 100 and determines the receiving time.

[0407] When the electronic device 200 receives the sound wave signal carrying target information sent by the electronic device 100, the electronic device 200 can determine the receiving time of the sound wave signal.

[0408] S1006 , the electronic device 200 sends a sound wave signal carrying receipt information to the electronic device 100 .

[0409] In some embodiments, the receipt information sent by the electronic device 200 each time may be the same, and in other embodiments, the receipt information sent by the electronic device 200 each time may be different. For example, the receipt information sent each time may carry the sending order, etc.

[0410] S1007 , the electronic device 200 determines a change in the distance between the electronic device 200 and the electronic device 100 according to the transmission schedule, the receiving time, and the previous receiving time.

[0411] Electronic device 200 can determine transmission time 1, which is the time it takes for the sound wave signal currently transmitted by electronic device 100 to propagate from electronic device 100 to electronic device 200, based on the transmission schedule and the current reception time. Electronic device 200 can also determine transmission time 2, which is the time it takes for the sound wave signal previously transmitted by electronic device 100 to propagate from electronic device 100 to electronic device 200, based on the transmission schedule and the previous reception time. By comparing transmission time 1 with transmission time 2, the change in the distance between electronic device 200 and electronic device 100 can be determined.

[0412] If the transmission time 1 is less than the transmission time 2, it can be determined that the distance between the electronic device 200 and the electronic device 100 is decreasing.

[0413] If the transmission time 1 is greater than the transmission time 2 , it can be determined that the distance between the electronic device 200 and the electronic device 100 is increasing.

[0414] If the transmission time 1 is equal to the transmission time 2, it can be determined that the distance between the electronic device 200 and the electronic device 100 remains unchanged.

[0415] In some embodiments, the electronic device 200 can also determine the specific value of the distance change between the electronic device 200 and the electronic device 100 based on the difference between the transmission time 1 and the transmission time 2, and the transmission speed of the sound wave signal in water.

[0416] S1008 , the electronic device 200 outputs a distance prompt, where the distance prompt is used to indicate whether the distance between the electronic device 200 and the electronic device 100 has changed.

[0417] The electronic device 200 may output the distance prompt in one or more ways, such as sound, vibration, text, pattern, animation, or flashing indicator light. The distance prompt may be used to indicate whether the distance between the electronic device 200 and the electronic device 100 has changed, and optionally, may also be used to indicate the specific value of the distance change between the electronic device 200 and the electronic device 100.

[0418] It should be noted that after outputting the distance prompt, the electronic device 200 may re-execute the above step S1005 and subsequent steps when receiving information sent by the electronic device 100 again.

[0419] S1009, the electronic device 100 receives the receipt information sent by the electronic device 200 and determines the time of receipt receipt.

[0420] For the specific content of step S1009, please refer to the relevant description of step S1005 above.

[0421] S1010 , the electronic device 100 determines a change in the distance between the electronic device 100 and the electronic device 200 according to the sending schedule, the receipt receiving time, and the previous receipt receiving time.

[0422] S1011: The electronic device 100 outputs a distance prompt to indicate whether the distance between the electronic device 100 and the electronic device 200 has changed.

[0423] For the specific contents of steps S1010 to S1011 , reference may be made to the related descriptions of steps S1007 to S1008 above.

[0424] By using the underwater communication method provided in the embodiment of the present application, the electronic device 100 can determine the distance change between the electronic device 100 and other electronic devices, which facilitates group management and reduces the risk of diving.

[0425] In some embodiments, after the electronic device 100 turns on the distance monitoring function, the sending time may also be carried in each sound wave signal sent, and the received receipt information may also carry the sending time of the receipt information. In this way, the electronic device 100 can also determine the current distance between it and another electronic device (such as the electronic device 200) based on the sending time and the receiving time of the receipt information, and compare the distance measured each time to determine the distance change between it and the electronic device 200. Similarly, the electronic device 200 as the recipient can also use a similar method to determine the distance change between the electronic device 100 and the electronic device 200, which is not limited in this application.

[0426] It should be noted that in some embodiments, in the embodiments shown in Figures 8 and 10 above, the electronic device 100 can also exchange roles with the electronic device 200, that is, the electronic device 100 can execute the steps executed by the electronic device 200 in the above embodiments. At this time, the electronic device 200 can also execute the steps executed by the electronic device 100 in the above embodiments. This application does not limit this.

[0427] In other embodiments, step S1002 and step S1003 shown in FIG. 10 may also be replaced by the following steps:

[0428] S1002a: After detecting the user's operation of setting periodic information reception, the electronic device 200 determines a sending schedule based on the user's operation.

[0429] After receiving information from the electronic device 100 periodically as set by the user, the electronic device 200 may determine a sending schedule based on the identity of the electronic device 100 and the identity of the electronic device 200. Optionally, if the user sets an information receiving cycle, the electronic device 200 may also determine the sending schedule based on the information receiving cycle set by the user.

[0430] The specific manner in which the electronic device 200 determines the sending schedule may refer to the relevant description in step S1001 shown in FIG. 10 .

[0431] It should be noted that, in this case, the electronic device 200 and the electronic device 100 need to belong to the same group, or the electronic device 200 needs to obtain the identity of the electronic device 100.

[0432] In other embodiments, both electronic device 100 and electronic device 200 may store priority levels for different identity identifiers. For example, the priority levels for instructor 1, student 2, student 1, and buddy 1 are arranged as follows: instructor 1 > buddy 1 > student 1 > student 2. When both electronic device 100 and electronic device 200 detect a user-configured operation to periodically send information to each other, electronic device 100 (or electronic device 200) may determine, based on the identity identifiers of electronic device 100 and electronic device 200, that the electronic device with the higher priority is the sender of the information and the other electronic device is the receiver of the information. For example, after determining that electronic device 100 is the sender of the information and electronic device 200 is the receiver of the information, electronic devices 100 and 200 may perform the steps described in the embodiment shown in FIG. 10 to monitor the distance changes between electronic device 100 and electronic device 200 in real time.

[0433] In this way, when the receiver and sender of the information are not set, the electronic device 100 can determine the sender of the information based on the priority of the identity identification.

[0434] In other embodiments, if the electronic device 100 sends information to the electronic device 200 at a fixed time interval, if the electronic device 200 does not receive the information sent by the electronic device 100 for a period of time equal to the loss of connection period (e.g., 15 minutes, 20 minutes, etc.), the electronic device 200 may output a rescue prompt to remind the user that the user of the electronic device 100 may encounter an emergency. Similarly, if the electronic device 100 does not receive the receipt information from the electronic device 200 for a period of time equal to the loss of connection period (e.g., 5 minutes, 15 minutes, etc.), the electronic device 100 may also output a rescue prompt to remind the user that the user of the electronic device 200 may encounter an emergency.

[0435] In this way, when a user loses contact, companions can be reminded in time to search for the user.

[0436] The following is a schematic diagram of functional modules of an electronic device 100 provided in an embodiment of the present application.

[0437] As shown in Figure 11, the electronic device 100 may include: a parameter monitoring module 1101, a judgment module 1102, a receiving control module 1103, a sound wave receiving module 1104, an instruction processing module 1105, a display module 1106, a decoding / encoding module 1107, a sending control module 1108, a sound wave sending module 1109, a message reminder module 1110, a message storage module 1111, a user interaction module 1112 and a message processing module 1113, etc.

[0438] The parameter monitoring module 1101 can perform diving monitoring, monitoring any one or more of the user's physiological parameters, environmental equipment parameters, diving status parameters, etc. The parameter monitoring module 1101 can also send the monitored results (i.e., diving monitoring results) to the decision module 1102.

[0439] Determination module 1102 may store one or more information transmission conditions (including information transmission condition 1) and may determine whether the diving monitoring result satisfies the information transmission conditions. Determination module 1102 may also store preset information and a correspondence between information transmission conditions and preset information. If it is determined that the diving monitoring result satisfies information transmission condition 1, determination module 1102 may send an information transmission instruction to instruction processing module 1105, instructing it to transmit preset information 1 corresponding to information transmission condition 1.

[0440] The sound wave receiving module 1104 can receive a sound wave signal and send the received sound wave signal to the receiving control module 1103 .

[0441] After receiving the sound wave signal, the receiving control module 1103 may send the sound wave signal to the decoding / encoding module 1107 .

[0442] The instruction processing module 1105 can determine the target information in response to the information sending instruction. The target information includes the preset information 1 and the identity of the electronic device 100. Optionally, the target information may also include other content such as a group identifier. The instruction processing module 1105 can send the target information to the decoding / encoding module 1107. The instruction processing module 1105 can also receive the decoded received information sent by the decoding / encoding module 1107 and send the received information to the display module 1106. In some embodiments, after receiving the received information, the instruction processing module 1105 can also send a reminder instruction to the message reminder module 1110 to instruct the message reminder module 1110 to output a message reminder. In addition, after receiving the received information, the instruction processing module 1105 can also send the received information to the message storage module 1111.

[0443] The display module 1106 may display the received information.

[0444] The decoding / encoding module 1107 may encode the target information sent by the instruction processing module and send the encoded target information to the sending control module 1108 .

[0445] The sending control module 1108 can control the sound wave sending module 1109 to generate a corresponding sound wave signal according to the received encoded target information, and the sound wave signal carries the target information.

[0446] The sound wave sending module 1109 can generate a sound wave signal carrying target information.

[0447] The message reminder module 1110 can output a message reminder in response to the reminder instruction sent by the instruction processing module 1105 to remind the user that the electronic device 100 has received the information.

[0448] The message storage module 1111 can receive and store the received information sent by the instruction processing module 1105 .

[0449] The user interaction module 1112 can be used to receive user operations on the electronic device 100, such as touch operations on the display screen, rotation operations on buttons, pressing operations on buttons, etc. The user interaction module 1112 can receive user operations to set the identity of the electronic device 100, and can also receive user operations to join a group, enable underwater communication mode, and send information, etc. When receiving the user operation to send information, the user interaction module 1112 can determine the preset information (e.g., preset information 1) to be sent by the user based on the user operation, and send the preset information 1 to the message processing module 1113.

[0450] The message processing module 1113 may send an information sending instruction to the instruction processing module 1105 , and the information sending instruction may include preset information 1 .

[0451] It can be understood that the embodiment shown in Figure 11 is only an example. In the embodiment of the present application, the electronic device 100 may also include more, fewer or different functional modules than the above embodiment, or the above multiple modules may be combined into one module, or any of the above modules may be divided into multiple modules. This application does not limit this.

[0452] In addition, in the underwater communication system 10, the functional modules of the electronic device 200 (or other electronic devices) can also refer to the relevant description in the embodiment shown in Figure 11 above, and will not be repeated here.

[0453] Another underwater communication system 20 provided in an embodiment of the present application is introduced below.

[0454] As shown in FIG12 , the underwater communication system 20 may include an electronic device 100 , an electronic device 200 and a buoy device 300 . Optionally, the underwater communication system 20 may further include one or more other electronic devices.

[0455] The buoy device 300 floats at a fixed position on the horizontal plane, with a portion of the buoy device 300 located above the horizontal plane and another portion located below the horizontal plane. The buoy device 300 can communicate underwater with electronic devices in the water (e.g., the electronic device 100 and the electronic device 200) through acoustic signals. The buoy device 300 can also communicate with electronic devices (or base stations, etc.) that are not submerged in water in the underwater communication system 20 through wireless communication methods such as Bluetooth and wireless LAN. The buoy device 300 can store the location information of the buoy device 300. The buoy device 300 can communicate with the electronic device 100 and locate the electronic device 100 based on data such as signal propagation time. In some embodiments, the buoy device 300 can be provided with a plurality of pickup modules in different directions, and the pickup modules in different directions can be used to determine the propagation direction of the received acoustic signal.

[0456] The electronic device 100 (or the electronic device 200) may also store the location information of the buoy device 300. The electronic device 100 may also determine the location information of the electronic device 100 by communicating with the buoy device 300. The electronic device 100 may also obtain the motion trajectory of the electronic device 100 relative to the buoy device 300 using sensors such as a gyroscope and an accelerometer.

[0457] The electronic device 200 (or other electronic devices) can also determine the location information of the electronic device 200 through communication with the buoy device 300 .

[0458] In the underwater communication system 20 , other specific contents of the electronic device 100 and the electronic device 200 may refer to the relevant description of the underwater communication system 10 shown in FIG. 1A , and will not be repeated here.

[0459] It can be understood that the embodiment shown in FIG. 12 is only an example. In the embodiment of the present application, the underwater communication system 20 may also include more electronic equipment or buoy equipment, which is not limited in the present application.

[0460] FIG13 shows a flow chart of an underwater communication method provided in an embodiment of the present application.

[0461] As shown in FIG13 , the process of an underwater communication method provided in an embodiment of the present application may include the following steps:

[0462] S1301: The first electronic device receives and responds to a first operation of the user, and sets the identity of the first electronic device to a first identity.

[0463] The first electronic device may be the electronic device 100 in the above embodiment.

[0464] In one possible implementation, the first operation is an operation in which a user selects a first identity. The method further includes, before receiving the first operation, displaying an identity list, the identity list including multiple identities, the multiple identities including the first identity. For example, the identity list may be one or more identities displayed in identity selection interface 240 shown in FIG. 2E , and the first identity may be "Coach 1."

[0465] In a possible implementation, the first operation is an operation of a user inputting a first identity identifier.

[0466] For other relevant contents of step S1301 , reference may be made to the relevant description of step S601 in the embodiment shown in FIG. 6A .

[0467] S1302: When the first electronic device is underwater, receiving and responding to a second operation of the user, displaying one or more messages, the one or more messages including the first message.

[0468] In some embodiments, the one or more messages may be one or more preset information in the embodiment shown in FIG. 6A .

[0469] In a possible implementation, before receiving the second operation, the method further includes: the first electronic device detecting that the first electronic device is underwater.

[0470] In a possible implementation, the first electronic device further includes a first button; and the second operation is an operation performed by a user on the first button.

[0471] S1303: Receive and respond to the user's third operation of selecting to send a first message by sending a first sound wave signal, where the first sound wave signal carries the first message and the first identity identifier.

[0472] In some embodiments, the first message may be the preset information 1 in the embodiment shown in FIG. 6A .

[0473] In one possible implementation, the first electronic device also includes a second button and a third button; receiving and sending a first sound wave signal in response to the user's third operation of selecting to send the first message, specifically including: receiving and displaying a selection mark on the first message in response to the user's operation on the second button, the selection mark is used to prompt the user that the first message is selected; receiving and sending the first sound wave signal in response to the user's operation on the third button.

[0474] Illustratively, the second button may be the button 12 in the embodiment shown in FIG. 1A ; the third button may be the button 13 in the embodiment shown in FIG. 1A .

[0475] In one possible implementation, the first electronic device may include a first button; the second operation is a pressing operation performed by a user on the first button; the third operation is a rotation operation performed by a user on the first button; and the third operation is a pressing operation performed by a user on the first button.

[0476] In another possible implementation, in one possible implementation, the first electronic device may include a first button and a second button; the second operation is a pressing operation performed by a user on the first button; the third operation is a rotation operation performed by a user on the second button; the third operation is a pressing operation performed by a user on the second button.

[0477] It is understandable that the above-mentioned various implementation methods are only examples. The first electronic device may include one or more buttons, and the operation methods of the second operation and the third operation may also be other operation methods, which are not limited in this application.

[0478] For other relevant contents of step S1302 to step S1303 , reference may also be made to the relevant description of step S606 to step S608 in the embodiment shown in FIG. 6A .

[0479] The underwater communication method provided by the embodiment of the present application has a longer transmission distance than traditional wireless communication methods. Moreover, the transmitted information carries an identity identifier to inform the receiver of the identity of the sender of the information.

[0480] In some embodiments, the first electronic device may also transmit an acoustic wave signal carrying an identity identifier and corresponding information when it detects that any one or more parameters of the user, such as physiological parameters, environmental equipment parameters, and diving status parameters, meet specific conditions (e.g., greater than or less than a specific threshold, not within a preset interval, within a preset interval, etc.). This corresponding information can be used to inform the recipient of the current status of the user of the first electronic device. The specific correspondence between conditions and messages can also be referred to the relevant description in the embodiment shown in FIG. 6A above, and will not be repeated here.

[0481] In one possible implementation, the first sound wave signal also carries a first group identifier, which is used to indicate that the first electronic device belongs to the first group; the method also includes: before receiving the second operation, receiving a fourth operation of the user joining the first group; in response to the fourth operation, broadcasting the first group identifier and the first identity identifier; receiving the first group identifier and the second identity identifier sent by the second electronic device, the second identity identifier being the identity identifier of the second electronic device; and displaying a member list of the first group, the member list including the first identity identifier and the second identity identifier.

[0482] In some embodiments, the first group identifier may be the identifier of Group 1 in the above embodiment. The member list of the first group may be the member list of Group 1 in the above embodiment. The fourth operation may be an operation in which the user inputs the identifier of Group 1 (e.g., a group ID). In the above implementation, the first electronic device may be the electronic device 100 shown in FIG. 8 , and the second electronic device may be the electronic device 200 shown in FIG. 8 .

[0483] In this way, electronic devices in the same group can communicate with each other.

[0484] In one possible implementation, the first sound wave signal also carries a first group identifier, which is used to indicate that the first electronic device belongs to the first group; the method also includes: before receiving the second operation, receiving a fifth operation of the user creating the first group; in response to the fifth operation, broadcasting the first group identifier and the first identity identifier; receiving the first group identifier and the second identity identifier sent by the second electronic device, the second identity identifier being the identity identifier of the second electronic device; broadcasting the first group identifier and a member list of the first group, the member list including the first identity identifier and the second identity identifier.

[0485] In some embodiments, the fifth operation may be an operation in which the user inputs a group identifier of the first group. In this case, the first electronic device may be the electronic device 200 shown in FIG. 9 , and the second electronic device may be the electronic device 100 shown in FIG. 9 .

[0486] In other possible implementations, the first electronic device may also determine that the first electronic device is the central device of the group based on any one or more of the identity of the first electronic device (such as a coach, etc.), the device's battery life (such as the remaining battery level), the time of joining the group, etc. This application does not limit this.

[0487] In one possible implementation, the method also includes: when a sixth sound wave signal sent by a second electronic device is received, displaying the sixth information and the second identity identifier, the sixth sound wave signal carries the sixth information, the first group identifier, and the second identity identifier; when a seventh sound wave signal sent by a third electronic device is received, not displaying the seventh information, the seventh sound carries the seventh information and the third identity identifier, the third identity identifier is the identity identifier of the third electronic device, and the third electronic device does not belong to the first group.

[0488] In this way, when a message is received from an electronic device that does not belong to the same group, the message may not be displayed.

[0489] In one possible implementation, the method also includes: when the first electronic device is underwater, sending an eighth sound wave signal at a first moment, the eighth sound wave signal carrying a first identity identifier and a first moment; receiving a ninth sound wave signal sent by the second electronic device at a second moment, the ninth sound wave signal being a sound wave signal sent by the second electronic device when the eighth sound wave signal is received, the ninth sound wave signal carrying the emission moment of the ninth sound wave signal and the second identity identifier of the second electronic device; in response to the ninth sound wave signal, outputting distance information based on the emission moment of the ninth sound wave signal and the second moment, the distance information being used to indicate the distance between the first electronic device and the second electronic device.

[0490] In this way, the first electronic device can determine the distance between itself and the second electronic device in real time, which makes it easier to determine the distance between itself and its companions, thereby improving diving safety.

[0491] In one possible implementation, the method also includes: when the first electronic device is underwater, sending an eighth sound wave signal at a first moment, the eighth sound wave signal carrying a first identity identifier; receiving a ninth sound wave signal sent by the second electronic device at a second moment, the ninth sound wave signal being the sound wave signal sent by the second electronic device when receiving the eighth sound wave signal, and the ninth sound wave signal carrying the second identity identifier of the second electronic device; sending a tenth sound wave signal at a third moment, the tenth sound wave signal carrying the first identity identifier; receiving an eleventh sound wave signal sent by the second electronic device at a fourth moment, the eleventh sound wave signal being the sound wave signal sent by the second electronic device when receiving the tenth sound wave signal, and the eleventh sound wave signal carrying the second identity identifier of the second electronic device; outputting a distance prompt based on the first time interval and the second time interval, the distance prompt being used to prompt a user of a change in the distance between the first electronic device and the second electronic device, the first time interval being the time interval between the first moment and the second moment, and the second time interval being the time interval between the third moment and the fourth moment.

[0492] In this way, the first electronic device can determine the distance change between it and the second electronic device in real time, thereby improving diving safety.

[0493] In one possible implementation, outputting a distance prompt based on a first time interval and a second time interval specifically includes: when the first time interval is greater than the second time interval, outputting a first distance prompt, the first distance prompt being used to prompt a user that the distance between the first electronic device and the second electronic device is decreasing; when the first time interval is less than the second time interval, outputting a second distance prompt, the second distance prompt being used to prompt a user that the distance between the first electronic device and the second electronic device is increasing.

[0494] In this way, a distance prompt can be output in real time to indicate whether the distance between the two electronic devices is increasing or decreasing.

[0495] In a possible implementation, before transmitting the eighth sound wave signal, the method further includes: the first electronic device receives and responds to a user's operation of turning on the distance monitoring function, turning on the distance monitoring function.

[0496] For the operation of enabling the distance monitoring function by the user, reference may also be made to the relevant description of step S1001 in the embodiment shown in FIG. 10 .

[0497] In this way, after the distance monitoring function is enabled, the first electronic device can monitor the distance between the first electronic device and the second electronic device in real time.

[0498] In another possible implementation, the first electronic device can monitor the distance between the first electronic device and the second electronic device in real time without manual operation by the user.

[0499] In one possible implementation, the method further includes: before receiving the first operation, displaying a first prompt, the first prompt being used to prompt the user that the first electronic device has not yet been set up with an identity identifier; receiving and responding to the user's first operation, setting the identity identifier of the first electronic device to the first identity identifier, specifically including: receiving and responding to the user's first operation, displaying a second prompt, the second prompt being used to prompt the user that the identity identifier of the first electronic device is the first identity identifier.

[0500] In this way, the first electronic device can set an identity based on the user's operation.

[0501] Exemplarily, the first prompt may be the identity prompt 232a in the embodiment shown in FIG. 2D , and the second prompt may be the identity prompt 232a in the embodiment shown in FIG. 2F .

[0502] FIG14 shows a flow chart of another underwater communication method provided in an embodiment of the present application.

[0503] As shown in FIG14 , the specific process of the underwater communication method may include the following steps:

[0504] S1401, at the fifth moment, the buoy device receives the twelfth sound wave signal sent from the first electronic device underwater. The twelfth sound wave signal carries the first identity identifier and the first transmission time of the first electronic device. The first transmission time is the transmission time of the twelfth sound wave signal.

[0505] The buoy device may be the buoy device 300 in the embodiment shown in FIG. 12 , and the first electronic device may be the electronic device 100 in the embodiment shown in FIG. 12 .

[0506] The buoy device may store first position information, and the first position information may be used to indicate the position of the buoy device.

[0507] S1402: The buoy device determines second location information based on the fifth moment, the first transmission moment, and the first location information, where the second location information is used to indicate the location of the first electronic device.

[0508] In some embodiments, the second location information may be the distance between the first electronic device and the buoy device. The buoy device may determine the distance between the first electronic device and the buoy device based on the fifth moment and the first transmission moment.

[0509] In some embodiments, the buoy device may store a preset three-dimensional coordinate system, and the first location information may be the coordinates of the buoy device in the three-dimensional coordinate system. The second location information may also be the coordinates in the three-dimensional coordinate system. In this case, the buoy device may determine the second location information based on the fifth moment, the first launch moment, and the first location information.

[0510] S1403: The buoy device sends a first wireless signal to a second electronic device that is not submerged in water. The first wireless signal includes second location information.

[0511] The second electronic device may be an electronic device that has not been submerged in water. In some embodiments, the second electronic device may also be replaced by a base station or the like.

[0512] The first wireless signal may be a signal transmitted via a traditional wireless communication method such as Wi-Fi, Bluetooth, etc.

[0513] In this way, the location information of the underwater electronic device can be sent to the electronic devices on shore through the buoy device, so that the electronic devices on shore can determine the location of the underwater electronic device.

[0514] In a possible implementation manner, the method further includes: after determining the second position information, sending a thirteenth sound wave signal to the first electronic device, where the thirteenth sound wave signal carries the second position information.

[0515] In this way, the buoy device can also send the location information of the first electronic device to the first electronic device, so that the user of the first electronic device can determine his or her own location.

[0516] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.

[0517] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0518] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0519] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection of the present invention.

Claims

1. An underwater communication method, characterized in that: Applied to a first electronic device; the method comprises: receiving and responding to a first operation of a user, setting the identity of the first electronic device to the first identity; When the first electronic device is underwater, receiving and responding to a second operation of a user, displaying one or more messages, wherein the one or more messages include a first message; A first sound wave signal is received and sent in response to a third operation of the user selecting to send the first message, wherein the first sound wave signal carries the first message and a first identity identifier.

2. The method according to claim 1, characterized in that The first operation is an operation of the user selecting the first identity identifier; the method further includes: Before receiving the first operation, an identity list is displayed, the identity list including a plurality of identity identifiers, and the plurality of identity identifiers include the first identity identifier.

3. The method according to claim 1 or 2, characterized in that: The first electronic device also includes a first button; the second operation is an operation performed by a user on the first button.

4. The method according to any one of claims 1 to 3, characterized in that The first electronic device further includes a second button and a third button; the receiving and responding to the third operation of the user selecting to send the first message, sending the first sound wave signal specifically includes: receiving and responding to an operation performed by a user on the second button, displaying a selection mark on the first message, wherein the selection mark is used to prompt the user that the first message is selected; The first sound wave signal is received and sent in response to the user's operation on the third button.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Monitoring a first physiological parameter of a user, wherein the first physiological parameter is any one of the following: body temperature, heart rate, blood pressure, blood oxygen concentration, central nervous system toxin concentration; When the first electronic device is underwater and detects that the first physiological parameter does not belong to the first interval, a second sound wave signal is sent, and the second sound wave signal carries the second information and the first identity identifier. The second information is used to notify the recipient that the first physiological parameter of the user of the first electronic device is abnormal.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Monitoring a first environmental equipment parameter, wherein the first environmental equipment parameter is any one of the following: water temperature, water depth, water flow rate, ambient light intensity, water pressure, oxygen remaining, remaining safety time, no-decompression time, and diving time; When the first electronic device is underwater and detects that the first environmental equipment parameter does not belong to the second interval, a third sound wave signal is sent, and the third sound wave signal carries the third information and the first identity identifier. The third information is used to notify the recipient that the first environmental equipment parameter of the first electronic device is abnormal.

7. The method according to claim 6, characterized in that The method further comprises: Monitoring diving status, wherein the diving status includes any one or more of the following: surfacing, diving, and staying; When the first environmental equipment parameter reaches a first value, a fourth sound wave signal is sent, the fourth sound wave signal carries the fourth information and the first identity identifier, the fourth information includes the first environmental equipment parameter and a first diving state, and the first diving state is a diving state of the first electronic device.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Monitoring a first diving parameter, wherein the first diving parameter is any one of the following: stay time, ascent speed, descent speed; When the first electronic device is underwater and detects that the first diving parameter does not belong to the third interval, a fifth sound wave signal is sent, wherein the fifth sound wave signal carries the fifth information and the first identity identifier, and the fifth information is used to notify a receiver that the first diving parameter of the first electronic device is abnormal.

9. The method according to any one of claims 1 to 8, characterized in that The first sound wave signal also carries the first group identifier, and the first group identifier is used to indicate that the first electronic device belongs to a first group; and the method further includes: Before receiving the second operation, receiving a fourth operation of the user joining the first group; In response to the fourth operation, broadcasting the first group identifier and the first identity identifier; receiving the first group identifier and the second identity identifier sent by the second electronic device, where the second identity identifier is the identity identifier of the second electronic device; A member list of the first group is displayed, where the member list includes the first identity identifier and the second identity identifier.

10. The method according to any one of claims 1 to 8, characterized in that The first sound wave signal also carries the first group identifier, and the first group identifier is used to indicate that the first electronic device belongs to a first group; and the method further includes: Before receiving the second operation, receiving a fifth operation of the user creating the first group; In response to the fifth operation, broadcasting the first group identifier and the first identity identifier; receiving the first group identifier and the second identity identifier sent by the second electronic device, where the second identity identifier is the identity identifier of the second electronic device; The first group identifier and a member list of the first group are broadcasted, wherein the member list includes the first identity identifier and the second identity identifier.

11. The method according to claim 9 or 10, characterized in that: The method further comprises: When receiving a sixth sound wave signal sent by the second electronic device, displaying the sixth information and the second identity identifier, the sixth sound wave signal carrying the sixth information, the first group identifier and the second identity identifier; When the seventh sound wave signal sent by the third electronic device is received, the seventh information is not displayed, the seventh sound carries the seventh information and the third identity identifier, the third identity identifier is the identity identifier of the third electronic device, and the third electronic device does not belong to the first group.

12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: When the first electronic device is underwater, sending an eighth sound wave signal at a first moment, the eighth sound wave signal carrying the first identity identifier and the first moment; receiving a ninth sound wave signal sent by the second electronic device at a second moment, wherein the ninth sound wave signal is a sound wave signal sent by the second electronic device when the second electronic device receives the eighth sound wave signal, and the ninth sound wave signal carries a transmission moment of the ninth sound wave signal and a second identity of the second electronic device; In response to the ninth sound wave signal, distance information is output based on a time of emission of the ninth sound wave signal and the second time, the distance information being used to indicate a distance between the first electronic device and the second electronic device.

13. The method according to any one of claims 1 to 11, characterized in that The method further comprises: When the first electronic device is underwater, sending an eighth sound wave signal at a first moment, the eighth sound wave signal carrying the first identity identifier; receiving a ninth sound wave signal sent by the second electronic device at a second moment, wherein the ninth sound wave signal is a sound wave signal sent by the second electronic device when the second electronic device receives the eighth sound wave signal, and the ninth sound wave signal carries a second identity identifier of the second electronic device; Sending a tenth sound wave signal at a third moment, wherein the tenth sound wave signal carries the first identity identifier; receiving, at a fourth moment, an eleventh sound wave signal sent by the second electronic device, the eleventh sound wave signal being a sound wave signal sent by the second electronic device when receiving the tenth sound wave signal, the eleventh sound wave signal carrying a second identity identifier of the second electronic device; A distance prompt is output based on a first time interval and a second time interval, wherein the distance prompt is used to prompt a user of a change in the distance between the first electronic device and the second electronic device, wherein the first time interval is the time interval between the first moment and the second moment, and the second time interval is the time interval between the third moment and the fourth moment.

14. The method according to claim 13, characterized in that The outputting of the distance prompt based on the first time interval and the second time interval specifically includes: When the first time interval is greater than the second time interval, a first distance prompt is output, where the first distance prompt is used to prompt the user The distance between the first electronic device and the second electronic device becomes smaller; When the first time interval is smaller than the second time interval, a second distance prompt is output, where the second distance prompt is used to prompt the user that the distance between the first electronic device and the second electronic device is increasing.

15. The method according to any one of claims 1 to 14, characterized in that The method further comprises: Before receiving the first operation, displaying a first prompt, wherein the first prompt is used to prompt the user that the first electronic device has not been set with an identity identifier; The receiving and responding to the first operation of the user, setting the identity of the first electronic device to the first identity specifically includes: A second prompt is received and displayed in response to a first operation of the user, wherein the second prompt is used to prompt the user that the identity identifier of the first electronic device is the first identity identifier.

16. An underwater communication method, characterized in that: Applied to a buoy device, the buoy device stores first position information, and the first position information is used to indicate the position of the buoy device; the method includes: At a fifth moment, receiving a twelfth sound wave signal sent from underwater by the first electronic device, the twelfth sound wave signal carrying the first identity identifier and the first transmitting time of the first electronic device, the first transmitting time being the transmitting time of the twelfth sound wave signal; Determine second location information based on the fifth moment, the first transmission moment, and the first location information, where the second location information is used to indicate the location of the first electronic device; A first wireless signal is sent to a second electronic device that is not submerged in water, where the first wireless signal includes the second location information.

17. The method according to claim 16, characterized in that The method further comprises: After determining the second position information, a thirteenth sound wave signal is sent to the first electronic device, where the thirteenth sound wave signal carries the second position information.

18. An electronic device, being a first electronic device, characterized in that: include: One or more processors, one or more memories, a display screen, and a sound module; the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the first electronic device executes the method described in any one of claims 1 to 15.

19. The method according to claim 18, characterized in that The sound-generating module is attached to the rear shell of the first electronic device, and is used to drive the rear shell to vibrate and send sound wave signals.

20. A computer-readable storage medium comprising computer instructions, characterized in that: When the computer instructions are executed on the first electronic device, the first electronic device is caused to execute the method described in any one of claims 1 to 15.

21. An electronic device, which is a buoy device, characterized in that: include: One or more processors and one or more memories; the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program code, the computer program code includes computer instructions, when the one or more processors execute the computer instructions, the first electronic device executes the method described in claim 16 or 17.

22. A computer-readable storage medium comprising computer instructions, characterized in that: When the computer instructions are executed on the first electronic device, the first electronic device is caused to execute the method according to claim 16 or 17.

Citation Information

Patent Citations

  • Underwater communication method, system and related device

    CN119727939A

  • Portable underwater acoustic communication equipment and method for frogman

    CN101969348A

  • Underwater intelligent wearable device and use method thereof

    CN113873481A

  • Underwater robot control system and underwater robot control method

    JP2018203192A

  • Diver Monitoring and Communication System

    US20110102177A1