Search

CN-122027994-A - Communication method, electronic device, readable storage medium, and program product

CN122027994ACN 122027994 ACN122027994 ACN 122027994ACN-122027994-A

Abstract

The present application relates to the field of communications technologies, and in particular, to a communications method, an electronic device, a readable storage medium, and a program product. According to the method, voice data input by a user are broadcast and sent through at least two broadcast channels, and voice messages generated by the voice data in a corresponding mode can be scanned and received by a plurality of devices added into intercom, so that the multi-person intercom function in a no-network state can be realized, the group intercom requirements in some no-network communication scenes can be met, and the user experience is improved.

Inventors

  • WANG LIANG
  • HUANG WEI

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260512
Application Date
20250926

Claims (20)

  1. 1. A communication method applied to a first device, the first device being in a network connection-free state, the method comprising: Receiving a first intercom instruction; and responding to the first intercom instruction, broadcasting and sending a voice message through at least two broadcasting channels, wherein the voice message is a broadcasting message generated based on voice data acquired by the first equipment.
  2. 2. The method of claim 1, wherein broadcasting the voice message over at least two broadcast channels comprises: after a first time period of the first intercom instruction is received, broadcasting and sending N first voice messages through the at least two broadcasting channels, wherein N is a positive integer, and the first voice messages are broadcast messages generated based on first voice data acquired by the first equipment in the first time period.
  3. 3. The method of claim 2, wherein the broadcasting the voice message over the at least two broadcast channels further comprises: and broadcasting and transmitting N second voice messages through the at least two broadcasting channels, wherein the second voice messages are broadcast messages generated based on second voice data acquired by the first equipment in a second time period, and the starting time of the second time period is the ending time of the first time period.
  4. 4. The method of claim 3, wherein the second time period comprises N broadcast periods, and wherein the broadcasting the N first voice messages over the at least two broadcast channels comprises: And broadcasting and transmitting the first voice message through the at least two broadcasting channels in the N broadcasting periods respectively.
  5. 5. The method of claim 4, wherein the first time period and the second time period are time periods of equal duration.
  6. 6. The method of any one of claims 2 to 5, wherein the first intercom instruction comprises any one of: a talkback instruction generated by long-press operation on a first talkback key in a first talkback interface displayed by the first equipment; A talkback instruction which is generated correspondingly to long-press operation and acts on a first key of the first equipment; And an intercom instruction from a cooperative device having a cooperative connection established with the first device.
  7. 7. The method of claim 6, wherein the method further comprises: And in the first time period, broadcasting and sending a first message through the at least two broadcast channels, wherein the first message is used for preempting the at least two broadcast channels.
  8. 8. The method of claim 7, wherein broadcasting the first message over the at least two broadcast channels comprises: responding to the first intercom instruction, and acquiring scanning results of the at least two broadcast channels in a fourth time period before the current time, wherein the ending time of the fourth time period is earlier than the starting time of the first time period; determining that the at least two broadcast channels are unoccupied based on the scan result; And broadcasting and sending the first message through the at least two broadcast channels.
  9. 9. The method of claim 6, wherein the method further comprises: Determining that the at least two broadcast channels are occupied based on a scan result of the at least two broadcast channels; and outputting prompt information indicating the preemption failure, wherein the prompt information comprises one or more of sound information, vibration information and text, pictures or dynamic effect information displayed in the first intercom interface.
  10. 10. The method according to any one of claims 6 to 9, wherein the first intercom interface further comprises a user identifier of the first device and user identifiers of at least two second devices, wherein at least one of the user identifiers is displayed with a netless label, and the netless label is used for indicating that a device used by a corresponding user is in the no-network connection state.
  11. 11. The method of claim 6, wherein the first intercom interface triggers the display by any of: Detecting click operation of a first control acting on a first interface, and displaying the first intercom interface, wherein the first control is used for starting intercom function in the network connection-free state, or And detecting clicking operation of a second control acting on a second interface, and displaying the first intercom interface, wherein the second control is used for joining a first intercom group, and equipment used by members of the first intercom group at least comprises equipment in the network connection-free state.
  12. 12. The method of claim 11, wherein the first interface comprises a chat interface of a first group that a user of the first device joins using a first application, the first control further for triggering creation of the first talk group, the method further comprising: Detecting clicking operation of a first control acting on a first interface, and broadcasting and sending a first heartbeat message through the at least two broadcasting channels, wherein the first heartbeat message comprises an intercom invitation, and the intercom invitation is used for inviting at least two second devices to join the first intercom group; and broadcasting and transmitting a second heartbeat message through the at least two broadcasting channels based on the joining message from the at least two second devices, wherein the joining message at least comprises identification information of an account number logged in by the second devices and identification information of the second devices, the second heartbeat message is at least used for broadcasting member list information of the first talkback group, and the member list information comprises device information of the at least two second devices.
  13. 13. The method of claim 12, wherein the first heartbeat message includes identification information of the first group, identification information of the first talkback group, first member list information of the first talkback group, identification information of the first device, and first location information of the first device at a first time corresponding to a time of generation of the first heartbeat message; The second heartbeat message includes identification information of the first group, identification information of the first talkback group, second member list information of the first talkback group, identification information of the first device, and second position information of the first device at a second time, wherein the second member list information includes device information of the at least two second devices, and the second time corresponds to a time when the second heartbeat message is generated.
  14. 14. The method according to any of claims 6 to 13, wherein the receiving device of the voice message comprises at least two second devices, the method further comprising: Receiving a third heartbeat message from a third device, wherein the third heartbeat message comprises identification information of the third device and current third position information of the third device, and the at least two second devices comprise the third device; And updating the position corresponding to the user identifier of the third device in the first intercom interface to be the position indicated by the third position information based on the identification information of the third device and the third position information.
  15. 15. The method of claim 14, wherein the method further comprises: And determining that a scanning receiving result of the third heartbeat message meets a state switching condition, and updating a first state mark corresponding to the user identifier of the third device into a second state mark in the first intercom interface, wherein the state indicated by the first state mark is different from the state indicated by the second state mark.
  16. 16. The method according to any one of claims 1 to 15, wherein after said sending of the first message via broadcast of said at least two broadcast channels, the method further comprises: Receiving a second message from a fourth device, where the second message is used to preempt the at least two broadcast channels; And based on the second message, sending a third message through the at least two broadcast channels, wherein the third message is used for refusing the fourth equipment to preempt the at least two broadcast channels.
  17. 17. The method according to any one of claims 1 to 16, further comprising: receiving an exit message from a fifth device; and based on the exit message, broadcasting and sending a fourth heartbeat message through the at least two broadcasting channels, wherein the fourth heartbeat message is used for broadcasting third member list information, and the third member list information does not comprise equipment information of the fifth equipment.
  18. 18. A communication method applied to a second device, the second device being in a network connection-less state, the method comprising: Receiving a voice message from a first device through any one of at least two broadcast channels, wherein the voice message is a broadcast message generated by voice data collected by the first device; and playing the voice corresponding to the voice message.
  19. 19. The method according to claim 18, characterized in that the method comprises: and in a first time period, receiving a first message from the first equipment through any one of the at least two broadcast channels, wherein the first message is used for preempting the at least two broadcast channels.
  20. 20. The method of claim 19, wherein the method further comprises: Receiving a second intercom instruction; And outputting prompt information of preemption failure based on the received first message or the voice message.

Description

Communication method, electronic device, readable storage medium, and program product Technical Field The present application relates to the field of communications technologies, and in particular, to a communications method, an electronic device, a readable storage medium, and a program product. Background The netless communication refers to a communication mode for realizing data transmission through direct communication between devices without external network support. The communication mode does not depend on communication infrastructures such as a cellular network, wi-Fi or a satellite, and can meet communication requirements in signal coverage blind areas or emergency situations. The wireless communication technologies currently supporting wireless communication may include Bluetooth (BT), star flash (sparklink), or other proprietary communication protocols. Considering the power consumption problem, some current electronic devices supporting internet-free communication can adopt communication technologies such as bluetooth low energy (bluetooth low energy, BLE) and the like to realize one-to-one chat with nearby users, namely single chat, such as sending text messages, making voice calls or making talkbacks and the like. However, the current internet-free communication scheme needs to establish a point-to-point (P2P) communication connection between devices, so that only one-to-one internet-free message transmission or voice intercom is supported, and internet-free communication between more than three devices cannot be supported. Therefore, the current internet-free communication scheme cannot meet the communication requirements of users in the internet-free communication scene of multi-user communication, and the user experience is poor. Disclosure of Invention The application provides a communication method, electronic equipment, a readable storage medium and a program product, which are used for improving communication experience of a user in a netless state. In a first aspect, the present application provides a communication method, applied to a first device, where the first device is in a state without network connection, the method includes receiving a first intercom instruction, and broadcasting a voice message through at least two broadcast channels in response to the first intercom instruction, where the voice message is a broadcast message generated based on voice data collected by the first device. For example, the first device may be a terminal electronic device such as a mobile phone, a tablet computer (Pad), a notebook computer, a smart television, a large-screen device, a wearable device, and the like. In some embodiments, the first device may be an electronic device that initiates intercom and creates an intercom group, and correspondingly, the first device may be a group owner device in the intercom group. In other embodiments, the first device may also be a member device joining a created talk group, which is not limited herein. The first device is in a network connection-free state, which may refer to a state in which the first device cannot communicate through a mobile wireless communication signal such as a cellular network, or simply referred to as a network-free state. The communication method provided by the application supports the mode of transmitting voice data in a broadcast mode through a broadcast channel, other equipment can acquire the voice data and play voice through scanning each broadcast channel, and therefore, the group intercom function in a networking-free communication scene can be realized. It will be appreciated that communication technologies supporting wireless communication, such as star flashover, star flashover low power consumption, bluetooth and bluetooth low energy, may provide a plurality of broadcast channels for transmitting voice messages, i.e. the at least two broadcast channels described above. The at least two broadcast channels may include a base broadcast channel or an extended broadcast channel, without limitation. Therefore, the first equipment can broadcast and send the voice message in at least two broadcast channels based on the communication method provided by the application, which is beneficial to improving the reliability of the voice message which is scanned and received by a plurality of surrounding equipment. In one possible implementation of the first aspect, broadcasting the voice message through at least two broadcast channels includes broadcasting N first voice messages through the at least two broadcast channels after receiving a first time period of the first intercom instruction, where N is a positive integer, and the first voice messages are broadcast messages generated based on first voice data collected by the first device in the first time period. In order to further improve the transmission reliability of the voice data, the communication method provided by the application can control to delay a period of time (i.e.