CN114071789A - File sharing method and system, sending end equipment and receiving end equipment - Google Patents

File sharing method and system, sending end equipment and receiving end equipment Download PDF

Info

Publication number
CN114071789A
CN114071789A CN202111346042.7A CN202111346042A CN114071789A CN 114071789 A CN114071789 A CN 114071789A CN 202111346042 A CN202111346042 A CN 202111346042A CN 114071789 A CN114071789 A CN 114071789A
Authority
CN
China
Prior art keywords
sending
wireless connection
end device
receiving
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111346042.7A
Other languages
Chinese (zh)
Inventor
张明军
玉泓俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hozon New Energy Automobile Co Ltd
Original Assignee
Hozon New Energy Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hozon New Energy Automobile Co Ltd filed Critical Hozon New Energy Automobile Co Ltd
Priority to CN202111346042.7A priority Critical patent/CN114071789A/en
Publication of CN114071789A publication Critical patent/CN114071789A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

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

Abstract

The application provides a file sharing method, which comprises the following steps: the method comprises the steps that a sending end device and a receiving end device establish first wireless connection through a first wireless network technology; the sending end equipment sends the data transmission protocol establishment information to the receiving end equipment through the first wireless connection; the receiving end equipment receives data transmission protocol establishment information sent by the sending end equipment through a first wireless connection; the sending end equipment establishes a second wireless connection with the receiving end equipment through a local area network based on the data transmission protocol establishing information; the receiving end equipment sends a file access request to the sending end equipment through a second wireless connection; the sending end equipment responds to the file access request of the receiving end equipment and sends a file corresponding to the file access request to the receiving end equipment through a second wireless connection; and the receiving end equipment receives the file corresponding to the file access request sent by the sending end equipment through the second wireless connection. The receiving end device can easily acquire the file of the sending end device.

Description

File sharing method and system, sending end equipment and receiving end equipment
Technical Field
The present application relates to the field of file transmission, and in particular, to a file sharing method and system, a sending end device, and a receiving end device.
Background
Along with the intelligent interaction of the novel internet automobile is more emphasized, the traditional automobile is still more traditional in interactive experience and intelligent perception. Along with more and more intelligent devices of the internet automobile are added into the cabin system, the cabin system is more intelligent and entertaining.
At present, a large control screen in a vehicle machine realizes a plurality of rich and colorful functions, such as interesting and practical functions similar to a Digital Video Recorder (DVR) camera and sentinel modes, enriches the vehicle using habits of users, and also relates to the requirements that some jittering videos are required to be stored or files such as camera picture videos are transmitted to a mobile phone or a computer.
Therefore, a simple and convenient file sharing method and system are needed to improve the experience of the user.
Disclosure of Invention
The technical problem to be solved by the application is to provide a file sharing method and system, sending end equipment and receiving end equipment, and solve the problem that file sharing transmission steps are complicated.
In order to solve the above technical problem, the present application provides a file sharing method, applied to a sending end device, including: establishing a first wireless connection with a receiving terminal device through a first wireless network technology; sending data transmission protocol establishment information to the receiving end equipment through the first wireless connection; establishing a second wireless connection with the receiving terminal equipment through a local area network based on the data transmission protocol establishment information; and responding to a file access request of the receiving end equipment, and sending a file corresponding to the file access request to the receiving end equipment through the second wireless connection.
In an embodiment of the application, the first wireless network technology is bluetooth or Wi-Fi.
In an embodiment of the present application, the data transfer protocol used by the second wireless connection is an FTP protocol or an SMB protocol; the sending terminal equipment is provided with an FTP server or an SMB server; the data transmission protocol establishment information includes an IP address, a port number, and an accessible file path of the transmitting-end device.
In an embodiment of the application, before the step of sending the data transmission protocol establishment information to the receiving end device through the first wireless connection, the method further includes: receiving access authentication information sent by the receiving end equipment through the first wireless connection, wherein the access authentication information comprises token information; identifying the identity of the receiving terminal equipment based on the access authentication information; and determining the length of the validity period of the token information based on the identity of the receiving terminal equipment and a preset validity period rule.
In an embodiment of the present application, the sending-end device is a car machine device; the receiving terminal equipment is mobile terminal equipment.
In order to solve the above technical problem, the present application further provides a transmitting end device, including: a memory for storing instructions executable by the processor; and a processor, configured to execute the instructions to implement the method of any one of the above file sharing methods applied to the sending-end device.
In order to solve the above technical problem, the present application further provides a file sharing method, applied to a receiving end device, including: establishing a first wireless connection with a sending terminal device through a first wireless network technology; receiving data transmission protocol establishment information sent by the sending end equipment through the first wireless connection; establishing a second wireless connection with the sending end equipment through a local area network based on the data transmission protocol establishing information; sending a file access request to the sending end device through the second wireless connection; and receiving the file corresponding to the file access request sent by the sending terminal equipment through the second wireless connection.
In an embodiment of the application, the first wireless network technology is bluetooth or Wi-Fi.
In an embodiment of the present application, the data transfer protocol used by the second wireless connection is an FTP protocol or an SMB protocol; the sending terminal equipment is provided with an FTP server or an SMB server; the data transmission protocol establishment information includes an IP address, a port number, and an accessible file path of the transmitting-end device.
In an embodiment of the present application, before the step of receiving, through the first wireless connection, data transmission protocol establishment information sent by the sending end device, the method further includes: and sending access authentication information to the sending terminal equipment through the first wireless connection, wherein the access authentication information comprises token information.
In an embodiment of the present application, the sending-end device is a car machine device; the receiving terminal equipment is mobile terminal equipment.
In order to solve the above technical problem, the present application further provides a receiving end device, including: a memory for storing instructions executable by the processor; and a processor for executing the instructions to implement the method of any one of the above file sharing methods applied to the receiving end device.
In order to solve the technical problem, the application also provides a file sharing system, which comprises sending end equipment and receiving end equipment; the sending end equipment adopts the sending end equipment; the receiving end device adopts the sending end device.
To solve the above technical problem, the present application further provides a computer readable medium storing computer program code, which when executed by a processor implements any one of the above file sharing methods.
Compared with the prior art, the file sharing method and system, the sending end device and the receiving end device transmit the data transmission protocol establishment information between the sending end device and the receiving end device through the first wireless network technology, and manual operation of a user is reduced; and establishing a second wireless connection according to the data transmission protocol establishment information, and sending the file to be shared to the receiving end equipment from the sending end equipment through the second wireless connection. The receiving terminal equipment can easily acquire the file of the sending terminal equipment and synchronize the file to the receiving terminal equipment, the steps are simple and convenient, and the experience of a user is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the principle of the application. In the drawings:
FIG. 1 is a schematic flow chart diagram illustrating a file sharing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a SPP protocol stack hierarchy;
fig. 3 is a system block diagram of a transmitting end device according to an embodiment of the present application;
fig. 4 is a system block diagram of a receiving end device according to an embodiment of the present application;
FIG. 5 is an exemplary block diagram illustrating a file sharing system according to an embodiment of the present application.
Detailed Description
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only examples or embodiments of the application, from which the application can also be applied to other similar scenarios without inventive effort for a person skilled in the art. Unless otherwise apparent from the context, or otherwise indicated, like reference numbers in the figures refer to the same structure or operation.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.
The relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise. Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description. Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate. In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Flow charts are used herein to illustrate operations performed by systems according to embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, various steps may be processed in reverse order or simultaneously. Meanwhile, other operations are added to or removed from these processes.
The application provides a file sharing method. Fig. 1 is a flowchart illustrating a file sharing method according to an embodiment of the present application. As shown in FIG. 1, the file sharing method of the present embodiment includes the following steps S11-S17:
step S11: the method comprises the steps that a sending end device and a receiving end device establish first wireless connection through a first wireless network technology;
step S12: the sending end equipment sends the data transmission protocol establishment information to the receiving end equipment through the first wireless connection;
step S13: the receiving end equipment receives data transmission protocol establishment information sent by the sending end equipment through a first wireless connection;
step S14: the sending end equipment establishes a second wireless connection with the receiving end equipment through a local area network based on the data transmission protocol establishing information;
step S15: the receiving end equipment sends a file access request to the sending end equipment through a second wireless connection;
step S16: the sending end equipment responds to the file access request of the receiving end equipment and sends a file corresponding to the file access request to the receiving end equipment through a second wireless connection;
step S17: and the receiving end equipment receives the file corresponding to the file access request sent by the sending end equipment through the second wireless connection.
The above steps S11-S17 are explained in detail below with reference to fig. 1-2:
in some embodiments, the sending-end device may be a car machine device; the receiving end device may be a mobile terminal device; the vehicle-mounted equipment and the mobile terminal equipment can be connected through a wireless network.
In step S11, in some embodiments, the first wireless network technology may be bluetooth or Wi-Fi, which is not limited in this application. To better explain the file sharing method of the present application, the following embodiment exemplifies the first wireless network technology as bluetooth.
The method comprises the steps that a sending end device starts a Bluetooth mode, a receiving end device also starts the Bluetooth mode, the sending end device is matched and paired with the receiving end device, and a first wireless connection is established through a Bluetooth communication protocol. The communication protocol of bluetooth may be an spp (serial Port profile) protocol, a ble (bluetooth Low energy) protocol, or a dual-mode protocol that adopts both protocols, which is not limited in this application.
The following describes a first wireless connection establishment procedure by taking the SPP protocol as an example. The Bluetooth serial port is a device which is based on an SPP protocol and can establish a serial port between Bluetooth devices for data transmission. The purpose of a bluetooth serial port is to guarantee a complete communication path between applications on two different devices (both ends of the communication). The specific basic flow is as follows:
fig. 2 is a layered schematic diagram of an SPP protocol stack, and as shown in fig. 2, a complete communication path is established between an a device 21 and a B device 22, the a device 21 initiates a request for connecting to another device, and the B device waits for the other device to initiate a connection request. The application a and the application B are typical conventional applications and can communicate with each other through a virtual serial port channel. The protocol stack of SPP uses RFCOMM channels. The ligation process is generally divided into three parts, as follows:
1. creating a virtual connection:
a) submitting a request using SDP to find the RFCOMM service channel number;
b) requesting authentication of the remote device;
c) initiating a new L2CAP request to a remote RFCOMM channel;
d) initializing an RFCOMM connection on an L2CAP channel;
e) a new data connection is created over the RFCOMM connection.
2. Receiving virtual serial port connection:
a) receiving and processing an authentication request of an initiating equipment terminal;
b) receiving a new connection at the L2CAP layer;
c) accepting the RFCOMM connection request on the RFCOMM channel;
d) a data connection request is received over the RFCOMM channel.
3. The service is registered on the local SDP data.
In step S12, the data transmission protocol is a communication protocol used on the second wireless connection established in the subsequent step between the sending end device and the receiving end device, and is used for transmitting files between the sending end device and the receiving end device. In some embodiments, the data Transfer protocol may be ftp (file Transfer protocol) protocol, and may also be smb (server Message block) protocol. Correspondingly, the sending end device is provided with an FTP server or an SMB server, which is not limited in this application. The data transfer protocol establishment information is information required for establishing a data transfer protocol. In some embodiments, the data transfer protocol establishment information may include an IP address, a port number, and an accessible file path of the sending end device, and may further include other information, which is not limited in this application.
In some embodiments, the specific implementation process of step S12 may be that the user enters a document management page of the receiving end device and clicks a document management remote access button to trigger the sending end device to authenticate, and perform an authorization application request; prompting authorization confirmation by a popup window of a sending terminal device interface; the method comprises the steps that after receiving user approval authorization, sending end equipment can obtain data transmission protocol establishment information of the sending end equipment; the data transfer protocol establishment message is then sent from the sending end device to the receiving end device via a socket. Socket is an intermediate software abstraction layer for the application layer to communicate with the TCP/IP suite of protocols, which is a set of interfaces. By the convention of socket, one computer can receive data of other computers and can also send data to other computers.
In some embodiments, step S12 is preceded by steps S111-113 of:
step S111: receiving access authentication information sent by receiving end equipment through first wireless connection, wherein the access authentication information comprises token information;
step S112: identifying the identity of the receiving end equipment based on the access authentication information; and
step S113: and determining the length of the validity period of the token information based on the identity of the receiving terminal equipment and a preset validity period rule.
In step S111, the token information is a string of character strings generated by the sending end device, so as to serve as a token requested by the receiving end device, after the first login, the sending end device generates a token information and returns the token information to the receiving end device, and the receiving end device only needs to take the token information to request data, and does not need to take the user name and the password again. In some embodiments, the specific process of step S111 may be that the receiving end device sends an authorization application request and access authentication information to the sending end device; a popup window of a sending terminal equipment interface prompts a user to confirm authorization; after the sending end device receives the user agreement authorization, the sending end device receives access authentication information sent by the receiving end device through the first wireless connection, wherein the access authentication information comprises token information.
In step S112, based on the token information acquired in step S111, the transmitting end device identifies the identity of the receiving end device. In some embodiments, when the sending end device is a car machine device, the identity of the receiving end device may include a car owner, a permanent authorized user, a temporary authorized user, and the like.
In step S113, a preset validity period rule may be set as needed. In one embodiment, the preset validity rule may be that if the identity of the receiving end device is an owner or a permanently authorized user, the length of the validity period of the token information is three months from the first time the sending end device receives the token information; if the user is a temporary authorized user, the length of the validity period of the token information is one week from the last time the token information is received by the sending end device. The above validity period rules are merely exemplary and not limited thereto. The length of the validity period of the token information of the receiving end device, which is received by the sending end device through the first wireless connection, can be determined according to the identity of the receiving end device and a preset validity period rule.
In step S13, the receiving-end device receives the data transmission protocol establishment information sent by the sending-end device through the first wireless connection. Thus, the receiving end device obtains the data transmission protocol establishment information, which may include, for example, the IP address, the port number, and the accessible file path of the sending end device, and prepares for subsequent data transmission between the two devices through the second wireless connection.
In step S14, the sending-end device and the receiving-end device establish a second wireless connection through the local area network based on the data transfer protocol establishment information, where the data transfer protocol may be an FTP protocol or an SMB protocol. The local area network may be a Wireless Local Area Network (WLAN).
In step S15, after the sending end device and the receiving end device establish the second wireless connection through the local area network, the receiving end device sends a file access request to the sending end device through the second wireless connection, where the request includes related information of a file to be shared, such as a name of the shared file, a format of the shared file, and the like, which is not limited in this application.
In step S16, the sending end device responds to the file access request of the receiving end device, and the receiving end device may access the file related to the sending end device through the second wireless connection, and may perform related operations such as preview and download on the related file. When the receiving end device sends a file sharing request to the sending end device through the second wireless connection, the sending end device sends a file corresponding to the file access request to the receiving end device.
In step S17, the sink device receives the file corresponding to the file access request sent by the sender device through the second wireless connection, and the file to be shared is synchronized to the sink device. In one embodiment, after a preset time has elapsed after the reception is completed, the second wireless connection between the receiving end device and the sending end device may be disconnected. When the next time the receiving end device initiates a file access request, the second wireless connection and the data transmission protocol between the receiving end device and the sending end device can be reestablished.
According to the file sharing method, the data transmission protocol establishment information is transmitted between the sending end equipment and the receiving end equipment through the first wireless network technology, so that manual operation of a user is reduced; and establishing a second wireless connection according to the data transmission protocol establishment information, and sending the file to be shared to the receiving end equipment from the sending end equipment through the second wireless connection. The receiving terminal equipment can easily acquire the file of the sending terminal equipment and synchronize the file to the receiving terminal equipment, the steps are simple and convenient, and the experience of a user is improved.
The application also provides a sending end device, including: a memory for storing instructions executable by the processor; and a processor configured to execute the instructions to implement any one of the file sharing methods performed by the sending-end device in the file sharing method 10 described above.
Fig. 3 is a system block diagram of a sending-end device according to an embodiment of the present application. The initiator device 30 may include an internal communication bus 301, a Processor (Processor)302, a Read Only Memory (ROM)303, a Random Access Memory (RAM)304, and a communication port 305. When applied to a personal computer, the sender device 30 may also include a hard disk 307. The internal communication bus 301 may enable data communication among the components of the transmitting end device 30. Processor 302 may make the determination and issue a prompt. In some embodiments, processor 302 may be comprised of one or more processors. The communication port 305 can enable data communication between the transmitting-side device 30 and the outside. In some embodiments, the sending end device 30 may send and receive information and data from the network through the communication port 305. The sender device 30 may also comprise various forms of program storage units and data storage units, such as a hard disk 307, a Read Only Memory (ROM)303 and a Random Access Memory (RAM)304, capable of storing various data files for computer processing and/or communication, as well as possible program instructions for execution by the processor 302. The processor executes these instructions to implement the main parts of the method. The results processed by the processor are communicated to the user device through the communication port and displayed on the user interface.
The file sharing method described above may be implemented as a computer program, stored in the hard disk 307, and written to the processor 302 to be executed, so as to implement any file sharing method executed by the sending-side device in the present application.
The present application further provides a receiving end device, including: a memory for storing instructions executable by the processor; and a processor for executing the instructions to implement any one of the file sharing methods executed by the receiving end device in the file sharing method 10 as described above.
Fig. 4 is a system block diagram of a receiving end device according to an embodiment of the present application. Sink device 40 may include an internal communication bus 401, a Processor (Processor)402, a Read Only Memory (ROM)403, a Random Access Memory (RAM)404, and a communication port 405. When applied to a personal computer, the sink device 40 may further include a hard disk 407. The internal communication bus 401 may enable data communication among components of the sink device 40. The processor 402 may make the determination and issue the prompt. In some embodiments, processor 402 may be comprised of one or more processors. The communication port 405 may enable the sink device 40 to communicate data with the outside. In some embodiments, sink device 40 may send and receive information and data from the network through communication port 405. The sink device 40 may also include various forms of program storage units and data storage units, such as a hard disk 407, Read Only Memory (ROM)403 and Random Access Memory (RAM)404, capable of storing various data files for computer processing and/or communication, as well as possible program instructions for execution by the processor 402. The processor executes these instructions to implement the main parts of the method. The results processed by the processor are communicated to the user device through the communication port and displayed on the user interface.
The file sharing method described above may be implemented as a computer program, stored in the hard disk 407, and recorded in the processor 402 to be executed, so as to implement any file sharing method executed by the receiving end device in the present application.
FIG. 5 is an exemplary block diagram illustrating a file sharing system according to an embodiment of the present application. The file sharing system 50 can be used to perform the file sharing method described above, and therefore, the above description and the accompanying drawings can be used to describe the file sharing system, and the same contents will not be expanded. For better explaining the file sharing system of the present application, the following embodiment exemplifies that the data transfer protocol used by the second wireless connection is the FTP protocol, and the present application is not limited thereto.
The primary function of the FTP protocol is to transfer files to or download files from a remote host.
As shown in fig. 5, the file sharing system 50 of this embodiment includes a sender device 51 and a receiver device 52. The sender device 51 may be the sender device 30 and the receiver device 52 may be the receiver device 40. The sender device 51 includes an FTP server 511 and a remote file system 512; the sink device 52 includes an FTP client 521 and a local file system 522. The sending-end device 51 establishes a second wireless connection with the FTP client 521 of the receiving-end device 52 through the FTP server 511. The specific working process is as follows: the sending end device 51 and the receiving end device 52 establish a first wireless connection L1 through a first wireless network technology; the sending-end device 51 sends the FTP protocol setup information to the receiving-end device 52 through the first wireless connection L1; the receiving end device 52 receives the FTP protocol setup information sent by the sending end device 51 through the first wireless connection L1; the sending end device 51 establishes a second wireless connection L2 with the receiving end device 52 through the local area network based on the FTP protocol establishment information; the FTP client 521 of the receiving end device 52 first initiates the establishment of 1 TCP control connection with the FTP server 511 port number 21 of the sending end device 51, designating TCP as a transport layer protocol; the FTP client 521 obtains identity authentication on the established control connection; FTP client 521 sends a file access request over the established control connection to browse the directories of remote file system 512 of FTP server 511; when FTP server 511 receives 1 file access request, create 1 TCP data connection with FTP client 521 at FTP server 511 port number 20; the FTP server 511 transmits a file corresponding to the file access request to the local file system 522 of the FTP client 521; after 1 file transfer, the FTP server 511 ends the TCP data connection; after which it is transmitted again, FTP server 511 creates a 2 nd TCP data connection with FTP client 521 to transmit the next file.
The present application also provides a computer readable medium having stored thereon computer program code which, when executed by a processor, implements any of the file sharing methods described above.
When the file sharing method is implemented as a computer program, it may also be stored in a computer-readable storage medium as an article of manufacture. For example, computer-readable storage media can include but are not limited to magnetic storage devices (e.g., hard disk, floppy disk, magnetic strips), optical disks (e.g., Compact Disk (CD), Digital Versatile Disk (DVD)), smart cards, and flash memory devices (e.g., electrically Erasable Programmable Read Only Memory (EPROM), card, stick, key drive). In addition, various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" can include, without being limited to, wireless channels and various other media (and/or storage media) capable of storing, containing, and/or carrying code and/or instructions and/or data.
It should be understood that the above-described embodiments are illustrative only. The embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, and/or other electronic units designed to perform the functions described herein, or a combination thereof.
Having thus described the basic concept, it will be apparent to those skilled in the art that the foregoing disclosure is by way of example only, and is not intended to limit the present application. Various modifications, improvements and adaptations to the present application may occur to those skilled in the art, although not explicitly described herein. Such modifications, improvements and adaptations are proposed in the present application and thus fall within the spirit and scope of the exemplary embodiments of the present application.
Also, this application uses specific language to describe embodiments of the application. Reference throughout this specification to "one embodiment," "an embodiment," and/or "some embodiments" means that a particular feature, structure, or characteristic described in connection with at least one embodiment of the present application is included in at least one embodiment of the present application. Therefore, it is emphasized and should be appreciated that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, some features, structures, or characteristics of one or more embodiments of the present application may be combined as appropriate.
Aspects of the present application may be embodied entirely in hardware, entirely in software (including firmware, resident software, micro-code, etc.) or in a combination of hardware and software. The above hardware or software may be referred to as "data block," module, "" engine, "" unit, "" component, "or" system. The processor may be one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), digital signal processing devices (DAPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or a combination thereof. Furthermore, aspects of the present application may be represented as a computer product, including computer readable program code, embodied in one or more computer readable media. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, magnetic strips … …), optical disks (e.g., Compact Disk (CD), Digital Versatile Disk (DVD) … …), smart cards, and flash memory devices (e.g., card, stick, key drive … …).
Similarly, it should be noted that in the preceding description of embodiments of the application, various features are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure aiding in the understanding of one or more of the embodiments. This method of disclosure, however, is not intended to require more features than are expressly recited in the claims. Indeed, the embodiments may be characterized as having less than all of the features of a single embodiment disclosed above.
Although the present application has been described with reference to the present specific embodiments, it will be recognized by those skilled in the art that the foregoing embodiments are merely illustrative of the present application and that various changes and substitutions of equivalents may be made without departing from the spirit of the application, and therefore, it is intended that all changes and modifications to the above-described embodiments that come within the spirit of the application fall within the scope of the claims of the application.

Claims (14)

1. A file sharing method is applied to sending end equipment and comprises the following steps:
establishing a first wireless connection with a receiving terminal device through a first wireless network technology;
sending data transmission protocol establishment information to the receiving end equipment through the first wireless connection;
establishing a second wireless connection with the receiving terminal equipment through a local area network based on the data transmission protocol establishment information; and
and responding to a file access request of the receiving terminal equipment, and sending a file corresponding to the file access request to the receiving terminal equipment through the second wireless connection.
2. The method of claim 1, wherein the first wireless network technology is bluetooth or Wi-Fi.
3. The method of claim 1, wherein the data transfer protocol used by the second wireless connection is an FTP protocol or an SMB protocol; the sending terminal equipment is provided with an FTP server or an SMB server; the data transmission protocol establishment information includes an IP address, a port number, and an accessible file path of the transmitting-end device.
4. The method of claim 1, wherein prior to the step of sending data transfer protocol setup information to the receiving end device over the first wireless connection, further comprising:
receiving access authentication information sent by the receiving end equipment through the first wireless connection, wherein the access authentication information comprises token information;
identifying the identity of the receiving terminal equipment based on the access authentication information; and
and determining the length of the validity period of the token information based on the identity of the receiving terminal equipment and a preset validity period rule.
5. The method of claim 1, wherein the sending end device is a car machine device; the receiving terminal equipment is mobile terminal equipment.
6. A file sharing method is applied to receiving end equipment and comprises the following steps:
establishing a first wireless connection with a sending terminal device through a first wireless network technology;
receiving data transmission protocol establishment information sent by the sending end equipment through the first wireless connection;
establishing a second wireless connection with the sending end equipment through a local area network based on the data transmission protocol establishing information;
sending a file access request to the sending end device through the second wireless connection; and
and receiving the file corresponding to the file access request sent by the sending terminal equipment through the second wireless connection.
7. The method of claim 6, wherein the first wireless network technology is bluetooth or Wi-Fi.
8. The method of claim 6, wherein the data transfer protocol used by the second wireless connection is an FTP protocol or an SMB protocol; the sending terminal equipment is provided with an FTP server or an SMB server; the data transmission protocol establishment information includes an IP address, a port number, and an accessible file path of the transmitting-end device.
9. The method of claim 6, wherein before the step of receiving the data transmission protocol establishment information sent by the sender device over the first wireless connection, further comprising:
and sending access authentication information to the sending terminal equipment through the first wireless connection, wherein the access authentication information comprises token information.
10. The method of claim 6, wherein the sending end device is a car machine device; the receiving terminal equipment is mobile terminal equipment.
11. A transmitting end device, comprising: a memory for storing instructions executable by the processor; and a processor for executing the instructions to implement the method of any one of claims 1-5.
12. A receiving end device, comprising: a memory for storing instructions executable by the processor; and a processor for executing the instructions to implement the method of any one of claims 6-10.
13. A file sharing system comprises a sending terminal device and a receiving terminal device; the sending end device adopts the sending end device according to claim 11; the receiving end device adopts the transmitting end device of claim 12.
14. A computer-readable medium having stored thereon computer program code which, when executed by a processor, implements the method of any of claims 1-10.
CN202111346042.7A 2021-11-15 2021-11-15 File sharing method and system, sending end equipment and receiving end equipment Pending CN114071789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111346042.7A CN114071789A (en) 2021-11-15 2021-11-15 File sharing method and system, sending end equipment and receiving end equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111346042.7A CN114071789A (en) 2021-11-15 2021-11-15 File sharing method and system, sending end equipment and receiving end equipment

Publications (1)

Publication Number Publication Date
CN114071789A true CN114071789A (en) 2022-02-18

Family

ID=80271721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111346042.7A Pending CN114071789A (en) 2021-11-15 2021-11-15 File sharing method and system, sending end equipment and receiving end equipment

Country Status (1)

Country Link
CN (1) CN114071789A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442332A (en) * 2022-08-30 2022-12-06 潍柴动力股份有限公司 Resource sharing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120331042A1 (en) * 2011-06-21 2012-12-27 Shin Woohyoung Client and server terminals and method for controlling the same
CN104394600A (en) * 2014-10-24 2015-03-04 小米科技有限责任公司 Method and device for transmitting files
CN105530295A (en) * 2015-12-08 2016-04-27 深圳天珑无线科技有限公司 Data sharing method between network system and hosts
CN105978682A (en) * 2016-06-27 2016-09-28 武汉斗鱼网络科技有限公司 Mobile terminal token generation system and method thereof for judging identity of login user
WO2019183810A1 (en) * 2018-03-27 2019-10-03 华为技术有限公司 Method for sharing data in local area network and electronic device
CN111866833A (en) * 2020-07-16 2020-10-30 光芯半导体(深圳)有限公司 Method, device and medium for switching wifi network connection of handheld printer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120331042A1 (en) * 2011-06-21 2012-12-27 Shin Woohyoung Client and server terminals and method for controlling the same
CN104394600A (en) * 2014-10-24 2015-03-04 小米科技有限责任公司 Method and device for transmitting files
CN105530295A (en) * 2015-12-08 2016-04-27 深圳天珑无线科技有限公司 Data sharing method between network system and hosts
CN105978682A (en) * 2016-06-27 2016-09-28 武汉斗鱼网络科技有限公司 Mobile terminal token generation system and method thereof for judging identity of login user
WO2019183810A1 (en) * 2018-03-27 2019-10-03 华为技术有限公司 Method for sharing data in local area network and electronic device
CN111866833A (en) * 2020-07-16 2020-10-30 光芯半导体(深圳)有限公司 Method, device and medium for switching wifi network connection of handheld printer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442332A (en) * 2022-08-30 2022-12-06 潍柴动力股份有限公司 Resource sharing method and device, electronic equipment and storage medium
CN115442332B (en) * 2022-08-30 2023-06-23 潍柴动力股份有限公司 Resource sharing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109598115B (en) Method, device, equipment, system, platform and medium for realizing authorized login
CN111639319B (en) User resource authorization method, device and computer readable storage medium
US20200007524A1 (en) Authenticated Session Management Across Multiple Electronic Devices Using A Virtual Session Manager
US10200257B2 (en) Indirect device communication
US9730268B2 (en) Communication between host and accessory devices using accessory protocols via wireless transport
WO2012157196A1 (en) Communication control system and method therefor, communication device and method therefor, and program
US20110244829A1 (en) Device registration method and device registration system
WO2013130502A1 (en) Shared network access via a peer-to-peer link
CN106101091B (en) Method and device for processing data between terminals
US11824854B2 (en) Communication system and computer readable storage medium
CN114697879B (en) Bluetooth pairing method, electronic device, chip and storage medium
CN107979830B (en) Bluetooth connection method, device, equipment and storage medium for intelligent rearview mirror
KR102559827B1 (en) System for authenticating image based on blockchain and hash encryption technique and method thereof
KR20160131066A (en) Method and system for establishing a connection between a seeker device and a target device
CN111614759B (en) Resource sharing method and device, electronic equipment and computer readable medium
KR20210000957A (en) System for authenticating image based on blockchain and hash encryption technique and method thereof
CN114071789A (en) File sharing method and system, sending end equipment and receiving end equipment
KR101799263B1 (en) Method for supporting data-communication, a related system and related devices
US9615400B2 (en) Network apparatus and network sharing method
KR102406501B1 (en) Data sharing method among passengers of vehicle and system thereof
JP2016170556A (en) Information processing device, authentication device, server device, information processing method, authentication method and program
JP7153474B2 (en) METHOD AND SYSTEM USING COMMUNICATION TECHNOLOGY BETWEEN DEVICES WHEN TRANSMITTING FILES USING MESSENGER
US20140123260A1 (en) Terminal equipment, server, method of controlling terminal equipment, and method of controlling server
CN113536365B (en) File access method, device, equipment and medium
CN114258685B (en) Methods, systems, and media for presenting media content items using multiple devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 314500 988 Tong Tong Road, Wu Tong Street, Tongxiang, Jiaxing, Zhejiang

Applicant after: United New Energy Automobile Co.,Ltd.

Address before: 314500 988 Tong Tong Road, Wu Tong Street, Tongxiang, Jiaxing, Zhejiang

Applicant before: Hezhong New Energy Vehicle Co.,Ltd.