WO2020252958A1 - Intercom communication method, device and system, storage medium and intercom - Google Patents

Intercom communication method, device and system, storage medium and intercom Download PDF

Info

Publication number
WO2020252958A1
WO2020252958A1 PCT/CN2019/106775 CN2019106775W WO2020252958A1 WO 2020252958 A1 WO2020252958 A1 WO 2020252958A1 CN 2019106775 W CN2019106775 W CN 2019106775W WO 2020252958 A1 WO2020252958 A1 WO 2020252958A1
Authority
WO
WIPO (PCT)
Prior art keywords
walkie
talkie
communication
preset channel
data
Prior art date
Application number
PCT/CN2019/106775
Other languages
French (fr)
Chinese (zh)
Inventor
孙慧
Original Assignee
深圳市慧智慧科技有限公司
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 深圳市慧智慧科技有限公司 filed Critical 深圳市慧智慧科技有限公司
Publication of WO2020252958A1 publication Critical patent/WO2020252958A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • 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
    • H04Q5/245Circuit arrangements in which for one subscriber low frequency speech and/or signalling signals proceed on the line, while for the other subscriber the low frequency speech and/or signalling signals are modulated upon a high frequency carrier signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Definitions

  • the embodiment of the present invention relates to communication technology, for example, relates to an intercom communication method, device, system, storage medium, and intercom.
  • the walkie-talkie is a two-way mobile communication tool. It can talk to each other without any wireless communication network support, and there is no additional call charge. It is more suitable for relatively fixed and frequent calls between each other. Application scenarios.
  • the walkie-talkie in the related technology can be set through the buttons on the walkie-talkie, the communication frequency, channel and volume of the walkie-talkie and other communication parameters. After the walkie-talkie is set to a communication channel or frequency, after pressing the voice button, the same communication can be achieved. Channel or frequency of other walkie-talkies realize intercom. As long as it is on the same communication channel or frequency, the communication content of other walkie-talkies can be intercepted through the walkie-talkie, and the security of the communication content is low.
  • the embodiment of the present invention provides an intercom communication method, device, system and storage medium to realize the protection of communication data between interphones.
  • an embodiment of the present invention discloses an intercom communication method, including:
  • the first walkie-talkie sends a communication request on a common channel to control the second walkie-talkie to jump to a preset channel.
  • the communication request includes a target address and communication parameters.
  • the target address is preset as the identification code of the second walkie-talkie.
  • the communication parameter includes the preset channel;
  • the first walkie-talkie jumps to the preset channel after the communication request is sent;
  • the first walkie-talkie sends communication data to the second walkie-talkie based on the target address on the preset channel.
  • an embodiment of the present invention discloses an intercom communication method, including:
  • the second walkie-talkie receives a communication request sent by the first walkie-talkie on a common channel, the communication request includes a target address and a communication parameter, the target address is preset to the identification code of the second walkie-talkie, and the communication parameter includes a preset channel ;
  • the second walkie-talkie jumps to the preset channel based on the communication request and sends response information, or the second walkie-talkie jumps to the preset channel based on the communication request and receives the transmission from the first walkie-talkie Communication data.
  • an embodiment of the present invention discloses an intercom communication method, including:
  • the first smart terminal sends communication data to the first walkie-talkie;
  • the first walkie-talkie sends a communication request on a common channel according to the communication data to control the second walkie-talkie to jump to a preset channel, the communication request includes a target address and communication parameters, and the target address is preset to the first 2.
  • the identification code of the walkie-talkie, the communication parameter includes the preset channel;
  • the first walkie-talkie jumps to the preset channel after the communication request is sent;
  • the first walkie-talkie sends communication data to the second walkie-talkie based on the target address on the preset channel;
  • the second walkie-talkie sends the communication data to a second smart terminal.
  • an intercom communication device including:
  • the request module is configured to send a communication request on a common channel to control the second walkie-talkie to jump to a preset channel, the communication request includes a target address and communication parameters, and the target address is preset as the identification of the second walkie-talkie Code, the communication parameter includes the preset channel;
  • a jump module configured to jump to the preset channel after the communication request is sent
  • the sending module is configured to send communication data to the second walkie-talkie based on the target address on the preset channel.
  • an intercom communication system including:
  • the first walkie-talkie is configured to send a communication request on a common channel according to the communication data, jump to a preset channel after the communication request is sent, and send communication data on the preset channel based on the target address, the communication request Including the target address and communication parameters, the target address is preset as the identification code of the second walkie-talkie, and the communication parameters include the preset channel;
  • the first smart terminal is configured to send the communication data to the first walkie-talkie;
  • the second walkie-talkie is configured to receive the communication request and jump to the preset channel to receive the communication data sent by the first walkie-talkie on the preset channel;
  • the second smart terminal is configured to receive the communication data sent by the second walkie-talkie.
  • an embodiment of the present invention discloses a walkie-talkie, the walkie-talkie includes:
  • One or more processors are One or more processors;
  • Memory used to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any embodiment of the present invention.
  • an embodiment of the present invention discloses a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method described in any of the embodiments herein is implemented.
  • FIG. 1 is a flowchart of an intercom communication method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of an intercom communication method according to Embodiment 2 of the present invention.
  • FIG. 3 is a flowchart of an intercom communication method according to Embodiment 2 of the present invention.
  • FIG. 4 is a flowchart of an intercom communication method according to Embodiment 2 of the present invention.
  • FIG. 5 is a flowchart of an intercom communication method according to Embodiment 2 of the present invention.
  • FIG. 6 is a flowchart of an intercom communication method according to Embodiment 2 of the present invention.
  • FIG. 7 is a flowchart of an intercom communication method provided by Embodiment 3 of the present invention.
  • FIG. 8 is a flowchart of an intercom communication method provided by Embodiment 3 of the present invention.
  • FIG. 9 is a flowchart of an intercom communication method provided by Embodiment 3 of the present invention.
  • FIG. 10 is a flowchart of an intercom communication method provided by Embodiment 4 of the present invention.
  • FIG. 11 is a flowchart of an intercom communication method according to Embodiment 5 of the present invention.
  • FIG. 12 is a schematic structural diagram of an intercom communication device according to Embodiment 6 of the present invention.
  • FIG. 13 is a schematic structural diagram of an intercom communication system provided by Embodiment 7 of the present invention.
  • FIG. 14 is a schematic structural diagram of a walkie-talkie provided by Embodiment 8 of the present invention.
  • first”, second, etc. may be used herein to describe various directions, actions, steps or elements, etc., but these directions, actions, steps or elements are not limited by these terms. These terms are only used to distinguish a first direction, action, step or element from another direction, action, step or element.
  • first speed difference may be referred to as the second speed difference
  • second speed difference may be referred to as the first speed difference. Both the first speed difference and the second speed difference are speed differences, but they are not the same speed difference.
  • the terms “first”, “second”, etc. cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features.
  • “multiple” and “batch” mean at least two, such as two, three, etc., unless otherwise specifically defined.
  • Fig. 1 is a flow chart of the intercom communication method provided in the first embodiment of the present invention. This embodiment is applicable to the communication data transmission between interphones.
  • the method can be executed by the intercom communication device and includes the following steps:
  • the first walkie-talkie sends a communication request on a common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to at least one second walkie-talkie
  • the identification code of, the communication parameter includes a preset channel
  • the common channel refers to a channel including all walkie-talkies, and all walkie-talkies will be in the common channel.
  • a communication request refers to a request sent when it needs to communicate with other walkie-talkies.
  • the communication request includes at least the target address and communication parameters. "At least" means that the target address and communication parameters are necessary, but the communication request can also include other content. For example, the sending address, sending time, etc., can be increased as needed to realize the richness of the content contained in the communication request.
  • the target address refers to the address that can locate the target walkie-talkie.
  • the target walkie-talkie is the walkie-talkie that needs to communicate.
  • the target address can be provided by the application layer.
  • the calculation formula of the target address can be a 7-digit number generated from the identification code of the user associated or using the walkie-talkie, such as 1234567, and then converted into hexadecimal 0x12D687 Generate 3 bytes of data.
  • the communication parameters include a preset channel.
  • the preset channel refers to a communication channel established between walkie-talkies to communicate with the target walkie-talkie only. Exemplarily, if walkie-talkie A wants to communicate with walkie-talkie B, walkie-talkie A and walkie-talkie B enter the preset channel, A and B can communicate in the preset channel, and walkie-talkies that are not in the preset channel cannot see A The communication content of the walkie-talkie and the B walkie-talkie.
  • the number of channels can be multiple to satisfy communication between different walkie-talkies.
  • the channel in this embodiment can include 302 channels.
  • each walkie-talkie pre-stores an identification code corresponding to a user name or user identity, and the identification code of each walkie-talkie is inconsistent. Therefore, through the identification code, it is possible to determine which walkie-talkie the walkie-talkie is.
  • the target address is preset to the identification code of at least one second walkie-talkie, which means that the target address can be set to one identification code or multiple identification codes. When the target address is set to an identification code, the walkie-talkie that controls the identification code jumps to the preset channel, then there are only two walkie-talkies in the preset channel.
  • the multiple walkie-talkies corresponding to the multiple identification codes are controlled to enter the preset channel, and multiple walkie-talkies in the preset channel can communicate with multiple parties.
  • the multiple walkie-talkies in this embodiment can One-to-many sending messages for full chat interaction.
  • the communication request sent by the first walkie-talkie in the public channel in this embodiment may be generated based on the buddy list or group name pre-stored by the first walkie-talkie, and the buddy names in the buddy list are preset to be used by friends during the process of adding friends.
  • the identification code of the walkie-talkie may be generated based on the buddy list or group name pre-stored by the first walkie-talkie, and the buddy names in the buddy list are preset to be used by friends during the process of adding friends.
  • the identification code on the walkie-talkie may be determined by the user, regardless of the identification of the walkie-talkie, and the identification code is determined according to the user's identity.
  • the identification code corresponding to each user may be fixed or not.
  • the identification code corresponding to each user is fixed.
  • the identification code corresponding to user A is 1234
  • the identification code corresponding to user B is 4321.
  • the corresponding identification code of intercom C is set to 1234
  • user B uses intercom D
  • the corresponding identification code of D intercom is The identification code is set to 4321. If user A uses walkie-talkie D, the identification code of walkie-talkie D will be set to 1234.
  • the walkie-talkie has no identification code.
  • the user name or user ID in the mobile phone will be sent to the walkie-talkie after connecting to the walkie-talkie through the mobile phone’s Bluetooth.
  • the walkie-talkie pre-stores the user name or user ID as the walkie-talkie’s Identification code to determine the identification code corresponding to the walkie-talkie.
  • the walkie-talkie will store the user name or user ID stored in the chip as the identification code of the walkie-talkie Delete, the walkie-talkie enters the standby state.
  • Other methods that can realize the identification of the user by the walkie-talkie can be substituted.
  • the identification code on the walkie-talkie is determined according to the user ID of the user, ensuring that when the user uses different walkie-talkies or the same walkie-talkie is used by different users, the communication data can be received by the user corresponding to the user ID. More convenient.
  • S120 The first walkie-talkie jumps to the preset channel after sending the communication request;
  • the first walkie-talkie After controlling at least one second walkie-talkie to jump to the preset channel, the first walkie-talkie will also jump to the preset channel. Only the walkie-talkies in the same preset channel can communicate.
  • the first walkie-talkie sends communication data to at least one second walkie-talkie on the preset channel based on the target address.
  • the communication data refers to the data sent by the first walkie-talkie to the second walkie-talkie.
  • the communication data may include text, pictures, voice, video, files, etc., and different communication data may be sent according to different needs.
  • the target address is set as an identification code
  • the first walkie-talkie can send communication data to the walkie-talkie corresponding to an identification code in the preset channel according to the target address.
  • the target address is set to multiple identification codes
  • the first walkie-talkie can send communication data to multiple walkie-talkies corresponding to the multiple identification codes in the preset channel according to the target address.
  • a preset channel is established between the walkie-talkies, and only the walkie-talkie whose target address is set to the identification code can enter the preset channel, and only in the same preset channel Only the intercom inside can see the communication data, which solves the insecurity of intercom communication and realizes the effect of improving the confidentiality of the intercom communication.
  • the communication request prepared before sending the message in this embodiment can be directly generated by selecting the sender from the friend list, the target selection of the intercom communication is convenient and the communication method is simple.
  • Fig. 2 is a flowchart of an intercom communication method according to the second embodiment of the present invention. This embodiment is a further refinement of the above technical solution, and is suitable for the scenario of communication data transmission between walkie-talkies.
  • the method can be executed by an intercom communication device and includes:
  • the first walkie-talkie sends a communication request on the common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to at least one second walkie-talkie
  • the identification code of, the communication parameter includes a preset channel
  • S220 The first walkie-talkie jumps to the preset channel after sending the communication request.
  • the first walkie-talkie judges whether the response information sent by the at least one second walkie-talkie from the preset channel is received;
  • the response message refers to the response of the walkie-talkie confirming to enter the preset channel.
  • it can be words such as "XX walkie-talkie has joined the preset channel".
  • XX represents a two-way radio, which can be set according to requirements. If the first walkie-talkie receives the response message, it means that the second walkie-talkie has entered the preset channel and can send communication data to the second walkie-talkie.
  • the target address is set to an identification code, at most only one walkie-talkie can send a response message. If the walkie-talkie does not enter the preset channel, there is no response message.
  • the target address is set to multiple identification codes, for example, 10 identification codes, only the walkie-talkie corresponding to 10 identification codes can send 10 response messages at most, and the step of sending response messages can also be omitted in the alternative embodiment.
  • the first walkie-talkie sends communication data to at least one second walkie-talkie on the preset channel based on the target address.
  • step S210 can be replaced by:
  • the first walkie-talkie sends a communication request to the third walkie-talkie on the common channel to control the third walkie-talkie to control at least one second walkie-talkie to jump to a preset channel;
  • the third walkie-talkie can be used to establish normal communication.
  • the first walkie-talkie searches for a third walkie-talkie within a preset range (the preset range can be 1 km or 2 km, and the acceptable range is determined according to the hardware of the walkie-talkie), the third walkie-talkie and the first walkie-talkie The distance to the second walkie-talkie is within the preset range.
  • the third walkie-talkie bridge the first walkie-talkie to the second walkie-talkie.
  • the first walkie-talkie first sends the communication request or communication data to the third walkie-talkie, and the third walkie-talkie sends the communication request or communication data to the second walkie-talkie, thereby increasing the communication distance between the first walkie-talkie and the second walkie-talkie.
  • a fourth walkie-talkie and a fifth walkie-talkie can also be added to make the communication range wider.
  • the third walkie-talkie is in a working state, the communication request or communication data sent by the first walkie-talkie will be cached on the first walkie-talkie, and the working state of the third walkie-talkie will be continuously monitored.
  • the first walkie-talkie When the third walkie-talkie is in a non-working state, the first walkie-talkie sends the buffered communication request or communication data to the third walkie-talkie, thereby controlling the third walkie-talkie to send the communication request and communication data to the second walkie-talkie.
  • step S240 can be replaced with:
  • the first walkie-talkie sends communication data to a third walkie-talkie on the preset channel to control the third walkie-talkie to send communication data to at least one second walkie-talkie on the preset channel based on the target address.
  • the preset channels of the first walkie-talkie and the third walkie-talkie, and the preset channels of the third walkie-talkie and the second walkie-talkie are one preset channel.
  • the first walkie-talkie and the second walkie-talkie can communicate in a preset channel through the third walkie-talkie.
  • it can also be different preset channels.
  • a preset channel can be established between the first walkie-talkie and the third walkie-talkie, and after the communication data is transmitted to the third walkie-talkie, the walkie-talkie will establish another preset channel with the second walkie-talkie , So as to transmit the communication data to the second walkie-talkie on another preset channel.
  • selecting a preset channel can reduce resource waste in the communication process.
  • step S240 can also be replaced by:
  • the first walkie-talkie After the first walkie-talkie determines that the response information sent by the at least one second walkie-talkie from the preset channel is received, the first walkie-talkie sends communication data to the at least one second walkie-talkie on the preset channel based on the target address. Otherwise, the first walkie-talkie cancels sending communication data to at least one second walkie-talkie based on the target address on the preset channel.
  • the second walkie-talkie has entered the preset channel, and the communication data sent by the first walkie-talkie can be received by the second walkie-talkie. If the response message is not received, it means that the second walkie-talkie has not entered the preset channel. At this time, the communication data sent by the first walkie-talkie cannot be received by the second walkie-talkie, so cancel the communication data transmission, otherwise it will occupy the resources of the preset channel .
  • step S230 can also be replaced with:
  • the communication request further includes confidential information, and the communication data is encrypted based on an encryption method defined by the confidential information.
  • confidential information can be a rule or method for encrypting communication data.
  • Encrypting communication data can improve the security of communication data.
  • the encrypted information must be decrypted before it can be acquired by the second walkie-talkie.
  • step S240 it may further include:
  • the first walkie-talkie judges whether to receive data reception confirmation information sent by at least one second walkie-talkie from a preset channel;
  • the confirmation message refers to the confirmation that the second walkie-talkie receives the signal of the communication data sent by the first walkie-talkie. If the first walkie-talkie can receive the confirmation message, it means that the second walkie-talkie has received the communication data sent by the first walkie-talkie, and step S260 is executed to prompt that the data transmission is normal.
  • the prompt that the data is sent normally may be "the other party has received the communication data", which is not displayed here.
  • the prompt of data transmission failure may be "the other party did not receive communication data".
  • the communication data or communication request further includes one or more of the data header, the sending address, the data type, the data length, the encryption information, and the checksum data.
  • the data header is a fixed value, such as 0x5a in hexadecimal notation.
  • the sending address is the address of the first intercom, and the identification code (Identity, ID) of the first intercom can be used.
  • the ID calculation formula of the first walkie-talkie can be a 7-digit number generated from the user identification code or user name, such as 1234567, and then converted to hexadecimal 0x12D687 to generate 3 bytes of data.
  • Data types may include communication guidance, text data, voice data, SOS data, communication data, and so on. You can perform different operations for different data according to different data types.
  • low-speed transmission is used for text data
  • high-speed transmission is used for voice data, which can be set as required.
  • the data length can include two aspects, the data protocol part and the user data part.
  • the encrypted information is used as a secondary AES128 encryption.
  • When sending communication data first verify the validity of the communication data.
  • Data refers to user data, optional, the data does not exceed 120 bytes, which has reduced the pressure of the communication process.
  • the first walkie-talkie by adding the judgment of whether the first walkie-talkie receives the response information before sending the communication data, it will enter the preset channel after the second walkie-talkie confirms, preventing the user from maliciously sending a communication request to make the second walkie-talkie enter
  • the dangerous communication data is sent after the channel is preset, which improves the safety of the communication process.
  • Fig. 7 is a flow chart of an intercom communication method provided in the third embodiment of the present invention. This embodiment is further modified on the basis of the above-mentioned embodiment, and is suitable for a scenario before sending a request. As shown in Figure 7, the method can be executed by an intercom communication device, including:
  • the first walkie-talkie selects the friend name or group name to be called from the friend list
  • the verified friends or groups will be displayed in the friends list.
  • you need to communicate select the name of your friend or group in the friend list, and then you can communicate after entering the same preset channel.
  • the identification code of one or more second walkie-talkies is acquired as the target address, and the identification code of the second walkie-talkie in this embodiment is preset by the selected friend name or group name.
  • the friend name and group name are used to facilitate target search when communication is required.
  • the identification code of the walkie-talkie is still needed to establish the same preset channel for communication data transmission.
  • the name of the friend in the friend list is pre-associated with the identification code of the walkie-talkie used by the friend during the process of adding the friend.
  • the walkie-talkie needs to be in the same preset channel. Therefore, only by selecting a preset channel according to the identification code of the two-way radio can the communication between the two-way radios be realized. In this embodiment, if there are few communication objects (only communicating with one second walkie-talkie), the low-speed channel can be selected as the preset channel. If there are many communication objects (communication with multiple second walkie-talkies), the high-speed channel can be selected as Preset channels.
  • S340 Generate the communication request according to the identification code of the one or more second walkie-talkies and the preset channel;
  • the first walkie-talkie sends a communication request on a common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to at least one second walkie-talkie
  • the identification code of, the communication parameter includes a preset channel
  • the first walkie-talkie jumps to the preset channel after sending the communication request.
  • the first walkie-talkie sends communication data to at least one second walkie-talkie on the preset channel based on the target address.
  • step S330 it may further include:
  • the first walkie-talkie jumps to the selected preset channel for occupation detection
  • the preset channel requested for communication may not be usable.
  • the preset channel When the preset channel is occupied, other walkie-talkies cannot use the preset channel. Therefore, after the first walkie-talkie selects the preset channel, in order to prevent unavailability, it jumps to the preset channel in advance to perform occupation detection.
  • preset channel 1 when preset channel 1 is occupied, other walkie-talkies can no longer enter preset channel 1, and can only enter after preset channel 1 is used. If the first intercom can jump to the preset channel, it means that the preset channel is not occupied and can be used. Otherwise it cannot be used.
  • the preset channel is occupied, it cannot be used, so another preset channel needs to be selected.
  • the other preset channel can only be used when it is not occupied.
  • the selection of the preset channel can be automatically determined by a random algorithm.
  • step S331 and step S332 can also be replaced with:
  • the communication parameter also includes a communication speed.
  • the communication speed is set according to different types of communication data.
  • the type of communication data includes one or more of communication guide data, text data, voice data, and SOS data.
  • the communication speed refers to the speed of sending communication data. Different communication data types have different requirements for communication speed. Text data may require a lower communication speed because of the short data length. Voice data may require a higher communication speed. The communication speed can be set as required.
  • step S310 it may further include:
  • the friend name is associated with the identification code of the walkie-talkie.
  • the walkie-talkie with the identification code associated with the friend's name can be found through the friend's name.
  • the friend identification code corresponding to the friend name is preset as the identification code of the walkie-talkie.
  • the group name may correspond to multiple friend names.
  • the first walkie-talkie generates a friend addition request according to the friend name or group name, and sends the friend addition request on a public channel;
  • the first walkie-talkie receives the friend confirmation information sent by the second walkie-talkie on the public channel to complete the friend addition action, where the friend confirmation information includes the identification code of the second walkie-talkie.
  • the technical solution of the embodiment of the present invention adds a step of adding a friend name or group name before sending a communication request, so that only friends or group names in the friend list can establish a preset channel, and not a friend or group name in the list. Establish the same preset channel to complete fast communication, which greatly facilitates the use of intercom communication.
  • FIG. 10 is a flowchart of an intercom communication method provided by Embodiment 4 of the present invention. This embodiment is a further refinement of the above-mentioned technical solution, and is suitable for a scenario where a walkie-talkie receives communication data.
  • the method can be executed by an intercom communication device and includes:
  • the second walkie-talkie receives a communication request sent by the first walkie-talkie on a common channel, where the communication request includes at least a target address and communication parameters, the target address is preset to the identification code of at least one second walkie-talkie, and the communication parameters include Preset channel
  • the second walkie-talkie must receive the communication request sent by the first walkie-talkie accordingly.
  • the second walkie-talkie jumps to the preset channel based on the communication request and sends response information.
  • the second walkie-talkie does not have to enter the preset channel after receiving the communication request. If the second walkie-talkie confirms to enter the preset channel, it enters the preset channel and sends a response message to tell the first walkie-talkie that the same preset channel has been established and can communicate.
  • the second walkie-talkie starts timing from jumping to the preset channel, and if it times out, jumps to the common channel and ends the response;
  • the second walkie-talkie starts timing after entering the preset channel after the first walkie-talkie sends a communication request.
  • Timeout means that the time for entering the preset channel but not sending the response message is longer than the preset time.
  • the preset time may be 10 seconds.
  • the time for the second walkie-talkie to enter the preset channel is 9:00 a.m., but no response message has been sent after entering the preset channel. When the time reaches 9:00 a.m., it is timed out at this time, and the second walkie-talkie will again Jump back to the common channel and end the response.
  • step S420 can be replaced by:
  • the second walkie-talkie jumps to the preset channel based on the communication request and receives communication data sent by the first walkie-talkie.
  • the communication data can be sent without the confirmation of the second walkie-talkie, or it can be replaced with the first walkie-talkie after sending the communication request, and then the second walkie-talkie is controlled to directly enter the preset channel to directly transmit the communication data.
  • step S430 can also be replaced with:
  • S431 The second walkie-talkie displays text information according to the communication data
  • the second walkie-talkie after the second walkie-talkie receives the communication data, it can display text messages to notify the first walkie-talkie that the second walkie-talkie has received the communication data.
  • the text information display may be words such as "received".
  • the technical scheme of the embodiment of the present invention describes the content of the communication data received in the intercom communication process on the basis of the communication data sent by the intercom communication.
  • the sending and receiving of the communication data are completed in the same preset channel, which has high security Technical effect.
  • FIG. 11 is a flowchart of an intercom communication method provided by Embodiment 5 of the present invention. This embodiment is a further refinement of the above-mentioned technical solution, and is suitable for scenarios of communication data transmission between smart terminals.
  • the method can be executed by an intercom communication device and includes:
  • the first smart terminal sends communication data to the first walkie-talkie.
  • smart terminals may include mobile phones, tablets, wearable devices, notebook computers, and so on.
  • Communication data refers to data information that the first terminal wants to send to the second smart terminal.
  • Communication data can include text, voice, video, files, etc.
  • a custom application APP can be installed on the smart terminal, so as to realize the communication between the communication data of the smart terminal and the walkie-talkie, as well as the establishment of communication data and communication data conversion.
  • a communication connection is established between the first smart terminal and the first walkie-talkie through Bluetooth or wifi hotspot.
  • the first walkie-talkie sends a communication request on a common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to at least one second walkie-talkie
  • the identification code of, the communication parameter includes a preset channel
  • the first walkie-talkie jumps to the preset channel after sending the communication request.
  • the first walkie-talkie sends communication data to at least one second walkie-talkie on the preset channel based on the target address.
  • the first walkie-talkie needs to convert the communication data sent by the first smart terminal into a data packet format suitable for transmission in a preset channel.
  • the data packet format of the communication data or communication request also includes one or more of the data header, destination address, sending address, communication parameters, data type, data length, encryption information, and checksum data.
  • the data header is a fixed value, such as 0x5a in hexadecimal notation.
  • the target address is preset as an identification code (Identity, ID) of at least one second walkie-talkie.
  • the sending address is the address of the first intercom, using the identification code of the first intercom.
  • the ID calculation formula of the first walkie-talkie can be a 7-digit number generated by the user's identity, such as 1234567, and then converted to hexadecimal 0x12D687 to generate 3 bytes of data.
  • the communication parameters include preset channels and channel speeds. In this embodiment, the communication channels may include 302 or more. In this embodiment, channel 0 is a common channel, and the other 301 channels are available working channels.
  • the channel speed includes high-speed and low-speed.
  • High-speed refers to a working rate of 17K or above, and low-speed refers to 7K or below.
  • the high-speed channel is used to transmit voice
  • the low-speed channel is used to transmit text.
  • Data types can include communication guidance, text data, voice data, SOS data, communication data, and so on. You can perform different operations for different data according to different data types. Exemplarily, low-speed transmission is used for text data, and high-speed transmission is used for voice data, which can be set as required.
  • the data length can include two aspects, the data protocol part and the user data part.
  • the encrypted information is used as a secondary AES128 encryption. When sending communication data, first verify the validity of the communication data. Data refers to user data, optional, the data does not exceed 120 bytes, which has reduced the pressure of the communication process.
  • the second walkie-talkie sends the communication data to a second smart terminal.
  • the second walkie-talkie should convert the communication data into communication data suitable for display on the smart terminal.
  • the mobile phone communicates through the walkie-talkie, which solves the technical problem that the mobile phone can communicate through the walkie-talkie when the mobile network signal of the mobile phone is not good.
  • they also pass The preset channel of the walkie-talkie for communication greatly enhances the security of mobile phone communication through the walkie-talkie.
  • FIG. 12 is a schematic structural diagram of an intercom communication device provided by Embodiment 6 of the present invention. This embodiment is applicable to intercom communication or mobile phone communication.
  • the device can be implemented in software and/or hardware. For content not described in detail in this embodiment, reference may be made to the description in any method embodiment herein.
  • the intercom communication device 600 may include a request module 610, a jump module 620, and a sending module 630, where:
  • the request module 610 is configured to send a communication request by the first walkie-talkie on a common channel to control at least one second walkie-talkie to jump to a preset channel.
  • the communication request includes at least a target address and communication parameters, and the target address is preset to at least An identification code of a second walkie-talkie, the communication parameters include a preset channel; the second walkie-talkie jumps to the preset channel based on the communication request and sends a response message, or the second walkie-talkie jumps to the preset channel based on the communication request.
  • the jump module 620 is configured to jump to the preset channel by the first walkie-talkie after the communication request is sent;
  • the sending module 630 is configured to send communication data to at least one second walkie-talkie based on the target address by the first walkie-talkie on the preset channel.
  • the device further includes:
  • the judgment module is used for the first walkie-talkie to judge whether the response information sent by the at least one second walkie-talkie from the preset channel is received; the first walkie-talkie judges whether to receive the data reception confirmation information sent by the at least one second walkie-talkie from the preset channel; The first walkie-talkie jumps to the selected preset channel for occupation detection;
  • the first walkie-talkie selects another preset channel.
  • the binding module is used for the first walkie-talkie to select the friend name or group name to be called from the friend list;
  • the communication request is generated according to the identification code of the one or more second walkie-talkies and the preset channel.
  • Prompt module used for if the first walkie-talkie has received the data reception confirmation information sent by at least one second walkie-talkie from the preset channel, prompting that the data transmission is normal, if the first walkie-talkie does not receive at least one second walkie-talkie from the preset channel If the sent data receives the confirmation message, it will prompt the data sending failure;
  • the encryption module is used to encrypt the communication data based on the encryption method defined by the confidential information.
  • Receiving module for:
  • the second walkie-talkie receives a communication request sent by the first walkie-talkie on a public channel, the communication request includes at least a target address and communication parameters, the target address is preset to the identification code of at least one second walkie-talkie, and the communication parameters include a preset channel.
  • the request module is also used to:
  • the second walkie-talkie jumps to the preset channel based on the communication request and sends response information, or the second walkie-talkie jumps to the preset channel based on the communication request and receives the communication data sent by the first walkie-talkie.
  • the prompt module is also used for the second walkie-talkie to display text information according to the communication data.
  • it may also include a timing module for the second walkie-talkie to start timing from jumping to the preset channel, and if it times out, jump to the common channel and end the response.
  • it further includes a conversion module for the first smart terminal to send communication data to the first walkie-talkie;
  • the second walkie-talkie sends the communication data to a second smart terminal.
  • the intercom communication device provided in the embodiment of the present invention can execute the intercom communication method provided in any of the embodiments herein, and has corresponding functional modules and beneficial effects for the execution method.
  • FIG. 13 is a schematic structural diagram of an intercom communication system according to the seventh embodiment of the present invention. This embodiment is applicable to the case of communicating through the intercom communication system. For content not described in detail in this embodiment, reference may be made to the description in any method embodiment herein.
  • the intercom communication system 700 includes a first smart terminal 710, a first intercom 720, a second intercom 730, and a second smart terminal 740.
  • the first smart terminal 710 is used to send communication data to the first walkie-talkie 720.
  • the first walkie-talkie 720 After receiving the communication data, the first walkie-talkie 720 sends a communication request on the common channel according to the communication data.
  • the first walkie-talkie 720 jumps to the preset channel after the communication request is sent, and the first walkie-talkie 720 sends communication data based on the target address on the preset channel.
  • the data packet format of the communication data sent by the first smart terminal 710 and the first walkie-talkie 720 in this embodiment is the same, and the data packet format is determined according to the communication data sent by the first smart terminal 710.
  • the communication request includes at least a target address and a communication parameter, the target address is preset as an identification code of at least one second walkie-talkie, and the communication parameter includes a preset channel
  • the second walkie-talkie 730 automatically jumps to the preset channel after the first walkie-talkie 720 sends a communication request, or the second walkie-talkie 730 enters the preset channel after sending the response message.
  • the first walkie-talkie 720 and the second walkie-talkie 730 are on the same channel, and the second walkie-talkie 730 receives the communication data sent by the first walkie-talkie 730 on the preset channel.
  • the second walkie-talkie 730 After the second walkie-talkie 730 receives the communication data sent by the first walkie-talkie 720, it will send the communication data to the second smart terminal 740.
  • the second smart terminal 740 receives the communication data sent by the second walkie-talkie 730.
  • the embodiment of the present invention through the intercom communication system, after the intercom sends a communication request, a preset channel is established between the intercoms, and only the intercom with the target address set to the identification code can enter the preset channel , Only walkie-talkies in the same preset channel can see the communication data, which solves the insecurity of the intercom communication and realizes the effect of improving the confidentiality of the intercom communication.
  • the embodiment prepares the communication request before sending information each time, it can be directly generated by selecting the sending object through the buddy list, so the target selection of the intercom communication is convenient and the communication method is simple.
  • FIG. 14 is a schematic structural diagram of a walkie-talkie provided by Embodiment 8 of the present invention.
  • the walkie-talkie 800 includes an input device 810, an output device 820, a processor 830, a memory 840, a radio frequency module 850, and an interconnection communication module 860.
  • the number of processors 830 in the walkie-talkie can be one or more.
  • one processor 830 is taken as an example; the input device 810, output device 820, processor 830, memory 840, radio frequency module 850 and interconnection communication in the walkie-talkie
  • the module 860 may be connected through a bus or other methods, and connection through a bus is taken as an example in FIG. 14.
  • the memory 840 can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the intercom communication method in the embodiment of the present invention (for example, the intercom communication device The request module 610, the jump module 620, and the sending module 630).
  • the processor 830 executes various functional applications and data processing of the walkie-talkie by running the software programs, instructions, and modules stored in the memory 840, that is, realizes the aforementioned intercom communication.
  • the memory 840 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal, etc.
  • the memory 840 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the memory 840 may include a memory remotely provided with respect to the processor 830, and these remote memories may be connected to the walkie-talkie through a network. Examples of the above-mentioned network may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input device 810 receives instructions input by the user through the walkie-talkie.
  • the output device 820 displays the communication data to the user in a visual form according to the communication data.
  • the radio frequency module 850 receives or sends communication data to another walkie-talkie 800', and the radio frequency module 850 transmits data between the walkie-talkies.
  • the interconnection communication module 860 receives or sends communication data to the smart terminal.
  • the walkie-talkie can be used to perform the following methods:
  • the first walkie-talkie sends a communication request on a common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to be the identification of at least one second walkie-talkie Code, the communication parameter includes a preset channel;
  • the first walkie-talkie jumps to the preset channel after the communication request is sent;
  • the first walkie-talkie sends communication data to at least one second walkie-talkie based on the target address on the preset channel.
  • the walkie-talkie can be used to perform the following methods:
  • the first smart terminal sends communication data to the first walkie-talkie;
  • the first walkie-talkie sends a communication request on a common channel according to the communication data to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset as The identification code of at least one second walkie-talkie, the communication parameter includes a preset channel;
  • the first walkie-talkie jumps to the preset channel after the communication request is sent;
  • the first walkie-talkie sends communication data to at least one second walkie-talkie based on the target address on the preset channel;
  • the second walkie-talkie sends the communication data to a second smart terminal.
  • a preset channel is established between the walkie-talkies, and only the walkie-talkie whose target address is set to the identification code can enter the preset channel, and only in the same preset channel Only the intercom inside can see the communication data, which solves the insecurity of intercom communication and realizes the effect of improving the confidentiality of the intercom communication.
  • the ninth embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored.
  • the program When executed by a processor, it implements an intercom or intercom communication method as provided in any of the embodiments herein.
  • the method may include:
  • the first walkie-talkie sends a communication request on a common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to be the identification of at least one second walkie-talkie Code, the communication parameter includes a preset channel;
  • the first walkie-talkie jumps to the preset channel after the communication request is sent;
  • the first walkie-talkie sends communication data to at least one second walkie-talkie based on the target address on the preset channel.
  • the method may include:
  • the first smart terminal sends communication data to the first walkie-talkie;
  • the first walkie-talkie sends a communication request on a common channel according to the communication data to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset as The identification code of at least one second walkie-talkie, the communication parameter includes a preset channel;
  • the first walkie-talkie jumps to the preset channel after the communication request is sent;
  • the first walkie-talkie sends communication data to at least one second walkie-talkie based on the target address on the preset channel;
  • the second walkie-talkie sends the communication data to a second smart terminal.
  • the computer-readable storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media.
  • the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium.
  • the computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above.
  • Examples of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and computer-readable program code is carried therein. This propagated data signal can take many forms, including electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the storage medium can be transmitted by any suitable medium, which can include wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
  • the computer program code used to perform the operations herein can be written in one or more programming languages or a combination thereof.
  • the programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, and also include conventional procedures. Programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or terminal.
  • the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider for example, using an Internet service provider to pass Internet connection.
  • a preset channel is established between the walkie-talkies, and only the walkie-talkie whose target address is set to the identification code can enter the preset channel, and only in the same preset channel Only the intercom inside can see the communication data, which solves the insecurity of intercom communication and realizes the effect of improving the confidentiality of the intercom communication.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present document discloses an intercom communication method, device and system, a storage medium, and an intercom, wherein the method comprises: a first intercom sends a communication request on a common channel to control a second intercom to jump to a preset channel, wherein the communication request comprises a target address and communication parameters, the target address is preset as an identification code of the second intercom, and the communication parameters comprise the preset channel; the first intercom jumps to the preset channel after the communication request is sent; and the first intercom sends communication data to the second intercom on the preset channel according to the target address.

Description

一种对讲通讯方法、装置、系统、存储介质和对讲机An intercom communication method, device, system, storage medium and intercom
本公开要求在2019年06月20日提交中国专利局、申请号为201910539117.X的中国专利申请的优先权,以上申请的全部内容通过引用结合在本公开中。This disclosure claims the priority of a Chinese patent application filed with the Chinese Patent Office with an application number of 201910539117.X on June 20, 2019, and the entire content of the above application is incorporated into this disclosure by reference.
技术领域Technical field
本发明实施例涉及通讯技术,例如涉及一种对讲通讯方法、装置、系统、存储介质和对讲机。The embodiment of the present invention relates to communication technology, for example, relates to an intercom communication method, device, system, storage medium, and intercom.
背景技术Background technique
对讲机是一种双向移动通信工具,在不需要任何无线通信网络支持的情况下,就可以在相互之间通话,且没有额外的话费产生,较为适用于相对固定,且需要相互之间频繁通话等应用场景。The walkie-talkie is a two-way mobile communication tool. It can talk to each other without any wireless communication network support, and there is no additional call charge. It is more suitable for relatively fixed and frequent calls between each other. Application scenarios.
相关技术中的对讲机可以通过对讲机上的按键,对讲机的通信频率、频道和音量等通信参数进行设置,将对讲机设置于一个通信频道或频率后,按下语音按键后,即可实现与处于相同通信频道或频率的其它对讲机实现对讲。只要是在同一通信频道或频率上,就能通过对讲机窃听其他对讲机的通讯内容,对于通讯内容的安全性保障低。The walkie-talkie in the related technology can be set through the buttons on the walkie-talkie, the communication frequency, channel and volume of the walkie-talkie and other communication parameters. After the walkie-talkie is set to a communication channel or frequency, after pressing the voice button, the same communication can be achieved. Channel or frequency of other walkie-talkies realize intercom. As long as it is on the same communication channel or frequency, the communication content of other walkie-talkies can be intercepted through the walkie-talkie, and the security of the communication content is low.
发明内容Summary of the invention
本发明实施例提供一种对讲通讯方法、装置、系统和存储介质,以实现对于对讲机之间的通讯数据进行保护。The embodiment of the present invention provides an intercom communication method, device, system and storage medium to realize the protection of communication data between interphones.
第一方面,本发明实施例公开了一种对讲通讯方法,包括:In the first aspect, an embodiment of the present invention discloses an intercom communication method, including:
第一对讲机在公共信道发送通信请求,以控制第二对讲机跳转到预设信道,所述通信请求包括目标地址和通信参数,所述目标地址预先设置为所述第二对讲机的识别码,所述通信参数包括所述预设信道;The first walkie-talkie sends a communication request on a common channel to control the second walkie-talkie to jump to a preset channel. The communication request includes a target address and communication parameters. The target address is preset as the identification code of the second walkie-talkie. The communication parameter includes the preset channel;
所述第一对讲机在所述通信请求发送完成后跳转至所述预设信道;The first walkie-talkie jumps to the preset channel after the communication request is sent;
所述第一对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据。The first walkie-talkie sends communication data to the second walkie-talkie based on the target address on the preset channel.
第二方面,本发明实施例公开了一种对讲通讯方法,包括:In the second aspect, an embodiment of the present invention discloses an intercom communication method, including:
第二对讲机接收第一对讲机在公共信道发送的通信请求,所述通信请求包括目标地址和通信参数,所述目标地址预先设置为所述第二对讲机的识别码, 所述通信参数包括预设信道;The second walkie-talkie receives a communication request sent by the first walkie-talkie on a common channel, the communication request includes a target address and a communication parameter, the target address is preset to the identification code of the second walkie-talkie, and the communication parameter includes a preset channel ;
所述第二对讲机基于所述通信请求跳转至所述预设信道并发送应答信息,或所述第二对讲机基于所述通信请求跳转至所述预设信道并接收所述第一对讲机发送的通讯数据。The second walkie-talkie jumps to the preset channel based on the communication request and sends response information, or the second walkie-talkie jumps to the preset channel based on the communication request and receives the transmission from the first walkie-talkie Communication data.
第三方面,本发明实施例公开了一种对讲通讯方法,包括:In the third aspect, an embodiment of the present invention discloses an intercom communication method, including:
第一智能终端向第一对讲机发送通讯数据;The first smart terminal sends communication data to the first walkie-talkie;
所述第一对讲机根据所述通讯数据在公共信道发送通信请求,以控制第二对讲机跳转到预设信道,所述通信请求包括目标地址和通信参数,所述目标地址预先设置为所述第二对讲机的识别码,所述通信参数包括所述预设信道;The first walkie-talkie sends a communication request on a common channel according to the communication data to control the second walkie-talkie to jump to a preset channel, the communication request includes a target address and communication parameters, and the target address is preset to the first 2. The identification code of the walkie-talkie, the communication parameter includes the preset channel;
所述第一对讲机在所述通信请求发送完成后跳转至所述预设信道;The first walkie-talkie jumps to the preset channel after the communication request is sent;
所述第一对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据;The first walkie-talkie sends communication data to the second walkie-talkie based on the target address on the preset channel;
所述第二对讲机向第二智能终端发送所述通讯数据。The second walkie-talkie sends the communication data to a second smart terminal.
第四方面,本发明实施例公开了一种对讲通讯装置,包括:In a fourth aspect, an embodiment of the present invention discloses an intercom communication device, including:
请求模块,被配置为在公共信道发送通信请求,以控制第二对讲机跳转到预设信道,所述通信请求包括目标地址和通信参数,所述目标地址预先设置为所述第二对讲机的识别码,所述通信参数包括所述预设信道;The request module is configured to send a communication request on a common channel to control the second walkie-talkie to jump to a preset channel, the communication request includes a target address and communication parameters, and the target address is preset as the identification of the second walkie-talkie Code, the communication parameter includes the preset channel;
跳转模块,被配置为在所述通信请求发送完成后跳转至所述预设信道;A jump module configured to jump to the preset channel after the communication request is sent;
发送模块,被配置为在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据。The sending module is configured to send communication data to the second walkie-talkie based on the target address on the preset channel.
第五方面,本发明实施例公开了一种对讲通讯系统,包括:In the fifth aspect, an embodiment of the present invention discloses an intercom communication system, including:
第一对讲机,被配置为根据通讯数据在公共信道发送通信请求,在所述通信请求发送完成后跳转至预设信道,并在所述预设信道基于目标地址发送通讯数据,所述通信请求包括所述目标地址和通信参数,所述目标地址预先设置为第二对讲机的识别码,所述通信参数包括所述预设信道;The first walkie-talkie is configured to send a communication request on a common channel according to the communication data, jump to a preset channel after the communication request is sent, and send communication data on the preset channel based on the target address, the communication request Including the target address and communication parameters, the target address is preset as the identification code of the second walkie-talkie, and the communication parameters include the preset channel;
第一智能终端,被配置为向所述第一对讲机发送所述通讯数据;The first smart terminal is configured to send the communication data to the first walkie-talkie;
所述第二对讲机被配置为接收所述通信请求并跳转到所述预设信道,以在所述预设信道接收所述第一对讲机发送的所述通讯数据;The second walkie-talkie is configured to receive the communication request and jump to the preset channel to receive the communication data sent by the first walkie-talkie on the preset channel;
第二智能终端,被配置为接收所述第二对讲机发送的所述通讯数据。The second smart terminal is configured to receive the communication data sent by the second walkie-talkie.
第六方面,本发明实施例公开了一种对讲机,所述对讲机包括:In a sixth aspect, an embodiment of the present invention discloses a walkie-talkie, the walkie-talkie includes:
一个或多个处理器;One or more processors;
存储器,用于存储一个或多个程序;Memory, used to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明任一实施例所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any embodiment of the present invention.
第七方面,本发明实施例公开了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本文任一实施例所述的方法。In a seventh aspect, an embodiment of the present invention discloses a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method described in any of the embodiments herein is implemented.
附图说明Description of the drawings
图1是本发明实施例一提供的对讲通讯方法的流程图;FIG. 1 is a flowchart of an intercom communication method according to Embodiment 1 of the present invention;
图2是本发明实施例二提供的对讲通讯方法的流程图;FIG. 2 is a flowchart of an intercom communication method according to Embodiment 2 of the present invention;
图3是本发明实施例二提供的对讲通讯方法的流程图;FIG. 3 is a flowchart of an intercom communication method according to Embodiment 2 of the present invention;
图4是本发明实施例二提供的对讲通讯方法的流程图;FIG. 4 is a flowchart of an intercom communication method according to Embodiment 2 of the present invention;
图5是本发明实施例二提供的对讲通讯方法的流程图;FIG. 5 is a flowchart of an intercom communication method according to Embodiment 2 of the present invention;
图6是本发明实施例二提供的对讲通讯方法的流程图;FIG. 6 is a flowchart of an intercom communication method according to Embodiment 2 of the present invention;
图7是本发明实施例三提供的对讲通讯方法的流程图;FIG. 7 is a flowchart of an intercom communication method provided by Embodiment 3 of the present invention;
图8是本发明实施例三提供的对讲通讯方法的流程图;FIG. 8 is a flowchart of an intercom communication method provided by Embodiment 3 of the present invention;
图9是本发明实施例三提供的对讲通讯方法的流程图;FIG. 9 is a flowchart of an intercom communication method provided by Embodiment 3 of the present invention;
图10是本发明实施例四提供的对讲通讯方法的流程图;FIG. 10 is a flowchart of an intercom communication method provided by Embodiment 4 of the present invention;
图11是本发明实施例五提供的一种对讲通讯方法的流程图;FIG. 11 is a flowchart of an intercom communication method according to Embodiment 5 of the present invention;
图12是本发明实施例六提供的一种对讲通讯装置的结构示意图;12 is a schematic structural diagram of an intercom communication device according to Embodiment 6 of the present invention;
图13是本发明实施例七提供的一种对讲通讯系统的结构示意图;FIG. 13 is a schematic structural diagram of an intercom communication system provided by Embodiment 7 of the present invention;
图14为本发明实施例八提供的一种对讲机的结构示意图。FIG. 14 is a schematic structural diagram of a walkie-talkie provided by Embodiment 8 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本文作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本文,而非对本文的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本文相关的部分而非全部结构。The text will be further described in detail below in conjunction with the drawings and embodiments. It can be understood that the specific embodiments described here are only used to explain the text, but not to limit the text. In addition, it should be noted that, for ease of description, only a part of the structure related to this document is shown in the drawings instead of all of the structure.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时处理可以被终止,但是还可以具有未包括在附图中的附加步骤。处理可以对应于方法、函数、规程、子例程、子程序等 等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart describes the steps as sequential processing, many of the steps can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the steps can be rearranged. The processing may be terminated when its operation is completed, but may also have additional steps not included in the drawings. Processing can correspond to methods, functions, procedures, subroutines, subroutines, etc.
此外,术语“第一”、“第二”等可在本文中用于描述各种方向、动作、步骤或元件等,但这些方向、动作、步骤或元件不受这些术语限制。这些术语仅用于将第一个方向、动作、步骤或元件与另一个方向、动作、步骤或元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一速度差值为第二速度差值,且类似地,可将第二速度差值称为第一速度差值。第一速度差值和第二速度差值两者都是速度差值,但其不是同一速度差值。术语“第一”、“第二”等而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本文的描述中,“多个”、“批量”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first", "second", etc. may be used herein to describe various directions, actions, steps or elements, etc., but these directions, actions, steps or elements are not limited by these terms. These terms are only used to distinguish a first direction, action, step or element from another direction, action, step or element. For example, without departing from the scope of the present application, the first speed difference may be referred to as the second speed difference, and similarly, the second speed difference may be referred to as the first speed difference. Both the first speed difference and the second speed difference are speed differences, but they are not the same speed difference. The terms "first", "second", etc. cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of these features. In the description herein, "multiple" and "batch" mean at least two, such as two, three, etc., unless otherwise specifically defined.
实施例一Example one
图1是本发明实施例一提供的对讲通讯方法的流程图,本实施例可适用于对讲机之间通讯数据传输的情况,该方法可以由对讲通讯装置来执行,包括如下步骤:Fig. 1 is a flow chart of the intercom communication method provided in the first embodiment of the present invention. This embodiment is applicable to the communication data transmission between interphones. The method can be executed by the intercom communication device and includes the following steps:
S110、第一对讲机在公共信道发送通信请求,以控制至少一个第二对讲机跳转到预设信道,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道;S110. The first walkie-talkie sends a communication request on a common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to at least one second walkie-talkie The identification code of, the communication parameter includes a preset channel;
需要说明的是,公共信道是指包括所有对讲机的信道,所有对讲机都会处于该公共信道中。It should be noted that the common channel refers to a channel including all walkie-talkies, and all walkie-talkies will be in the common channel.
通信请求是指需要跟其他对讲机进行通讯时发送的请求,该通讯请求中至少包括目标地址和通信参数,“至少”则说明目标地址和通信参数是必须的,但是通讯请求还可以包括其他内容,例如发送地址、发送时间等,可以根据需要增加,以实现通信请求中包含内容的丰富性。A communication request refers to a request sent when it needs to communicate with other walkie-talkies. The communication request includes at least the target address and communication parameters. "At least" means that the target address and communication parameters are necessary, but the communication request can also include other content. For example, the sending address, sending time, etc., can be increased as needed to realize the richness of the content contained in the communication request.
目标地址是指能定位到目标对讲机的地址,目标对讲机是需要进行通讯的对讲机。示例性地,目标地址可以由应用层提供,可选的,目标地址的计算公式可以是由关联或使用对讲机的用户的身份识别码生成7位的数字,比如1234567,然后转成16进制0x12D687生成3个字节的数据。The target address refers to the address that can locate the target walkie-talkie. The target walkie-talkie is the walkie-talkie that needs to communicate. Exemplarily, the target address can be provided by the application layer. Optionally, the calculation formula of the target address can be a 7-digit number generated from the identification code of the user associated or using the walkie-talkie, such as 1234567, and then converted into hexadecimal 0x12D687 Generate 3 bytes of data.
通信参数包括预设信道,预设信道是指对讲机之间为了只与目标对讲机进行通讯的建立的通信信道。示例性地,A对讲机想和B对讲机进行通讯,则A对讲机和B对讲机进入预设信道,A与B就能在该预设信道中进行通讯,不在 该预设信道中的对讲机无法看到A对讲机与B对讲机的通讯内容。信道的数量可以是多个,以满足不同对讲机之间的通讯,本实施例的信道可以包括302个。The communication parameters include a preset channel. The preset channel refers to a communication channel established between walkie-talkies to communicate with the target walkie-talkie only. Exemplarily, if walkie-talkie A wants to communicate with walkie-talkie B, walkie-talkie A and walkie-talkie B enter the preset channel, A and B can communicate in the preset channel, and walkie-talkies that are not in the preset channel cannot see A The communication content of the walkie-talkie and the B walkie-talkie. The number of channels can be multiple to satisfy communication between different walkie-talkies. The channel in this embodiment can include 302 channels.
在一实施例中,每个对讲机上都预先存储一个用户名或用户身份对应的识别码,且每个对讲机的识别码都是不一致的。因此通过识别码,能确定该对讲机是哪一个对讲机。目标地址预先设置为至少一个第二对讲机的识别码,则说明目标地址可以设置为一个识别码,也可以设置为多个识别码。当目标地址设置为一个识别码时,则控制该识别码的对讲机跳转到预设信道,那么该预设信道中只有两个对讲机。当目标地址设置为多个识别码时,则控制多个识别码对应的多个对讲机进入预设通道,在该预设通道内的多个对讲机可以多方通讯,例如本实施例的多个对讲机可以通过一对多发送信息进行全聊互动。本实施例中所述第一对讲机在公共信道发送通信请求可以是基于第一对讲机预先存储的好友列表或群名生成的,好友列表中的好友名在添加好友的过程中预先设置为好友使用的对讲机的识别码。In one embodiment, each walkie-talkie pre-stores an identification code corresponding to a user name or user identity, and the identification code of each walkie-talkie is inconsistent. Therefore, through the identification code, it is possible to determine which walkie-talkie the walkie-talkie is. The target address is preset to the identification code of at least one second walkie-talkie, which means that the target address can be set to one identification code or multiple identification codes. When the target address is set to an identification code, the walkie-talkie that controls the identification code jumps to the preset channel, then there are only two walkie-talkies in the preset channel. When the target address is set to multiple identification codes, the multiple walkie-talkies corresponding to the multiple identification codes are controlled to enter the preset channel, and multiple walkie-talkies in the preset channel can communicate with multiple parties. For example, the multiple walkie-talkies in this embodiment can One-to-many sending messages for full chat interaction. The communication request sent by the first walkie-talkie in the public channel in this embodiment may be generated based on the buddy list or group name pre-stored by the first walkie-talkie, and the buddy names in the buddy list are preset to be used by friends during the process of adding friends. The identification code of the walkie-talkie.
在一代替实施例中,对讲机上的识别码可以是由用户确定的,与对讲机的标识无关,根据用户身份决定识别码。每个用户对应的识别码可以是固定的,也可以不是固定的,可选地,每个用户对应的识别码是固定的。示例性地,A用户对应的识别码为1234,B用户对应的识别码为4321,则A用户使用C对讲机时,C对讲机对应的标识码设置为1234,B用户使用D对讲机时,D对讲机对应的标识码设置为4321。若A用户使用D对讲机,那么D对讲机的标识码又会设置成1234。可选的,若没有用户使用对讲机时,该对讲机没有识别码。可选的,在对讲机中设置一存储芯片,用户使用对讲机时,通过手机蓝牙连接对讲机后将手机中的用户名或用户ID发送至对讲机,对讲机通过存储芯片预先存储用户名或用户ID作为对讲机的识别码,从而确定该对讲机对应的识别码,当用户不在使用对讲机后,断开手机蓝牙和对讲机之间的连接,此时对讲机将存储芯片中存储的作为对讲机的识别码的用户名或用户ID删除,对讲机进入待机状态。其他可以实现对讲机识别用户身份的方法都可以进行代替。在本代替实施例中,对讲机上的识别码根据使用者的用户身份ID决定,确保用户使用不同对讲机或同一对讲机被不同用户使用时,通讯数据都可以被用户身份ID对应的用户接收到,通讯更加方便。In an alternative embodiment, the identification code on the walkie-talkie may be determined by the user, regardless of the identification of the walkie-talkie, and the identification code is determined according to the user's identity. The identification code corresponding to each user may be fixed or not. Optionally, the identification code corresponding to each user is fixed. Exemplarily, the identification code corresponding to user A is 1234, and the identification code corresponding to user B is 4321. When user A uses intercom C, the corresponding identification code of intercom C is set to 1234, and when user B uses intercom D, the corresponding identification code of D intercom is The identification code is set to 4321. If user A uses walkie-talkie D, the identification code of walkie-talkie D will be set to 1234. Optionally, if no user uses the walkie-talkie, the walkie-talkie has no identification code. Optionally, set a memory chip in the walkie-talkie. When the user uses the walkie-talkie, the user name or user ID in the mobile phone will be sent to the walkie-talkie after connecting to the walkie-talkie through the mobile phone’s Bluetooth. The walkie-talkie pre-stores the user name or user ID as the walkie-talkie’s Identification code to determine the identification code corresponding to the walkie-talkie. When the user is not using the walkie-talkie, disconnect the Bluetooth connection between the mobile phone and the walkie-talkie. At this time, the walkie-talkie will store the user name or user ID stored in the chip as the identification code of the walkie-talkie Delete, the walkie-talkie enters the standby state. Other methods that can realize the identification of the user by the walkie-talkie can be substituted. In this alternative embodiment, the identification code on the walkie-talkie is determined according to the user ID of the user, ensuring that when the user uses different walkie-talkies or the same walkie-talkie is used by different users, the communication data can be received by the user corresponding to the user ID. More convenient.
S120、第一对讲机在所述通信请求发送完成后跳转至所述预设信道;S120: The first walkie-talkie jumps to the preset channel after sending the communication request;
在控制至少一个第二对讲机跳转到预设信道后,第一对讲机也要跳转到该 预设信道,只有在同一预设信道内的对讲机才可以进行通讯。After controlling at least one second walkie-talkie to jump to the preset channel, the first walkie-talkie will also jump to the preset channel. Only the walkie-talkies in the same preset channel can communicate.
S130,第一对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据。S130: The first walkie-talkie sends communication data to at least one second walkie-talkie on the preset channel based on the target address.
需要说明的是,通讯数据是指第一对讲机向第二对讲机发送的数据。示例性地,该通讯数据可以包括文字、图片、语音、视频、文件等,可以根据不同需求发送不同的通讯数据。如果目标地址设置为是一个识别码,则第一对讲机可以根据目标地址在预设通道内向一个识别码对应的对讲机发送通讯数据。如果目标地址设置为多个识别码,则第一对讲机可以根据目标地址在预设通道内向多个识别码对应的多个对讲机发送通讯数据。It should be noted that the communication data refers to the data sent by the first walkie-talkie to the second walkie-talkie. Exemplarily, the communication data may include text, pictures, voice, video, files, etc., and different communication data may be sent according to different needs. If the target address is set as an identification code, the first walkie-talkie can send communication data to the walkie-talkie corresponding to an identification code in the preset channel according to the target address. If the target address is set to multiple identification codes, the first walkie-talkie can send communication data to multiple walkie-talkies corresponding to the multiple identification codes in the preset channel according to the target address.
本发明实施例的技术方案,通过对讲机发送通信请求后,在对讲机之间建立一个预设信道,而且只有目标地址设置为识别码对应的对讲机才可以进入该预设通道,只有在同一预设信道内的对讲机才能看到通讯数据,解决了对讲通讯间的不安全性,实现提高对讲通讯内容保密性的效果。在一实施例中,由于本实施例每次发送信息前准备通信请求可以直接通过好友列表选择发送的对象来生成,因此对讲通讯的目标选择方便且通讯方式简单。In the technical solution of the embodiment of the present invention, after a communication request is sent through the walkie-talkie, a preset channel is established between the walkie-talkies, and only the walkie-talkie whose target address is set to the identification code can enter the preset channel, and only in the same preset channel Only the intercom inside can see the communication data, which solves the insecurity of intercom communication and realizes the effect of improving the confidentiality of the intercom communication. In an embodiment, since the communication request prepared before sending the message in this embodiment can be directly generated by selecting the sender from the friend list, the target selection of the intercom communication is convenient and the communication method is simple.
实施例二Example two
图2是本发明实施例二提供的一种对讲通讯方法的流程图。本实施例是在上述技术方案的进一步细化,适用于对讲机之间通讯数据传输的场景。该方法可以由对讲通讯装置执行,包括:Fig. 2 is a flowchart of an intercom communication method according to the second embodiment of the present invention. This embodiment is a further refinement of the above technical solution, and is suitable for the scenario of communication data transmission between walkie-talkies. The method can be executed by an intercom communication device and includes:
S210、第一对讲机在公共信道发送通信请求,以控制至少一个第二对讲机跳转到预设信道,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道;S210. The first walkie-talkie sends a communication request on the common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to at least one second walkie-talkie The identification code of, the communication parameter includes a preset channel;
S220、第一对讲机在所述通信请求发送完成后跳转至所述预设信道;S220: The first walkie-talkie jumps to the preset channel after sending the communication request.
S230、第一对讲机判断是否接收到所述至少一个第二对讲机从预设信道发送的应答信息;S230: The first walkie-talkie judges whether the response information sent by the at least one second walkie-talkie from the preset channel is received;
需要说明的是,应答信息是指对讲机确认进入预设通道的应答,示例性地,可以是如“XX对讲机已加入预设信道”等字样,XX代表一对讲机,可以根据需求设置。如果第一对讲机收到应答信息,则说明第二对讲机已经进入该预设通道,可以向第二对讲机发送通讯数据。同样的,如果目标地址设置为一个识别码,则最多只有一个对讲机发送一个应答信息,如果对讲机不进入预设信道则没有应答信息。如果目标地址设置为多个识别码,示例性地,为10个识别码, 则最多只有10个识别码对应的对讲机发送10个应答信息,替代实施例中也可以省略发送应答信息的步骤。It should be noted that the response message refers to the response of the walkie-talkie confirming to enter the preset channel. For example, it can be words such as "XX walkie-talkie has joined the preset channel". XX represents a two-way radio, which can be set according to requirements. If the first walkie-talkie receives the response message, it means that the second walkie-talkie has entered the preset channel and can send communication data to the second walkie-talkie. Similarly, if the target address is set to an identification code, at most only one walkie-talkie can send a response message. If the walkie-talkie does not enter the preset channel, there is no response message. If the target address is set to multiple identification codes, for example, 10 identification codes, only the walkie-talkie corresponding to 10 identification codes can send 10 response messages at most, and the step of sending response messages can also be omitted in the alternative embodiment.
S240、第一对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据。S240. The first walkie-talkie sends communication data to at least one second walkie-talkie on the preset channel based on the target address.
如图3所示,在代替实施例中,步骤S210可以代替为:As shown in FIG. 3, in an alternative embodiment, step S210 can be replaced by:
S211、第一对讲机在公共信道向第三对讲机发送通信请求,以控制第三对讲机控制至少一个第二对讲机跳转到预设信道;S211: The first walkie-talkie sends a communication request to the third walkie-talkie on the common channel to control the third walkie-talkie to control at least one second walkie-talkie to jump to a preset channel;
需要说明的是,当第一对讲机和第二对讲机的距离太远,无法正常建立通讯时,则可以通过第三对讲机建立正常通讯。示例性地,第一对讲机在预设范围内(预设范围可以是1公里,也可以是2公里,根据对讲机的硬件确定能接受的范围)寻找第三对讲机,此第三对讲机和第一对讲机和第二对讲机的距离均在预设范围内。通过第三对讲机,将第一对讲机桥接至第二对讲机。第一对讲机先将通信请求或通讯数据发送给第三对讲机,第三对讲机再将通信请求或通信数据发送给第二对讲机,从而增大第一对讲机和第二对讲机的通讯距离。可选的,也可以加入第四对讲机、第五对讲机使得通讯范围更大。可选的,当第三对讲机处于工作状态时,第一对讲机发送的通信请求或通讯数据就会缓存在第一对讲机上,并持续监测第三对讲机的工作状态。当第三对讲机处于非工作状态时,第一对讲机就将缓存的通信请求或通讯数据发送至第三对讲机,从而控制第三对讲机将通信请求和通讯数据发送至第二对讲机。It should be noted that when the distance between the first walkie-talkie and the second walkie-talkie is too far to establish communication normally, the third walkie-talkie can be used to establish normal communication. Exemplarily, the first walkie-talkie searches for a third walkie-talkie within a preset range (the preset range can be 1 km or 2 km, and the acceptable range is determined according to the hardware of the walkie-talkie), the third walkie-talkie and the first walkie-talkie The distance to the second walkie-talkie is within the preset range. Through the third walkie-talkie, bridge the first walkie-talkie to the second walkie-talkie. The first walkie-talkie first sends the communication request or communication data to the third walkie-talkie, and the third walkie-talkie sends the communication request or communication data to the second walkie-talkie, thereby increasing the communication distance between the first walkie-talkie and the second walkie-talkie. Optionally, a fourth walkie-talkie and a fifth walkie-talkie can also be added to make the communication range wider. Optionally, when the third walkie-talkie is in a working state, the communication request or communication data sent by the first walkie-talkie will be cached on the first walkie-talkie, and the working state of the third walkie-talkie will be continuously monitored. When the third walkie-talkie is in a non-working state, the first walkie-talkie sends the buffered communication request or communication data to the third walkie-talkie, thereby controlling the third walkie-talkie to send the communication request and communication data to the second walkie-talkie.
相应的,当步骤S210替换为步骤S211时,步骤S240可以替换为:Correspondingly, when step S210 is replaced with step S211, step S240 can be replaced with:
S241、第一对讲机在所述预设信道向第三对讲机发送通讯数据,以控制第三对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据。S241. The first walkie-talkie sends communication data to a third walkie-talkie on the preset channel to control the third walkie-talkie to send communication data to at least one second walkie-talkie on the preset channel based on the target address.
需要说明的是,第一对讲机和第三对讲机的预设信道,以及第三对讲机和第二对讲机的预设信道为一个预设信道。为一个预设信道时,第一对讲机和第二对讲机可以通过第三对讲机在一个预设信道内进行通讯。可选的,也可以为不同预设信道。为不同预设信道时,示例性的,可以在第一对讲机和第三对讲机之间建立一个预设信道,在通讯数据传输给第三对讲机后,对讲机再与第二对讲机建立另一个预设信道,从而在另一个预设信道将通讯数据传输给第二对讲机。可选的,选择一个预设信道,可以降低通讯过程的资源浪费。It should be noted that the preset channels of the first walkie-talkie and the third walkie-talkie, and the preset channels of the third walkie-talkie and the second walkie-talkie are one preset channel. When it is a preset channel, the first walkie-talkie and the second walkie-talkie can communicate in a preset channel through the third walkie-talkie. Optionally, it can also be different preset channels. For different preset channels, for example, a preset channel can be established between the first walkie-talkie and the third walkie-talkie, and after the communication data is transmitted to the third walkie-talkie, the walkie-talkie will establish another preset channel with the second walkie-talkie , So as to transmit the communication data to the second walkie-talkie on another preset channel. Optionally, selecting a preset channel can reduce resource waste in the communication process.
如图4所示,在另一个代替实施例中,步骤S240还可以代替为:As shown in FIG. 4, in another alternative embodiment, step S240 can also be replaced by:
S242、当第一对讲机判断接收到所述至少一个第二对讲机从预设信道发送的应答信息后,第一对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据,否则,第一对讲机取消在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据。S242. After the first walkie-talkie determines that the response information sent by the at least one second walkie-talkie from the preset channel is received, the first walkie-talkie sends communication data to the at least one second walkie-talkie on the preset channel based on the target address. Otherwise, the first walkie-talkie cancels sending communication data to at least one second walkie-talkie based on the target address on the preset channel.
需要说明的是,只有当第一对讲机接收到应答信息,才说明第二对讲机进入了预设信道,此时第一对讲机发送的通讯数据才能被第二对讲机接收到。如果没有接收到应答信息,说明第二对讲机没有进入预设信道,此时第一对讲机发送的通讯数据不能被第二对讲机接收到,所以要取消通讯数据的发送,否则会占用预设信道的资源。It should be noted that only when the first walkie-talkie receives the response message, the second walkie-talkie has entered the preset channel, and the communication data sent by the first walkie-talkie can be received by the second walkie-talkie. If the response message is not received, it means that the second walkie-talkie has not entered the preset channel. At this time, the communication data sent by the first walkie-talkie cannot be received by the second walkie-talkie, so cancel the communication data transmission, otherwise it will occupy the resources of the preset channel .
如图5所示,在另一代替实施例中,步骤S230还可以替换为:As shown in FIG. 5, in another alternative embodiment, step S230 can also be replaced with:
S231、所述通信请求还包括机密信息,基于所述机密信息定义的加密方式对所述通讯数据进行加密。S231. The communication request further includes confidential information, and the communication data is encrypted based on an encryption method defined by the confidential information.
需要说明的是,机密信息可以是将通讯数据进行加密的规则或方法。对通讯数据进行加密处理,能够提高通讯数据的安全性。相应的,步骤S240也要对加密的信息进行解密才能被第二对讲机获取。It should be noted that confidential information can be a rule or method for encrypting communication data. Encrypting communication data can improve the security of communication data. Correspondingly, in step S240, the encrypted information must be decrypted before it can be acquired by the second walkie-talkie.
如图6所示,可选的,在步骤S240之后,还可以包括:As shown in FIG. 6, optionally, after step S240, it may further include:
S250、第一对讲机判断是否从预设信道接收至少一个第二对讲机发送的数据接收确认信息;S250: The first walkie-talkie judges whether to receive data reception confirmation information sent by at least one second walkie-talkie from a preset channel;
需要说明的是,确认信息是指确认第二对讲机接收到第一对讲机发送通讯数据的信号。第一对讲机能接收到确认信息,则说明第二对讲机接收到了第一对讲机发送的通讯数据,则执行步骤S260、则进行数据发送正常的提示。示例性的,数据发送正常的提示可以是“对方已收到通讯数据”,此处不做显示。It should be noted that the confirmation message refers to the confirmation that the second walkie-talkie receives the signal of the communication data sent by the first walkie-talkie. If the first walkie-talkie can receive the confirmation message, it means that the second walkie-talkie has received the communication data sent by the first walkie-talkie, and step S260 is executed to prompt that the data transmission is normal. Exemplarily, the prompt that the data is sent normally may be "the other party has received the communication data", which is not displayed here.
如果第一对讲机不能接收到确认信息,则说明第二对讲机没有接收到通讯数据,则执行S270、则进行数据发送失败的提示。示例性的,数据发送失败的提示可以是“对方未收到通讯数据”。If the first walkie-talkie cannot receive the confirmation message, it means that the second walkie-talkie has not received the communication data, and S270 is executed to prompt the data transmission failure. Exemplarily, the prompt of data transmission failure may be "the other party did not receive communication data".
可选的,通讯数据或通讯请求还包括,数据头、发送地址、数据类型、数据长度、加密信息、校验和数据中的一项或多项。Optionally, the communication data or communication request further includes one or more of the data header, the sending address, the data type, the data length, the encryption information, and the checksum data.
在一实施例中,数据头为固定值,比如:16进制的0x5a。发送地址也就是第一对讲机的地址,可以采用第一对讲的识别码(Identity,ID)。第一对讲机的ID计算公式可以是由用户身份识别码或用户名生成7位的数字,比如1234567,然后转成16进制0x12D687,生成3个字节的数据。数据类型可以包括通信引导、 文字数据、语音数据、SOS数据、通信数据等。可以根据不同的数据类型,对应不同的数据执行不同的操作。示例性的,对于文字数据采用低速传输,对于语音数据采用高速传输,可以根据需要设置。数据长度可以包括2个方面,数据协议部分和用户数据部分。加密信息作为后期AES128二次加密使用。在发送通讯数据时要先校验通讯数据的有效性。数据是指用户数据,可选的,数据不超过120个字节,已降低通讯过程的压力。In one embodiment, the data header is a fixed value, such as 0x5a in hexadecimal notation. The sending address is the address of the first intercom, and the identification code (Identity, ID) of the first intercom can be used. The ID calculation formula of the first walkie-talkie can be a 7-digit number generated from the user identification code or user name, such as 1234567, and then converted to hexadecimal 0x12D687 to generate 3 bytes of data. Data types may include communication guidance, text data, voice data, SOS data, communication data, and so on. You can perform different operations for different data according to different data types. Exemplarily, low-speed transmission is used for text data, and high-speed transmission is used for voice data, which can be set as required. The data length can include two aspects, the data protocol part and the user data part. The encrypted information is used as a secondary AES128 encryption. When sending communication data, first verify the validity of the communication data. Data refers to user data, optional, the data does not exceed 120 bytes, which has reduced the pressure of the communication process.
本发明实施例的技术方案,通过在发送通讯数据前增加第一对讲机是否接收到应答信息的判断,在第二对讲机确认以后才会进入预设通道,防止用户恶意发送通讯请求使得第二对讲机进入预设通道后发送危险通讯数据,提高了通讯过程安全性的效果。In the technical solution of the embodiment of the present invention, by adding the judgment of whether the first walkie-talkie receives the response information before sending the communication data, it will enter the preset channel after the second walkie-talkie confirms, preventing the user from maliciously sending a communication request to make the second walkie-talkie enter The dangerous communication data is sent after the channel is preset, which improves the safety of the communication process.
实施例三Example three
图7是本发明实施例三提供的一种对讲通讯方法的流程图,本实施例在上述实施例的基础上进一步改动,适用于发送请求之前的场景。如图7所示,该方法可以由对讲通讯装置执行,包括:Fig. 7 is a flow chart of an intercom communication method provided in the third embodiment of the present invention. This embodiment is further modified on the basis of the above-mentioned embodiment, and is suitable for a scenario before sending a request. As shown in Figure 7, the method can be executed by an intercom communication device, including:
S310、第一对讲机从好友列表中选择需要呼叫的好友名或群名;S310. The first walkie-talkie selects the friend name or group name to be called from the friend list;
在具体实现中,通过验证的好友或群,会在好友列表里面显示。在需要进行通讯时,在好友列表里选择需要进行的好友名或群名,进入同一预设通道后,就能进行通讯。In a specific implementation, the verified friends or groups will be displayed in the friends list. When you need to communicate, select the name of your friend or group in the friend list, and then you can communicate after entering the same preset channel.
S320、获取与所述好友名或群名对应的预先设定的一个或多个第二对讲机的识别码;S320. Obtain one or more preset identification codes of the second walkie-talkie corresponding to the friend name or group name;
本实施例中,获取一个或多个第二对讲机的识别码作为目标地址,本实施例第二对讲机的识别码的是通过被选择的好友名或群名来预先设定的。In this embodiment, the identification code of one or more second walkie-talkies is acquired as the target address, and the identification code of the second walkie-talkie in this embodiment is preset by the selected friend name or group name.
需要说明的是,好友名和群名是为了方便在需要进行通讯时进行目标查找。但在进行通讯时,还是需要通过对讲机的识别码才能建立同一预设信道进行通讯数据的传输。通过将好友名或群名预先关联对讲机的识别码,能方便通讯时进行查找。本实施例中好友列表中的好友名在添加好友的过程中预先关联好友使用的对讲机的识别码。It should be noted that the friend name and group name are used to facilitate target search when communication is required. However, when communicating, the identification code of the walkie-talkie is still needed to establish the same preset channel for communication data transmission. By pre-associating the friend's name or group name with the identification code of the walkie-talkie, it is convenient to search during communication. In this embodiment, the name of the friend in the friend list is pre-associated with the identification code of the walkie-talkie used by the friend during the process of adding the friend.
S330、根据所述一个或多个第二对讲机的识别码选择一个预设信道;S330. Select a preset channel according to the identification code of the one or more second walkie-talkies;
需要说明的是,在进行通讯数据传输之前,是需要对讲机在同一预设信道里才能进行。因此,根据对讲机的识别码选择一个预设信道,对讲机之间的通讯才能实现。本实施例中,如果通讯的对象较少(只和一个第二对讲机通讯) 可以选择低速信道作为预设信道,如果通讯的对象多(和多个第二对讲机群聊通讯)可以选择高速信道作为预设信道。It should be noted that before the communication data transmission, the walkie-talkie needs to be in the same preset channel. Therefore, only by selecting a preset channel according to the identification code of the two-way radio can the communication between the two-way radios be realized. In this embodiment, if there are few communication objects (only communicating with one second walkie-talkie), the low-speed channel can be selected as the preset channel. If there are many communication objects (communication with multiple second walkie-talkies), the high-speed channel can be selected as Preset channels.
S340、根据所述一个或多个第二对讲机的识别码以及所述预设信道生成所述通信请求;S340: Generate the communication request according to the identification code of the one or more second walkie-talkies and the preset channel;
S350、第一对讲机在公共信道发送通信请求,以控制至少一个第二对讲机跳转到预设信道,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道;S350. The first walkie-talkie sends a communication request on a common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to at least one second walkie-talkie The identification code of, the communication parameter includes a preset channel;
S360、第一对讲机在所述通信请求发送完成后跳转至所述预设信道;S360. The first walkie-talkie jumps to the preset channel after sending the communication request.
S370、第一对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据。S370. The first walkie-talkie sends communication data to at least one second walkie-talkie on the preset channel based on the target address.
如图8所示,可选的,在步骤S330之后,还可以包括:As shown in FIG. 8, optionally, after step S330, it may further include:
S331、第一对讲机跳转至被选择的预设信道进行占用侦测;S331. The first walkie-talkie jumps to the selected preset channel for occupation detection;
需要说明的是,由于使用对讲机的人数较多,信道的数量有限,请求通讯选择的预设信道不一定就是可使用的。预设信道被占用时,其他的对讲机就无法使用该预设信道。因此在第一对讲机选择了预设信道后为了防止不能使用的情况出现,预先跳转至所述预设信道进行占用侦测。示例性地,预设信道1被占用时,其他对讲机无法再进入预设信道1,只有预设信道1使用完成后才可以进入。如果第一对讲机能跳转至该预设信道,则说明该预设信道没有被占用,可以进行使用。否则无法使用。It should be noted that due to the large number of people using walkie-talkies and the limited number of channels, the preset channel requested for communication may not be usable. When the preset channel is occupied, other walkie-talkies cannot use the preset channel. Therefore, after the first walkie-talkie selects the preset channel, in order to prevent unavailability, it jumps to the preset channel in advance to perform occupation detection. Exemplarily, when preset channel 1 is occupied, other walkie-talkies can no longer enter preset channel 1, and can only enter after preset channel 1 is used. If the first intercom can jump to the preset channel, it means that the preset channel is not occupied and can be used. Otherwise it cannot be used.
S332、如果被选择的预设信道被占用,则第一对讲机选择另一个预设信道;S332: If the selected preset channel is occupied, the first intercom selects another preset channel;
需要说明的是,预设信道被占用、则无法使用,因此需要选择另一个预设信道。另一个预设信道没有被占用时才可以进行使用。替代实施例中,预设信道的选择可以通过随机算法自动确定。It should be noted that if the preset channel is occupied, it cannot be used, so another preset channel needs to be selected. The other preset channel can only be used when it is not occupied. In an alternative embodiment, the selection of the preset channel can be automatically determined by a random algorithm.
在代替实施例中,步骤S331和步骤S332还可以替换为:In an alternative embodiment, step S331 and step S332 can also be replaced with:
所述通信参数还包括通信速度,根据通讯数据的不同类型设定所述通信速度,所述通讯数据的类型包括:通信引导数据、文字数据、语音数据以及SOS数据中的一种或多种。The communication parameter also includes a communication speed. The communication speed is set according to different types of communication data. The type of communication data includes one or more of communication guide data, text data, voice data, and SOS data.
需要说明的是,通信速度是指发送通讯数据的速度。不同的通讯数据类型,对于通讯速度的要求也不一致。文字数据可能需要的通讯速度较低,因为数据长度短。语音数据可能需要的通讯速度较高。通讯速度的高低可以根据需要设置。It should be noted that the communication speed refers to the speed of sending communication data. Different communication data types have different requirements for communication speed. Text data may require a lower communication speed because of the short data length. Voice data may require a higher communication speed. The communication speed can be set as required.
如图9所示,可选的、在步骤S310之前,还可以包括:As shown in FIG. 9, optionally, before step S310, it may further include:
S301、接收从第一对讲机输入的好友名或群名;S301. Receive the friend name or group name input from the first walkie-talkie;
需要说明的是,好友名是和对讲机的识别码进行关联的。通过好友名就可以找到与该好友名关联的识别码的对讲机。本实施例中好友名对应的好友身份识别码预先设置为对讲机的识别码。It should be noted that the friend name is associated with the identification code of the walkie-talkie. The walkie-talkie with the identification code associated with the friend's name can be found through the friend's name. In this embodiment, the friend identification code corresponding to the friend name is preset as the identification code of the walkie-talkie.
在一实施例中,群名可以对应多个好友名。In an embodiment, the group name may correspond to multiple friend names.
S302、第一对讲机根据所述好友名或群名生成好友添加请求,并在公共信道发送所述好友添加请求;S302: The first walkie-talkie generates a friend addition request according to the friend name or group name, and sends the friend addition request on a public channel;
S303、第一对讲机在公共信道接收第二对讲机发送的好友确认信息以完成好友添加动作,所述好友确认信息包括第二对讲机的识别码。S303: The first walkie-talkie receives the friend confirmation information sent by the second walkie-talkie on the public channel to complete the friend addition action, where the friend confirmation information includes the identification code of the second walkie-talkie.
本发明实施例的技术方案,通过在发送通信请求之前增加添加好友名或群名的步骤,使得只有好友列表中的好友或群名才能建立预设通道,不是列表里的好友名或群名无法建立同一预设信道完成快速通讯,大大方便了对讲通讯使用。The technical solution of the embodiment of the present invention adds a step of adding a friend name or group name before sending a communication request, so that only friends or group names in the friend list can establish a preset channel, and not a friend or group name in the list. Establish the same preset channel to complete fast communication, which greatly facilitates the use of intercom communication.
实施例四Example four
图10是本发明实施例四提供的对讲通讯方法的流程图。本实施例是在上述技术方案的进一步细化,适用于对讲机接收通讯数据的场景,该方法可以由对讲通讯装置执行,包括:FIG. 10 is a flowchart of an intercom communication method provided by Embodiment 4 of the present invention. This embodiment is a further refinement of the above-mentioned technical solution, and is suitable for a scenario where a walkie-talkie receives communication data. The method can be executed by an intercom communication device and includes:
S410、第二对讲机接收第一对讲机在公共信道发送的通信请求,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道;S410. The second walkie-talkie receives a communication request sent by the first walkie-talkie on a common channel, where the communication request includes at least a target address and communication parameters, the target address is preset to the identification code of at least one second walkie-talkie, and the communication parameters include Preset channel
需要说明的是,在第一对讲机发送通信请求后,相应的,第二对讲机要接收第一对讲机发送的通信请求。It should be noted that, after the first walkie-talkie sends the communication request, the second walkie-talkie must receive the communication request sent by the first walkie-talkie accordingly.
S420、第二对讲机基于所述通信请求跳转至所述预设信道并发送应答信息;S420. The second walkie-talkie jumps to the preset channel based on the communication request and sends response information.
需要说明的是,第二对讲机在接收到通信请求后,不一定要进入预设信道里。如果第二对讲机确认要进入预设信道时,则进入预设信道并发送应答信息,告诉第一对讲机已建立同一预设信道,可以进行通讯。It should be noted that the second walkie-talkie does not have to enter the preset channel after receiving the communication request. If the second walkie-talkie confirms to enter the preset channel, it enters the preset channel and sends a response message to tell the first walkie-talkie that the same preset channel has been established and can communicate.
S430、第二对讲机从跳转至所述预设信道开始计时,如果超时,跳转至公共信道并结束应答;S430. The second walkie-talkie starts timing from jumping to the preset channel, and if it times out, jumps to the common channel and ends the response;
需要说明的是,第二对讲机在第一对讲机发送通信请求后,进入预设信道后开始计时。超时是指进入预设信道但是没发送应答信息的时间大于预设时间。 示例性地,预设时间可以为10秒。第二对讲机进入预设信道的时间为上午9点整,但是进入预设信道后一直没发送应答信息,当时间到达上午9点0分11秒时,此时就为超时,第二对讲机又会跳转回公共信道并结束应答。It should be noted that the second walkie-talkie starts timing after entering the preset channel after the first walkie-talkie sends a communication request. Timeout means that the time for entering the preset channel but not sending the response message is longer than the preset time. Exemplarily, the preset time may be 10 seconds. The time for the second walkie-talkie to enter the preset channel is 9:00 a.m., but no response message has been sent after entering the preset channel. When the time reaches 9:00 a.m., it is timed out at this time, and the second walkie-talkie will again Jump back to the common channel and end the response.
在代替实施例中,步骤S420可以代替为:In an alternative embodiment, step S420 can be replaced by:
S421、第二对讲机基于所述通信请求跳转至所述预设信道并接收第一对讲机发送的通讯数据;S421. The second walkie-talkie jumps to the preset channel based on the communication request and receives communication data sent by the first walkie-talkie.
需要说明的是,也可以不用第二对讲机确认才能发送通讯数据,也可以替换成第一对讲机发送通讯请求后,控制第二对讲机直接进入预设通道内,直接进行通讯数据的传输。It should be noted that the communication data can be sent without the confirmation of the second walkie-talkie, or it can be replaced with the first walkie-talkie after sending the communication request, and then the second walkie-talkie is controlled to directly enter the preset channel to directly transmit the communication data.
在一实施例中,当步骤S420替换为步骤S421时,步骤S430也可以替换为:In an embodiment, when step S420 is replaced with step S421, step S430 can also be replaced with:
S431、第二对讲机根据所述通讯数据进行文字信息显示;S431: The second walkie-talkie displays text information according to the communication data;
需要说明的是,第二对讲机接收到通讯数据后,可以通过文字信息显示,通知第一对讲机第二对讲机已接收到通讯数据。示例性的,该文字信息显示可以为“已接收”等字样。It should be noted that after the second walkie-talkie receives the communication data, it can display text messages to notify the first walkie-talkie that the second walkie-talkie has received the communication data. Exemplarily, the text information display may be words such as "received".
本发明实施例的技术方案,在对讲通讯发送通讯数据的基础上,描述了对讲通讯过程中接收通讯数据的内容,发送和接收通讯数据都在同一预设信道里完成,具有高度安全性的技术效果。The technical scheme of the embodiment of the present invention describes the content of the communication data received in the intercom communication process on the basis of the communication data sent by the intercom communication. The sending and receiving of the communication data are completed in the same preset channel, which has high security Technical effect.
实施例五Example five
图11是本发明实施例五提供的一种对讲通讯方法的流程图。本实施例是在上述技术方案的进一步细化,适用于智能终端之间通讯数据传输的场景。该方法可以由对讲通讯装置执行,包括:FIG. 11 is a flowchart of an intercom communication method provided by Embodiment 5 of the present invention. This embodiment is a further refinement of the above-mentioned technical solution, and is suitable for scenarios of communication data transmission between smart terminals. The method can be executed by an intercom communication device and includes:
S510、第一智能终端向第一对讲机发送通讯数据;S510. The first smart terminal sends communication data to the first walkie-talkie.
需要说明的是,智能终端可以包括手机、平板、穿戴设备、笔记本电脑等。通讯数据是指第一终端想要向第二智能终端发送的数据信息。通讯数据可以包括文字、语音、视频、文件等。可选的,可以在智能终端上安装一个自定义的应用程序APP,从而实现智能终端的通讯数据与对讲机之间进行通讯,以及建立通讯数据和通讯数据的转换。本实施例中第一智能终端和第一对讲机之间通过蓝牙或wifi热点建立通信连接。It should be noted that smart terminals may include mobile phones, tablets, wearable devices, notebook computers, and so on. Communication data refers to data information that the first terminal wants to send to the second smart terminal. Communication data can include text, voice, video, files, etc. Optionally, a custom application APP can be installed on the smart terminal, so as to realize the communication between the communication data of the smart terminal and the walkie-talkie, as well as the establishment of communication data and communication data conversion. In this embodiment, a communication connection is established between the first smart terminal and the first walkie-talkie through Bluetooth or wifi hotspot.
S520、第一对讲机在公共信道发送通信请求,以控制至少一个第二对讲机跳转到预设信道,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道;S520. The first walkie-talkie sends a communication request on a common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to at least one second walkie-talkie The identification code of, the communication parameter includes a preset channel;
S530、第一对讲机在所述通信请求发送完成后跳转至所述预设信道;S530. The first walkie-talkie jumps to the preset channel after sending the communication request.
S540、第一对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据;S540: The first walkie-talkie sends communication data to at least one second walkie-talkie on the preset channel based on the target address.
需要说明的是,第一对讲机要将第一智能终端发送的通讯数据转换成适用于在预设信道内传输的数据包格式,本实施例中,可选的,本实施例和前述实施例的通讯数据或通讯请求的数据包格式还包括,数据头、目的地址、发送地址、通信参数、数据类型、数据长度、加密信息、校验和数据中的一项或多项。It should be noted that the first walkie-talkie needs to convert the communication data sent by the first smart terminal into a data packet format suitable for transmission in a preset channel. In this embodiment, optionally, this embodiment and the previous embodiment The data packet format of the communication data or communication request also includes one or more of the data header, destination address, sending address, communication parameters, data type, data length, encryption information, and checksum data.
在一实施例中,数据头为固定值,比如:16进制的0x5a。所述目标地址预先设置为至少一个第二对讲机的识别码(Identity,ID)。发送地址也就是第一对讲机的地址,采用第一对讲的识别码。第一对讲机的ID计算公式可以是由用户身份生成7位的数字,比如1234567,然后转成16进制0x12D687,生成3个字节的数据。所述通信参数包括预设信道和信道速度。本实施例中,通信信道可以包括302个或更多。本实施例的0信道是公共信道外,其他的301个信道是可用工作信道。信道速度包括高速和低速,高速是指工作速率在17K或以上,低速是指在7K或以下,本实施例高速信道用来传输语音,低速信道传输文字。数据类型可以包括通信引导、文字数据、语音数据、SOS数据、通信数据等。可以根据不同的数据类型,对应不同的数据执行不同的操作。示例性的,对于文字数据采用低速传输,对于语音数据采用高速传输,可以根据需要设置。数据长度可以包括2个方面,数据协议部分和用户数据部分。加密信息作为后期AES128二次加密使用。在发送通讯数据时要先校验通讯数据的有效性。数据是指用户数据,可选的,数据不超过120个字节,已降低通讯过程的压力。In one embodiment, the data header is a fixed value, such as 0x5a in hexadecimal notation. The target address is preset as an identification code (Identity, ID) of at least one second walkie-talkie. The sending address is the address of the first intercom, using the identification code of the first intercom. The ID calculation formula of the first walkie-talkie can be a 7-digit number generated by the user's identity, such as 1234567, and then converted to hexadecimal 0x12D687 to generate 3 bytes of data. The communication parameters include preset channels and channel speeds. In this embodiment, the communication channels may include 302 or more. In this embodiment, channel 0 is a common channel, and the other 301 channels are available working channels. The channel speed includes high-speed and low-speed. High-speed refers to a working rate of 17K or above, and low-speed refers to 7K or below. In this embodiment, the high-speed channel is used to transmit voice, and the low-speed channel is used to transmit text. Data types can include communication guidance, text data, voice data, SOS data, communication data, and so on. You can perform different operations for different data according to different data types. Exemplarily, low-speed transmission is used for text data, and high-speed transmission is used for voice data, which can be set as required. The data length can include two aspects, the data protocol part and the user data part. The encrypted information is used as a secondary AES128 encryption. When sending communication data, first verify the validity of the communication data. Data refers to user data, optional, the data does not exceed 120 bytes, which has reduced the pressure of the communication process.
S550、所述第二对讲机向第二智能终端发送所述通讯数据;S550. The second walkie-talkie sends the communication data to a second smart terminal.
需要说明的是,第二对讲机在接收到通讯数据后,要将通讯数据转换为适用于智能终端显示的通讯数据。It should be noted that after receiving the communication data, the second walkie-talkie should convert the communication data into communication data suitable for display on the smart terminal.
本发明实施例的技术方案,手机通过对讲机进行通讯,解决了手机移动网络信号不好时,还可以通过对讲机进行通讯的技术问题。同时直接在手机端通过选择好友或群名的方式进行相互之间的信息交互,不仅迎合了用户的使用习惯非常方便,而且提高了用户发送和接收信息的效率,同时在收发信息的时候还通过对讲机的预设通道进行通信,大大增强了手机通过对讲机进行通讯的安全性。In the technical solution of the embodiment of the present invention, the mobile phone communicates through the walkie-talkie, which solves the technical problem that the mobile phone can communicate through the walkie-talkie when the mobile network signal of the mobile phone is not good. At the same time, you can directly interact with each other by selecting friends or group names on the mobile phone, which not only caters to the user’s usage habits and is very convenient, but also improves the efficiency of users sending and receiving information. At the same time, they also pass The preset channel of the walkie-talkie for communication greatly enhances the security of mobile phone communication through the walkie-talkie.
实施例六Example Six
图12是本发明实施例六提供的一种对讲通讯装置的结构示意图,本实施例可适用于对讲通讯或手机通讯的情况,该装置可以采用软件和/或硬件的方式实现。本实施例中未详尽描述的内容可以参考本文任意方法实施例中的描述。FIG. 12 is a schematic structural diagram of an intercom communication device provided by Embodiment 6 of the present invention. This embodiment is applicable to intercom communication or mobile phone communication. The device can be implemented in software and/or hardware. For content not described in detail in this embodiment, reference may be made to the description in any method embodiment herein.
如图12所示,本实施例提供的对讲通讯装置600可以包括请求模块610、跳转模块620和发送模块630,其中:As shown in FIG. 12, the intercom communication device 600 provided in this embodiment may include a request module 610, a jump module 620, and a sending module 630, where:
请求模块610,用于第一对讲机在公共信道发送通信请求,以控制至少一个第二对讲机跳转到预设信道,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道;第二对讲机基于所述通信请求跳转至所述预设信道并发送应答信息,或第二对讲机基于所述通信请求跳转至所述预设信道并接收第一对讲机发送的通讯数据;The request module 610 is configured to send a communication request by the first walkie-talkie on a common channel to control at least one second walkie-talkie to jump to a preset channel. The communication request includes at least a target address and communication parameters, and the target address is preset to at least An identification code of a second walkie-talkie, the communication parameters include a preset channel; the second walkie-talkie jumps to the preset channel based on the communication request and sends a response message, or the second walkie-talkie jumps to the preset channel based on the communication request The preset channel and receiving communication data sent by the first walkie-talkie;
跳转模块620,用于第一对讲机在所述通信请求发送完成后跳转至所述预设信道;The jump module 620 is configured to jump to the preset channel by the first walkie-talkie after the communication request is sent;
发送模块630,用于第一对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据。The sending module 630 is configured to send communication data to at least one second walkie-talkie based on the target address by the first walkie-talkie on the preset channel.
可选的,该装置还包括:Optionally, the device further includes:
判断模块,用于第一对讲机判断是否接收到所述至少一个第二对讲机从预设信道发送的应答信息;第一对讲机判断是否从预设信道接收至少一个第二对讲机发送的数据接收确认信息;第一对讲机跳转至被选择的预设信道进行占用侦测;The judgment module is used for the first walkie-talkie to judge whether the response information sent by the at least one second walkie-talkie from the preset channel is received; the first walkie-talkie judges whether to receive the data reception confirmation information sent by the at least one second walkie-talkie from the preset channel; The first walkie-talkie jumps to the selected preset channel for occupation detection;
如果被选择的预设信道被占用,则第一对讲机选择另一个预设信道。If the selected preset channel is occupied, the first walkie-talkie selects another preset channel.
绑定模块,用于第一对讲机从好友列表中选择需要呼叫的好友名或群名;The binding module is used for the first walkie-talkie to select the friend name or group name to be called from the friend list;
获取与所述好友名或群名对应的预先设定的一个或多个第二对讲机的识别码;Acquiring the identification code of one or more second walkie-talkies corresponding to the friend name or group name;
根据所述一个或多个第二对讲机的识别码选择一个预设信道;Selecting a preset channel according to the identification code of the one or more second walkie-talkies;
根据所述一个或多个第二对讲机的识别码以及所述预设信道生成所述通信请求。The communication request is generated according to the identification code of the one or more second walkie-talkies and the preset channel.
提示模块,用于如果第一对讲机有从预设信道接收至少一个第二对讲机发送的数据接收确认信息,则进行数据发送正常的提示,如果第一对讲机没有从预设信道接收至少一个第二对讲机发送的数据接收确认信息,则进行数据发送失败的提示;Prompt module, used for if the first walkie-talkie has received the data reception confirmation information sent by at least one second walkie-talkie from the preset channel, prompting that the data transmission is normal, if the first walkie-talkie does not receive at least one second walkie-talkie from the preset channel If the sent data receives the confirmation message, it will prompt the data sending failure;
加密模块,用于基于所述机密信息定义的加密方式对所述通讯数据进行加密。The encryption module is used to encrypt the communication data based on the encryption method defined by the confidential information.
接收模块,用于:Receiving module for:
第二对讲机接收第一对讲机在公共信道发送的通信请求,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道。The second walkie-talkie receives a communication request sent by the first walkie-talkie on a public channel, the communication request includes at least a target address and communication parameters, the target address is preset to the identification code of at least one second walkie-talkie, and the communication parameters include a preset channel.
可选的,所述请求模块还用于:Optionally, the request module is also used to:
第二对讲机基于所述通信请求跳转至所述预设信道并发送应答信息,或第二对讲机基于所述通信请求跳转至所述预设信道并接收第一对讲机发送的通讯数据。The second walkie-talkie jumps to the preset channel based on the communication request and sends response information, or the second walkie-talkie jumps to the preset channel based on the communication request and receives the communication data sent by the first walkie-talkie.
所述提示模块还用于第二对讲机根据所述通讯数据进行文字信息显示。The prompt module is also used for the second walkie-talkie to display text information according to the communication data.
可选的,还可以包括计时模块,用于第二对讲机从跳转至所述预设信道开始计时,如果超时,跳转至公共信道并结束应答。Optionally, it may also include a timing module for the second walkie-talkie to start timing from jumping to the preset channel, and if it times out, jump to the common channel and end the response.
可选的,还包括转换模块,用于第一智能终端向第一对讲机发送通讯数据;Optionally, it further includes a conversion module for the first smart terminal to send communication data to the first walkie-talkie;
所述第二对讲机向第二智能终端发送所述通讯数据。The second walkie-talkie sends the communication data to a second smart terminal.
本发明实施例所提供的对将通讯装置可执行本文任意实施例所提供的对讲通讯方法,具备执行方法相应的功能模块和有益效果。The intercom communication device provided in the embodiment of the present invention can execute the intercom communication method provided in any of the embodiments herein, and has corresponding functional modules and beneficial effects for the execution method.
实施例七Example Seven
图13为本发明实施例七提供的一种对讲通讯系统的结构示意图,本实施例可适用于通过对讲通讯系统进行通讯的情况。本实施例中未详尽描述的内容可以参考本文任意方法实施例中的描述。FIG. 13 is a schematic structural diagram of an intercom communication system according to the seventh embodiment of the present invention. This embodiment is applicable to the case of communicating through the intercom communication system. For content not described in detail in this embodiment, reference may be made to the description in any method embodiment herein.
如图13所示,对讲通讯系统700包括第一智能终端710、第一对讲机720、第二对讲机730和第二智能终端740。其中,第一智能终端710用于向第一对讲机720发送通讯数据。第一对讲机720在接收到通讯数据后,根据该通讯数据在公共信道发送通信请求。第一对讲机720在通信请求发送完成后跳转至预设信道,第一对讲机720在预设信道基于目标地址发送通讯数据。其中,本实施例中的第一智能终端710和第一对讲机720发送的通讯数据的数据包格式是一致的,数据包格式根据第一智能终端710发送的通讯数据所决定。所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道As shown in FIG. 13, the intercom communication system 700 includes a first smart terminal 710, a first intercom 720, a second intercom 730, and a second smart terminal 740. The first smart terminal 710 is used to send communication data to the first walkie-talkie 720. After receiving the communication data, the first walkie-talkie 720 sends a communication request on the common channel according to the communication data. The first walkie-talkie 720 jumps to the preset channel after the communication request is sent, and the first walkie-talkie 720 sends communication data based on the target address on the preset channel. Wherein, the data packet format of the communication data sent by the first smart terminal 710 and the first walkie-talkie 720 in this embodiment is the same, and the data packet format is determined according to the communication data sent by the first smart terminal 710. The communication request includes at least a target address and a communication parameter, the target address is preset as an identification code of at least one second walkie-talkie, and the communication parameter includes a preset channel
第二对讲机730在第一对讲机720发送通信请求后,会自动跳转到预设信 道,也可以是第二对讲机730发送应答信息后才进入预设信道。第一对讲机720和第二对讲机730处于同一信道,第二对讲机730在该预设信道接受第一对讲机730发送的通讯数据。The second walkie-talkie 730 automatically jumps to the preset channel after the first walkie-talkie 720 sends a communication request, or the second walkie-talkie 730 enters the preset channel after sending the response message. The first walkie-talkie 720 and the second walkie-talkie 730 are on the same channel, and the second walkie-talkie 730 receives the communication data sent by the first walkie-talkie 730 on the preset channel.
第二对讲机730接收完第一对讲机720发送的通讯数据后,会向第二智能终端740发送该通讯数据。第二智能终端740会接收第二对讲机730发送的通讯数据。After the second walkie-talkie 730 receives the communication data sent by the first walkie-talkie 720, it will send the communication data to the second smart terminal 740. The second smart terminal 740 receives the communication data sent by the second walkie-talkie 730.
本发明实施例的技术方案,通过该对讲通讯系统,在对讲机发送通信请求后,在对讲机之间建立一个预设信道,而且只有目标地址设置为识别码对应的对讲机才可以进入该预设通道,只有在同一预设信道内的对讲机才能看到通讯数据,解决了对讲通讯间的不安全性,实现提高对讲通讯内容保密性的效果。在一实施例中,由于实施例每次发送信息前准备通信请求可以直接通过好友列表选择发送的对象来生成,因此对讲通讯的目标选择方便且通讯方式简单。According to the technical solution of the embodiment of the present invention, through the intercom communication system, after the intercom sends a communication request, a preset channel is established between the intercoms, and only the intercom with the target address set to the identification code can enter the preset channel , Only walkie-talkies in the same preset channel can see the communication data, which solves the insecurity of the intercom communication and realizes the effect of improving the confidentiality of the intercom communication. In one embodiment, because the embodiment prepares the communication request before sending information each time, it can be directly generated by selecting the sending object through the buddy list, so the target selection of the intercom communication is convenient and the communication method is simple.
实施例八Example eight
图14为本发明实施例八提供的一种对讲机的结构示意图。如图14所示,该对讲机800包括输入装置810、输出装置820、处理器830、存储器840、无线射频模块850和互联通信模块860。对讲机中处理器830的数量可以是一个或多个,图14中以一个处理器830为例;对讲机中的输入装置810、输出装置820、处理器830、存储器840、无线射频模块850和互联通信模块860可以通过总线或其他方式连接,图14中以通过总线连接为例。FIG. 14 is a schematic structural diagram of a walkie-talkie provided by Embodiment 8 of the present invention. As shown in FIG. 14, the walkie-talkie 800 includes an input device 810, an output device 820, a processor 830, a memory 840, a radio frequency module 850, and an interconnection communication module 860. The number of processors 830 in the walkie-talkie can be one or more. In FIG. 14, one processor 830 is taken as an example; the input device 810, output device 820, processor 830, memory 840, radio frequency module 850 and interconnection communication in the walkie-talkie The module 860 may be connected through a bus or other methods, and connection through a bus is taken as an example in FIG. 14.
存储器840作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明实施例中的对讲通讯方法对应的程序指令/模块(例如,对讲通讯装置中的请求模块610、跳转模块620和发送模块630)。处理器830通过运行存储在存储器840中的软件程序、指令以及模块,从而执行对讲机的各种功能应用以及数据处理,即实现上述的对讲通讯。The memory 840, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the intercom communication method in the embodiment of the present invention (for example, the intercom communication device The request module 610, the jump module 620, and the sending module 630). The processor 830 executes various functional applications and data processing of the walkie-talkie by running the software programs, instructions, and modules stored in the memory 840, that is, realizes the aforementioned intercom communication.
存储器840可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器840可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器840可包括相对于处理器830远程设置的存储器,这些远程存储器可以通过网络连接至对讲机。上述网络的实例可以包括互联网、企业内部网、局域网、移动通信网及其组合。The memory 840 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 840 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some examples, the memory 840 may include a memory remotely provided with respect to the processor 830, and these remote memories may be connected to the walkie-talkie through a network. Examples of the above-mentioned network may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
输入装置810接收用户通过对讲机输入的指令。输出装置820根据通讯数据,把该通讯数据以可视化的形式展示给用户。无线射频模块850接收或发送通讯数据给另一对讲机800’,对讲机之间通过无线射频模块850传输数据。互联通信模块860接收或发送通讯数据给智能终端。在一实施例中,所述对讲机可用于执行如下方法:The input device 810 receives instructions input by the user through the walkie-talkie. The output device 820 displays the communication data to the user in a visual form according to the communication data. The radio frequency module 850 receives or sends communication data to another walkie-talkie 800', and the radio frequency module 850 transmits data between the walkie-talkies. The interconnection communication module 860 receives or sends communication data to the smart terminal. In an embodiment, the walkie-talkie can be used to perform the following methods:
第一对讲机在公共信道发送通信请求,以控制至少一个第二对讲机跳转到预设信道,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道;The first walkie-talkie sends a communication request on a common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to be the identification of at least one second walkie-talkie Code, the communication parameter includes a preset channel;
第一对讲机在所述通信请求发送完成后跳转至所述预设信道;The first walkie-talkie jumps to the preset channel after the communication request is sent;
第一对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据。The first walkie-talkie sends communication data to at least one second walkie-talkie based on the target address on the preset channel.
在一实施例中,所述对讲机可用于执行如下方法:In an embodiment, the walkie-talkie can be used to perform the following methods:
第一智能终端向第一对讲机发送通讯数据;The first smart terminal sends communication data to the first walkie-talkie;
所述第一对讲机根据所述通讯数据在公共信道发送通信请求,以控制至少一个第二对讲机跳转到预设信道,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道;The first walkie-talkie sends a communication request on a common channel according to the communication data to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset as The identification code of at least one second walkie-talkie, the communication parameter includes a preset channel;
第一对讲机在所述通信请求发送完成后跳转至所述预设信道;The first walkie-talkie jumps to the preset channel after the communication request is sent;
第一对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据;The first walkie-talkie sends communication data to at least one second walkie-talkie based on the target address on the preset channel;
所述第二对讲机向第二智能终端发送所述通讯数据。The second walkie-talkie sends the communication data to a second smart terminal.
本发明实施例的技术方案,通过对讲机发送通信请求后,在对讲机之间建立一个预设信道,而且只有目标地址设置为识别码对应的对讲机才可以进入该预设通道,只有在同一预设信道内的对讲机才能看到通讯数据,解决了对讲通讯间的不安全性,实现提高对讲通讯内容保密性的效果。In the technical solution of the embodiment of the present invention, after a communication request is sent through the walkie-talkie, a preset channel is established between the walkie-talkies, and only the walkie-talkie whose target address is set to the identification code can enter the preset channel, and only in the same preset channel Only the intercom inside can see the communication data, which solves the insecurity of intercom communication and realizes the effect of improving the confidentiality of the intercom communication.
实施例九Example 9
本发明实施例九还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本文任意实施例所提供的一种对讲机或对讲通讯方法,在一实施例中,该方法可以包括:The ninth embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it implements an intercom or intercom communication method as provided in any of the embodiments herein. In an embodiment, the method may include:
第一对讲机在公共信道发送通信请求,以控制至少一个第二对讲机跳转到预设信道,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设 置为至少一个第二对讲机的识别码,所述通信参数包括预设信道;The first walkie-talkie sends a communication request on a common channel to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset to be the identification of at least one second walkie-talkie Code, the communication parameter includes a preset channel;
第一对讲机在所述通信请求发送完成后跳转至所述预设信道;The first walkie-talkie jumps to the preset channel after the communication request is sent;
第一对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据。The first walkie-talkie sends communication data to at least one second walkie-talkie based on the target address on the preset channel.
在一实施例中,该方法可以包括:In an embodiment, the method may include:
第一智能终端向第一对讲机发送通讯数据;The first smart terminal sends communication data to the first walkie-talkie;
所述第一对讲机根据所述通讯数据在公共信道发送通信请求,以控制至少一个第二对讲机跳转到预设信道,所述通信请求至少包括目标地址和通信参数,所述目标地址预先设置为至少一个第二对讲机的识别码,所述通信参数包括预设信道;The first walkie-talkie sends a communication request on a common channel according to the communication data to control at least one second walkie-talkie to jump to a preset channel, the communication request includes at least a target address and communication parameters, and the target address is preset as The identification code of at least one second walkie-talkie, the communication parameter includes a preset channel;
第一对讲机在所述通信请求发送完成后跳转至所述预设信道;The first walkie-talkie jumps to the preset channel after the communication request is sent;
第一对讲机在所述预设信道基于所述目标地址向至少一个第二对讲机发送通讯数据;The first walkie-talkie sends communication data to at least one second walkie-talkie based on the target address on the preset channel;
所述第二对讲机向第二智能终端发送所述通讯数据。The second walkie-talkie sends the communication data to a second smart terminal.
本发明实施例的计算机可读存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer-readable storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above. Examples of computer-readable storage media (non-exhaustive list) include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,可以包括电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。The computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and computer-readable program code is carried therein. This propagated data signal can take many forms, including electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium. The computer-readable medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
存储介质上包含的程序代码可以用任何适当的介质传输,可以包括无线、 电线、光缆、RF等等,或者上述的任意合适的组合。The program code contained on the storage medium can be transmitted by any suitable medium, which can include wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
可以以一种或多种程序设计语言或其组合来编写用于执行本文操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或终端上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。The computer program code used to perform the operations herein can be written in one or more programming languages or a combination thereof. The programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, and also include conventional procedures. Programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or terminal. In the case of a remote computer, the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
本发明实施例的技术方案,通过对讲机发送通信请求后,在对讲机之间建立一个预设信道,而且只有目标地址设置为识别码对应的对讲机才可以进入该预设通道,只有在同一预设信道内的对讲机才能看到通讯数据,解决了对讲通讯间的不安全性,实现提高对讲通讯内容保密性的效果。In the technical solution of the embodiment of the present invention, after a communication request is sent through the walkie-talkie, a preset channel is established between the walkie-talkies, and only the walkie-talkie whose target address is set to the identification code can enter the preset channel, and only in the same preset channel Only the intercom inside can see the communication data, which solves the insecurity of intercom communication and realizes the effect of improving the confidentiality of the intercom communication.

Claims (18)

  1. 一种对讲通讯方法,包括:An intercom communication method, including:
    第一对讲机在公共信道发送通信请求,以控制第二对讲机跳转到预设信道,所述通信请求包括目标地址和通信参数,所述目标地址预先设置为所述第二对讲机的识别码,所述通信参数包括所述预设信道;The first walkie-talkie sends a communication request on a common channel to control the second walkie-talkie to jump to a preset channel. The communication request includes a target address and communication parameters. The target address is preset as the identification code of the second walkie-talkie. The communication parameter includes the preset channel;
    所述第一对讲机在所述通信请求发送完成后跳转至所述预设信道;The first walkie-talkie jumps to the preset channel after the communication request is sent;
    所述第一对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据。The first walkie-talkie sends communication data to the second walkie-talkie based on the target address on the preset channel.
  2. 根据权利要求1所述的对讲通讯方法,所述第一对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据之前,所述方法还包括:The intercom communication method according to claim 1, before the first intercom sends communication data to the second intercom based on the target address on the preset channel, the method further comprises:
    所述第一对讲机判断是否接收到所述第二对讲机从所述预设信道发送的应答信息;The first walkie-talkie judges whether the response information sent by the second walkie-talkie from the preset channel is received;
    所述第一对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据包括:The sending, by the first walkie-talkie on the preset channel based on the target address, communication data to the second walkie-talkie includes:
    基于所述第一对讲机接收到所述第二对讲机从所述预设信道发送的应答信息的判断结果,所述第一对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据,基于所述第一对讲机没有接收到所述第二对讲机从所述预设信道发送的应答信息的判断结果,所述第一对讲机取消在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据。Based on the judgment result that the first walkie-talkie receives the response information sent by the second walkie-talkie from the preset channel, the first walkie-talkie sends to the second walkie-talkie on the preset channel based on the target address Communication data, based on the judgment result that the first walkie-talkie does not receive the response information sent by the second walkie-talkie from the preset channel, the first walkie-talkie cancels the transmission of the first walkie-talkie based on the target address on the preset channel The second walkie-talkie sends communication data.
  3. 根据权利要求1所述的对讲通讯方法,所述第一对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据之后,所述方法还包括:The intercom communication method according to claim 1, after the first intercom sends communication data to the second intercom based on the target address on the preset channel, the method further comprises:
    所述第一对讲机判断是否有从预设信道接收由至少一个所述第二对讲机发送的数据接收确认信息;The first walkie-talkie judges whether the data reception confirmation information sent by at least one of the second walkie-talkies is received from a preset channel;
    所述第一对讲机基于所述第一对讲机有从所述预设信道接收由至少一个所述第二对讲机发送的数据接收确认信息的判断结果,进行数据发送正常的提示,所述第一对讲机基于没有从所述预设信道接收由至少一个所述第二对讲机发送的数据接收确认信息的判断结果,进行数据发送失败的提示。The first walkie-talkie prompts that the data transmission is normal based on the judgment result that the first walkie-talkie has received the data reception confirmation information sent by at least one of the second walkie-talkies from the preset channel, and the first walkie-talkie is based on If the judgment result of the data reception confirmation message sent by at least one of the second walkie-talkies is not received from the preset channel, a prompt of data transmission failure is performed.
  4. 根据权利要求1所述的对讲通讯方法,所述第一对讲机在公共信道发送通信请求之前,所述方法还包括:The intercom communication method according to claim 1, before the first intercom sends the communication request on the common channel, the method further comprises:
    第一对讲机从好友列表中选择需要呼叫的好友名或群名;The first walkie-talkie selects the friend name or group name to be called from the friend list;
    获取与所述好友名或群名对应的预先设定的第二对讲机的识别码;Acquiring the preset identification code of the second walkie-talkie corresponding to the friend name or group name;
    根据所述第二对讲机的识别码选择一个预设信道;Selecting a preset channel according to the identification code of the second walkie-talkie;
    根据所述第二对讲机的识别码以及所述预设信道生成所述通信请求。The communication request is generated according to the identification code of the second walkie-talkie and the preset channel.
  5. 根据权利要求4所述的对讲通讯方法,所述根据所述第二对讲机的识别码选择一个预设信道之后,所述方法还包括:The intercom communication method according to claim 4, after selecting a preset channel according to the identification code of the second intercom, the method further comprises:
    所述第一对讲机跳转至被选择的预设信道进行占用侦测;The first walkie-talkie jumps to the selected preset channel for occupation detection;
    基于被选择的预设信道被占用的判断结果,所述第一对讲机选择另一个预设信道。Based on the judgment result that the selected preset channel is occupied, the first walkie-talkie selects another preset channel.
  6. 根据权利要求4所述的对讲通讯方法,其中,所述通信参数还包括通信速度;The intercom communication method according to claim 4, wherein the communication parameters further include communication speed;
    所述根据所述第二对讲机的识别码选择一个预设信道之后,所述方法还包括:After selecting a preset channel according to the identification code of the second walkie-talkie, the method further includes:
    根据通讯数据的不同类型设定所述通信速度,所述通讯数据的类型包括:通信引导数据、文字数据、语音数据以及SOS数据中的一种或多种。The communication speed is set according to different types of communication data, and the types of communication data include: one or more of communication guide data, text data, voice data, and SOS data.
  7. 根据权利要求4所述的对讲通讯方法,所述第一对讲机从好友列表中选择需要呼叫的好友名或群名之前,所述方法还包括:According to the intercom communication method of claim 4, before the first intercom selects the friend name or group name to be called from the friend list, the method further comprises:
    所述第一对讲机接收从所述第一对讲机输入的好友名或群名;The first walkie-talkie receives the friend name or group name input from the first walkie-talkie;
    所述第一对讲机根据所述好友名或群名生成好友添加请求,并在公共信道发送所述好友添加请求;The first walkie-talkie generates a friend addition request according to the friend name or group name, and sends the friend addition request on a public channel;
    所述第一对讲机在公共信道接收第二对讲机发送的好友确认信息,所述好友确认信息包括所述第二对讲机的识别码。The first walkie-talkie receives the friend confirmation information sent by the second walkie-talkie on a public channel, and the friend confirmation information includes the identification code of the second walkie-talkie.
  8. 根据权利要求1所述的对讲通讯方法,其中,所述通信请求还包括机密信息;The intercom communication method according to claim 1, wherein the communication request further includes confidential information;
    所述第一对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据之前,所述方法还包括:Before the first walkie-talkie sends communication data to the second walkie-talkie based on the target address on the preset channel, the method further includes:
    基于所述机密信息定义的加密方式对通讯数据进行加密。The communication data is encrypted based on the encryption method defined by the confidential information.
  9. 根据权利要求1所述的对讲通讯方法,其中,所述通讯数据包括:数据头、目标地址、发送地址、通信参数、数据类型、数据长度、加密信息、校验和数据中的一项或多项;所述通信请求还包括:数据头、发送地址、数据类型、数据长度、加密信息、校验和数据中的一项或多项。The intercom communication method according to claim 1, wherein the communication data includes one of a data header, a destination address, a sending address, communication parameters, data type, data length, encryption information, checksum data, or Multiple; the communication request also includes: one or more of data header, sending address, data type, data length, encryption information, and checksum data.
  10. 如权利要求1或2所述的对讲通讯方法,其中,所述第一对讲机在公共信道发送通信请求,包括:The intercom communication method of claim 1 or 2, wherein the first intercom sending a communication request on a common channel includes:
    第一对讲机在公共信道向第三对讲机发送通信请求,以控制所述第三对讲 机控制第二对讲机跳转到预设信道;The first walkie-talkie sends a communication request to the third walkie-talkie on the common channel to control the third walkie-talkie to control the second walkie-talkie to jump to the preset channel;
    所述第一对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据,包括:The sending, by the first walkie-talkie on the preset channel based on the target address, to the second walkie-talkie includes:
    第一对讲机在所述预设信道向所述第三对讲机发送通讯数据,以控制所述第三对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据。The first walkie-talkie sends communication data to the third walkie-talkie on the preset channel to control the third walkie-talkie to send communication data to the second walkie-talkie on the preset channel based on the target address.
  11. 一种对讲通讯方法,包括:An intercom communication method, including:
    第二对讲机接收第一对讲机在公共信道发送的通信请求,所述通信请求包括目标地址和通信参数,所述目标地址预先设置为所述第二对讲机的识别码,所述通信参数包括预设信道;The second walkie-talkie receives a communication request sent by the first walkie-talkie on a common channel, the communication request includes a target address and communication parameters, the target address is preset to the identification code of the second walkie-talkie, and the communication parameters include a preset channel ;
    所述第二对讲机基于所述通信请求跳转至所述预设信道并发送应答信息,或所述第二对讲机基于所述通信请求跳转至所述预设信道并接收所述第一对讲机发送的通讯数据。The second walkie-talkie jumps to the preset channel based on the communication request and sends response information, or the second walkie-talkie jumps to the preset channel based on the communication request and receives the transmission from the first walkie-talkie Communication data.
  12. 根据权利要求11所述的对讲通讯方法,所述第二对讲机基于所述通信请求跳转至所述预设信道并接收所述第一对讲机发送的通讯数据之后,所述方法还包括:The intercom communication method according to claim 11, after the second intercom jumps to the preset channel based on the communication request and receives the communication data sent by the first intercom, the method further comprises:
    所述第二对讲机根据所述通讯数据进行文字信息显示。The second walkie-talkie displays text information according to the communication data.
  13. 根据权利要求11所述的对讲通讯方法,所述第二对讲机基于所述通信请求跳转至所述预设信道并发送应答信息之后,所述方法还包括:The intercom communication method according to claim 11, after the second intercom jumps to the preset channel based on the communication request and sends response information, the method further comprises:
    所述第二对讲机从跳转至所述预设信道开始计时,基于所述第二对讲机进入预设信道没发送应答信息的时间大于预设时间的判断结果,所述第二对讲机跳转至公共信道并结束应答。The second walkie-talkie starts timing from jumping to the preset channel, and based on the judgment result that the time for the second walkie-talkie to enter the preset channel without sending response information is greater than the preset time, the second walkie-talkie jumps to the public Channel and end the response.
  14. 一种对讲通讯方法,包括:An intercom communication method, including:
    第一智能终端向第一对讲机发送通讯数据;The first smart terminal sends communication data to the first walkie-talkie;
    所述第一对讲机根据所述通讯数据在公共信道发送通信请求,以控制第二对讲机跳转到预设信道,所述通信请求包括目标地址和通信参数,所述目标地址预先设置为所述第二对讲机的识别码,所述通信参数包括所述预设信道;The first walkie-talkie sends a communication request on a common channel according to the communication data to control the second walkie-talkie to jump to a preset channel, the communication request includes a target address and communication parameters, and the target address is preset to the first 2. The identification code of the walkie-talkie, the communication parameter includes the preset channel;
    所述第一对讲机在所述通信请求发送完成后跳转至所述预设信道;The first walkie-talkie jumps to the preset channel after the communication request is sent;
    所述第一对讲机在所述预设信道基于所述目标地址向所述第二对讲机发送所述通讯数据;Sending, by the first walkie-talkie, the communication data to the second walkie-talkie on the preset channel based on the target address;
    所述第二对讲机向第二智能终端发送所述通讯数据。The second walkie-talkie sends the communication data to a second smart terminal.
  15. 一种对讲通讯装置,包括:An intercom communication device, including:
    请求模块,被配置为在公共信道发送通信请求,以控制第二对讲机跳转到预设信道,所述通信请求包括目标地址和通信参数,所述目标地址预先设置为所述第二对讲机的识别码,所述通信参数包括所述预设信道;The request module is configured to send a communication request on a common channel to control the second walkie-talkie to jump to a preset channel, the communication request includes a target address and communication parameters, and the target address is preset as the identification of the second walkie-talkie Code, the communication parameter includes the preset channel;
    跳转模块,被配置为在所述通信请求发送完成后跳转至所述预设信道;A jump module configured to jump to the preset channel after the communication request is sent;
    发送模块,被配置为在所述预设信道基于所述目标地址向所述第二对讲机发送通讯数据。The sending module is configured to send communication data to the second walkie-talkie based on the target address on the preset channel.
  16. 一种对讲通讯系统,包括:An intercom communication system, including:
    第一对讲机,被配置为根据通讯数据在公共信道发送通信请求,在所述通信请求发送完成后跳转至预设信道,并在所述预设信道基于目标地址发送通讯数据,所述通信请求包括所述目标地址和通信参数,所述目标地址预先设置为第二对讲机的识别码,所述通信参数包括所述预设信道;The first walkie-talkie is configured to send a communication request on a common channel according to the communication data, jump to a preset channel after the communication request is sent, and send communication data on the preset channel based on the target address, the communication request Including the target address and communication parameters, the target address is preset as the identification code of the second walkie-talkie, and the communication parameters include the preset channel;
    第一智能终端,被配置为向所述第一对讲机发送所述通讯数据;The first smart terminal is configured to send the communication data to the first walkie-talkie;
    所述第二对讲机被配置为接收所述通信请求并跳转到所述预设信道,以在所述预设信道接收所述第一对讲机发送的所述通讯数据;The second walkie-talkie is configured to receive the communication request and jump to the preset channel to receive the communication data sent by the first walkie-talkie on the preset channel;
    第二智能终端,被配置为接收所述第二对讲机发送的所述通讯数据。The second smart terminal is configured to receive the communication data sent by the second walkie-talkie.
  17. 一种对讲机,所述对讲机包括:A walkie-talkie, the walkie-talkie includes:
    一个或多个处理器;One or more processors;
    存储器,用于存储一个或多个程序;Memory, used to store one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-14中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-14.
  18. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如权利要求1-14中任意一项所述的方法。A computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method according to any one of claims 1-14 is realized.
PCT/CN2019/106775 2019-06-17 2019-09-19 Intercom communication method, device and system, storage medium and intercom WO2020252958A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910522903.9 2019-06-17
CN201910522903 2019-06-17

Publications (1)

Publication Number Publication Date
WO2020252958A1 true WO2020252958A1 (en) 2020-12-24

Family

ID=67722657

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/106775 WO2020252958A1 (en) 2019-06-17 2019-09-19 Intercom communication method, device and system, storage medium and intercom

Country Status (2)

Country Link
CN (1) CN110191378A (en)
WO (1) WO2020252958A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115843124A (en) * 2022-10-28 2023-03-24 北京纽曼凤凰科技有限公司 WIFI-free talkback method for public network WIFI interphone
CN116600257A (en) * 2023-07-13 2023-08-15 泉州市创新电子科技有限公司 Frequency matching method of interphone and interphone

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191378A (en) * 2019-06-17 2019-08-30 深圳市慧智慧科技有限公司 A kind of intercommunication means of communication, device, system, storage medium and intercom
CN115002936A (en) * 2022-07-11 2022-09-02 珠海蓝图控制器科技有限公司 Bicycle electronic transmission communication method and device and bicycle
CN115580788B (en) * 2022-09-26 2023-09-08 广东保伦电子股份有限公司 Intercom method and system for configuring intercom equipment based on production line
CN116232775B (en) * 2023-05-09 2023-07-18 北京天辰信科技有限公司 One-to-many communication method and system based on authority setting

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013000701A1 (en) * 2011-06-30 2013-01-03 Gn Netcom A/S Remote controlled headset with built-in cellular telephone module
CN103533462A (en) * 2013-11-04 2014-01-22 海能达通信股份有限公司 Call transferring method and device based on conventional interphone communication system
CN106792966A (en) * 2016-12-16 2017-05-31 北京小米移动软件有限公司 Communication means and device
CN106982475A (en) * 2017-04-10 2017-07-25 海能达通信股份有限公司 A kind of call-establishing method and device
CN110191378A (en) * 2019-06-17 2019-08-30 深圳市慧智慧科技有限公司 A kind of intercommunication means of communication, device, system, storage medium and intercom

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107529152A (en) * 2016-06-22 2017-12-29 阿里巴巴集团控股有限公司 A kind of information transferring method and device
CN107222838A (en) * 2017-08-02 2017-09-29 深圳市威泰能源有限公司 A kind of transmission method of intercom and intercommunication information
CN108038696B (en) * 2017-12-01 2020-12-01 杭州乒乓智能技术股份有限公司 Method and system for detecting bill swiping based on equipment identification code and social group information
CN108834000B (en) * 2018-07-23 2022-02-01 西安蜂语信息科技有限公司 Relay method and device
CN109728832A (en) * 2018-12-05 2019-05-07 袁彦丰 A kind of no base station long haul communication equipment and its communication means
CN109711955B (en) * 2019-02-18 2021-08-06 杭州乒乓智能技术有限公司 Poor evaluation early warning method and system based on current order and blacklist base establishment method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013000701A1 (en) * 2011-06-30 2013-01-03 Gn Netcom A/S Remote controlled headset with built-in cellular telephone module
CN103533462A (en) * 2013-11-04 2014-01-22 海能达通信股份有限公司 Call transferring method and device based on conventional interphone communication system
CN106792966A (en) * 2016-12-16 2017-05-31 北京小米移动软件有限公司 Communication means and device
CN106982475A (en) * 2017-04-10 2017-07-25 海能达通信股份有限公司 A kind of call-establishing method and device
CN110191378A (en) * 2019-06-17 2019-08-30 深圳市慧智慧科技有限公司 A kind of intercommunication means of communication, device, system, storage medium and intercom

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115843124A (en) * 2022-10-28 2023-03-24 北京纽曼凤凰科技有限公司 WIFI-free talkback method for public network WIFI interphone
CN115843124B (en) * 2022-10-28 2024-04-19 北京纽曼凤凰科技有限公司 WIFI-free intercom method for public network WIFI intercom
CN116600257A (en) * 2023-07-13 2023-08-15 泉州市创新电子科技有限公司 Frequency matching method of interphone and interphone
CN116600257B (en) * 2023-07-13 2023-10-17 泉州市创新电子科技有限公司 Frequency matching method of interphone and interphone

Also Published As

Publication number Publication date
CN110191378A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
WO2020252958A1 (en) Intercom communication method, device and system, storage medium and intercom
KR102373463B1 (en) Method and apparatus for wireless communication betweeen communication terminals
EP3893109B1 (en) Method and device for connecting bluetooth devices
JP2012518309A (en) Message processing apparatus and method
WO2020252959A1 (en) Intercom communication method, apparatus and system, storage medium and intercom
US20130336161A1 (en) Terminal and method for p2p connection in wifi network
CN109644216A (en) A kind of method and terminal of Bluetooth communication
WO2015043198A1 (en) Method, device and system for controlling access to router
WO2008019597A1 (en) Short distance wireless communication system and method for accessing instant messenger
WO2015184689A1 (en) File sharing method based on wireless communication and wireless communication terminal
WO2014183404A1 (en) Data transmission method, apparatus, system and terminal
WO2021228131A1 (en) Information transmission method and apparatus, and electronic device
WO2021228132A1 (en) Information sending method, resource processing method, apparatus, and electronic device
KR20110051351A (en) Method for controlling remote of portable terminal and system for the same
US10531300B2 (en) Terminal device, management device, storage medium adapted for communication between multiple terminal devices within a group
US20120002570A1 (en) Coordinating and Establishing Communication Networks Between Communication Devices
CN114025412B (en) Service access method, system, device and storage medium
JP2004015692A (en) Method and system for sharing/processing status information between communication applications
KR102399457B1 (en) System for voice call service using distal assistance device, method thereof and non-transitory computer readable medium having computer program recorded thereon
JP2017135607A (en) Communication device and communication system
CN114640975A (en) Bluetooth channel establishing method, electronic equipment and system
US11575793B2 (en) Service system supporting voice call using digital assistant device, method thereof, and non-transitory computer readable medium having computer program recorded thereon
JP2014049077A (en) Information exchange system, terminal, and stylus pen
JP6634172B1 (en) Program and system for transmitting / receiving digital information (message) to / from a short-range communication network
CN106231589B (en) method and device for hiding SSID broadcast based on Android system Soft AP

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19933740

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19933740

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19933740

Country of ref document: EP

Kind code of ref document: A1