Vehicle-mounted real-time communication method, electronic device, and readable storage medium
By generating team instructions to query location information and encrypting interactive information, the target communication method is selected to solve the privacy and efficiency issues of real-time vehicle communication, and realize private and efficient communication in situations where there are few or no base stations.
Patent Information
- Application Number
- CN202211052197.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2042-08-30
AI Technical Summary
Existing technologies cannot ensure both privacy and efficiency in real-time vehicle communications, and delays are particularly prone to occur when there are few or no base stations.
By generating a team formation instruction and sending it to the cloud server to query the location information of the second communication terminal, collecting and encrypting user interaction information, and selecting the target communication method according to the location information to send the encrypted information frame, private information interaction is achieved.
It achieves both privacy and high efficiency in real-time vehicle communication when there are few or no base stations, avoiding the defect of public radio stations that cannot achieve personal and private communication.
Smart Images

Figure CN115442770B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a vehicle-mounted real-time communication method, electronic equipment, and readable storage medium. Background Art
[0002] With the rapid advancement of technology, real-time in-vehicle communication (IVR) between vehicles and between vehicles and roads has become increasingly mature. Currently, IVR is typically conducted through full-duplex communication methods such as radio, social media apps, or phone calls. However, since radio is often public, it cannot provide personal and private IVR. When using full-duplex communication methods such as social media apps or phone calls, IVR is prone to delays when there are few or no base stations between vehicles or between vehicles and roads. This makes it difficult to balance privacy and efficiency. Summary of the Invention
[0003] The main purpose of this application is to provide a vehicle-mounted real-time communication method, electronic device and readable storage medium, aiming to solve the technical problem in the existing technology that it is impossible to balance the privacy and high efficiency of vehicle-mounted real-time communication.
[0004] To achieve the above objectives, the present application provides a vehicle-mounted real-time communication method, which is applied to a first communication terminal and includes:
[0005] generating a team formation instruction, and sending the team formation instruction to a cloud server, so that the cloud server can query and obtain second location information corresponding to the second communication terminal according to the team formation instruction;
[0006] If the location information sent by the cloud server is received, user interaction information is collected and the user interaction information is encrypted to obtain an encrypted information frame;
[0007] A target communication mode is selected according to the team formation instruction and the second location information, and the encrypted information frame is sent to the second communication terminal according to the target communication mode, so that the second communication terminal decrypts the encrypted information frame to obtain the user interaction information.
[0008] To achieve the above objectives, the present application further provides a vehicle-mounted real-time communication method, which is applied to a cloud server. The vehicle-mounted real-time communication method further includes:
[0009] When receiving the team formation instruction sent by the first communication terminal, querying and obtaining the second location information corresponding to the second communication device according to the team formation instruction;
[0010] The second location information is sent to the first communication terminal, so that the first communication terminal selects a target communication mode according to the second location information.
[0011] To achieve the above-mentioned purpose, the present application further provides a vehicle-mounted real-time communication device, which is applied to a first communication terminal and includes:
[0012] a generating module, configured to generate a team formation instruction and send the team formation instruction to a cloud server, so that the cloud server can query and obtain the second location information corresponding to the second communication terminal according to the team formation instruction;
[0013] an encryption module, configured to collect user interaction information upon receiving the location information sent by the cloud server, and encrypt the user interaction information to obtain an encrypted information frame;
[0014] A selection module is used to select a target communication mode according to the team formation instruction and the second location information, and send the encrypted information frame to the second communication terminal according to the target communication mode, so that the second communication terminal can decrypt the encrypted information frame to obtain the user interaction information.
[0015] To achieve the above-mentioned purpose, the present application further provides a vehicle-mounted real-time communication device, which is applied to a cloud server and further includes:
[0016] a query module, configured to, upon receiving a team formation instruction sent by the first communication terminal, query and obtain second location information corresponding to the second communication device according to the team formation instruction;
[0017] The sending module is used to send the second location information to the first communication terminal, so that the first communication terminal can select a target communication mode according to the second location information.
[0018] The present application also provides an electronic device, which includes: a memory, a processor, and a program of the in-vehicle real-time communication method stored in the memory and runnable on the processor. When the program of the in-vehicle real-time communication method is executed by the processor, the steps of the in-vehicle real-time communication method as described above can be implemented.
[0019] The present application also provides a computer-readable storage medium, on which is stored a program for implementing the in-vehicle real-time communication method. When the program of the in-vehicle real-time communication method is executed by a processor, the steps of the in-vehicle real-time communication method as described above are implemented.
[0020] The present application also provides a computer program product, comprising a computer program, which implements the steps of the above-mentioned in-vehicle real-time communication method when executed by a processor.
[0021] The present application provides a method, electronic device, and readable storage medium for in-vehicle real-time communication. Compared to methods for in-vehicle real-time communication via full-duplex communication methods such as radio, social software, or telephone, the present application generates a teaming instruction and sends the teaming instruction to a cloud server, so that the cloud server can query and obtain second location information corresponding to a second communication terminal based on the teaming instruction. If the location information sent by the cloud server is received, user interaction information is collected and encrypted to obtain an encrypted information frame. A target communication method is selected based on the teaming instruction and the second location information, and the encrypted information frame is sent to the second communication terminal based on the target communication method, so that the second communication terminal can decrypt the encrypted information frame to obtain the user interaction information. This achieves real-time matching of appropriate communication methods based on the teaming instruction and private information exchange within the team queue, avoiding technical defects such as the inability to achieve personal and private in-vehicle real-time communication due to the fact that most radio stations are public radio stations, or the delay of in-vehicle real-time communication that is prone to occur when there are few or no base stations between vehicles or roads, thereby achieving a balance between privacy and high efficiency of in-vehicle real-time communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0024] Figure 1 This is a flowchart of the first embodiment of the in-vehicle real-time communication method of the present application;
[0025] Figure 2 This is an example diagram of a scenario of the in-vehicle real-time communication method of this application;
[0026] Figure 3 This is a flowchart of the second embodiment of the in-vehicle real-time communication method of the present application;
[0027] Figure 4 This is another example diagram of the in-vehicle real-time communication method of this application;
[0028] Figure 5 This is another example diagram of a scenario of the in-vehicle real-time communication method of this application;
[0029] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the in-vehicle real-time communication method in an embodiment of the present application.
[0030] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0031] To make the above-mentioned purposes, features, and advantages of the present application more clearly understood, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making any creative work are within the scope of protection of this application.
[0032] Example 1
[0033] The embodiment of the present application provides a vehicle-mounted real-time communication method. In the first embodiment of the vehicle-mounted real-time communication method of the present application, referring to Figure 1 The vehicle-mounted real-time communication method is applied to a first communication terminal, and the vehicle-mounted real-time communication method includes:
[0034] Step S10: Generate a team formation instruction, and send the team formation instruction to the cloud server, so that the cloud server can query and obtain the second location information corresponding to the second communication terminal according to the team formation instruction;
[0035] Step S20: if the location information sent by the cloud server is received, user interaction information is collected and encrypted to obtain an encrypted information frame;
[0036] Step S30: Select a target communication mode according to the team formation instruction and the second location information, and send the encrypted information frame to the second communication terminal according to the target communication mode, so that the second communication terminal decrypts the encrypted information frame to obtain the user interaction information.
[0037] In this embodiment, it should be noted that the cloud server is communicatively connected with each communication terminal. The information type of the user interaction information can be voice user interaction information, text user interaction information, or user interaction information that combines voice and text. The first communication terminal is a communication terminal that sends user interaction information, and the second communication terminal is a communication terminal that plays user interaction information. The first communication terminal and the second communication terminal are not fixed communication terminals. For example, device A is the first communication terminal at a certain moment and the second communication terminal at another moment. The number of terminals of the second communication terminal can be one or more. The first communication terminal can be a vehicle. The second communication terminal can be a vehicle or an RSU (Road Side Unit).
[0038] Exemplarily, steps S10 to S30 include: generating a teaming instruction for the first communication terminal through the in-vehicle gateway of the first communication terminal, and sending the teaming instruction to the cloud server through the in-vehicle gateway, so that the cloud server can query and obtain the second location information corresponding to the second communication terminal based on the teaming instruction; if the location information sent by the cloud server is received, the user interaction information is obtained by collecting the user's voice information and / or typed text information, and the user interaction information is encrypted to obtain an encrypted information frame; based on the teaming instruction and the second location information, the target communication mode between the first communication terminal and the second communication terminal is selected, and based on the target communication mode, the encrypted information frame is sent to the second communication terminal, so that the second communication terminal can decrypt the encrypted information frame to obtain the user interaction information.
[0039] As an example, the step of obtaining the user interaction information by collecting the user's voice information and / or typed text information includes:
[0040] When the information type of the user interaction information is voice user interaction information, the typed text information is recognized as voice recognition information, and the voice information and / or the voice recognition information are integrated to obtain the user interaction information. When the information type of the user interaction information is text user interaction information, the voice information is recognized as text recognition information, and the text recognition information and / or the typed text information are integrated to obtain the user interaction information.
[0041] As an example, the step of encrypting the user interaction information to obtain an encrypted information frame includes:
[0042] Sending a first key corresponding to the first communication terminal to the first communication terminal via the cloud server, wherein the first key includes a first public key and a first private key. Encrypting the user interaction information using the first public key to obtain an encrypted information frame, and then sending the encrypted information frame to the second terminal, so that the second communication terminal can decrypt the encrypted information frame to obtain the user interaction information;
[0043] As an example, the step of the second communication terminal decrypting the encrypted information frame to obtain the user interaction information includes:
[0044] The second key corresponding to the second communication terminal is sent to the second communication terminal via the cloud server, wherein the second key includes a second public key and a second private key. The encrypted information frame is decrypted using the second private key to obtain user interaction information.
[0045] Optionally, after the step of selecting a target communication mode according to the team formation instruction and the second location information, and sending the encrypted information frame to the second communication terminal according to the target communication mode, so that the second communication terminal decrypts the encrypted information frame to obtain the user interaction information, the step further includes:
[0046] The user's answer information is collected through the second communication terminal, the reply information is encrypted by the second public key to obtain an encrypted answer frame, and the encrypted answer frame is sent to the first communication terminal so that the first communication terminal can output the answer information corresponding to the encrypted answer frame; the encrypted answer frame sent by the second communication terminal is received, the encrypted answer frame is decrypted by the first private key to obtain answer information, and the first communication terminal is controlled to output the answer information.
[0047] Wherein, in step S10, the step of generating a team formation instruction includes:
[0048] Step S11, obtaining a first device code corresponding to the first communication terminal and a second device code corresponding to the second communication terminal;
[0049] Step S12: collecting first location information corresponding to the first communication terminal;
[0050] Step S13: Generate the teaming instruction according to the first device code, the second device code, the teaming request corresponding to the first communication terminal, and the first location information.
[0051] Exemplarily, steps S11 to S13 include: obtaining a first device code corresponding to the first communication terminal and a second device code corresponding to the second communication terminal; collecting first location information corresponding to the first communication terminal through a radar sensor or GPS system built into the first communication terminal; and splicing the first device code, the second device code, the teaming request corresponding to the first communication terminal, and the first location information into the teaming instruction.
[0052] As an example, the step of obtaining the second device code corresponding to the second communication terminal includes:
[0053] Obtain the second device code corresponding to the second communication terminal input by the user, or obtain the terminal name of the second communication terminal input by the user, and query the preset device code library based on the terminal name to obtain the second device code corresponding to the corresponding second communication terminal.
[0054] Wherein, in step S30, the target communication mode includes a communication mode through a base station and a communication mode not through a base station, and the step of selecting the target communication mode according to the team formation instruction and the second location information includes:
[0055] Step A10: Obtain the number of terminals of each communication terminal. If the number of terminals does not exceed a preset number threshold, determine an initial terminal distance between the first communication terminal and the second communication terminal and a preset stable communication distance corresponding to the non-base station communication mode based on the first location information and the second location information.
[0056] Step A20: If the initial terminal distance does not exceed the preset stable communication distance, selecting the non-base station communication mode as the target communication mode;
[0057] Step A30: If the initial terminal distance exceeds the preset stable communication distance, the base station communication mode is selected as the target communication mode.
[0058] In this embodiment, it should be noted that the above-mentioned base station communication mode is a mode of completing communication using a base station as a communication medium. The above-mentioned base station communication mode can be a 4G communication mode or a 5G communication mode. The above-mentioned non-base station communication mode is a mode of completing communication through an interface without passing through a base station. The above-mentioned non-base station communication mode can be a PC5 (the underlying direct cellular communication protocol of C-V2X) communication mode.
[0059] Exemplarily, steps A10 to A30 include: obtaining a first number of the first communication terminals and a second number of the second communication terminals, and taking the sum of the first number and the second number as the terminal number of each communication terminal; if the terminal number does not exceed a preset number threshold, generating an initial terminal distance between the first communication terminal and the second communication terminal based on the first position information and the second position information corresponding to the first communication terminal in the team formation instruction; determining a preset stable communication distance for stable communication when using the non-base station communication mode; judging whether the initial terminal distance exceeds the preset stable communication distance; if the initial terminal distance does not exceed the preset stable communication distance, selecting the non-base station communication mode as the target communication mode; if the initial terminal distance exceeds the preset stable communication distance, selecting the non-base station communication mode as the target communication mode.
[0060] As an example, the step of determining the preset stable communication distance corresponding to the non-base station communication mode includes: when the non-base station communication mode is the PC5 communication mode, determining the first communication capability of the first communication terminal and the second communication capability of the second communication terminal based on the first device code and the second device code, and obtaining the communication environment between the first communication terminal and the second communication terminal, wherein the communication environment includes at least one of weather information and obstruction information between the first communication terminal and the second communication terminal; generating the preset stable communication distance corresponding to the PC5 communication mode based on the first communication capability, the second communication capability and the communication environment.
[0061] It is understandable that the preset stable communication distance corresponding to the base station communication mode is long, but the charges are high. However, the preset stable communication distance corresponding to the base station communication mode is relatively short, but the cost is low. Therefore, by judging the initial terminal distance between the first communication terminal and the second communication terminal, a suitable communication mode is adapted for the vehicle-mounted real-time communication between the first communication terminal and the second communication terminal, thereby reducing the cost of vehicle-mounted real-time communication while ensuring the stability of vehicle-mounted real-time communication.
[0062] Among them, in step A30, after the step of selecting the base station communication mode as the target communication mode if the initial terminal distance exceeds the preset stable communication distance, the method further includes:
[0063] Step A40: determining an updated terminal distance between the first communication terminal and the second communication terminal and a hysteresis distance corresponding to the preset stable communication distance;
[0064] Step A50: If the update terminal distance exceeds a first distance, selecting the base station communication mode as the target communication mode, wherein the first distance is the sum of the preset stable communication distance and the hysteresis distance;
[0065] Step A60: If the update terminal distance does not reach a second distance, selecting the non-base station communication mode as the target communication mode, wherein the second distance is the difference between the preset stable communication distance and the hysteresis distance;
[0066] Step A70: If the update terminal distance reaches the second distance and does not exceed the first distance, the target communication mode is maintained unchanged.
[0067] In this embodiment, it should be noted that the hysteresis distance is a floating distance corresponding to the preset stable communication distance that can be communicated in the non-base station communication mode, and the hysteresis distance can be 100m or 50m.
[0068] Exemplarily, steps A40 to A70 include: when a change in the first location information and / or the second location information is detected, the distance difference between the first updated location information and the second updated location information is used as the updated terminal distance between the first communication terminal and the second communication terminal, and the floating distance that can be communicated under the non-base station communication mode is obtained as the hysteresis distance corresponding to the preset stable communication distance; if the updated terminal distance exceeds the first distance, the non-base station communication mode is selected as the target communication mode; if the updated terminal distance does not reach the second distance, the non-base station communication mode is selected as the target communication mode; if the updated terminal distance reaches the second distance and does not exceed the first distance, the initial terminal distance or the target communication mode corresponding to the updated terminal distance is kept unchanged; return to the execution step: obtain the updated terminal distance between the first communication terminal and the second communication terminal.
[0069] It is understandable that the target communication mode is selected only by presetting a stable communication distance. In actual communication scenarios, the distance fluctuation between the first communication terminal and the second communication terminal is uncertain, and frequent switching of communication modes is prone to occur, resulting in unstable and inefficient on-board real-time communication between the first communication terminal and the second communication terminal. By adding a hysteresis distance, the technical defect of frequent switching of communication modes due to small-base distance fluctuations is avoided, thereby improving the stability and efficiency of on-board real-time communication.
[0070] Wherein, in step S30, the step of selecting a target communication mode according to the team formation instruction and the second location information further includes:
[0071] Step B10: if the number of terminals exceeds a preset number threshold, generating terminal distances between the communication terminals based on the first location information and the second location information;
[0072] Step B20, determining whether there is a first target communication terminal among the communication terminals and the terminal distance between the first target communication terminal and the communication terminals does not exceed the preset stable communication distance;
[0073] Step B30: If so, select a single communication mode as the target communication mode, wherein the single communication mode is the same communication mode used between all the communication terminals;
[0074] Step B40: If no such communication mode exists, a hybrid communication mode is selected as the target communication mode, wherein the hybrid communication mode is a mode in which at least two communication modes are used between the communication terminals.
[0075] Exemplarily, steps B10 to B40 include: if the number of terminals exceeds a preset number threshold, generating the terminal distances between each of the communication terminals based on the first location information of the first communication terminal and the second location information of each communication terminal; judging whether there is a first target communication terminal among each of the communication terminals and the terminal distances between each of the communication terminals do not exceed the preset stable communication distance; if there is a first target communication terminal among each of the communication terminals and the terminal distances between each of the communication terminals do not exceed the preset stable communication distance, selecting a single communication mode as the target communication mode, and the communication mode between each of the communication terminals adopts the non-base station communication mode; if there is no first target communication terminal among each of the communication terminals and the terminal distances between each of the communication terminals do not exceed the preset stable communication distance, selecting a mixed communication mode as the target communication mode.
[0076] As an example, see Figure 2 , Figure 2 For the single communication mode, Figure 2 The present invention includes: a first target communication terminal (walkie-talkie A shown in the figure), each of the communication terminals (walkie-talkie B and RSU shown in the figure), a preset stable communication distance corresponding to the target communication terminal (S1 shown in the figure), and a preset stable communication distance S3 corresponding to the RSU. Since the terminal distance between the first target communication terminal and each of the communication terminals does not exceed the preset stable communication distance corresponding to each of the communication terminals, the single communication mode is selected as the target communication mode, and walkie-talkie B and RSU communicate with the first target communication terminal respectively without passing through the base station. Therefore, walkie-talkie B and RSU can communicate indirectly through the first target communication terminal.
[0077] In step B40, the step of selecting a hybrid communication mode as the target communication mode, wherein the hybrid communication mode is a step of using at least two communication modes between the communication terminals, includes:
[0078] Step B41, determining, among the communication terminals, a second target communication terminal whose terminal distance from at least one short-range communication terminal does not exceed the preset stable communication distance;
[0079] Step B42, selecting the non-base station mode as the target communication mode between the second target communication terminal and each of the short-range communication terminals;
[0080] Step B43: Select the base station-through mode as the target communication mode between the second target communication terminal and the long-distance communication terminal, wherein the long-distance communication terminal is a communication terminal other than the second target communication terminal and the short-distance communication terminal.
[0081] Exemplarily, steps B41 to B43 include: determining, among each of the communication terminals, a second target communication terminal whose terminal distance from at least one short-distance communication terminal does not exceed the preset stable communication distance; selecting the non-base station mode as the target communication mode between the second target communication terminal and each of the short-distance communication terminals, and each of the short-distance communication terminals communicates with the second target communication terminal respectively through the non-base station mode; selecting the non-base station mode as the target communication mode between the second target communication terminal and the long-distance communication terminal, and each of the long-distance communication terminals communicates with the second target communication terminal through the non-base station mode.
[0082] An embodiment of the present application provides a method for in-vehicle real-time communication. Compared to methods for in-vehicle real-time communication via full-duplex communication methods such as radio, social software, or telephone, the embodiment of the present application generates a teaming instruction and sends the teaming instruction to a cloud server, so that the cloud server can query and obtain second location information corresponding to a second communication terminal based on the teaming instruction; if the location information sent by the cloud server is received, user interaction information is collected and encrypted to obtain an encrypted information frame; a target communication method is selected based on the teaming instruction and the second location information, and the encrypted information frame is sent to the second communication terminal based on the target communication method, so that the second communication terminal can decrypt the encrypted information frame to obtain the user interaction information. This achieves real-time matching of appropriate communication methods based on the teaming instruction and private information exchange within the team queue, avoids technical defects such as the inability to achieve personal and private in-vehicle real-time communication due to the fact that most radio stations are public radio stations, or the delay of in-vehicle real-time communication that is prone to occur when there are few or no base stations between vehicles or roads, thereby achieving a balance between privacy and high efficiency of in-vehicle real-time communication.
[0083] Example 2
[0084] Further, refer to Figure 3 Based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction and will not be repeated hereafter. On this basis, the embodiment of the present application also provides a vehicle-mounted real-time communication method, which is applied to a cloud server. The vehicle-mounted real-time communication method includes:
[0085] Step C10: upon receiving the team formation instruction sent by the first communication terminal, querying and obtaining second location information corresponding to the second communication device according to the team formation instruction;
[0086] Step C20: Send the second location information to the first communication terminal, so that the first communication terminal can select a target communication mode according to the second location information.
[0087] Exemplarily, steps C10 to C20 include: when receiving a team formation instruction sent by a first communication terminal, sending the team formation request in the team formation instruction and the first device code corresponding to the first communication terminal to the second communication terminal, so that the second communication terminal can determine the team formation information based on the team formation request and the first device code, the team formation information including team formation agreement information and team formation failure information, receiving the team formation information sent by the second communication device, if the team formation information is team formation agreement information, querying and obtaining the second location information corresponding to the second communication terminal based on the second device code corresponding to the second communication terminal in the team formation information; if the team formation information is team formation failure information, sending the team formation failure information to the first communication terminal; sending the second location information to the first communication terminal, so that the first communication terminal can select the target communication mode based on the second location information.
[0088] As an example, the step of determining team information according to the team formation request and the first device code includes:
[0089] The team formation request and the first device code are displayed through the second communication terminal, so that the user can input a team formation operation according to the team formation request and the first device code; the team formation operation of the user is collected, wherein the team formation operation includes a click and / or typing operation of the user; the team formation intention of the user is determined based on the team formation operation, and if the team formation intention is to agree to the team formation intention, team formation success information is generated; if the team formation intention is to disagree to the team formation intention, team formation failure information is generated.
[0090] The vehicle-mounted real-time communication method further includes:
[0091] Step D10 : collecting the location information corresponding to each communication terminal at every preset time interval, and storing the location information corresponding to each communication terminal in association with the corresponding device code.
[0092] In this embodiment, it should be noted that the preset time interval is a preset time interval for the cloud server to collect location information of each communication terminal, and the preset time interval can be 1 minute or 5 minutes.
[0093] Exemplarily, step D10 includes: sending a location acquisition request to each communication terminal at a preset time interval; when each communication terminal receives the location acquisition request, sending the corresponding location information to the cloud server; the cloud server associates and stores the location information with the corresponding device code to achieve real-time update of the location information of each terminal device, thereby selecting the target communication mode according to the real-time location information.
[0094] As an example, see Figure 4 , Figure 4 It includes: a first communication terminal (the networked cooperative communication terminal A shown in the figure), a second communication terminal (the networked cooperative communication terminal B shown in the figure) and a target communication method (the V2X communication technology shown in the figure). The first communication terminal includes a teaming module, a voice collection module, an information encryption module and a sending module, and the second communication terminal includes a teaming module, a receiving module, a decryption module and a playback module. The teaming is confirmed by each of the teaming modules. After the teaming is confirmed, the voice collection model in the first communication terminal collects and outputs the voice information to the information encryption module. The voice information is received and encrypted by the information encryption module, and the encrypted information frame is obtained and output to the sending module. The sending module sends the encrypted information frame to the receiving module in the second communication terminal through the target communication method. The receiving module receives the encrypted information frame and sends the encrypted information frame to the decryption module. The encrypted information frame is decrypted by the decryption module to obtain voice information, and the voice information is sent to the playback module, and the voice information is played by the playback module.
[0095] As an example, see Figure 5 , Figure 5 It includes: a first communication terminal (the networked cooperative communication terminal A shown in the figure), a second communication terminal (the networked cooperative communication terminal B and the networked cooperative communication terminal C shown in the figure) and a target communication method (the V2X communication technology shown in the figure). The first communication terminal includes a teaming module, a voice collection module, an information encryption module and a sending module, and the second communication terminal includes a teaming module, a receiving module, a decryption module and a playback module. The teaming is confirmed by each of the teaming modules. After the teaming is confirmed, the voice collection model in the first communication terminal collects and outputs the voice information to the information encryption module. The voice information is received and encrypted by the information encryption module, and the encrypted information frame is obtained and output to the sending module. The sending module sends the encrypted information frame to the receiving module in the second communication terminal through the target communication method. The receiving module receives the encrypted information frame and sends the encrypted information frame to the decryption module. The encrypted information frame is decrypted by the decryption module to obtain voice information, and the voice information is sent to the playback module, and the voice information is played by the playback module.
[0096] An embodiment of the present application provides a method for in-vehicle real-time communication. Compared with a method for conducting in-vehicle real-time communication through full-duplex communication methods such as radio, social software, or telephone, the embodiment of the present application obtains second location information corresponding to a second communication device according to the teaming instruction when a teaming instruction sent by a first communication terminal is received; the second location information is sent to the first communication terminal so that the first communication terminal can select a target communication method according to the second location information, thereby realizing private information interaction within the team queue, avoiding the technical defect that personal and private in-vehicle real-time communication cannot be realized due to the fact that most radio stations are public radio stations, thereby realizing the privacy of in-vehicle real-time communication.
[0097] Example 3
[0098] The embodiment of the present application further provides a vehicle-mounted real-time communication device, which is applied to a first communication terminal and includes:
[0099] a generating module, configured to generate a team formation instruction and send the team formation instruction to a cloud server, so that the cloud server can query and obtain the second location information corresponding to the second communication terminal according to the team formation instruction;
[0100] an encryption module, configured to collect user interaction information upon receiving the location information sent by the cloud server, and encrypt the user interaction information to obtain an encrypted information frame;
[0101] A selection module is used to select a target communication mode according to the team formation instruction and the second location information, and send the encrypted information frame to the second communication terminal according to the target communication mode, so that the second communication terminal can decrypt the encrypted information frame to obtain the user interaction information.
[0102] Optionally, the generating module is further configured to:
[0103] Obtaining a first device code corresponding to the first communication terminal and a second device code corresponding to the second communication terminal;
[0104] collecting first location information corresponding to the first communication terminal;
[0105] The teaming instruction is generated according to the first device code, the second device code, the teaming request corresponding to the first communication terminal, and the first location information.
[0106] Optionally, the target communication mode includes a communication mode that passes through a base station and a communication mode that does not pass through a base station, and the selection module is further configured to:
[0107] Obtaining the number of terminals of each communication terminal, and if the number of terminals does not exceed a preset number threshold, determining, based on the first location information and the second location information, an initial terminal distance between the first communication terminal and the second communication terminal and a preset stable communication distance corresponding to the non-base station communication mode;
[0108] If the initial terminal distance does not exceed the preset stable communication distance, selecting the non-base station communication mode as the target communication mode;
[0109] If the initial terminal distance exceeds the preset stable communication distance, the base station communication mode is selected as the target communication mode.
[0110] Optionally, after the step of selecting the base station communication mode as the target communication mode if the initial terminal distance exceeds the preset stable communication distance, the vehicle-mounted real-time communication device is further configured to:
[0111] Determining an updated terminal distance between the first communication terminal and the second communication terminal and a hysteresis distance corresponding to the preset stable communication distance;
[0112] If the update terminal distance exceeds a first distance, selecting the base station communication mode as the target communication mode, wherein the first distance is the sum of the preset stable communication distance and the hysteresis distance;
[0113] If the update terminal distance does not reach a second distance, selecting the non-base station communication mode as the target communication mode, wherein the second distance is the difference between the preset stable communication distance and the hysteresis distance;
[0114] If the update terminal distance reaches the second distance and does not exceed the first distance, the target communication mode is maintained unchanged.
[0115] Optionally, the selection module is further configured to:
[0116] If the number of the terminals exceeds a preset number threshold, generating terminal distances between the communication terminals based on the first location information and the second location information;
[0117] Determining whether there is a first target communication terminal among the communication terminals and whether the terminal distances between the first target communication terminal and the communication terminals do not exceed the preset stable communication distance;
[0118] If so, a single communication mode is selected as the target communication mode, wherein the single communication mode is the same communication mode used between all the communication terminals;
[0119] If not, a hybrid communication mode is selected as the target communication mode, wherein the hybrid communication mode is that at least two communication modes are used between the communication terminals.
[0120] Optionally, the selection module is further configured to:
[0121] Determine, among the communication terminals, a second target communication terminal whose terminal distance from at least one short-range communication terminal does not exceed the preset stable communication distance;
[0122] selecting the non-base station mode as the target communication mode between the second target communication terminal and each of the short-range communication terminals;
[0123] The through-base-station mode is selected as the target communication mode between the second target communication terminal and the long-distance communication terminal, wherein the long-distance communication terminal is a communication terminal other than the second target communication terminal and the short-distance communication terminal.
[0124] The in-vehicle real-time communication device provided by this application utilizes the in-vehicle real-time communication method described in the aforementioned embodiments, resolving the technical issue of achieving both privacy and efficiency in in-vehicle real-time communication. Compared to the prior art, the beneficial effects of the in-vehicle real-time communication device provided by the embodiments of this application are the same as those of the in-vehicle real-time communication method described in the aforementioned embodiments. Other technical features of the in-vehicle real-time communication device are the same as those disclosed in the aforementioned embodiments and are not further elaborated here.
[0125] Example 4
[0126] The embodiment of the present application further provides a vehicle-mounted real-time communication device, which is applied to a cloud server and includes:
[0127] a query module, configured to, upon receiving a team formation instruction sent by the first communication terminal, query and obtain second location information corresponding to the second communication device according to the team formation instruction;
[0128] The sending module is used to send the second location information to the first communication terminal, so that the first communication terminal can select a target communication mode according to the second location information.
[0129] Optionally, the vehicle-mounted real-time communication device is further used to:
[0130] The location information corresponding to each communication terminal is collected at every preset time interval, and the location information corresponding to each communication terminal and the corresponding device code are associated and stored.
[0131] The in-vehicle real-time communication device provided by this application utilizes the in-vehicle real-time communication method described in the aforementioned embodiments, resolving the technical issue of achieving both privacy and efficiency in in-vehicle real-time communication. Compared to the prior art, the beneficial effects of the in-vehicle real-time communication device provided by the embodiments of this application are the same as those of the in-vehicle real-time communication method described in the aforementioned embodiments. Other technical features of the in-vehicle real-time communication device are the same as those disclosed in the aforementioned embodiments and are not further elaborated here.
[0132] Example 5
[0133] An embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the in-vehicle real-time communication method in the above embodiment.
[0134] Reference below Figure 6 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0135] like Figure 6 As shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0136] Typically, the following systems can be connected to the I / O interface: input devices such as a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices such as a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices such as a magnetic tape, hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figures show electronic devices with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented or have instead.
[0137] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0138] The electronic device provided in this application utilizes the in-vehicle real-time communication method of the aforementioned embodiment, resolving the technical problem of being unable to achieve both privacy and efficiency in in-vehicle real-time communication. Compared to the prior art, the beneficial effects of the electronic device provided in the embodiment of this application are the same as those of the in-vehicle real-time communication method provided in the aforementioned embodiment, and the other technical features of the electronic device are the same as those disclosed in the aforementioned embodiment, and are not further described here.
[0139] It should be understood that various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in an appropriate manner.
[0140] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0141] Example 6
[0142] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the method of the in-vehicle real-time communication method in the above embodiment.
[0143] The computer-readable storage medium provided in the embodiment of the present application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. A more specific example of a computer-readable storage medium can include, but is not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by an instruction execution system, a system or a device or used in combination therewith. The program code contained in the computer-readable storage medium can be transmitted with any appropriate medium, including but not limited to: an electric wire, an optical cable, RF (radio frequency), etc., or any suitable combination thereof.
[0144] The computer-readable storage medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0145] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the electronic device: generates a teaming instruction, and sends the teaming instruction to a cloud server, so that the cloud server can query and obtain the second location information corresponding to the second communication terminal according to the teaming instruction; if the location information sent by the cloud server is received, user interaction information is collected, the user interaction information is encrypted to obtain an encrypted information frame; the target communication mode is selected according to the teaming instruction and the second location information, and the encrypted information frame is sent to the second communication terminal according to the target communication mode, so that the second communication terminal can decrypt the encrypted information frame to obtain the user interaction information.
[0146] Alternatively, when a team formation instruction is received from the first communication terminal, the second location information corresponding to the second communication device is queried according to the team formation instruction; the second location information is sent to the first communication terminal so that the first communication terminal can select the target communication method according to the second location information.
[0147] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0148] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0149] The modules involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0150] The computer-readable storage medium provided in this application stores computer-readable program instructions for executing the aforementioned in-vehicle real-time communication method, resolving the technical issue of achieving both privacy and efficiency in in-vehicle real-time communication. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this embodiment of the application are the same as those of the in-vehicle real-time communication method provided in the aforementioned embodiment, and are not further elaborated here.
[0151] Example 7
[0152] The present application also provides a computer program product, comprising a computer program, which implements the steps of the above-mentioned in-vehicle real-time communication method when executed by a processor.
[0153] The computer program product provided in this application solves the technical problem of achieving both privacy and efficiency in real-time in-vehicle communication. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiments of this application are the same as those of the real-time in-vehicle communication method provided in the above embodiments, and will not be elaborated here.
[0154] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A vehicle-mounted real-time communication method, characterized in that: Applied to a first communication terminal, the vehicle-mounted real-time communication method includes: generating a team formation instruction, and sending the team formation instruction to a cloud server, so that the cloud server can query and obtain second location information corresponding to a second communication terminal according to the team formation instruction, wherein the first communication terminal is a communication terminal that sends user interaction information, and the second communication terminal is a communication terminal that plays user interaction information; If the second location information sent by the cloud server is received, collecting user interaction information, encrypting the user interaction information, and obtaining an encrypted information frame; selecting a target communication mode according to the team formation instruction and the second location information, and sending the encrypted information frame to the second communication terminal according to the target communication mode, so that the second communication terminal decrypts the encrypted information frame to obtain the user interaction information; The target communication mode includes a communication mode that passes through a base station and a communication mode that does not pass through a base station, and the step of selecting the target communication mode according to the team formation instruction and the second location information includes: Obtain the number of terminals of each communication terminal. If the number of terminals does not exceed a preset number threshold, determine the initial terminal distance between the first communication terminal and the second communication terminal and the preset stable communication distance corresponding to the non-base station communication mode based on the first location information and the second location information corresponding to the first communication terminal, wherein the step of determining the preset stable communication distance corresponding to the non-base station communication mode includes: when the non-base station communication mode is the PC5 communication mode, determine the first communication capability of the first communication terminal and the second communication capability of the second communication terminal based on the first device code corresponding to the first communication terminal and the second device code corresponding to the second communication terminal, and obtain the communication environment between the first communication terminal and the second communication terminal, wherein the communication environment includes at least one of weather information and shielding information between the first communication terminal and the second communication terminal; generate the preset stable communication distance corresponding to the PC5 communication mode based on the first communication capability, the second communication capability and the communication environment; If the initial terminal distance does not exceed the preset stable communication distance, selecting the non-base station communication mode as the target communication mode, wherein the non-base station communication mode is a mode of completing communication through an interface without passing through a base station; If the initial terminal distance exceeds the preset stable communication distance, the base station communication mode is selected as the target communication mode, wherein the base station communication mode is a mode of completing communication using a base station as a communication medium; Wherein, after the step of selecting the base station communication mode as the target communication mode if the initial terminal distance exceeds the preset stable communication distance, the method further includes: Determining an updated terminal distance between the first communication terminal and the second communication terminal and a hysteresis distance corresponding to the preset stable communication distance, wherein the hysteresis distance is a floating distance corresponding to the preset stable communication distance that allows communication in the non-base station communication mode; If the update terminal distance exceeds a first distance, selecting the base station communication mode as the target communication mode, wherein the first distance is the sum of the preset stable communication distance and the hysteresis distance; If the update terminal distance does not reach a second distance, selecting the non-base station communication mode as the target communication mode, wherein the second distance is the difference between the preset stable communication distance and the hysteresis distance; If the update terminal distance reaches the second distance and does not exceed the first distance, the target communication mode is maintained unchanged.
2. The vehicle-mounted real-time communication method according to claim 1, wherein: The step of generating a team formation instruction comprises: Obtaining the first device code and the second device code; collecting the first location information; The teaming instruction is generated according to the first device code, the second device code, the teaming request corresponding to the first communication terminal, and the first location information.
3. The vehicle-mounted real-time communication method according to claim 2, wherein: The step of selecting a target communication mode according to the team formation instruction and the second location information further includes: If the number of the terminals exceeds a preset number threshold, generating terminal distances between the communication terminals based on the first location information and the second location information; Determining whether there is a first target communication terminal among the communication terminals and whether the terminal distances between the first target communication terminal and the communication terminals do not exceed the preset stable communication distance; If so, a single communication mode is selected as the target communication mode, wherein the single communication mode is the same communication mode used between all the communication terminals; If not, a hybrid communication mode is selected as the target communication mode, wherein the hybrid communication mode is that at least two communication modes are used between the communication terminals.
4. The vehicle-mounted real-time communication method according to claim 3, wherein: The step of selecting a hybrid communication mode as the target communication mode, wherein the hybrid communication mode is a step of using at least two communication modes between the communication terminals, includes: Determine, among the communication terminals, a second target communication terminal whose terminal distance from at least one short-range communication terminal does not exceed the preset stable communication distance; selecting the non-base station communication mode as the target communication mode between the second target communication terminal and each of the short-range communication terminals; The base station communication mode is selected as the target communication mode between the second target communication terminal and the long-distance communication terminal, wherein the long-distance communication terminal is a communication terminal other than the second target communication terminal and the short-distance communication terminal.
5. A vehicle-mounted real-time communication method, characterized in that: Applied to a cloud server, the vehicle-mounted real-time communication method includes: When receiving a team formation instruction sent by a first communication terminal, querying and obtaining second location information corresponding to a second communication terminal according to the team formation instruction, wherein the first communication terminal is the communication terminal that sends the user interaction information, and the second communication terminal is the communication terminal that plays the user interaction information; sending the second location information to the first communication terminal so that the first communication terminal can collect user interaction information, encrypting the user interaction information to obtain an encrypted information frame, selecting a target communication mode according to the team formation instruction and the second location information, sending the encrypted information frame to the second communication terminal according to the target communication mode, and the second communication terminal decrypting the encrypted information frame to obtain the user interaction information; The target communication mode includes a communication mode that passes through a base station and a communication mode that does not pass through a base station, and the step of selecting the target communication mode according to the team formation instruction and the second location information includes: Obtain the number of terminals of each communication terminal. If the number of terminals does not exceed a preset number threshold, determine the initial terminal distance between the first communication terminal and the second communication terminal and the preset stable communication distance corresponding to the non-base station communication mode based on the first location information and the second location information corresponding to the first communication terminal, wherein the step of determining the preset stable communication distance corresponding to the non-base station communication mode includes: when the non-base station communication mode is the PC5 communication mode, determine the first communication capability of the first communication terminal and the second communication capability of the second communication terminal based on the first device code corresponding to the first communication terminal and the second device code corresponding to the second communication terminal, and obtain the communication environment between the first communication terminal and the second communication terminal, wherein the communication environment includes at least one of weather information and shielding information between the first communication terminal and the second communication terminal; generate the preset stable communication distance corresponding to the PC5 communication mode based on the first communication capability, the second communication capability and the communication environment; If the initial terminal distance does not exceed the preset stable communication distance, selecting the non-base station communication mode as the target communication mode, wherein the non-base station communication mode is a mode of completing communication through an interface without passing through a base station; If the initial terminal distance exceeds the preset stable communication distance, the base station communication mode is selected as the target communication mode, wherein the base station communication mode is a mode of completing communication using a base station as a communication medium; Determining an updated terminal distance between the first communication terminal and the second communication terminal and a hysteresis distance corresponding to the preset stable communication distance, wherein the hysteresis distance is a floating distance corresponding to the preset stable communication distance that allows communication in the non-base station communication mode; If the update terminal distance exceeds a first distance, selecting the base station communication mode as the target communication mode, wherein the first distance is the sum of the preset stable communication distance and the hysteresis distance; If the update terminal distance does not reach a second distance, selecting the non-base station communication mode as the target communication mode, wherein the second distance is the difference between the preset stable communication distance and the hysteresis distance; If the update terminal distance reaches the second distance and does not exceed the first distance, the target communication mode is maintained unchanged.
6. The vehicle-mounted real-time communication method according to claim 5, wherein: The vehicle-mounted real-time communication method further includes: The location information corresponding to each communication terminal is collected at every preset time interval, and the location information corresponding to each communication terminal and the corresponding device code are associated and stored.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the in-vehicle real-time communication method according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program for implementing the in-vehicle real-time communication method, and the program for implementing the in-vehicle real-time communication method is executed by a processor to implement the steps of the in-vehicle real-time communication method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Fleet control methods, devices, storage media, chips, electronic equipment and vehicles
CN114937351A