Data transmission method, data transmission device, electronic equipment and storage medium
By establishing a near-field communication channel between the vehicle end and the mobile end, the mobile transmission of vehicle end data is realized, solving the problem that users cannot save and view dash recorder data, and improving the user experience.
Patent Information
- Application Number
- CN202510125058.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2025-05-09
AI Technical Summary
In the prior art, the video images and sounds recorded by the driving recorder can only be viewed on the vehicle machine, and the user cannot save the required video images and sounds such as the external scenery of the vehicle, and the user experience is poor.
By establishing a near field communication channel between the vehicle end and the mobile end, the vehicle end responds to the mobile end's near field communication request, and transmits target data to the mobile end through near field communication to realize the mobile end transmission of the vehicle end data.
Users can selectively save video images and sounds during driving saved on the vehicle side on the mobile side, and view them at any time on the mobile side, improving the user experience.
Smart Images

Figure CN119967388A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of data transmission, and in particular, to a data transmission method, a data transmission device, an electronic device, and a storage medium. Background Art
[0002] With the development of the new energy vehicle field, cars have added functions such as intelligent navigation systems, intelligent entertainment systems and 360° panoramic imaging. The driving recorder installed in the car can record video images and sounds during driving, and the recorded video images and sounds can be used to record the external scenery of the vehicle and determine the responsibility for traffic accidents.
[0003] At present, the video images and sounds recorded by the driving recorder can only be viewed from the car computer.
[0004] However, when viewing the video images and sounds recorded by the driving recorder on the vehicle computer, the user cannot save the required video images and sounds such as the external scenery of the vehicle, and the user experience of viewing the video images through the vehicle computer is poor. Summary of the invention
[0005] In view of this, embodiments of the present application provide a data transmission method, a data transmission device, an electronic device, and a computer storage medium to at least partially solve the above problems.
[0006] According to a first aspect of an embodiment of the present application, a data transmission method is provided, which is applied to a vehicle side, and includes: in response to a near field communication request sent by a mobile side, establishing a near field communication channel with a mobile side, wherein the mobile side and the vehicle side are located in the same local area network; receiving a data transmission request sent by the mobile side via near field communication; and transmitting target data to the mobile side via near field communication according to the data transmission request.
[0007] In one possible implementation, the establishing of a near field communication channel with the mobile terminal in response to a near field communication request sent by the mobile terminal includes: receiving a near field communication request sent by the mobile terminal; authenticating the mobile terminal through near field communication according to the near field communication request; and establishing the near field communication channel with the mobile terminal if the authentication is successful.
[0008] In one possible implementation, the transmitting of the target data to the mobile terminal via near field communication includes: if the near field communication channel is interrupted, recording the transmitted target data, and when the near field communication channel is re-established, transmitting the target data to be transmitted to the mobile terminal via near field communication, wherein the target data to be transmitted is the target data that has not been transmitted.
[0009] According to the second aspect of an embodiment of the present application, a data transmission method is provided, which is applied to a mobile terminal, including: sending a near-field communication request to a vehicle terminal, wherein the vehicle terminal and the mobile terminal are located in the same local area network; after establishing a near-field communication channel with the vehicle terminal, sending a data transmission request to the vehicle terminal via near-field communication; and receiving target data transmitted by the vehicle terminal in response to the data transmission request.
[0010] In a possible implementation, after establishing a near-field communication channel with the vehicle end, sending a data transmission request to the vehicle end through near-field communication, includes: after establishing a near-field communication channel with the vehicle end, sending a data query request to the vehicle end through near-field communication; receiving a data list sent by the vehicle end in response to the data query request; and according to the data list, sending a data transmission request corresponding to the target data to the vehicle end through the near-field communication.
[0011] In a possible implementation, the method further includes: receiving a data sharing request sent by the vehicle end; and receiving target data sent by the vehicle end through near field communication according to the data sharing request.
[0012] In one possible implementation, the receiving of target data transmitted by the vehicle end in response to a data transmission request includes: obtaining the occupied space of the sub-data stream transmitted by the vehicle end in response to the data transmission request, wherein the target data includes at least one sub-data stream; obtaining the remaining space capacity; if the occupied space of the sub-data stream is less than or equal to the remaining space capacity, receiving the sub-data stream; if the occupied space of the sub-data stream is greater than the remaining space capacity, sending an insufficient space signal to the vehicle end to cause the vehicle end to stop transmitting the target data.
[0013] According to the third aspect of an embodiment of the present application, a data transmission device is provided, including: a response unit, used to establish a near field communication channel with a mobile terminal in response to a near field communication request sent by the mobile terminal, wherein the mobile terminal and the vehicle terminal are located in the same local area network; a receiving unit, used to receive a data transmission request sent by the mobile terminal via near field communication; and a transmission unit, used to transmit target data to the mobile terminal via near field communication according to the data transmission request.
[0014] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method described in the first aspect or the second aspect.
[0015] According to a fifth aspect of the embodiments of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect or the second aspect is implemented.
[0016] According to the data transmission method provided in the embodiment of the present application, the vehicle end responds to the near-field communication request sent by the mobile end, establishes a near-field communication channel with the mobile end, receives the data transmission request sent by the mobile end through the near-field communication, and transmits the target data to the mobile end through the near-field communication according to the data transmission request, so that the vehicle end transmits data to the mobile end through the near-field communication, thereby realizing the acquisition of the video images and sounds of the driving process saved by the vehicle end on the mobile end. Compared with the prior art, the user can selectively save the video images and sounds of the driving process saved by the vehicle end, and can view the video images and sounds that need to be saved on the mobile end at any time through the mobile end, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0018] Figure 1 is a flow chart of a data transmission method provided in an embodiment of the present application;
[0019] Figure 2 is a flow chart of another data transmission method provided by an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of a data transmission device provided in an embodiment of the present application;
[0021] Figure 4 is a schematic diagram of another data transmission device provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the 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. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0024] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0025] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0026] As mentioned above, with the development of the new energy vehicle field, cars have added functions such as intelligent navigation systems, intelligent entertainment systems, and 360° panoramic images. The dash cam installed in the car can record the video images and sounds during driving, and the recorded video images and sounds can be used to record the external scenery of the vehicle and determine the responsibility for traffic accidents. At present, the video images and sounds recorded by the dash cam can only be viewed from the car computer. However, when viewing the video images and sounds recorded by the dash cam from the car computer, users cannot save the required video images and sounds such as the external scenery of the vehicle, and the user experience of viewing the video images through the car computer is poor.
[0027] An embodiment of the present application provides a data transmission method, in which the vehicle side responds to a near field communication request sent by the mobile side, establishes a near field communication channel with the mobile side, receives a data transmission request sent by the mobile side through the near field communication, and transmits target data to the mobile side through the near field communication according to the data transmission request, so that the vehicle side transmits data to the mobile side through the near field communication, thereby enabling the mobile side to obtain the video images and sounds of the driving process saved by the vehicle side. Compared with the prior art, the user can selectively save the video images and sounds of the driving process saved by the vehicle side, and can view the video images and sounds that need to be saved at any time through the mobile side after obtaining them on the mobile side, thereby improving the user experience.
[0028] The data transmission method provided by the present application is described below by way of examples.
[0029] Figure 1 is a flow chart of a data transmission method provided in an embodiment of the present application, and the data transmission method is applied to a vehicle side, such as Figure 1 As shown, the data transmission method includes the following steps 101 to 103:
[0030] Step 101: In response to a near field communication request sent by a mobile terminal, establish a near field communication channel with the mobile terminal.
[0031] The vehicle side turns on the local area network, responds to the access of the mobile side, and establishes a local area network connection with the mobile side. For example, the vehicle side turns on the WIFI hotspot, and the mobile side searches for and connects to the WIFI hotspot turned on by the vehicle side. The vehicle side and the mobile side are connected through the WIFI hotspot, so that the vehicle side and the mobile side are located in the same local area network. The vehicle side receives and responds to the near field communication (NFC) request sent by the mobile side, and establishes a near field communication channel with the mobile side, wherein the near field communication channel can be used for data transmission.
[0032] Step 102: Receive a data transmission request sent by a mobile terminal via near field communication.
[0033] The vehicle end receives a data transmission request sent by the mobile end through near field communication, wherein the data transmission request indicates target data that needs to be transmitted from the vehicle end to the mobile end.
[0034] Step 103: According to the data transmission request, the target data is transmitted to the mobile terminal through near field communication.
[0035] After receiving the data transmission request, the vehicle determines the target data to be transmitted to the mobile terminal according to the data transmission request, and transmits the target data to the mobile terminal through the established near field communication channel by means of near field communication.
[0036] In an embodiment of the present application, the vehicle side responds to a near-field communication request sent by the mobile side, establishes a near-field communication channel with the mobile side, receives a data transmission request sent by the mobile side through near-field communication, and transmits target data to the mobile side through near-field communication according to the data transmission request, thereby realizing data transmission from the vehicle side to the mobile side through near-field communication, thereby enabling the mobile side to obtain the video images and sounds of the driving process saved by the vehicle side. Compared with the prior art, the user can selectively save the video images and sounds of the driving process saved by the vehicle side, and can view the video images and sounds that need to be saved on the mobile side at any time through the mobile side, thereby improving the user experience.
[0037] In one possible implementation, when establishing a near field communication channel with a mobile terminal in response to a near field communication request sent by the mobile terminal, the near field communication request sent by the mobile terminal can be received, and the mobile terminal can be authenticated through near field communication based on the near field communication request. If the authentication is successful, a near field communication channel is established with the mobile terminal.
[0038] The vehicle side receives the near-field communication request sent by the mobile side, and performs identity authentication on the mobile side through near-field communication according to the near-field communication request. If the identity authentication is successful, a near-field communication channel is established with the mobile side. If the identity authentication is not successful, a near-field communication channel is not established with the mobile side. In one example, after the vehicle side receives the near-field communication request sent by the mobile side, it verifies through near-field communication whether the same owner account and the same vehicle VIN code are logged in on the vehicle side and the mobile side driving recorder app. If the same owner account and the same vehicle VIN code are logged in on the vehicle side and the mobile side driving recorder app, the identity authentication is successful, and a near-field communication channel is established between the vehicle side and the mobile side.
[0039] In an embodiment of the present application, the vehicle end receives a near-field communication request sent by the mobile end, and authenticates the mobile end through near-field communication based on the near-field communication request. If the authentication is successful, a near-field communication channel is established with the mobile end. This allows data transmission through near-field communication when the authentication is successful, thereby ensuring the security of data transmission.
[0040] In one possible implementation, when transmitting target data to a mobile terminal via near field communication, if the near field communication channel is interrupted, the transmitted target data is recorded. When the near field communication channel is re-established, the target data to be transmitted is transmitted to the mobile terminal via near field communication, wherein the target data to be transmitted is the target data that has not been transmitted.
[0041] When transmitting target data to the mobile terminal through near-field communication, if the near-field communication channel for transmitting the target data is interrupted, for example, the user actively triggers to pause data transmission, network failure or terminal device failure causes data transmission interruption, etc., the vehicle end will record the transmitted target data, that is, the information of the sub-data stream in the target data sub-data stream that the vehicle end has transmitted to the mobile terminal. When the near-field communication channel is re-established, the vehicle end transmits the sub-data stream in the target data sub-data stream that has not been transmitted to the mobile terminal to the mobile terminal through near-field communication based on the information of the sub-data stream in the target data sub-data stream that the vehicle end has transmitted to the mobile terminal, that is, the remaining sub-data stream to be transmitted after the sub-data breakpoint where the transmission of the vehicle end to the mobile terminal is interrupted. For example: the target data is divided into four sub-data streams, and the near-field communication channel is interrupted when transmitting the third sub-data stream. When the near-field communication channel is re-established, the vehicle end continues to transmit the third sub-data stream and the fourth sub-data stream to the mobile terminal through near-field communication from the position where the transmission of the third sub-data stream is interrupted.
[0042] In an embodiment of the present application, if the near-field communication channel is interrupted, the transmitted target data is recorded. When the near-field communication channel is re-established, the target data to be transmitted is transmitted to the mobile terminal via near-field communication, thereby enabling the target data to be transmitted from the location where the data transmission was interrupted to continue. When the target data transmission is interrupted, there is no need to re-perform complete data transmission, thereby improving the efficiency of data transmission.
[0043] Figure 2 is a flow chart of another data transmission method provided in an embodiment of the present application, and the data transmission method is applied to a mobile terminal, such as Figure 2 As shown, the data transmission method includes the following steps 201 to 203:
[0044] Step 201: Send a near field communication request to the vehicle.
[0045] The mobile terminal accesses the LAN opened by the vehicle terminal and establishes a LAN connection with the vehicle terminal. For example, the vehicle terminal opens a WIFI hotspot, and the mobile terminal searches for and connects to the WIFI hotspot opened by the vehicle terminal. Then, the vehicle terminal and the mobile terminal are connected through the WIFI hotspot, so that the vehicle terminal and the mobile terminal are in the same LAN, and the mobile terminal sends a near-field communication request to the vehicle terminal.
[0046] Step 202: After establishing a near field communication channel with the vehicle end, a data transmission request is sent to the vehicle end via near field communication.
[0047] After establishing a near field communication channel with the vehicle end, the mobile end sends a data transmission request to the vehicle end through near field communication, wherein the data transmission request indicates target data that needs to be transmitted from the vehicle end to the mobile end.
[0048] Step 203: Receive the target data transmitted by the vehicle end in response to the data transmission request.
[0049] The mobile terminal receives several sub-data streams of the target data transmitted by the vehicle terminal in response to the data transmission request through the near field communication channel, and saves the sub-data streams to the directory specified by the mobile terminal. Before obtaining the sub-data stream from the vehicle terminal each time, it determines whether the download has been completed. If the download has not been completed, it continues to obtain the sub-data stream transmitted by the vehicle terminal. If the download is completed, a notification of data transmission completion is sent to the vehicle terminal, so that the vehicle terminal stops the data transmission task. The target data transmitted by the vehicle terminal in response to the data transmission request received by the mobile terminal can be saved in the storage space of the mobile terminal so that it can be viewed at any time through the mobile terminal.
[0050] In an embodiment of the present application, the mobile terminal sends a near-field communication request to the vehicle terminal. After establishing a near-field communication channel with the vehicle terminal, the mobile terminal sends a data transmission request to the vehicle terminal via near-field communication, and receives the target data transmitted by the vehicle terminal in response to the data transmission request, so that the mobile terminal receives the data transmitted by the vehicle terminal via near-field communication, thereby enabling the mobile terminal to view the video images and sounds of the driving process saved by the vehicle terminal on the mobile terminal. Compared with the prior art, the user can selectively save the video images and sounds of the driving process saved by the vehicle terminal, and can view the video images and sounds that need to be saved on the mobile terminal at any time through the mobile terminal, thereby improving the user experience.
[0051] In one possible implementation, after establishing a near-field communication channel with the vehicle-end, when sending a data transmission request to the vehicle-end through near-field communication, after establishing a near-field communication channel with the vehicle-end, a data query request can be sent to the vehicle-end through near-field communication, and a data list sent by the vehicle-end in response to the data query request can be received, and according to the data list, a data transmission request corresponding to the target data can be sent to the vehicle-end through near-field communication.
[0052] After the mobile terminal establishes a near-field communication channel with the vehicle terminal, it sends a data query request to the vehicle terminal through the near-field communication, wherein the data query request includes at least one of querying the type of data stored on the vehicle terminal, querying the data content contained in a certain data type stored on the vehicle terminal, and querying the data content stored on a specific date on the vehicle terminal. The mobile terminal receives the data list sent by the vehicle terminal in response to the data query request, determines the target data requested to be transmitted by the vehicle terminal in the data list, and sends a data transmission request corresponding to the target data to the vehicle terminal through the near-field communication. For example, the mobile terminal sends a request to view pictures stored in the past week to the vehicle terminal through the near-field communication. The mobile terminal receives a list of 50 pictures stored in the past week sent by the vehicle terminal, and can select 20 pictures that need to be downloaded to the mobile terminal, and sends a data transmission request for transmitting the 20 pictures to the vehicle terminal.
[0053] In an embodiment of the present application, after establishing a near-field communication channel with the vehicle end, a data query request is sent to the vehicle end via near-field communication, and a data list sent by the vehicle end in response to the data query request is received. According to the data list, a data transmission request corresponding to the target data is sent to the vehicle end via near-field communication. This allows the mobile end to view the data locally stored on the vehicle end, thereby enabling the mobile end to select the target data that needs to be transmitted from the vehicle end to the mobile end, allowing the user to save the data recorded by the vehicle's driving recorder as needed.
[0054] In a possible implementation, the data transmission method may also receive a data sharing request sent by the vehicle end, and receive the target data sent by the vehicle end through near field communication according to the data sharing request.
[0055] The vehicle end can also actively share data with the mobile end. Specifically, the mobile end receives the data sharing request sent by the vehicle end, obtains the target data information indicated by the data sharing request, and receives the target data sent by the vehicle end through near-field communication. In one example, after receiving the data sharing request, the mobile end can detect whether the target data exists in the storage space of the mobile end. If the target data does not exist in the storage space of the mobile end, a data transmission request is sent to the vehicle end, and the target data sent by the vehicle end in response to the data transmission request is received through near-field communication. If the target data exists in the storage space of the mobile end, a notification that the data exists is sent to the vehicle end.
[0056] In an embodiment of the present application, a data sharing request sent by the vehicle side is received, and according to the data sharing request, the target data sent by the vehicle side is received through near-field communication. The target data sent by the vehicle side in response to the data transmission request is received through near-field communication. This allows the mobile side to receive the target data actively shared from the vehicle side, and when the target data exists in the storage space of the mobile side, a notification that the data exists can be sent to the vehicle side, thereby avoiding the transmission of duplicate data.
[0057] In one possible implementation, when receiving the target data transmitted by the vehicle end in response to the data transmission request, the occupied space of the sub-data stream transmitted by the vehicle end in response to the data transmission request can be obtained, wherein the target data includes at least one sub-data stream, and the remaining space capacity is obtained. If the occupied space of the sub-data stream is less than or equal to the remaining space capacity, the sub-data stream is received; if the occupied space of the sub-data stream is greater than the remaining space capacity, an insufficient space signal is sent to the vehicle end to cause the vehicle end to stop transmitting the target data.
[0058] When the vehicle receives a data transmission request sent by the mobile terminal through near-field communication, the target data can be divided into several sub-data streams, and several sub-data streams are sent to the mobile terminal through near-field communication to transmit the target data. In one example, the vehicle sends a binary sub-data stream of 512K in size to the mobile terminal each time through near-field communication.
[0059] The mobile terminal obtains the occupied space of the sub-data stream transmitted by the vehicle terminal in response to the data transmission request and the remaining space capacity of the sub-data stream that can be obtained in the storage space of the mobile terminal. If the occupied space of the sub-data stream is less than or equal to the remaining space capacity, the mobile terminal receives the sub-data stream of the target data transmitted by the vehicle terminal. For example, if the size of the sub-data stream is 512kb and the remaining space of the mobile terminal is 1024kb, the sub-data stream transmitted by the vehicle terminal is received. If the occupied space of the sub-data stream is greater than the remaining space capacity, the mobile terminal does not receive the sub-data stream transmitted by the vehicle terminal, and sends an insufficient space signal to the vehicle terminal to stop the vehicle terminal from transmitting the target data. For example, if the size of the sub-data stream is 512kb and the remaining space of the mobile terminal is 256kb, the sub-data stream transmitted by the vehicle terminal is not received, and an insufficient space signal is sent to the vehicle terminal to stop the vehicle terminal from transmitting the target data.
[0060] In an embodiment of the present application, the occupied space of the sub-data stream transmitted by the vehicle end in response to a data transmission request is obtained, wherein the target data includes at least one sub-data stream, and the remaining space capacity is obtained. If the occupied space of the sub-data stream is less than or equal to the remaining space capacity, the sub-data stream is received. If the occupied space of the sub-data stream is greater than the remaining space capacity, an insufficient space signal is sent to the vehicle end to stop transmitting the target data. This realizes notifying the vehicle end to stop data transmission when the remaining space on the mobile end is insufficient, thereby avoiding abnormalities caused by data transmission failure.
[0061] Figure 3 is a schematic diagram of a data transmission device provided in an embodiment of the present application. The data transmission device 300 is applied to a vehicle end, such as Figure 3 As shown, the device 300 includes:
[0062] A response unit 301 is used to establish a near field communication channel with the mobile terminal in response to a near field communication request sent by the mobile terminal, wherein the mobile terminal and the vehicle terminal are located in the same local area network;
[0063] The receiving unit 302 is used to receive a data transmission request sent by the mobile terminal via near field communication;
[0064] The transmission unit 303 is used to transmit target data to the mobile terminal through near field communication according to the data transmission request.
[0065] In the embodiment of the present application, the response unit 301 may be used to execute step 101 in the above method embodiment, the receiving unit 302 may be used to execute step 102 in the above method embodiment, and the transmission unit 303 may be used to execute step 103 in the above method embodiment.
[0066] In a possible implementation, the response unit 301 may also receive a near field communication request sent by the mobile terminal; perform identity authentication on the mobile terminal through near field communication according to the near field communication request; if the identity authentication is successful, establish a near field communication channel with the mobile terminal.
[0067] In one possible implementation, the transmission unit 303 may also record the transmitted target data if the near-field communication channel is interrupted, and when the near-field communication channel is re-established, transmit the target data to be transmitted to the mobile terminal via near-field communication, wherein the target data to be transmitted is the target data that has not been transmitted.
[0068] Figure 4 is a schematic diagram of another data transmission device provided in an embodiment of the present application. The data transmission device 400 is applied to a mobile terminal, such as Figure 4 As shown, the device 400 includes:
[0069] The sending unit 401 is used to send a near field communication request to the vehicle end, wherein the vehicle end and the mobile end are located in the same local area network;
[0070] The request unit 402 is used to send a data transmission request to the vehicle end through the near field communication after establishing a near field communication channel with the vehicle end;
[0071] The acquisition unit 403 is used to receive the target data transmitted by the vehicle end in response to the data transmission request.
[0072] In an embodiment of the present application, the sending unit 401 may be used to execute step 201 in the above method embodiment, the requesting unit 402 may be used to execute step 202 in the above method embodiment, and the acquiring unit 403 may be used to execute step 203 in the above method embodiment.
[0073] In one possible implementation, the request unit 402 can also send a data query request to the vehicle end through near-field communication after establishing a near-field communication channel with the vehicle end; receive a data list sent by the vehicle end in response to the data query request; and according to the data list, send a data transmission request corresponding to the target data to the vehicle end through near-field communication.
[0074] In a possible implementation, the data transmission device 400 may also receive a data sharing request sent by the vehicle end; and receive the target data sent by the vehicle end through near field communication according to the data sharing request.
[0075] In a possible implementation, the acquisition unit 403 can also obtain the occupied space of the sub-data stream transmitted by the vehicle end in response to the data transmission request, wherein the target data includes at least one sub-data stream; obtain the remaining space capacity; if the occupied space of the sub-data stream is less than or equal to the remaining space capacity, receive the sub-data stream; if the occupied space of the sub-data stream is greater than the remaining space capacity, send an insufficient space signal to the vehicle end to cause the vehicle end to stop transmitting the target data.
[0076] Reference Figure 5 , shows a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0077] like Figure 5 As shown, the electronic device may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0078] in:
[0079] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .
[0080] The communication interface 504 is used to communicate with other electronic devices or servers.
[0081] The processor 502 is used to execute the program 510, and specifically can execute the relevant steps in the above-mentioned data transmission method embodiment.
[0082] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0083] The processor 502 may be a central processing unit (CPU), a graphics processing unit (GPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; one or more GPUs; or different types of processors, such as one or more CPUs, one or more GPUs, and one or more ASICs.
[0084] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0085] The program 510 may be specifically used to enable the processor 502 to execute the data transmission method in any of the aforementioned embodiments.
[0086] The specific implementation of each step in program 510 can refer to the corresponding description of the corresponding steps and units in any of the aforementioned data transmission method embodiments, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the aforementioned method embodiments, which will not be repeated here.
[0087] In an embodiment of the present application, the vehicle side responds to a near-field communication request sent by the mobile side, establishes a near-field communication channel with the mobile side, receives a data transmission request sent by the mobile side through near-field communication, and transmits target data to the mobile side through near-field communication according to the data transmission request, thereby realizing data transmission from the vehicle side to the mobile side through near-field communication, thereby enabling the mobile side to obtain the video images and sounds of the driving process saved by the vehicle side. Compared with the prior art, the user can selectively save the video images and sounds of the driving process saved by the vehicle side, and can view the video images and sounds that need to be saved on the mobile side at any time through the mobile side, thereby improving the user experience.
[0088] An embodiment of the present application also provides a computer program product, including computer instructions, which instruct a computing device to execute operations corresponding to any one of the above-mentioned multiple method embodiments.
[0089] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0090] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a special-purpose processor or programmable or special-purpose hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the data transmission method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the data transmission method shown here, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the data transmission method shown here.
[0091] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0092] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.
Claims
1. A data transmission method, applied to a vehicle, characterized in that: include: In response to a near field communication request sent by a mobile terminal, establishing a near field communication channel with the mobile terminal, wherein the mobile terminal and the vehicle terminal are located in the same local area network; Receiving a data transmission request sent by the mobile terminal via near field communication; According to the data transmission request, target data is transmitted to the mobile terminal through near field communication.
2. The method according to claim 1, characterized in that The step of establishing a near field communication channel with the mobile terminal in response to a near field communication request sent by the mobile terminal includes: Receiving a near field communication request sent by the mobile terminal; According to the near field communication request, authenticating the mobile terminal through near field communication; If the identity authentication is successful, the near field communication channel is established with the mobile terminal.
3. The method according to claim 1, characterized in that The transmitting the target data to the mobile terminal through near field communication includes: If the near field communication channel is interrupted, the transmitted target data is recorded, and when the near field communication channel is re-established, the target data to be transmitted is transmitted to the mobile terminal through near field communication, wherein the target data to be transmitted is the target data that has not been transmitted.
4. A data transmission method, applied to a mobile terminal, characterized in that: include: Sending a near field communication request to the vehicle terminal, wherein the vehicle terminal and the mobile terminal are located in the same local area network; After establishing a near field communication channel with the vehicle end, sending a data transmission request to the vehicle end through near field communication; Receive target data transmitted by the vehicle end in response to the data transmission request.
5. The method according to claim 4, characterized in that After establishing a near field communication channel with the vehicle end, sending a data transmission request to the vehicle end through near field communication includes: After establishing a near field communication channel with the vehicle end, sending a data query request to the vehicle end through near field communication; receiving a data list sent by the vehicle end in response to the data query request; According to the data list, a data transmission request corresponding to the target data is sent to the vehicle end through the near field communication.
6. The method according to claim 4, characterized in that The method further comprises: Receiving a data sharing request sent by the vehicle end; According to the data sharing request, the target data sent by the vehicle end is received through near field communication.
7. The method according to claim 4, characterized in that The receiving target data transmitted by the vehicle end in response to the data transmission request comprises: Acquire the occupied space of the sub-data stream transmitted by the vehicle end in response to the data transmission request, wherein the target data includes at least one sub-data stream; Get the remaining space capacity; If the space occupied by the sub-data stream is less than or equal to the remaining space capacity, receiving the sub-data stream; If the space occupied by the sub-data stream is larger than the remaining space capacity, an insufficient space signal is sent to the vehicle end to cause the vehicle end to stop transmitting the target data.
8. A data transmission device, applied to a vehicle, characterized in that: include: A response unit, configured to establish a near field communication channel with the mobile terminal in response to a near field communication request sent by the mobile terminal, wherein the mobile terminal and the vehicle terminal are located in the same local area network; A receiving unit, configured to receive a data transmission request sent by the mobile terminal via near field communication; A transmission unit is used to transmit target data to the mobile terminal through near field communication according to the data transmission request.
9. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the data transmission method as described in any one of claims 1-3 or claims 4-7.
10. A computer storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the data transmission method as described in any one of claims 1-3 or claims 4-7 is implemented.