Underwater communication method, system and related device

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

CN119727939APending Publication Date: 2025-03-28HUAWEI DEVICE CO LTD

Patent Information

Application Number
CN202311270413.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In an underwater environment, traditional wireless communication signals are easily attenuated and long-distance underwater communication cannot be achieved.

Method used

Sound wave signals are used for underwater communication, which attenuate less in water and propagate farther. At the same time, the information carries an identity identifier to inform the sender of the information of the recipient.

Benefits of technology

Long-distance underwater communication between multiple electronic devices is realized, communication distance is improved, and information is accurately transmitted through identity identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119727939A_ABST
    Figure CN119727939A_ABST
Patent Text Reader

Abstract

The invention discloses an underwater communication method, an underwater communication system and a related device. The underwater communication method is applied to first electronic equipment, and comprises the following steps: receiving and responding to a first operation of a user, and setting an identity label of the first electronic equipment as a first identity label; when the first electronic equipment is under water, receiving and responding to a second operation of the user, and displaying one or more messages, the one or more messages including the first message; and receiving and responding to a third operation that the user selects to send the first message, and sending a first sound wave signal which carries the first message and the first identity identifier. In this way, underwater communication between the electronic devices can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] 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.

[0003] 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.

[0004] However, in water, wireless signals are severely attenuated, making long-distance underwater communication impossible. Summary of the invention

[0005] 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.

[0006] 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 an 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 a 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.

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

[0008] In addition, the identity identifier can be an identity identifier set by the user, and the user can also change the identity identifier in different usage scenarios. For example, the user's identity on the first date is a coach, and the identity on the second date is a diving buddy; the user can set the identity identifier to a coach on the first date, and can also change the identity identifier to a diving buddy on the second date. In this way, the user can change the identity identifier set in the electronic device based on his or her own identity changes, so that the receiving user can quickly determine the sender of the information based on the identity identifier in the information.

[0009] 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.

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

[0011] In this way, multiple optional identity tags can be provided to the user, which facilitates the user operation and reduces the operation time.

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

[0013] In this way, the user can also input the identity identification himself.

[0014] 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.

[0015] 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.).

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

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

[0018] In a possible implementation, the first electronic device may include a first button; the second operation is a pressing operation of the first button by a user; the third operation is a rotating operation of the first button by a user; and the third operation is a pressing operation of the first button by a user.

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

[0020] It is understandable that the above-mentioned various implementation methods are only examples, and 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 the present application.

[0021] In one possible implementation, the method also includes: monitoring a first physiological parameter of the user, the first physiological parameter being 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 a first interval, sending a second sound wave signal, the second sound wave signal carries second information and a first identity, and the second information is used to notify a recipient that the first physiological parameter of the user of the first electronic device is abnormal.

[0022] 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 companion that the user of the first electronic device has an abnormal condition.

[0023] In one possible implementation, the method also includes: monitoring a first environmental equipment parameter, the first environmental equipment parameter being 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, sending a third sound wave signal, the third sound wave signal carries third information and a first identity, and the third information is used to notify a recipient that the first environmental equipment parameter of the first electronic device is abnormal.

[0024] In this way, when an abnormality is detected in the environmental equipment parameters, the first electronic device can be triggered to send information to notify the companion that the equipment of the first electronic device or the environment in which it is located is abnormal.

[0025] In a possible implementation, the method also includes: monitoring the diving status, the diving status including any one or more of the following: floating, diving, 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, 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.

[0026] 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.

[0027] In one possible implementation, the method also includes: monitoring a first diving parameter, the first diving parameter being any one of the following: stay duration, ascent speed, and descent speed; when the first electronic device is underwater and it is monitored 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, and the fifth information is used to notify a recipient that the first diving parameter of the first electronic device is abnormal.

[0028] 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 of the abnormal condition.

[0029] It can be understood that the above-mentioned various 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.

[0030] 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.

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

[0032] In one possible implementation, the first sound wave signal also carries a first group identifier, and the first group identifier 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.

[0033] In this way, the first electronic device can create a first group, and in response to the operation of creating a group, the first electronic device is determined to be the central device of the group. After updating the member list, the central device can broadcast the member list of the group.

[0034] In some 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., and this application does not limit this.

[0035] In a possible implementation, the method also includes: when a sixth sound wave signal sent by a second electronic device is received, the sixth information and the second identity are displayed, and 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, 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.

[0036] 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.

[0037] In a 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 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 of the second electronic device; in response to the ninth sound wave signal, outputting distance information based on the emission moment and the second moment of the ninth sound wave signal, the distance information being used to indicate the distance between the first electronic device and the second electronic device.

[0038] In this way, the first electronic device can determine the distance between itself and the second electronic device in real time, which is convenient for determining the distance between itself and its companions, thereby improving the safety of diving.

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

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

[0041] 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.

[0042] In a 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 a sound wave signal sent by the second electronic device when the eighth sound wave signal is received, and the ninth sound wave signal carrying a 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 a sound wave signal sent by the second electronic device when the tenth sound wave signal is received, and the eleventh sound wave signal carrying the second identity identifier of the second electronic device; outputting a distance prompt based on a first time interval and a 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.

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

[0044] In a 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.

[0045] 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.

[0046] In a possible implementation, the method also includes: before receiving the first operation, displaying a first prompt, the first prompt is 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 is used to prompt the user that the identity identifier of the first electronic device is the first identity identifier.

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

[0048] In a second aspect, the present application provides an underwater communication method, which is applied to a buoy device, wherein 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.

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

[0050] 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.

[0051] In this way, the buoy device can also send the location information of the first electronic device to the first electronic device, so as to facilitate the user of the first electronic device to determine his own location.

[0052] In a third aspect, the present application provides an electronic device, which is 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 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 underwater communication method in any possible implementation of any of the above aspects.

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

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

[0055] In a fourth aspect, an embodiment of the present application provides a computer storage medium, including 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.

[0056] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a first electronic device, the first electronic device executes the underwater communication method in any possible implementation of any of the above aspects.

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

[0058] 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 used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the buoy device executes the underwater communication method in any possible implementation of the second aspect.

[0059] In a seventh aspect, an embodiment of the present application provides a computer storage medium, comprising computer instructions, which, when executed on a buoy device, enables the buoy device to execute an underwater communication method in any possible implementation of the second aspect.

[0060] 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.

[0061] 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

[0062] Figure 1A A schematic diagram of the system architecture of an underwater communication system 10 provided in an embodiment of the present application;

[0063] Figure 1B A schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;

[0064] Figure 1C A schematic diagram of the connection relationship of a sound wave signal transceiver module provided in an embodiment of the present application;

[0065] Figure 1D A schematic diagram of the position relationship of a sound module 170D in an electronic device 100 provided in an embodiment of the present application;

[0066] Figure 1E A schematic diagram of the position relationship of another sound module 170D in the electronic device 100 provided in an embodiment of the present application;

[0067] Figure 1FA schematic diagram of the relationship between the deformation of a sound module 170D and the waveform of a generated sound wave signal provided in an embodiment of the present application;

[0068] Figure 2A-2F A schematic diagram of a group of interfaces for setting the identity of the electronic device 100 provided in an embodiment of the present application;

[0069] Figure 3A-Figure 3F A schematic diagram of an interface for sending information underwater by a group of electronic devices 100 provided in an embodiment of the present application;

[0070] Figure 4A-4E A schematic diagram of an interface for a group of electronic devices 100 to join / exit a group provided in an embodiment of the present application;

[0071] Figure 5A-5F A schematic diagram of an interface for setting information sending conditions for a group of electronic devices 100 provided in an embodiment of the present application;

[0072] Figure 5G A schematic diagram of an interface of an electronic device 100 receiving a receipt message provided in an embodiment of the present application;

[0073] Figure 5H A schematic diagram of an interface for outputting a distance change prompt by an electronic device 100 provided in an embodiment of the present application;

[0074] Fig. 6A A schematic diagram of a flow chart of an underwater communication method provided in an embodiment of the present application;

[0075] Figure 6B A schematic diagram of the structure of a sound wave signal provided in an embodiment of the present application;

[0076] Figure 6C A waveform diagram of a sound wave signal provided in an embodiment of the present application;

[0077] Figure 7 A schematic diagram of a process of an electronic device 200 receiving target information sent by an electronic device 100 underwater provided in an embodiment of the present application;

[0078] Figure 8 A schematic diagram of a process of an electronic device 100 joining a group provided in an embodiment of the present application;

[0079] Fig. 9 A schematic diagram of a process of another electronic device 100 joining a group provided in an embodiment of the present application;

[0080] Fig.10 A schematic 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 provided in an embodiment of the present application;

[0081] Fig.11 A schematic diagram of functional modules of an electronic device 100 provided in an embodiment of the present application;

[0082] Fig.12 A schematic diagram of the system architecture of an underwater communication system 20 provided in an embodiment of the present application;

[0083] Fig.13 A schematic diagram of a flow chart of an underwater communication method provided in an embodiment of the present application is shown;

[0084] Fig.14 A flow chart of another underwater communication method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0085] The technical solutions in the embodiments of the present application will be described clearly and in detail below 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 of associated 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.

[0086] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0087] The term "user interface (UI)" in the following embodiments of the present 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 can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation 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.

[0088] Figure 1A A schematic diagram of the architecture of an underwater communication system 10 provided in an embodiment of the present application is shown.

[0089] like Figure 1A As shown, the underwater communication system 10 may include an electronic device 100 and an electronic device 200 .

[0090] 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, and the relevant description of the buttons of the electronic device 200 may refer to the relevant description of the buttons of the electronic device 100, which will not be repeated here. After the electronic devices 100 and 200 enter the water, the user can use the buttons to send and view information.

[0091] 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 the underwater acoustic carrier communication technology. The electronic device 100 can generate a sound wave signal carrying information through a buzzer, and propagate the sound wave signal to the surroundings using water as a propagation medium. The electronic device 200 can receive the sound 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 sound wave signal may include an ultrasonic signal, an infrasonic signal, and a sound wave signal that can be heard by the human ear. The embodiment of the present application does not limit the frequency range of the sound wave signal.

[0092] In some embodiments, when neither the electronic device 100 nor the electronic device 200 is underwater, the electronic device 100 and the electronic device 200 may communicate via wireless communication methods such as Bluetooth and wireless LAN, which is not limited in the present application.

[0093] Understandably, Figure 1A The embodiment shown is only an example. In the embodiment of the present application, the underwater communication system 10 may also include more electronic devices. Moreover, the electronic device 100 (or the 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.

[0094] It should be noted that the electronic device 100 and the electronic device 200 may be Figure 1AThe watch shown may also be other wearable devices such as a bracelet and smart glasses. The embodiment of the present application does not limit the specific type and device form of the electronic device 100 and the electronic device 200.

[0095] Figure 1B A schematic diagram of the hardware structure of the electronic device 100 is shown.

[0096] The electronic device 100 may be a wearable device such as a watch, a bracelet, or smart glasses. The embodiment of the present application does not impose any particular limitation on the specific type of the electronic device.

[0097] 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 also 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 also 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.

[0098] It is to be understood that the structure illustrated in the embodiment 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 in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0099] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0100] 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.

[0101] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0102] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0103] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0104] 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 screen 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 number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0105] 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 (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, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna.

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

[0107] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), and 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), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

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

[0109] 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 an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the sound module 170D, and an application processor, etc.

[0110] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

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

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

[0113] Microphone 170C, also called "microphone" or "microphone", is used to convert sound wave signals into electrical signals. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which, in addition to collecting sound wave signals, may also realize a noise reduction function. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to realize the collection of sound wave signals, noise reduction, identification of sound sources, realization of directional recording functions, etc. In an embodiment of the present application, the microphone 170C may be used to collect sound wave signals emitted by other electronic devices.

[0114] The sound module 170D can be used to convert an electrical signal into an acoustic signal. In an embodiment of the present application, the sound module 170D is used to generate a sound wave signal carrying information. The sound module 170D may include a moving coil type, a piezoelectric type, or other sensor 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 device made of a piezoelectric material, such as a piezoelectric sheet, and the shape of the piezoelectric sheet may be annular, semicircular, or other shapes, which is not limited in the present application.

[0115] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194. In some embodiments, the pressure sensor 180A can also be used to measure the user's physiological parameters (such as blood pressure, etc.). In other embodiments, the pressure sensor 180A can be used to measure water pressure and determine the depth of the user's dive based on the relationship between water pressure and water depth.

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

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

[0118] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

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

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

[0121] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

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

[0123] The light sensor 180O, which may also be referred to 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 may determine the environment in which the user is located based on the brightness of ambient light detected by the light sensor 180O.

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

[0125] 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 and electrical sensor.

[0126] The key 190 includes a power button, a volume button, a crown, etc. The key 190 may be a mechanical key. It may also be a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100. In the embodiment of the present application, the key 190 may include the above Figure 1A Shown are key 11, key 12, key 13, etc.

[0127] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming message vibration prompts, and can also be used for touch vibration feedback. When receiving different types of information, motor 191 can also correspond to different vibration feedback effects. The vibration feedback effect can also support customization.

[0128] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, notifications, etc.

[0129] 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 above Figure 1B The description of the hardware structure of the electronic device 100 is not repeated here.

[0130] Figure 1C A schematic diagram showing the connection relationship of a sound wave signal transceiver module provided in an embodiment of the present application is shown.

[0131] like Figure 1C As shown, 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, etc.

[0132] The receiving module 101 can collect sound wave signals, and the receiving module 101 can include a moving coil type, a piezoelectric type, or other sensor that can realize sound-to-electric conversion. Exemplarily, the receiving module 101 can 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 send the electrical signals to the filter amplifier circuit 103.

[0133] The filter amplifier 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 .

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

[0135] 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.

[0136] The digital-to-analog converter 106 may receive a digital signal sent by the processor 110 and convert the digital signal into an analog signal, that is, an electrical signal corresponding to the digital signal. Afterwards, the digital-to-analog converter 106 may send the converted electrical signal to the power amplifier circuit 104 .

[0137] 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 .

[0138] The transmitting module 102 may include a moving coil type, a piezoelectric type, or other sensor that can realize electroacoustic conversion. The transmitting module 102 may receive an electrical signal sent by the power amplifier circuit 104, and after converting the electrical signal into an acoustic wave signal, propagate the acoustic wave signal outward. In some embodiments, a drive transmitting circuit may be provided in the transmitting module 102, and the drive transmitting circuit is used to drive the transmitting module 102 to transmit an 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 an acoustic wave signal.

[0139] 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.

[0140] 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 above Figure 1C The embodiments shown will not be described in detail here.

[0141] Figure 1D A schematic diagram showing the position relationship of a sound module 170D provided in an embodiment of the present application in an electronic device 100 is shown.

[0142] like Figure 1D As shown, below the display screen 194, a sound module 170D and a battery 142 may be arranged in sequence. The sound module 170D may be fixed between the display screen 194 and the battery 142 by 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. Among them, there is a gap (also referred to as an upper gap) between the sound module 170D and the display screen 194, and there is a gap (also referred to as a lower gap) between the sound module 170D and the battery 142. The upper gap and the lower gap may be reserved for the sound module 170D to vibrate up and down. Moreover, since the battery will expand after long-term use, the lower gap may also reserve expansion space for the battery. The material of the support frame may be an insulating material, or the surface of the support frame may be insulated. The support frame may adopt a ring-shaped (or rectangular or other shapes) structure, and the specific shape of the support frame may be determined by the shape of the battery 142 and the sound module 170D.

[0143] In this way, vibration space is reserved above and below the sound module 170D, which facilitates the sound module 170D to vibrate and produce sound.

[0144] exist Figure 1D In the illustrated embodiment, the sound module 170D may be a buzzer.

[0145] Figure 1E A schematic diagram showing the position relationship of another sound module 170D provided in an embodiment of the present application in an electronic device 100 is shown.

[0146] like Figure 1E As shown, the sound module 170D can be arranged between the back shell 151 and the battery 142 of the electronic device 100, wherein the battery 142 can be arranged below the display screen 194, and 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, and the sound module 170D can fit tightly with the back shell 151.

[0147] 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, propagate the sound wave signal into the water, and then propagate the sound wave signal to other electronic devices through the water.

[0148] 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.

[0149] exist Figure 1E In the illustrated embodiment, the sound module 170D may be a piezoelectric sheet made of a piezoelectric material. The piezoelectric sheet may be in different shapes. For example, if the body of the electronic device 100 is circular, the shape of the piezoelectric sheet may be annular. In this case, a sensor may be provided at a position in the annular shape, and the sensor may 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 may also be a square frame, a semicircle, a semicircular ring, etc., and the present application does not limit this.

[0150] Understandably, Figure 1D to Figure 1E The embodiments shown are just two examples. In the embodiments of the present application, the sound module 170D can also be set at other locations in the electronic device 100, and the present application does not limit this. In addition, the sound module 170D and other related components provided in the embodiments of the present application are light in size and easy to integrate into small electronic devices, which is convenient for users to wear.

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

[0152] The relationship between the vibration of the sound generating module 170D and the generated sound waveform is described below.

[0153] like Figure 1F As shown in FIG. 1 , the position of the sound module 170D when not vibrating can be called the initial position. During the process of vibrating and emitting sound, the sound module 170D can be deformed upward or downward. The waveform of the sound wave signal generated by the vibration of the sound module 170D can be Figure 1FThe curve C1 in the two-dimensional coordinate axis is shown. In the 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 deformation degree of the sound module 170D.

[0154] Taking one cycle of curve C1 as an example, curve C1 may include peak point A1 and valley point A2 within the 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. Among them, within the time period, peak point A1 may be generated when the sound module 170D is deformed upward to the highest position, and valley point A2 may be generated when the sound module 170D is deformed downward to the lowest position. The higher the highest position of the sound module 170D, the higher the amplitude of the 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.

[0155] Understandably, Figure 1F The correspondence between the vibration direction and amplitude of the sound module 170D and the waveform of the generated sound wave signal is only exemplified. In the embodiment of the present application, the waveform of the sound wave signal may also be different from that in the above embodiment, and the present application does not limit it here.

[0156] An embodiment of the present application provides an underwater communication method, which is applied to an electronic device 100, and includes: receiving and responding to a first operation of a user, setting an 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 a 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.

[0157] In this way, acoustic signals can be used as information carriers to achieve underwater communication. Moreover, acoustic signals have less attenuation when propagating underwater, and the propagation distance is greater than that of traditional wireless communications.

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

[0159] For example, Figure 2A As shown, the electronic device 100 may display a main interface 210 , and the main interface 210 may display time, such as “08:00”.

[0160] The electronic device 100 can receive and respond to the user's sliding operation on the main interface 210, and display the following Figure 2BThe drop-down menu 220 shown. 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.

[0161] The electronic device 100 can receive and respond to the user's click operation on the underwater communication control 221, and display the following Figure 2C An underwater communication interface 230 is shown.

[0162] like Figure 2C As shown, the underwater communication interface 230 may include an enable switch 231, which may be used to enable or disable the underwater communication function of the electronic device 100. The enable switch 231 may include two states, on and off, and the state of the enable switch 231 may be used to prompt the user whether the underwater communication function is enabled. Figure 2C In the illustrated embodiment, the state of the enable switch 231 is off, 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, an entry to a group 233, etc. In some embodiments, if the enable switch 231 is in the off state, the above one or more setting items (including the identity entry 232, the entry to a group 233, etc.) may be in a grayed-out state, and in the 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.

[0163] The electronic device 100 can receive and respond to a user's click operation on the enable switch 231, such as Figure 2D As shown, the state of the enable switch 231 is switched 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 a grayed-out state to a normal state. In the normal state, the one or more setting items can trigger the electronic device 100 to display a corresponding interface. Among them, the identity entry 232 can be used to trigger the electronic device 100 to set the identity of the electronic device 100. An identity prompt 232a can also be displayed in the identity entry 232, such as the text "no identification", which is used to prompt the user that the identity 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 in a normal state.

[0164] The electronic device 100 may receive and respond to a user's click operation on the identity identification entry 232 by displaying a Figure 2E The identity selection interface 240 is shown.

[0165] like Figure 2E As shown, the identity selection interface 240 may display one or more identity identifiers, such as coach 1, coach 2, student 1, student 2, etc. Figure 2E In the figure, a check mark 241 is displayed on "Coach 1", and the check mark 241 can be a rectangular frame, or other graphics, patterns, etc. The check mark 241 can be used to prompt the user that the currently selected identity 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. The identity selection interface 240 can also include a confirmation control 242, and the confirmation control 242 is used to trigger the electronic device 100 to set the currently selected identity as the identity of the electronic device 100.

[0166] The electronic device 100 can receive and respond to the user's click operation on the confirmation control 242, set the currently selected identity coach 1 as the identity of the electronic device 100, and display the following information: Figure 2F The underwater communication interface 230 is shown. In some embodiments, if the identity identifier set for the electronic device 100 is different, the information list displayed by the electronic device 100 may be different, and the information list may allow the user to select the information to be sent.

[0167] like Figure 2F As shown, in the underwater communication interface 230, the identity prompt 232a 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".

[0168] 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.

[0169] It is understandable that the above FIG. 2A to FIG. 2F The embodiment shown is only an example. In the embodiment of the present application, the electronic device 100 may also enable the underwater communication function in other ways. 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 in the diving application. In other embodiments, the underwater communication-related functions may also be set in 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., which is not limited in the present application.

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

[0171] For example, when the electronic device 100 detects that the user is diving, Figure 3A As shown, the electronic device 100 can display a diving status interface 310. The diving status interface 310 can include one or more diving indicators, such as the current oxygen remaining, diving depth, diving speed, the maximum depth and average depth of this dive, underwater time, etc. The diving status interface 310 can also display the current time and the battery power of the electronic device 100.

[0172] The electronic device 100 can receive and respond to the user's operation on the key 11, and display the following Figure 3B An advanced menu interface 320 is shown.

[0173] like Figure 3B As shown, the 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, a view history message option 322, etc. Figure 3B In the example, a check mark 323 may be displayed on the message list option 321, and the check mark 323 is used to prompt the user that the currently selected option is the message list option 321. For other contents of the check mark 323, please refer to the above Figure 2E Related descriptions in the illustrated embodiment. Optionally, the advanced menu interface 320 may also display one or more key operation prompts to prompt the user of the function of the corresponding key. For example, a key operation prompt 324 displayed near key 11 may be used to prompt the user that the operation of key 11 may trigger the electronic device 100 to return to the previous interface (i.e., the diving status interface 310); a key operation prompt 325 displayed near key 12 may be used to prompt the user that the operation of key 12 may trigger the electronic device 100 to switch the currently selected option; a key operation prompt 326 displayed near key 13 may be used to prompt the user that the operation of key 13 may be used to trigger the electronic device 100 to display the interface corresponding to the currently selected option.

[0174] The electronic device 100 can receive and respond to the user's operation on the key 13, and display the following Figure 3C A message list 330 is shown.

[0175] like Figure 3C As shown, the 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 be the text "keep this depth", preset message 332 may be the text "reached the bottom", and preset message 333 may be the text "gas is running out". Figure 3CIn the example, a check mark 334 may be displayed on the preset information 332 to prompt the user that the preset information 333 is the selected preset information. Optionally, the message list 330 may also display multiple key operation prompts. The specific contents of the multiple key operation prompts may refer to the above Figure 3B Related description in the illustrated embodiment.

[0176] 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 following information: Figure 3D The sending interface 340 is shown.

[0177] like Figure 3D As shown, the sending interface 340 may display a sending status 341. The sending status may include sending, sent, sending failure, etc. The sending status 341 may be used to prompt the user that the sending status of the current information is sending.

[0178] In some embodiments, the sending interface 340 may also display sending information, and the sending message may include preset information selected by the user (for example, Figure 3C The preset information 332 shown) and the electronic device 100 are the identification (i.e., Coach 1). Optionally, the sent information may also include the current depth of the electronic device 100 and / or the sending time. Exemplarily, the sent information may be "Coach 1 @ depth 46.1m, 5-23 10:25:31 has reached the bottom."

[0179] After the electronic device 100 has finished sending, Figure 3E As shown, the electronic device 100 can update the sending status 341 in the sending interface 340 from "sending" to "sent".

[0180] 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 the microphone, and parse the sound wave signal to obtain the information sent by the electronic device 100. Figure 3F As shown, 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 can be understood that after the electronic device 200 receives the sound wave signal, the electronic device 200 can also output a reception reminder in the form of flashing indicator lights, vibration, sound, etc., to prompt the user to receive the information.

[0181] 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 above FIG. 3A to FIG. 3E The relevant description in the illustrated embodiment will not be repeated here.

[0182] 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.

[0183] 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.

[0184] 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.

[0185] For example, Figure 4A As shown, the electronic device 100 displays an underwater communication interface 230, which can be used with the above-mentioned Figure 2F The electronic device 100 can receive and respond to the user's operation of entering the group entry 233, and display the following Figure 4B The group entry interface 410 is shown.

[0186] like Figure 4B As shown, 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 the user's input operation on the numeric keypad 411, and display the numeric sequence input by the user in the input area 412, such as "5678".

[0187] The electronic device 100 can add the electronic device 100 to the group corresponding to the digital sequence according to the digital sequence input by the user, and display the following information: Figure 4C Member list interface 420 is shown.

[0188] like Figure 4CAs shown, the member list interface 420 may display the identity of one or more group members, and the one or more group members all belong to a 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, and so on. The member list interface 420 may be used to prompt the user the number of group members in the group, as well as the identity of each group member. The member list interface 420 may also display a group ID, such as "Group ID: NO.5678". Optionally, the member list interface 420 may also include a return control 421 for triggering the electronic device 100 to return to the underwater communication interface 230.

[0189] The electronic device 100 can receive and respond to the user's operation on the key 12, and display the following Figure 4D The group operation interface 430 is shown.

[0190] like Figure 4D As shown, 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 is used to trigger the electronic device 100 to exit the current group.

[0191] The electronic device 100 may receive and respond to the user's operation on the exit group control 432 by displaying the following Figure 4E Exit interface 440 is shown.

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

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

[0194] Understandably, FIG. 4A to FIG. 4E The illustrated embodiment is only an example. In the embodiment of the present application, the electronic device 100 may also form a group in other ways, which is not limited in the present application.

[0195] In some embodiments, the electronic device 100 may also use the above FIG. 4A to FIG. 4E The group is created in the manner shown, and this application does not limit this.

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

[0197] For example, Figure 5A As shown, the electronic device 100 displays an underwater communication interface 230. The relevant description of the underwater communication interface 230 can refer to the above Figure 2F In addition, the underwater communication interface 230 may also include an automatic sending setting entry 234 and a historical message entry 235. The automatic sending setting entry 234 may be used to trigger the electronic device 100 to display the automatic sending setting interface. The historical message entry 235 may be used to trigger the electronic device 100 to display the received historical messages.

[0198] The electronic device 100 may receive and respond to the user's operation on the automatic sending setting item 234, displaying the following Figure 5B The automatic sending settings interface 510 is shown.

[0199] like Figure 5B As shown, 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.

[0200] For example, the electronic device 100 may receive and respond to the user's operation on the diving status entry 511, and display the following information: Figure 5C The diving status setting interface 520 is shown.

[0201] like Figure 5C As shown, the diving state setting interface 520 may include one or more setting options, each of which may correspond to a diving state parameter, such as diving depth, ascent depth, safety stop time, no-decompression remaining time, etc. Moreover, each setting option may be used to set an automatic sending condition corresponding to the diving state parameter, and in some embodiments, may also be used to set the information to be sent. When it is detected that the diving state parameter meets the corresponding automatic sending condition, the electronic device 100 may send a sound wave signal carrying information.

[0202] As another example, the electronic device 100 may receive and respond to the user's operation on the environment equipment item 512, and display the following information: Figure 5D An environmental equipment settings interface 530 is shown.

[0203] like Figure 5DAs shown, the environment equipment setting interface 530 may include one or more setting options, each of which may correspond to a diving state parameter, such as oxygen remaining, ambient temperature, etc. Each setting option may be used to set an automatic sending condition corresponding to the environment equipment parameter, and in some embodiments, may also be used to set the information to be sent. When it is detected that the environment equipment parameter meets the corresponding automatic sending condition, the electronic device 100 may send a sound wave signal carrying the information.

[0204] As another example, the electronic device 100 may receive and respond to the user's operation on the physiological parameter entry 513, and display the following information: Figure 5E Physiological parameter setting interface 540 is shown.

[0205] like Figure 5E As shown, 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 may be used to set the automatic sending condition corresponding to the physiological parameter, and in some embodiments, may also be used to set the information to be sent. When it is detected that the physiological parameter meets the corresponding automatic sending condition, the electronic device 100 may send 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 periodic sending item 514, and display the following information: Fig. 5F The cycle setting interface 550 is shown.

[0207] like Fig. 5F As shown, 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 information sent. For example, the electronic device 100 can set the depth change to 15 meters. In this case, the electronic device 100 can send information once every 15 meters of the underwater depth change. 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 information once 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.

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

[0209] It is understandable that the above FIG. 5A to FIG. 5FThe illustrated embodiments are merely examples. In the embodiments of the present application, the electronic device 100 may set more, fewer, or different information sending conditions than those in the above embodiments, and the present application does not limit this.

[0210] In some embodiments, after the electronic device 100 sends information to the electronic device 200, the electronic device 100 may receive a receipt message sent by the electronic device 200 and display the message as follows: Figure 5G Receipt interface 560 is shown.

[0211] like Figure 5G As shown, 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.

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

[0213] In some embodiments, the electronic device 100 may periodically communicate with the electronic device 200 and determine the change in the distance between the electronic device 100 and the electronic device 200 based on the time interval between the transmission signal and the receipt of the receipt message. The electronic device 100 may also detect that the distance between the electronic device 200 and the electronic device 100 has increased, such as Figure 5H As shown, a distance change prompt is output to prompt the user that the user is moving away from the electronic device 200. The distance change prompt may be text, such as "You are moving away from student 1", etc. Wherein, student 1 is the identity identifier of the electronic device 200.

[0214] Understandably, Figure 5H The illustrated embodiment is merely an example. In the 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, to prompt the user that the user is approaching the electronic device 200. The present application does not make any limitation thereto.

[0215] 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.

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

[0217] like Fig. 6A As shown, the specific process of an underwater communication method provided in an embodiment of the present application may include the following steps:

[0218] S601: The electronic device 100 detects an operation of setting an identity by a user and sets the identity of the electronic device 100.

[0219] For the operation of setting identity identification by users, please refer to the above Figures 2D to 2F Related description in the illustrated embodiment.

[0220] The identity of the electronic device 100 can be used to identify the identity of the user using the electronic device 100. In some embodiments, the identity can be composed 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, dive buddy, safety officer, dive guide, etc.

[0221] It should be noted that the electronic device 100 can receive and respond to the user's operation of setting the identity to determine the identity. In other embodiments, the electronic device 100 can also receive and respond to the user's operation of setting the identity to determine the identity, and determine the serial number in the identity according to the device serial number (SerialNo, SN) code of the electronic device 100, and then determine the identity of the electronic device 100. In this way, it can be avoided that different electronic devices set the same identity.

[0222] It is understandable that the above embodiments are merely examples, and 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.

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

[0224] In some embodiments, the electronic device 100 may receive and enable the underwater communication mode in response to the user's operation of enabling the underwater communication mode. Exemplarily, the user's operation of enabling the underwater communication mode may be the above-mentioned Figure 2C In the illustrated embodiment, the operation of the switch 231 is enabled.

[0225] In some embodiments, the electronic device 100 may enable the underwater communication mode when it is detected that the electronic device 100 enters the water. After the electronic device 100 enters the water, the detection result of the depth sensor of the electronic device 100 will change, and 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 enters the 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 can determine that the electronic device 100 enters the water when it detects that the depth of the electronic device 100 underwater reaches a depth threshold (for example, 0.5 meters, 2 meters, etc.).

[0226] 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.

[0227] 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.

[0228] 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.

[0229] The method of determining whether the electronic device 100 has entered water may refer to the related description of the above step S602.

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

[0231] 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.

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

[0233] 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 of water depth, water temperature, body temperature, blood pressure, oxygen remaining amount and other parameters as an example, the electronic device 100 can start monitoring all the above parameters when it detects that the electronic device 100 enters the water; the electronic device 100 can also monitor the water depth, body temperature and blood pressure before entering the water, and start monitoring other parameters such as water temperature and oxygen remaining amount when underwater communication is enabled. It can be understood that the embodiments here are only exemplary 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 the present application is not limited here.

[0234] S604, the electronic device 100 detects that the diving monitoring result meets the information sending condition 1.

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

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

[0237] 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, etc.

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

[0239] It should be noted that, in some embodiments, each parameter in the diving monitoring result may also be preset with a preset interval, and the preset interval may be the normal value range of the parameter. If it does not fall into the interval, it indicates that the user's current situation may be in danger. In this case, the restriction condition on the parameter in the diving monitoring result may be that the monitored value of the parameter does not fall into the preset interval. In other embodiments, the preset interval may also be an abnormal value range. In this case, the restriction condition on the parameter in the diving monitoring result may be that the monitored value of the parameter belongs to the preset abnormal value range. In other embodiments, the restriction condition on the parameter in the diving monitoring result may also be that the parameter is detected to reach a preset threshold, such as a diving depth of 20 meters.

[0240] It can be understood that the embodiments here are only 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 it here.

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

[0242] The electronic device 100 may store one or more pieces of preset information, and there may be a correspondence between the one or more pieces of preset information and the one or more information sending conditions mentioned in step S604.

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

[0244] Table 1

[0245]

[0246] 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 stays 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 "I have 20 bar of oxygen 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 less than 50 beats / minute (bpm), the preset information is "My heart rate is less than 50bpm"; when the information sending condition is that the heart rate is less than 50 beats / minute (bpm), the preset information is "My heart rate is less than 50bpm"; When the condition for sending the information is that the blood oxygen saturation reaches 95%, the preset message is "Blood oxygen saturation is 95%"; when the condition for sending the information is that the user is detected floating and the current water depth is 5 meters, the preset message is "I have risen to a water depth of 5 meters"; when the condition for sending the information is that the user is detected diving and the current water depth is 15 meters, the preset message is "I have dived to a water depth of 15 meters"; when the condition for sending the information 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 10 for 2 minutes".

[0247] 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, less or different information sending conditions and preset information from the embodiment shown in Table 1, and the present application does not limit this.

[0248] 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.

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

[0250] Exemplarily, 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.

[0251] Table 2

[0252]

[0253]

[0254] According to Table 2, the electronic device 100 can also determine the preset information based on the information sending condition and the identity. For example, when the information sending condition is that the user stays at the same location for 1 minute, if the identity is coach 1, the preset information is "Stop", and if the identity 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 is coach 1, the preset information is "The ambient temperature is low, pay attention to safety", and if the identity is student 1, the preset information is "The ambient temperature is 5℃"; when the information sending condition is that the user is detected floating and the current water depth is 25 meters, if the identity is coach 1, the preset information is "surface to a depth of 25 meters, follow me closely"; if the identity is student 1, the preset information is "I have floated to a depth of 25 meters"; when the information 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 information is "keep diving at a speed of 5 meters / minute"; if the identity is student 1, the preset information is "the current diving speed is 5 meters / minute".

[0255] 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 from the embodiment shown in Table 2, and the present application does not limit this.

[0256] 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, the identity and the preset information stored in the electronic device 100.

[0257] 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 identity of the group. The relevant content of the group identity may refer to the following Figure 8 The relevant contents in the illustrated embodiment will not be described in detail here.

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

[0259] 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.

[0260] Exemplarily, the user's operation of opening the message list may be as described above. Figure 3BIn the embodiment shown, the user operates the button 13, and the message list can be the above Figure 3C A message list 330 is shown.

[0261] In some embodiments, the one or more preset information displayed in the message list may be all preset information stored in the electronic device 100. In other embodiments, the one or more preset information displayed in the message list may also be one or more preset information determined by the electronic device 100 according to the identity of the electronic device 100 and / or the diving monitoring result. It should be noted that, in this case, the diving monitoring result does not meet the information sending conditions in the above steps S604 to S605.

[0262] Exemplarily, 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.

[0263] Table 3

[0264]

[0265]

[0266] According to Table 3, the electronic device 100 can determine one or more preset information to be displayed based on the diving monitoring result and the identity. For example, if the identity is Coach 1, the corresponding preset information may include: "Stop", "Ascend", "Dive", "Follow me closely", "All report the situation", "Check the barometer reading", "Prepare to end", etc. If the identity is Student 1, the corresponding preset information may include: "Received", "Request support", "Everything is normal", "Danger, help!", etc. In the case where the diving monitoring result is that the user is floating up, if the identity is Coach 1, the corresponding preset information includes: "Ascend, follow closely!", "Look at me, there is something", "Keep speed", "Accelerate", "Decelerate", etc. In the case where the diving monitoring result is that the user is floating up, if the identity is Student 1, the corresponding preset information includes: "Received", "I have started to float up", etc.

[0267] It can be understood 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, less or different diving monitoring results, identity identification and preset information from the embodiment shown in Table 3, and the present application does not limit this.

[0268] 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 of the electronic device 100 .

[0269] The sending operation for preset information 1 can be the above Figure 3C In the illustrated embodiment, the user operates button 13 .

[0270] 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.

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

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

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

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

[0275] For example, Figure 6B A schematic diagram of the structure of a sound wave signal provided in an embodiment of the present application is shown.

[0276] like Figure 6B As shown, the sound wave signal may include a pilot signal, a synchronization signal, a message body and a check error correction code, and optionally, may also include header information. Among them, the pilot signal may be a preset signal, and the electronic device at the receiving end (such as the 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, and 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 according to 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.

[0277] Understandably, Figure 6B The illustrated embodiment is only an example. In the embodiments of the present application, the sound wave signal may also include less, more or different content from the above embodiments, and the present application does not limit this.

[0278] according to Figure 6BIt can be seen that the coding sequence of the sound wave signal includes not only the coding sequence corresponding to the target information, but also the pilot sequence, synchronization sequence, check error correction code, etc. Among them, the pilot sequence, synchronization sequence, check error correction code can correspond to the pilot signal, synchronization signal and check error correction code in the sound wave signal, etc. The pilot sequence can be a preset sequence, and the synchronization sequence, check error correction code and header information sequence can be determined after the coding sequence of the target information is obtained.

[0279] 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.

[0280] Exemplarily, Table 4 shows the coding sequences corresponding to different preset information.

[0281] Table 4

[0282] Preset Information Coding sequence Insufficient oxygen Long long long long Ambient temperature is too low Short long short short Emergency call for help Short long short long

[0283] 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 "inadequate oxygen remaining", the coding sequence corresponding to the preset information can be "long long long long"; when the preset information is "ambient temperature is too low", the corresponding coding sequence can be "short long short short short"; when the preset information is "emergency call for rescue", the corresponding coding sequence can be "short long short long long". Among them, "long" and "short" can also be replaced by "1" and "0" respectively.

[0284] 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 from the embodiments shown in Table 4 may be included, and the correspondence between the preset information and the coding sequence may also be different from the above embodiments. The present application does not limit this.

[0285] Exemplarily, Table 5 shows the encoding sequences corresponding to different identity tags.

[0286] Table 5

[0287] Identity Coding sequence Coach 1 Long Length Short Student 1 Short Short Buddy 2 Length

[0288] As shown in Table 5, the electronic device 100 may 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 may be "long long short"; when the identity is "student 1", the corresponding coding sequence may be "short short short"; when the identity is "buddy 2", the corresponding coding sequence may be "long short long". "Long" and "short" may also be replaced by "1" and "0" respectively.

[0289] 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 from the embodiments shown in Table 5 may be included, and the correspondence between the identity identifiers and coding sequences may also be different from the above embodiments. The present application does not limit this.

[0290] 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.

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

[0292] 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 as follows: Figure 6C shown.

[0293] like Figure 6C As shown, 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。

[0294] Understandably, Figure 6C The embodiment shown is only an example. 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, which is not limited in the present application. It should be noted that the "long" and "short" in the coding sequence may refer to the duration of a single rectangular pulse wave in the sound wave signal, or may refer to the length of the wavelength of the sound wave signal, which is not limited in the present application.

[0295] By using the underwater communication method provided in the embodiment of the present application, the electronic device 100 can send information through acoustic signals to achieve underwater long-distance communication. Moreover, the electronic device 100 can not only send information selected by the user, but also promptly remind the user to pay attention to safety when it detects that the user may be in danger, and can also send a distress message to a companion in time when the user is in danger, which can increase the safety of diving.

[0296] In some embodiments, when it is detected that the value of any of the above physiological parameters, environmental equipment parameters, diving status parameters, etc. is not within the preset range, for example, when it is detected that the user's oxygen balance is insufficient, or when it is detected that the user's heart rate is too fast, the electronic device 100 can output a danger prompt while sending the specified information to remind the user of the current situation, and optionally, it can also output self-rescue measures corresponding to the current scene. In this way, the user can take some self-rescue measures and wait for the support of his companions.

[0297] In other embodiments, the electronic device 100 may receive and set the current diving type in response to the user's operation of setting the diving type. The diving types may include: recreational scuba, technical diving, free diving, snorkeling, etc. The electronic device 100 may store one or more preset information corresponding to different diving types. In the case where the user manually sends information, the electronic device 100 may display one or more preset information corresponding to the diving type for the user to select according to the current diving type, and determine the preset information according to the user's operation. The electronic device 100 may also store the corresponding relationship between the diving type, the information sending conditions and the preset information. When it is detected that the diving monitoring result meets the information sending conditions, the electronic device 100 may determine the corresponding preset information based on the current diving type and the information sending conditions met by the diving monitoring result. After determining the preset information, the steps subsequently performed by the electronic device 100 may refer to the above. Fig. 6A The relevant descriptions in step S605 and step S608 in the illustrated embodiment are not repeated here.

[0298] 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.

[0299] In some embodiments, after entering the water, the electronic device 100 can obtain and output the position information of the electronic device 100 in real time. In some embodiments, the position information of the electronic device 100 can include the depth of the electronic device 100 underwater and the longitude and latitude of the electronic device 100. In other embodiments, the electronic device 100 can construct a three-dimensional space coordinate system, and the origin of the three-dimensional space coordinate system can be the water entry position of the electronic device 100, or other preset positions. In this case, the position information of the electronic device 100 can also be the coordinates of the electronic device 100 in the three-dimensional space coordinate system. The electronic device 100 can determine the position information of the electronic device 100 through sensors such as gyroscopes, accelerometers, and depth sensors. For example, the electronic device 100 can determine the depth of the electronic device 100 underwater according to the value measured by the depth sensor. For another example, after entering the water, the electronic device 100 can obtain the motion trajectory of the electronic device 100 in the water according to sensors such as gyroscopes and accelerometers, determine the relative position relationship between the electronic device 100 and the water entry position, and so on.

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

[0301] It is understandable that, when the electronic device 100 obtains the location information of the electronic device 100, optionally, the above Fig. 6A The target information in the illustrated embodiment may also include the location information of the electronic device 100. In this way, the electronic device of the receiving party can obtain the location of the electronic device 100 in real time, which facilitates group contact and collaboration and reduces the danger of diving.

[0302] In some embodiments, the above Figure 1C The acoustic signal receiving module 101 shown can also be replaced by 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 send acoustic signals. The electronic device 100 can increase the transmission power of the acoustic signal by increasing the voltage of the transmission signal, thereby increasing the communication distance of underwater communication. The electronic device 100 can also achieve underwater communication over longer distances by configuring a miniature sonar module with better performance.

[0303] 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.

[0304] 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.

[0305] The following describes 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.

[0306] like Figure 7 As shown, the specific process of the electronic device 200 receiving the target information sent by the electronic device 100 underwater may include the following steps:

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

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

[0309] For the relevant contents of step S701 to step S702, please refer to the above Fig. 6A The relevant descriptions of step S601 to step S602 are not repeated here.

[0310] S703, the electronic device 200 collects sound wave signals through a sound pickup sensor and / or a microphone.

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

[0312] In some embodiments, the electronic device 200 may also start collecting acoustic wave signals after detecting that the electronic device 200 is immersed in water. Fig. 6A The relevant description in step S602 is shown.

[0313] S704, the electronic device 200 identifies the target information carried by the sound wave signal.

[0314] 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.

[0315] 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 at Figure 6BIn the header information or message body in the message structure shown. After receiving the sound wave signal, the electronic device 200 can 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 (such as identity identifier and information content, etc.) carried by the sound wave signal. 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 can stop processing the sound wave signal without reminding the user to receive the information.

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

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

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

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

[0320] 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.

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

[0322] 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 sound wave signals, and the communication distance is greater than wireless communication methods such as Bluetooth.

[0323] In some embodiments, the electronic device 100 may store historical messages, which include previously received information and / or previously sent information. The electronic device 100 may receive and respond to a user's operation of viewing historical messages (e.g., Figure 5A The electronic device 100 may also receive and delete one or more historical messages in response to a user's operation of deleting historical messages.

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

[0325] 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.

[0326] The following describes a process of an electronic device 100 joining a group provided by an embodiment of the present application.

[0327] like Figure 8 As shown, the specific process of the electronic device 100 joining the group may include the following steps:

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

[0329] The operation of the user joining group 1 may be an operation of inputting the group identifier (ID) of group 1. For example, Figure 4B In the illustrated embodiment, the user inputs the group ID of group 1. The group ID may be a numerical sequence, such as "5678" or the like.

[0330] 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 .

[0331] In some embodiments, the electronic device 100 may broadcast a group entry message to the surroundings 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. Among them:

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

[0333] For details about the identity of the electronic device 100, please refer to the above Fig. 6A The relevant description in the illustrated embodiment will not be repeated here.

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

[0335] 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.

[0336] In some embodiments, when receiving the group joining message, the electronic device 200 has already joined a group, and the group ID of the group is stored 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.

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

[0338] 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.

[0339] In other embodiments, when receiving the group joining message, the electronic device 200 has not joined the group, and the electronic device 200 has received the user's operation of joining the group. At this time, the electronic device 200 can determine the group ID of the group to be joined based on the user's operation of joining the group. The electronic device 200 can compare the group ID of the group 1 in the group joining message with the group ID of the group to be joined.

[0340] 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.

[0341] 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.

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

[0343] In some embodiments, when receiving the group joining message, the electronic device 200 has already joined the group 1, and the electronic device 200 stores the group identifier of the group 1 and the member list of the group 1. The member list of the group 1 stored by the electronic device 200 may include the identity identifiers of one or more electronic devices, the one or more electronic devices include the electronic device 200, and the one or more electronic devices all belong to the group 1.

[0344] Illustratively, 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.

[0345] Table 6

[0346] Group ID Identity 5678 Student 1 5678 Coach 2 5678 Dive Guide 1

[0347] As shown in Table 6, before receiving the group joining message, the member list of group 1 stored in the electronic device 200 may include the identity of one or more electronic devices: student 1, coach 2, and dive guide 1. Optionally, the member list may also include the group identifier of group 1, such as ID5678, which is used for the group corresponding to the identifier.

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

[0349] Illustratively, 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.

[0350] Table 7

[0351] Group ID Identity 5678 Student 1 5678 Coach 2 5678 Dive Guide 1 5678 Coach 1

[0352] As shown in Table 7, after receiving the group joining message, the member list of group 1 stored in the electronic device 200 may include the identity of one or more electronic devices: student 1, coach 2, dive guide 1 and coach 1. Coach 1 is the identity of the electronic device 100. Optionally, the member list may also include the group identity of group 1, such as ID5678, which is used for the group corresponding to the identity. Compared with Table 6, Table 7 adds the identity of the electronic device 100.

[0353] It can be understood that the embodiments shown in Table 6 and Table 7 are just 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.

[0354] S805 , the electronic device 200 broadcasts a message that it is already in the group, where the message includes the identity of the electronic device 200 and the group identity of group 1 .

[0355] When it is determined that the electronic device 200 also belongs to group 1, the electronic device 200 can broadcast a message of being in the group to the surrounding. The message of being in the group includes the identity of the electronic device 200 and the group identity of group 1. The identity of the electronic device 200 can refer to the relevant description of the identity of the electronic device 100. And the identity of the electronic device 200 is different from the identity of the electronic device 100.

[0356] 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.

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

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

[0359] Based on one or more received group messages, the electronic device 100 can obtain the identities of all electronic devices in group 1 and obtain a member list of group 1. The member list of group 1 can include the identities 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.

[0360] 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.

[0361] 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, underwater communication with one or more electronic devices in the same group can be performed.

[0362] It is understandable that the specific process of the electronic device 100 sending information underwater through the acoustic wave signal can refer to the above Fig. 6A In the embodiment shown, the specific process of the electronic device 100 receiving information can refer to the above Figure 7 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 may be provided with the same pilot signal. In this way, multiple electronic devices belonging to the same group can communicate with each other. In some application scenarios, a diving coach may also use an electronic device to send group messages to all students in the group, so as to realize the communication of instructions between the coach and the students, and facilitate diving teaching and management.

[0363] In some embodiments, in the above Figure 8 In the group formation stage shown, the electronic device 100 can 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) can also use the above wireless communication methods to send group already messages 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 can also send group joining messages to other electronic devices through sound wave signals to form a group with other electronic devices, which is not limited in this application.

[0364] Another method flow for an electronic device 100 to join a group provided in an embodiment of the present application is described below.

[0365] like Fig. 9 As shown, the specific process of electronic device 100 joining group 1 may include the following steps:

[0366] 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 .

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

[0368] 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, and 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.

[0369] 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 remaining 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.

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

[0371] 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 .

[0372] 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.

[0373] The specific contents of steps S902 to S904 can refer to the above Figure 8 The relevant contents of step S801 to step S803 are shown.

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

[0375] 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.

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

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

[0378] S906 , the electronic device 200 broadcasts a message that it is already in the group, where the message includes a member list of group 1 and a group ID of group 1 .

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

[0380] In other embodiments, the electronic device 200 may also check whether the member list has changed at a fixed time interval, and if the member list has changed, broadcast the member list and group ID; if the member list has not changed, do not broadcast the member list and group ID. In this way, multiple broadcasts caused by multiple changes in the member list in a short period of time can be avoided.

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

[0382] In this way, only the central device in the group needs to send the group member list to the electronic device newly added to 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.

[0383] It is understandable that the above Figure 8 and Fig. 9 The two methods of the electronic device 100 joining a group are merely introduced as examples. In the embodiments of the present application, the electronic device 100 may also join a group in a method different from the above-mentioned embodiments, and the present application does not limit this.

[0384] 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 in an embodiment of the present application.

[0385] like Fig.10 As shown, 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:

[0386] S1001, the electronic device 100 detects the user's operation of turning on the distance monitoring function and determines a sending schedule.

[0387] In some embodiments, the user's operation of turning on the distance monitoring function may be a click operation on a designated distance monitoring switch, or the user may set an operation of periodically sending information, such as the above Fig. 5F Operation of the time setting option 552 in the illustrated embodiment. In some embodiments, the electronic device 100 may also enable the distance monitoring function by default while enabling the underwater communication function, and monitor the distance change with the designated electronic device (or with each electronic device in the group) in real time after entering the water.

[0388] In some embodiments, the sending schedule may include multiple sending times, each sending time is used to indicate the time when the electronic device 100 sends information, and the time interval between any two adjacent sending times is the period of information sending by the electronic device 100. In other embodiments, the sending schedule may also be a start time and an information sending period, and the start time is the time when the electronic device 100 sends the first piece of information.

[0389] Illustratively, Table 8 shows a sending schedule provided in an embodiment of the present application.

[0390] Table 8

[0391] Sending order Sending time 1 10:05 2 10:10 3 10:15 4 10:20

[0392] 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.

[0393] Also illustratively, Table 9 shows another sending schedule provided in an embodiment of the present application.

[0394] Table 9

[0395] Information sending cycle 5 minutes Starting time 10:05

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

[0397] It can be understood that Table 8 and Table 9 are just examples of two sending schedules. In the embodiments 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.

[0398] In some embodiments, the operation of the user to enable the distance monitoring function may include the operation of setting the information sending cycle and / or the operation of setting the opposite device to receive the information. It should be noted that before setting the opposite device (e.g., electronic device 200), electronic device 100 needs to obtain the identity of the opposite device. For example, when electronic device 100 and electronic device 200 belong to the same group, electronic device 100 can set electronic device 200 as the opposite device to receive the information.

[0399] When the user sets an information transmission cycle and does not set a peer device for receiving information, the electronic device 100 can determine the 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 obtain the start time of sending information, and then obtain the transmission schedule based on the information transmission cycle and the start time.

[0400] 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.

[0401] When the user sets an information sending cycle and sets 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.

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

[0403] 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 .

[0404] The electronic device 100 may send a periodic communication notification in response to the user's operation of turning on the distance monitoring function. It should be noted that if the user turns on 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 established communication connections; if the user turns on the distance monitoring function after the electronic device 100 enters the water, the electronic device 100 may send the periodic communication notification via sound wave signals or other methods.

[0405] 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 .

[0406] In other embodiments, the periodic communication notification may include the identity and the sending schedule of the electronic device 100. 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 by the sending schedule.

[0407] 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.

[0408] S1003, the electronic device 200 determines a transmission schedule based on the periodic communication notification.

[0409] 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.

[0410] 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 algorithms).

[0411] 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.

[0412] S1004, the electronic device 100 sends a sound wave signal carrying information according to a sending schedule.

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

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

[0415] S1005, the electronic device 200 receives the information sent by the electronic device 100 and determines the receiving time.

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

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

[0418] 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.

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

[0420] The electronic device 200 can determine the transmission time 1 consumed by the sound wave signal sent by the electronic device 100 this time from the electronic device 100 to the electronic device 200 according to the transmission schedule and the current reception time. The electronic device 200 can also determine the transmission time 2 consumed by the sound wave signal sent by the electronic device 100 last time from the electronic device 100 to the electronic device 200 according to the transmission schedule and the previous reception time. By comparing the transmission time 1 and the transmission time 2, the change in the distance between the electronic device 200 and the electronic device 100 can be determined.

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

[0422] 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 increased.

[0423] 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.

[0424] 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.

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

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

[0427] 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.

[0428] S1009, the electronic device 100 receives the receipt information sent by the electronic device 200 and determines the time when the receipt is received.

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

[0430] S1010, the electronic device 100 determines the 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.

[0431] 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.

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

[0433] 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 is convenient for group management and reduces the risk of diving.

[0434] 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 may also determine the current distance with another electronic device (such as the electronic device 200) based on the sending time and receiving time of the receipt information, and compare the distance measured each time to determine the distance change with the electronic device 200. Similarly, the electronic device 200 as the recipient may also determine the distance change between the electronic device 100 and the electronic device 200 in a similar manner, which is not limited in this application.

[0435] It should be noted that, in some embodiments, the above Figure 8 and Fig.10In the illustrated embodiment, the electronic device 100 may also exchange roles with the electronic device 200, that is, the electronic device 100 may execute the steps executed by the electronic device 200 in the above embodiment. At this time, the electronic device 200 may also execute the steps executed by the electronic device 100 in the above embodiment, and the present application does not make any limitation thereto.

[0436] In other embodiments, the above Fig.10 The steps S1002 and S1003 shown may also be replaced by the following steps:

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

[0438] After the electronic device 200 receives information from the electronic device 100 periodically according to the user's setting, it can determine the sending schedule according to 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 can also determine the sending schedule in combination with the information receiving cycle set by the user.

[0439] The specific method for the electronic device 200 to determine the sending schedule can refer to the above Fig.10 The relevant description in step S1001 is shown.

[0440] 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.

[0441] In other embodiments, priority levels of different identity identifiers may be stored in both the electronic device 100 and the electronic device 200. Exemplarily, the priority levels of coach 1, student 2, student 1, and buddy 1 are arranged as follows: coach 1> buddy 1> student 1> student 2. When both the electronic device 100 and the electronic device 200 detect the operation set by the user to periodically send information to each other, the electronic device 100 (or the electronic device 200) may determine the electronic device with a higher priority as the sender of the information and the other electronic device as the receiver of the information based on the identity identifier of the electronic device 100 and the identity identifier of the electronic device 200. For example, after determining that the electronic device 100 is the sender of the information and the electronic device 200 is the receiver of the information, the electronic device 100 and the electronic device 200 may perform the above-mentioned Fig.10 The relevant steps in the illustrated embodiment monitor the distance change between the electronic device 100 and the electronic device 200 in real time.

[0442] 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.

[0443] 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.), then the electronic device 200 can 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 of the electronic device 200 for a period of time equal to the loss of connection period (e.g., 5 minutes, 15 minutes, etc.), then the electronic device 100 can also output a rescue prompt to remind the user that the user of the electronic device 200 may encounter an emergency.

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

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

[0446] like Fig.11 As shown, 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.

[0447] 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 (ie, diving monitoring results) to the decision module 1102 .

[0448] The judgment module 1102 may store one or more information sending conditions (including information sending condition 1), and may also judge whether the diving monitoring result meets the information sending condition. The judgment module 1102 may also store preset information, and the correspondence between the information sending condition and the preset information. When it is determined that the diving monitoring result meets the information sending condition 1, the judgment module 1102 may send an information sending instruction to the instruction processing module 1105, instructing to send the preset information 1 corresponding to the information sending condition 1.

[0449] 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 .

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

[0451] The instruction processing module 1105 can determine the target information in response to the information sending instruction, and the target information includes the preset information 1 and the identity of the electronic device 100. Optionally, the target information may also include other contents such as the group identification. The instruction processing module 1105 may send the target information to the decoding / encoding module 1107. The instruction processing module 1105 may 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 may 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, the instruction processing module 1105 may also send the received information to the message storage module 1111 after receiving the received information.

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

[0453] 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 .

[0454] 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.

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

[0456] 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.

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

[0458] The user interaction module 1112 can be used to receive user operations on the electronic device 100, such as touch screen operations on the display screen, rotation operations on buttons, pressing operations on buttons, etc. The user interaction module 1112 can receive user operations for setting the identity of the electronic device 100, and can also receive user operations for joining a group, enabling underwater communication mode, and sending information, etc. Among them, when receiving the user's operation of sending information, the user interaction module 1112 can determine the preset information (such as preset information 1) that the user wants to send according to the user's operation, and send the preset information 1 to the message processing module 1113.

[0459] 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 .

[0460] Understandably, Fig.11 The illustrated embodiment is merely an example. In the embodiments of the present application, the electronic device 100 may also include more, fewer, or different functional modules than those in the above embodiments. The above multiple modules may also be combined into one module. Any of the above modules may also be divided into multiple modules. The present application does not make any limitation thereto.

[0461] 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 above Fig.11 The relevant description in the illustrated embodiment will not be repeated here.

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

[0463] like Fig.12 As shown, 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 also include one or more other electronic devices.

[0464] 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., electronic device 100 and electronic device 200) through acoustic wave 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 according to 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 wave signal.

[0465] 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 based on sensors such as a gyroscope and an accelerometer, etc.

[0466] 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 .

[0467] In the underwater communication system 20, other specific contents of the electronic device 100 and the electronic device 200 can refer to the above Figure 1A The relevant description of the underwater communication system 10 is not repeated here.

[0468] It is understandable that the above Fig.12 The illustrated embodiment 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.

[0469] Fig.13 A flow chart of an underwater communication method provided in an embodiment of the present application is shown.

[0470] like Fig.13 As shown, the process of an underwater communication method provided in an embodiment of the present application may include the following steps:

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

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

[0473] 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. Exemplarily, the identity list may be the above Figure 2E Among the one or more identity identifiers displayed in the identity selection interface 240, the first identity identifier may be “coach 1”.

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

[0475] For other related contents of step S1301, please refer to the above Fig. 6A The relevant description in step S601 in the illustrated embodiment.

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

[0477] In some embodiments, the one or more messages may be the above-mentioned Fig. 6A One or more preset information in the illustrated embodiment.

[0478] 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.

[0479] 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.

[0480] S1303: receiving and responding to a third operation of the user selecting to send a first message, sending a first sound wave signal, where the first sound wave signal carries the first message and a first identity.

[0481] In some embodiments, the first message may be the above Fig. 6A The preset information 1 in the illustrated embodiment.

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

[0483] Exemplarily, the second button may be the above Figure 1AThe key 12 in the embodiment shown; the third key can be the above Figure 1A The button 13 in the embodiment shown.

[0484] In a possible implementation, the first electronic device may include a first button; the second operation is a pressing operation of the first button by a user; the third operation is a rotating operation of the first button by a user; and the third operation is a pressing operation of the first button by a user.

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

[0486] It is understandable that the above-mentioned various implementation methods are only examples, and 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 the present application.

[0487] For other related contents of step S1302 to step S1303, please refer to the above Fig. 6A Relevant descriptions of steps S606 to S608 in the illustrated embodiment.

[0488] Compared with the traditional wireless communication method, the underwater communication method provided by the embodiment of the present application has a longer transmission distance. In addition, the sent information carries an identity mark to inform the receiver of the identity of the sender of the information.

[0489] In some embodiments, the first electronic device may also send a sound wave signal carrying an identity identifier and corresponding information when it detects that any one or more parameters of the user's physiological parameters, environmental equipment parameters, diving status parameters, etc. meet specific conditions (for example, greater than or less than a specific threshold, not within a preset interval, within a preset interval, etc.). The corresponding information can be used to inform the recipient of the current status of the user of the first electronic device. For the specific correspondence between conditions and messages, please refer to the above Fig. 6A The relevant description in the illustrated embodiment will not be repeated here.

[0490] 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.

[0491] 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., group ID). In the above implementation, the first electronic device may be the above Figure 8 The electronic device 100 shown in the figure, the second electronic device may be the above Figure 8 An electronic device 200 is shown.

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

[0493] In one possible implementation, the first sound wave signal also carries a first group identifier, and the first group identifier 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.

[0494] 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 above-mentioned Fig. 9 The electronic device 200 shown in the figure, the second electronic device may be the above Fig. 9 An electronic device 100 is shown.

[0495] In some 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., and this application does not limit this.

[0496] In a possible implementation, the method also includes: when a sixth sound wave signal sent by a second electronic device is received, the sixth information and the second identity are displayed, and 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, 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.

[0497] 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.

[0498] In a 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 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 of the second electronic device; in response to the ninth sound wave signal, outputting distance information based on the emission moment and the second moment of the ninth sound wave signal, the distance information being used to indicate the distance between the first electronic device and the second electronic device.

[0499] In this way, the first electronic device can determine the distance between itself and the second electronic device in real time, which is convenient for determining the distance between itself and its companions, thereby improving the safety of diving.

[0500] In a 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 a sound wave signal sent by the second electronic device when the eighth sound wave signal is received, and the ninth sound wave signal carrying a 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 a sound wave signal sent by the second electronic device when the tenth sound wave signal is received, and the eleventh sound wave signal carrying the second identity identifier of the second electronic device; outputting a distance prompt based on a first time interval and a 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.

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

[0502] In a 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.

[0503] 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.

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

[0505] For the operation of enabling the distance monitoring function, the user can also refer to the above Fig.10 Relevant description of step S1001 in the illustrated embodiment.

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

[0507] 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.

[0508] In a possible implementation, the method also includes: before receiving the first operation, displaying a first prompt, the first prompt is 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 is used to prompt the user that the identity identifier of the first electronic device is the first identity identifier.

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

[0510] Exemplarily, the first prompt may be the above Figure 2D In the illustrated embodiment, the identity prompt 232a, the second prompt may be the above Figure 2F Identity prompt 232a in the illustrated embodiment.

[0511] Fig.14 A flow chart of another underwater communication method provided in an embodiment of the present application is shown.

[0512] like Fig.14As shown, the specific process of the underwater communication method may include the following steps:

[0513] 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 transmitting time of the first electronic device, and the first transmitting time is the transmitting time of the twelfth sound wave signal.

[0514] The buoy device can be the above Fig.12 In the buoy device 300 of the embodiment shown, the first electronic device may be the above Fig.12 The electronic device 100 in the illustrated embodiment.

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

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

[0517] 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 time and the first transmission time.

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

[0519] S1403, the buoy device sends a first wireless signal to a second electronic device that is not submerged in water, where the first wireless signal includes second location information.

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

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

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

[0523] 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.

[0524] In this way, the buoy device can also send the location information of the first electronic device to the first electronic device, so as to facilitate the user of the first electronic device to determine his own location.

[0525] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.

[0526] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part 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, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can 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. The available medium can 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 disk (SSD)), etc.

[0527] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

[0528] In short, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope 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, and 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, outputting a first distance prompt, wherein the first distance prompt is used to prompt a user that the distance between the first electronic device and the second electronic device is shortened; 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 communications system

    CN208063214U

  • Underwater robot control system and underwater robot control method

    JP2018203192A

  • Diver Monitoring and Communication System

    US20110102177A1

  • Underwater communication apparatus and communication method

    US6125080A

  • Underwater location and communication device

    US6272073B1

Cited By

  • Underwater communication method and system and related apparatus

    EP4738730A1

  • Underwater communication method and system and related apparatus

    WO2025067319A1