CN109151619A - Data communications method and device - Google Patents

Data communications method and device Download PDF

Info

Publication number
CN109151619A
CN109151619A CN201810911857.7A CN201810911857A CN109151619A CN 109151619 A CN109151619 A CN 109151619A CN 201810911857 A CN201810911857 A CN 201810911857A CN 109151619 A CN109151619 A CN 109151619A
Authority
CN
China
Prior art keywords
talkback
module
receiving
mode
voice data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810911857.7A
Other languages
Chinese (zh)
Inventor
王辰汐
宋世超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810911857.7A priority Critical patent/CN109151619A/en
Publication of CN109151619A publication Critical patent/CN109151619A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q5/00Selecting arrangements wherein two or more subscriber stations are connected by the same line to the exchange
    • H04Q5/24Selecting arrangements wherein two or more subscriber stations are connected by the same line to the exchange for two-party-line systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/10Push-to-Talk [PTT] or Push-On-Call services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure is directed to data communications method and devices.This method comprises:, when receiving for the pressing operation for pinning the PTT key that can converse, acquiring the first voice data in the case where intercom function is opened;First voice data is sent by intercom mould group;Second speech data is received by intercom mould group;Play second speech data.The technical solution can be convenient user and can be not in data network in terminal, and the intercom mould group still being able in using terminal is linked up with other people, avoid user from losing, and succour in time when user occurs dangerous.

Description

Data communication method and device
Technical Field
The present disclosure relates to the field of wireless communication technologies, and in particular, to a data communication method and apparatus.
Background
With the popularization of outdoor sports, outdoor activities such as self-driving picnic, hiking, riding and the like have become popular to ordinary users, and in the outdoor activities, the users need to frequently communicate with peers to ensure the safety of all members or the correctness of routes. Since the mobile phone is the most popular communication device at present, almost all users carry the mobile phone with them to ensure real-time communication, but the communication of the mobile phone depends on the base station of the mobile cellular network, and in some remote places, such as the field or mountain area, the construction of the base station of the mobile cellular network is still insufficient, and there is a problem of signal 'blind area', which results in the mobile phone being unable to communicate normally.
Disclosure of Invention
The embodiment of the disclosure provides a data communication method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a data communication method is provided, which is applied to a terminal including an intercom module, and includes:
under the condition that the interphone function is started, when the pressing operation aiming at a push-to-talk (PTT) key which can be pressed is received, first voice data are collected;
sending the first voice data through the interphone module;
receiving second voice data through the interphone module;
and playing the second voice data.
In one embodiment, the method further comprises:
receiving an input talkback mode instruction, wherein the talkback mode instruction is used for indicating a talkback mode, and the talkback mode comprises a relay mode and a common mode;
the sending the first voice data through the interphone module comprises:
according to the talkback parameters corresponding to the talkback mode, the first voice data are sent through the interphone module;
receiving second voice data through the interphone module comprises
And receiving the second voice data through the interphone module according to the talkback parameters corresponding to the talkback mode.
In one embodiment, the method further comprises:
responding to the talkback mode instruction, and acquiring talkback parameters corresponding to the talkback mode;
or,
and when receiving an talkback parameter adjusting instruction, acquiring talkback parameters corresponding to the talkback mode.
In one embodiment, the obtaining of the talkback parameters corresponding to the talkback mode includes:
displaying a parameter setting interface;
and receiving the talkback parameters input into the parameter setting interface.
In one embodiment, the method further comprises:
receiving an opening operation aiming at a switch key;
and responding to the starting operation, and starting the interphone function.
According to a second aspect of the embodiments of the present disclosure, a data communication apparatus is provided, which is applied to a terminal including an intercom module, and includes:
the system comprises an acquisition module, a control module and a display module, wherein the acquisition module is used for acquiring first voice data when receiving a pressing operation aiming at a push-to-talk (PTT) key which can be pressed and held under the condition that the function of an interphone is started;
the sending module is used for sending the first voice data through the interphone module;
the first receiving module is used for receiving second voice data through the interphone module;
and the playing module is used for playing the second voice data.
In one embodiment, the apparatus further comprises:
the second receiving module is used for receiving an input talkback mode instruction, wherein the talkback mode instruction is used for indicating a talkback mode, and the talkback mode comprises a relay mode and a common mode;
the sending module comprises:
the sending submodule is used for sending the first voice data through the interphone module according to the talkback parameters corresponding to the talkback mode;
the first receiving module includes:
and the first receiving submodule is used for receiving the second voice data through the interphone module according to the talkback parameters corresponding to the talkback mode.
In one embodiment, the apparatus further comprises:
the obtaining module is used for responding to the talkback mode instruction and obtaining talkback parameters corresponding to the talkback mode; or when receiving an talkback parameter adjustment instruction, acquiring talkback parameters corresponding to the talkback mode.
In one embodiment, the obtaining module comprises:
the display submodule is used for displaying a parameter setting interface;
and the second receiving submodule is used for receiving the talkback parameters input to the parameter setting interface.
In one embodiment, the apparatus further comprises:
the third receiving module is used for receiving the starting operation aiming at the switch key;
and the starting module is used for responding to the starting operation and starting the function of the interphone.
According to a third aspect of the embodiments of the present disclosure, there is provided a data communication apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
under the condition that the interphone function is started, when the pressing operation aiming at a push-to-talk (PTT) key which can be pressed is received, first voice data are collected;
sending the first voice data through the interphone module;
receiving second voice data through the interphone module;
and playing the second voice data.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps in the above-mentioned method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the embodiment can collect the first voice data when receiving the pressing operation of the push-to-talk (PTT) key which can be pressed under the condition that the function of the interphone is started; sending the first voice data through the interphone module; receiving second voice data through the interphone module; playing the second voice data; the convenience of the user can still use the interphone module in the terminal to communicate with other people when the terminal is not in the data network, so that the user is prevented from losing, and the user can be rescued in time when danger occurs.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method of data communication according to an example embodiment.
Fig. 2 is a flow chart illustrating a method for acquiring a usage channel according to an example embodiment.
Fig. 3 is a flow chart illustrating a method of data communication according to an example embodiment.
Fig. 4 is a block diagram illustrating a data communication device according to an example embodiment.
Fig. 5 is a block diagram illustrating a data communication device according to an example embodiment.
Fig. 6 is a block diagram illustrating a data communication device according to an example embodiment.
Fig. 7 is a block diagram illustrating a data communication device according to an example embodiment.
Fig. 8 is a block diagram illustrating a data communication device according to an example embodiment.
Fig. 9 is a block diagram illustrating a data communication device according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a data communication method according to an exemplary embodiment, where as shown in fig. 1, the data communication method is used in a terminal including an intercom module, and includes the following steps 101 and 104:
in step 101, when the intercom function is turned on, and a pressing operation for a push-to-talk (PTT) key is received, first voice data is collected.
In step 102, the first voice data is transmitted through the intercom module.
In step 103, second voice data is received through the intercom module.
In step 104, the second voice data is played.
Here, the intercom module includes various devices required for implementing an intercom function, such as an audio-electrical converter, an audio amplifier, a modulator/demodulator, a high frequency amplifier, an antenna, etc., and after the intercom module is installed in the terminal, the intercom function can be implemented through the intercom module, such as a conversation with other terminals or an intercom having an intercom function.
Here, if a user wants To use the terminal To Talk with other terminals or interphones having an intercom function when the terminal is turned on, the user can press a Push To Talk (PTT) key and input a Talk voice, and the terminal collects first voice data when receiving a pressing operation for the PTT key and transmits the first voice data through the intercom module; the interphone module can also receive second voice data and play the second voice data; therefore, the talkback communication is realized.
Here, the PTT key may be a hard key added to the terminal, or an intercom application may be set in the terminal, and after the terminal starts the intercom application and enters a user interface of the intercom application, a virtual PTT key may be displayed on the user interface.
Here, when the terminal is in the data network, the terminal may transmit data through the data network; the data network includes a telephone network, a 2G (Second Generation mobile communication system specification) network, a 3G network, a 4G network, a 5G network, a WiFi (wireless fidelity) network, and the like. The terminal is not in data network, if when the user goes outdoor camping with friend or family, the campsite has no data network, at this moment, the user can use the terminal with friend or family through intercom module transmission data communicates, prevents that personnel from losing, when the user appears danger, also can obtain the rescue fast through making this terminal communicate.
The embodiment can collect the first voice data when receiving the pressing operation of the push-to-talk (PTT) key which can be pressed under the condition that the function of the interphone is started; sending the first voice data through the interphone module; receiving second voice data through the interphone module; playing the second voice data; the convenience of the user can still use the interphone module in the terminal to communicate with other people when the terminal is not in the data network, so that the user is prevented from losing, and the user can be rescued in time when danger occurs.
In a possible implementation manner, the data communication method may further include step a1, the step 102 may be further implemented as the following step a2, and the step 103 may be further implemented as the following step A3.
In step a1, an input talkback mode command is received, the talkback mode command is used for indicating a talkback mode, and the talkback mode comprises a relay mode and a normal mode.
In step a2, the first voice data is sent through the intercom module according to the intercom parameter corresponding to the intercom mode.
In step a3, the second voice data is received by the intercom module according to the intercom parameter corresponding to the intercom mode.
Here, there are two kinds of talkback modes of the terminal, one is a normal mode, and in the normal mode, the terminal can directly carry out talkback conversation with the other terminal; the other is a relay mode, in which the terminal can perform an intercom call with the other terminal through a relay. Under normal conditions, when the distance between the terminal and the opposite terminal is short, the common mode can be used for communication; when the distance between the terminal and the opposite terminal is long, the call can be carried out by using the relay mode.
Here, an intercom application may be set in the terminal, after the terminal starts the intercom application and enters a user interface of the intercom application, a mode option of an intercom mode, namely, a relay mode option and a normal mode option, may be displayed on the user interface, and the user may click the relay mode option in the mode option, that is, input an intercom mode instruction to indicate that the intercom mode is the relay mode, or may click the normal mode option in the mode option, that is, input an intercom mode instruction to indicate that the intercom mode is the normal mode.
Here, when the talkback mode is the normal mode, the corresponding talkback parameters are the use channel and the talkback power, and in the normal mode, the terminal and the opposite terminal can directly communicate, which requires that the terminal and the opposite terminal are configured with the same use channel, and because the terminal and the opposite terminal are close in distance, the talkback power used in data transmission can be smaller, so that when the terminal uses the use channel and the talkback power to send the first voice data, the opposite terminal configured with the use channel can receive the first voice data; the terminal can also receive second voice data transmitted by the opposite terminal by using the using channel and the talkback power.
Here, when the talkback mode is the relay mode, the corresponding talkback parameters include a receiving channel, a transmitting channel, and talkback power, or may further include a subsonic type and a subsonic frequency. The subsonic type and subsonic frequencies may further filter out interfering signals. In the relay mode, the terminal and the opposite terminal need to communicate through relay, which requires that the terminal and the opposite terminal need to configure a receiving channel, a sending channel, an infrasound type and an infrasound frequency corresponding to the relay; meanwhile, the data transmitted by the terminal in the relay mode is far, and the used talkback power is high. Therefore, when the terminal transmits the first voice data by using the configured transmission channel, the talkback power, the sub-voice type and the sub-voice frequency in the relay mode, the nearby relay can receive the first voice data and can transmit the first voice data, and thus, the opposite terminal can receive the first voice data; the terminal can also receive the second voice data of the opposite terminal relayed and forwarded when the receiving channel, the sub-voice type and the sub-voice frequency are used.
Here, the talkback parameters corresponding to the talkback mode may be configured by default in the terminal, or may be configured by user input.
The embodiment can receive an input talkback mode instruction, and then send the first voice data through the interphone module according to the talkback parameters corresponding to the talkback mode; receiving the second voice data through the interphone module according to the talkback parameters corresponding to the talkback mode; there are various modes in which data transmission can be performed.
In a possible implementation, the data communication method may further include steps B1 or B2.
In step B1, in response to the talkback mode instruction, obtaining the talkback parameter corresponding to the talkback mode.
In step B2, when the talkback parameter adjustment instruction is received, the talkback parameter corresponding to the talkback mode is acquired.
Here, the terminal may obtain the talkback parameter corresponding to the talkback mode after determining that the user selects a certain talkback mode when receiving the talkback mode instruction, and then the terminal may perform data transmission in the talkback mode by using the talkback parameter.
Here, the user may input the talkback parameter adjustment instruction when the user needs to change the channel or other parameters to communicate with another counterpart terminal, and the terminal may acquire the talkback parameter corresponding to the talkback mode adjusted by the user when receiving the talkback parameter adjustment instruction.
The embodiment can respond to the talkback mode instruction to obtain the talkback parameters corresponding to the talkback mode; or when receiving an talkback parameter adjustment instruction, acquiring the talkback parameter corresponding to the talkback mode, acquiring the talkback parameter input by the user, and further performing data transmission according to the talkback parameter.
In a possible implementation manner, the step B1 or B2 of the data communication for obtaining the talkback parameters corresponding to the talkback mode can be further implemented as the following steps B11 and B12.
In step B11, a parameter setting interface is displayed.
In step B12, the intercom parameters input to the parameter setting interface are received.
Here, when the terminal acquires the talkback parameters corresponding to the talkback mode, a parameter setting interface can be displayed on the terminal, and the user can input the talkback parameters on the parameter setting interface, so that the terminal can acquire the talkback parameters.
Here, the intercom parameter is taken as an example of a usage channel, fig. 2 is a flowchart illustrating an obtaining of a usage channel according to an exemplary embodiment, as shown in a of fig. 2, a current usage channel is displayed on a user interface 20 of the intercom as a public channel 1(435.1500), when a channel agreed by a user and a counterpart user is not the public channel, a channel needs to be changed to communicate with a counterpart terminal, at this time, the user may click an adjustment frequency button 201 as shown in a of fig. 2, and input an intercom parameter adjustment instruction, when the terminal receives the intercom parameter adjustment instruction, as shown in B of fig. 2, a parameter setting interface 21 is displayed, and each usage channel option box that can be used is displayed on the parameter setting interface 21: if the appointed channel is the public channel 2, the user can click the option box of the public channel 2 and input the appointed use channel, so that the terminal acquires the use channel. Of course, if there is no usage channel appointed by the user in the usage channels displayed by the terminal, the user may click the add channel key 211, so that the terminal may display the parameter editing interface 22 as shown in fig. 2C, the user may directly input the appointed usage channel into the input box 222 in the parameter editing interface 22 by using the numeric keypad 221, after the input, click the confirmation, the terminal may jump to the D diagram in fig. 2, and the user clicks the finish key 231, and the terminal receives the input usage channel.
Here, fig. 2 indicates an exemplary interface schematic of a parameter setting interface, and there may be other various parameter setting interfaces for facilitating a user to input an intercom parameter, which are not illustrated here.
The embodiment can display a parameter setting interface, receive the talkback parameters input to the parameter setting interface, and obtain the parameters conveniently and quickly.
In a possible implementation, the above data communication method may also be implemented as the following steps C1 and C2.
In step C1, an on operation for the switch key is received.
In step C2, in response to the turn-on operation, the interphone function is turned on.
Here, the switch key may be a hard key on the terminal, such as a volume + key, and when a user inputs an on operation for the switch key, such as a long press operation of the volume + key, the terminal may turn on an interphone function in response to the on operation, and then the terminal may perform data transmission using the interphone component.
Here, the switch key may also be a virtual key in an interphone application on the terminal, after the terminal starts the interphone application and enters a user interface of the interphone application, the switch key may be on the user interface, and when a user can input an opening operation for the switch key, such as an operation of selecting an opening option, the terminal may open an interphone function in response to the opening operation, and then the terminal may perform data transmission using the interphone module.
This embodiment can respond to when receiving the opening operation to the switch button opening operation, open the intercom function, so can open the intercom function according to user's demand.
The implementation is described in detail below by way of several embodiments.
Fig. 3 is a flowchart illustrating a data communication method according to an exemplary embodiment, and as shown in fig. 3, the data communication method can be implemented by a terminal, etc. including an intercom module, including steps 301 and 309.
In step 301, an on operation for a switch key is received.
In step 302, the intercom function is turned on in response to the turn-on operation.
In step 303, an input talkback mode instruction is received, where the talkback mode instruction is used to indicate a talkback mode, and the talkback mode includes a relay mode and a normal mode.
In step 304, a parameter setting interface is displayed in response to the talkback mode instruction.
In step 305, the intercom parameters input to the parameter setting interface are received.
In step 306, when the intercom function is turned on and the pressing operation for the push-to-talk (PTT) key is received, first voice data is collected.
In step 307, the first voice data is transmitted through the intercom module according to the intercom parameter corresponding to the intercom mode.
In step 308, the second voice data is received through the intercom module according to the intercom parameter corresponding to the intercom mode.
In step 309, the second voice data is played.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 4 is a block diagram of a data communication apparatus according to an exemplary embodiment, which may be implemented as part or all of an electronic device through software, hardware or a combination of both, and is applied to a terminal including an intercom module. As shown in fig. 4, the data communication apparatus includes:
the acquisition module 401 is configured to acquire first voice data when a pressing operation for a push-to-talk (PTT) key is received while an interphone function is turned on;
a sending module 402, configured to send the first voice data through the intercom module;
a first receiving module 403, configured to receive second voice data through the intercom module;
a playing module 404, configured to play the second voice data.
As a possible embodiment, fig. 5 is a block diagram of a data communication apparatus according to an exemplary embodiment, and as shown in fig. 5, the data communication apparatus disclosed above may be further configured to include a second receiving module 405, the transmitting module 402 may be further configured to include a transmitting submodule 4021, and the first receiving module 403 may be configured to include a first receiving submodule 4031, where:
a second receiving module 405, configured to receive an input talkback mode instruction, where the talkback mode instruction is used to indicate a talkback mode, and the talkback mode includes a relay mode and a normal mode;
the sending submodule 4021 is configured to send the first voice data through the intercom module according to the intercom parameter corresponding to the intercom mode;
and the first receiving submodule 4031 is configured to receive the second voice data through the interphone module according to the talkback parameter corresponding to the talkback mode.
As a possible embodiment, fig. 6 is a block diagram illustrating a data communication apparatus according to an exemplary embodiment, and as shown in fig. 6, the data communication apparatus disclosed above may be further configured to include an obtaining module 406, wherein:
an obtaining module 406, configured to respond to the talkback mode instruction, and obtain a talkback parameter corresponding to the talkback mode; or when receiving an talkback parameter adjustment instruction, acquiring talkback parameters corresponding to the talkback mode.
As a possible embodiment, fig. 7 is a block diagram of a data communication apparatus according to an exemplary embodiment, and as shown in fig. 7, the data communication apparatus disclosed above may further configure the obtaining module 406 to include a display sub-module 4061 and a second receiving sub-module 4062, where:
the display sub-module 4061 is used for displaying a parameter setting interface;
the second receiving sub-module 4062 is configured to receive the intercom parameter input to the parameter setting interface.
As a possible embodiment, fig. 8 is a block diagram of a data communication device according to an exemplary embodiment, and as shown in fig. 8, the data communication device disclosed above may be further configured to include a third receiving module 407 and an opening module 408, where:
a third receiving module 407, configured to receive an opening operation for a switch key;
the starting module 408 is configured to start the interphone function in response to the starting operation.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating a data communication apparatus adapted for use with a terminal device according to an exemplary embodiment. For example, the apparatus 900 may be a mobile phone, a game console, a computer, a tablet device, a personal digital assistant, and the like.
The apparatus 900 may include one or more of the following components: processing component 901, memory 902, power component 903, multimedia component 904, audio component 905, input/output (I/O) interface 906, sensor component 907, and communications component 908.
The processing component 901 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 901 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 901 may include one or more modules that facilitate interaction between the processing component 901 and other components. For example, the processing component 901 may include a multimedia module to facilitate interaction between the multimedia component 904 and the processing component 901.
The memory 902 is configured to store various types of data to support operations at the apparatus 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 902 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 903 provides power to the various components of the device 900. The power components 903 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 904 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 904 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 905 is configured to output and/or input audio signals. For example, audio component 905 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 902 or transmitted via the communication component 908. In some embodiments, audio component 905 also includes a speaker for outputting audio signals.
The I/O interface 906 provides an interface between the processing component 901 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor component 907 includes one or more sensors for providing various aspects of status assessment for device 900. For example, sensor assembly 907 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of device 900, the change in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, the orientation or acceleration/deceleration of device 900, and the change in temperature of device 900. Sensor assembly 907 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 907 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 907 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 908 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof, and may also directly perform intercom communication with other terminals. In an exemplary embodiment, the communication component 908 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 908 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 902 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an apparatus 900, enable the apparatus 900 to perform the above-described data communication method, the method comprising:
under the condition that the interphone function is started, when the pressing operation aiming at a push-to-talk (PTT) key which can be pressed is received, first voice data are collected;
sending the first voice data through the interphone module;
receiving second voice data through the interphone module;
and playing the second voice data.
In one embodiment, the method further comprises:
receiving an input talkback mode instruction, wherein the talkback mode instruction is used for indicating a talkback mode, and the talkback mode comprises a relay mode and a common mode;
the sending the first voice data through the interphone module comprises:
according to the talkback parameters corresponding to the talkback mode, the first voice data are sent through the interphone module;
receiving second voice data through the interphone module comprises
And receiving the second voice data through the interphone module according to the talkback parameters corresponding to the talkback mode.
In one embodiment, the method further comprises:
responding to the talkback mode instruction, and acquiring talkback parameters corresponding to the talkback mode;
or,
and when receiving an talkback parameter adjusting instruction, acquiring talkback parameters corresponding to the talkback mode.
In one embodiment, the obtaining of the talkback parameters corresponding to the talkback mode includes:
displaying a parameter setting interface;
and receiving the talkback parameters input into the parameter setting interface.
In one embodiment, the method further comprises:
receiving an opening operation aiming at a switch key;
and responding to the starting operation, and starting the interphone function.
This embodiment still provides a data communication device, is applied to the terminal that includes the intercom module, includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
under the condition that the interphone function is started, when the pressing operation aiming at a push-to-talk (PTT) key which can be pressed is received, first voice data are collected;
sending the first voice data through the interphone module;
receiving second voice data through the interphone module;
and playing the second voice data.
In one embodiment, the processor may be further configured to:
receiving an input talkback mode instruction, wherein the talkback mode instruction is used for indicating a talkback mode, and the talkback mode comprises a relay mode and a common mode;
the sending the first voice data through the interphone module comprises:
according to the talkback parameters corresponding to the talkback mode, the first voice data are sent through the interphone module;
receiving second voice data through the interphone module comprises
And receiving the second voice data through the interphone module according to the talkback parameters corresponding to the talkback mode.
In one embodiment, the processor may be further configured to:
responding to the talkback mode instruction, and acquiring talkback parameters corresponding to the talkback mode;
or,
and when receiving an talkback parameter adjusting instruction, acquiring talkback parameters corresponding to the talkback mode.
In one embodiment, the processor may be further configured to: the obtaining of the talkback parameters corresponding to the talkback mode includes: displaying a parameter setting interface; and receiving the talkback parameters input into the parameter setting interface.
In one embodiment, the processor may be further configured to:
receiving an opening operation aiming at a switch key;
and responding to the starting operation, and starting the interphone function.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A data communication method is characterized in that the method is applied to a terminal comprising an interphone module, and comprises the following steps:
under the condition that the interphone function is started, when the pressing operation aiming at a push-to-talk (PTT) key which can be pressed is received, first voice data are collected;
sending the first voice data through the interphone module;
receiving second voice data through the interphone module;
and playing the second voice data.
2. The method of claim 1, further comprising:
receiving an input talkback mode instruction, wherein the talkback mode instruction is used for indicating a talkback mode, and the talkback mode comprises a relay mode and a common mode;
the sending the first voice data through the interphone module comprises:
according to the talkback parameters corresponding to the talkback mode, the first voice data are sent through the interphone module;
receiving second voice data through the interphone module comprises
And receiving the second voice data through the interphone module according to the talkback parameters corresponding to the talkback mode.
3. The method of claim 2, further comprising:
responding to the talkback mode instruction, and acquiring talkback parameters corresponding to the talkback mode;
or,
and when receiving an talkback parameter adjusting instruction, acquiring talkback parameters corresponding to the talkback mode.
4. The method according to claim 3, wherein the obtaining of the talkback parameters corresponding to the talkback mode comprises:
displaying a parameter setting interface;
and receiving the talkback parameters input into the parameter setting interface.
5. The method of claim 1, further comprising:
receiving an opening operation aiming at a switch key;
and responding to the starting operation, and starting the interphone function.
6. The utility model provides a data communication device which characterized in that is applied to the terminal that contains the intercom module, includes:
the system comprises an acquisition module, a control module and a display module, wherein the acquisition module is used for acquiring first voice data when receiving a pressing operation aiming at a push-to-talk (PTT) key which can be pressed and held under the condition that the function of an interphone is started;
the sending module is used for sending the first voice data through the interphone module;
the first receiving module is used for receiving second voice data through the interphone module;
and the playing module is used for playing the second voice data.
7. The apparatus of claim 6, further comprising:
the second receiving module is used for receiving an input talkback mode instruction, wherein the talkback mode instruction is used for indicating a talkback mode, and the talkback mode comprises a relay mode and a common mode;
the sending module comprises:
the sending submodule is used for sending the first voice data through the interphone module according to the talkback parameters corresponding to the talkback mode;
the first receiving module includes:
and the first receiving submodule is used for receiving the second voice data through the interphone module according to the talkback parameters corresponding to the talkback mode.
8. The apparatus of claim 7, further comprising:
the obtaining module is used for responding to the talkback mode instruction and obtaining talkback parameters corresponding to the talkback mode; or when receiving an talkback parameter adjustment instruction, acquiring talkback parameters corresponding to the talkback mode.
9. The apparatus of claim 8, wherein the obtaining module comprises:
the display submodule is used for displaying a parameter setting interface;
and the second receiving submodule is used for receiving the talkback parameters input to the parameter setting interface.
10. The apparatus of claim 6, further comprising:
the third receiving module is used for receiving the starting operation aiming at the switch key;
and the starting module is used for responding to the starting operation and starting the function of the interphone.
11. The utility model provides a data communication device which characterized in that is applied to the terminal that contains the intercom module, includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
under the condition that the interphone function is started, when the pressing operation aiming at a push-to-talk (PTT) key which can be pressed is received, first voice data are collected;
sending the first voice data through the interphone module;
receiving second voice data through the interphone module;
and playing the second voice data.
12. A computer readable storage medium storing computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of the method of any one of claims 1 to 5.
CN201810911857.7A 2018-08-10 2018-08-10 Data communications method and device Pending CN109151619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810911857.7A CN109151619A (en) 2018-08-10 2018-08-10 Data communications method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810911857.7A CN109151619A (en) 2018-08-10 2018-08-10 Data communications method and device

Publications (1)

Publication Number Publication Date
CN109151619A true CN109151619A (en) 2019-01-04

Family

ID=64792887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810911857.7A Pending CN109151619A (en) 2018-08-10 2018-08-10 Data communications method and device

Country Status (1)

Country Link
CN (1) CN109151619A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087153A (en) * 2019-04-09 2019-08-02 成都大秦民安消防科技有限公司 Machine is commanded in emergency management and rescue based on Android ARM microcontroller
CN110460916A (en) * 2019-08-15 2019-11-15 北京安云世纪科技有限公司 It merges intercom system, method, calculate equipment and computer storage medium
CN112019948A (en) * 2019-05-30 2020-12-01 北京小米移动软件有限公司 Intercommunication device communication method, intercommunication device and storage medium
CN113328761A (en) * 2021-05-27 2021-08-31 深圳市威尔健科技发展有限公司 WIFI intercom device based on little loudspeaker platform
CN115988431A (en) * 2022-12-02 2023-04-18 中国联合网络通信集团有限公司 Intercommunication system, method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252377A (en) * 2008-03-25 2008-08-27 宇龙计算机通信科技(深圳)有限公司 Earphone equipment and method for communication terminal to realize voice intercommunication traffic using the same
CN202014350U (en) * 2011-05-12 2011-10-19 山西科达自控工程技术有限公司 Wireless intercommunication system based on MESH network
CN104768084A (en) * 2015-04-16 2015-07-08 小米科技有限责任公司 Talkback achieving method, device and system
CN204539266U (en) * 2015-02-12 2015-08-05 天津金轮自行车集团有限公司 A kind of mobile phone with intercommunication function
CN106303989A (en) * 2016-08-25 2017-01-04 深圳市轱辘车联数据技术有限公司 A kind of intercommunication method based on mobile terminal and mobile terminal
CN106488023A (en) * 2016-10-17 2017-03-08 珠海格力电器股份有限公司 Intercommunication method, system and mobile terminal
CN107222838A (en) * 2017-08-02 2017-09-29 深圳市威泰能源有限公司 A kind of transmission method of intercom and intercommunication information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252377A (en) * 2008-03-25 2008-08-27 宇龙计算机通信科技(深圳)有限公司 Earphone equipment and method for communication terminal to realize voice intercommunication traffic using the same
CN202014350U (en) * 2011-05-12 2011-10-19 山西科达自控工程技术有限公司 Wireless intercommunication system based on MESH network
CN204539266U (en) * 2015-02-12 2015-08-05 天津金轮自行车集团有限公司 A kind of mobile phone with intercommunication function
CN104768084A (en) * 2015-04-16 2015-07-08 小米科技有限责任公司 Talkback achieving method, device and system
CN106303989A (en) * 2016-08-25 2017-01-04 深圳市轱辘车联数据技术有限公司 A kind of intercommunication method based on mobile terminal and mobile terminal
CN106488023A (en) * 2016-10-17 2017-03-08 珠海格力电器股份有限公司 Intercommunication method, system and mobile terminal
CN107222838A (en) * 2017-08-02 2017-09-29 深圳市威泰能源有限公司 A kind of transmission method of intercom and intercommunication information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
北峰电讯: "对讲机的亚音、倒频、直频各有什么作用?", 《搜狐》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087153A (en) * 2019-04-09 2019-08-02 成都大秦民安消防科技有限公司 Machine is commanded in emergency management and rescue based on Android ARM microcontroller
CN112019948A (en) * 2019-05-30 2020-12-01 北京小米移动软件有限公司 Intercommunication device communication method, intercommunication device and storage medium
CN110460916A (en) * 2019-08-15 2019-11-15 北京安云世纪科技有限公司 It merges intercom system, method, calculate equipment and computer storage medium
CN113328761A (en) * 2021-05-27 2021-08-31 深圳市威尔健科技发展有限公司 WIFI intercom device based on little loudspeaker platform
CN113328761B (en) * 2021-05-27 2022-04-19 深圳市威尔健科技发展有限公司 WIFI intercom device based on little loudspeaker platform
CN115988431A (en) * 2022-12-02 2023-04-18 中国联合网络通信集团有限公司 Intercommunication system, method and device
CN115988431B (en) * 2022-12-02 2024-07-12 中国联合网络通信集团有限公司 Intercommunication communication system, method and device

Similar Documents

Publication Publication Date Title
CN109151619A (en) Data communications method and device
CN106356060B (en) Voice communication method and device
KR101571993B1 (en) Method for voice calling method for voice playing, devices, program and storage medium thereof
EP3133851A1 (en) Method and device for acquiring using authority
CN107978316A (en) The method and device of control terminal
CN104219644A (en) Emergency communication method and device
US10439660B2 (en) Method and device for adjusting frequencies of intercom apparatuses
CN105162980A (en) Call processing method and device
CN106507282B (en) Wireless connection control method and device
CN105407368A (en) Multimedia playing method, device and system
CN105450861A (en) Information prompt method and information prompt device
CN106254402A (en) The synchronous method of intelligent terminal's configuration information and device
CN106550482B (en) Communication connection establishing method and device and electronic equipment
CN110121148B (en) Interphone team method and device
CN104780256A (en) Address book management method and device and intelligent terminal
CN106034214A (en) Video data recording method and apparatus thereof
CN109194808B (en) Volume adjusting method and device
CN111541922A (en) Method, device and storage medium for displaying interface input information
CN106899369B (en) Method and device for reserved playing of intelligent radio
CN106375744B (en) Information projecting method and device
CN109408025B (en) Audio playing method, device and storage medium
CN106531163A (en) Method and device for controlling terminal
CN110213531B (en) Monitoring video processing method and device
CN105516637A (en) Calling method and device
CN111314554A (en) Voice sending method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination