CN109639821B - File transmission device, file receiving method, file transmission device, file receiving device, and storage medium - Google Patents

File transmission device, file receiving method, file transmission device, file receiving device, and storage medium Download PDF

Info

Publication number
CN109639821B
CN109639821B CN201811626029.5A CN201811626029A CN109639821B CN 109639821 B CN109639821 B CN 109639821B CN 201811626029 A CN201811626029 A CN 201811626029A CN 109639821 B CN109639821 B CN 109639821B
Authority
CN
China
Prior art keywords
file
transmission
transmission channel
equipment
real time
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.)
Active
Application number
CN201811626029.5A
Other languages
Chinese (zh)
Other versions
CN109639821A (en
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.)
Chengying Internet Beijing Technology Co ltd
Original Assignee
Chengying Internet Beijing Technology 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 Chengying Internet Beijing Technology Co ltd filed Critical Chengying Internet Beijing Technology Co ltd
Priority to CN201811626029.5A priority Critical patent/CN109639821B/en
Publication of CN109639821A publication Critical patent/CN109639821A/en
Application granted granted Critical
Publication of CN109639821B publication Critical patent/CN109639821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Abstract

The application discloses a file transmission device, a file receiving method, a file transmission device, a file receiving device and a storage medium. Wherein, file transmission device includes: a first interface component for connecting with a first device of the IOS operating system via a cable; a second interface component for connecting with a second device of the non-IOS operating system via a cable; and a processor connected with the first interface component and the second interface component. Wherein the processor is configured to perform the following operations: establishing a first transmission channel based on an IAP2 protocol with first equipment through a first interface component; establishing a second transmission channel based on the USB protocol with second equipment through a second interface component; and transmitting the file from the second device to the first device in real time through the first transmission channel and the second transmission channel.

Description

File transmission device, file receiving method, file transmission device, file receiving device, and storage medium
Technical Field
The present application relates to the field of data transmission, and in particular, to a file transmission apparatus, a file receiving method, a file receiving apparatus, and a storage medium.
Background
At present, with the development of the internet, the requirements on timeliness and high quality of picture propagation are higher and higher. But a high quality single lens reflex camera can be taken but cannot transmit pictures to the internet in real time at low cost. The existing scheme is that a picture is transmitted to an android mobile phone from a single lens reflex camera through an OTG interface of the android mobile phone and is transmitted to the Internet. Or the transmission can be accomplished through a customized embedded system
The popularity of cameramen is higher among the population, and the quality of transmission is higher for iPhone handsets (or other IOS operating system based devices) but camera-to-handset real-time transmission is not supported at all times. When these people need to transmit pictures in real time, extra hardware has to be used to meet the requirement, and the quality of the pictures can not reach the standard of an iPhone mobile phone (or other devices based on the iOS operating system).
In view of the above technical problem in the prior art that it is difficult to transmit a picture of a camera to an iPhone handset (or other devices based on an iOS operating system) through a transmission cable, no effective solution has been proposed at present.
Disclosure of Invention
Embodiments of the present disclosure provide a file receiving method and apparatus for a file transmission apparatus, and a storage medium, so as to at least solve the technical problem in the prior art that it is difficult to transmit a picture of a camera to an iPhone handset (or other devices based on an iOS operating system) through a transmission cable.
According to an aspect of an embodiment of the present disclosure, there is provided a file transfer apparatus including: the first interface assembly is used for being connected with first equipment of the iOS operating system through a cable; the second interface assembly is used for connecting with second equipment of the non-iOS operating system through a cable; and a processor connected with the first interface component and the second interface component. Wherein the processor is configured to perform the following operations: establishing a first transmission channel based on an iAP2 protocol with first equipment through a first interface component; establishing a second transmission channel based on the USB protocol with second equipment through a second interface component; and transmitting the file from the second device to the first device in real time through the first transmission channel and the second transmission channel.
According to another aspect of the embodiments of the present disclosure, there is also provided a file receiving method based on an iOS operating system, including: receiving an authentication request for authenticating the file transfer apparatus from the file transfer apparatus based on the iAP2 protocol; authenticating the file transmission device, and establishing a first transmission channel based on an iAP2 protocol with the file transmission device; and receiving the file transmitted by the second equipment of the non-iOS operating system from the file transmission device in real time through the first transmission channel, wherein a second transmission channel based on the USB protocol is established between the second equipment and the file transmission device.
According to another aspect of the embodiments of the present disclosure, there is also provided a storage medium including a stored program, wherein the method described above is performed by a processor when the program is executed.
According to another aspect of the embodiments of the present disclosure, there is also provided a file receiving apparatus based on an iOS operation, including: a processor; and a memory coupled to the processor for providing instructions to the processor for processing the following processing steps: receiving an authentication request for authenticating the file transfer apparatus from the file transfer apparatus based on the iAP2 protocol; authenticating the file transmission device, and establishing a first transmission channel based on an iAP2 protocol with the file transmission device; and receiving the file transmitted by the second equipment of the non-iOS operating system from the file transmission device in real time through the first transmission channel, wherein a second transmission channel based on the USB protocol is established between the second equipment and the file transmission device.
Thus, according to the embodiment of the present disclosure, the file transfer apparatus can transfer the file of the device other than the iOS operating system, such as a camera, to the first device other than the iOS operating system, such as iPhone, in real time through the first transfer channel established with the first device other than the iOS operating system and the second transfer channel established with the second device other than the iOS operating system. Therefore, the technical problem that the photos of the camera are difficult to transmit to the iPhone mobile phone (or other devices based on the iOS operating system) in real time in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
fig. 1 is a schematic diagram for implementing a file transfer apparatus according to a first aspect of embodiment 1 of the present disclosure;
fig. 2 is a schematic diagram of a flow of a method executed by a processor of a file transfer device according to a first aspect of embodiment 1 of the present disclosure;
fig. 3 is a schematic diagram of a display interface of a first device according to a first aspect of embodiment 1 of the present disclosure;
fig. 4 is a schematic hardware configuration diagram of a first device according to a first aspect of embodiment 1 of the present disclosure;
fig. 5 is a schematic diagram of an iOS device based file receiving method according to a second aspect of embodiment 1 of the present disclosure; and
fig. 6 is a schematic diagram of the file receiving apparatus based on the iOS device according to embodiment 2 of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. It is to be understood that the described embodiments are merely exemplary of some, and not all, of the present disclosure. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present disclosure without making creative efforts shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Referring to fig. 1, according to a first aspect of the present embodiment, there is provided a file transfer apparatus 100. Fig. 1 shows a schematic diagram of a file transfer apparatus 100 for transferring a file such as a photograph from a device 200 (corresponding to a second device in the claims) such as a camera, which is not an iOS operating system, to an iOS operating system-based device 300 (corresponding to a first device in the claims) such as an iPhone handset.
Referring to fig. 1, the file transfer apparatus 100 includes: a first interface component (i.e., USB OTG interface) 102; a second interface component (i.e., USB OTG interface) 103; and a processor 101 connected to a first interface component 102 and a second interface component 103. Among them, the first interface component 102 is used for communicating with the first device 300 based on the iOS operating system through a cable, and the second interface component 103 is used for communicating with the second device 200, such as a camera, which is not based on the iOS operating system, through a cable.
Further, the document transmission device 100 is provided with components such as a DC-DC converter 104, a low dropout regulator 105, an SPI flash 106, and a crystal oscillator 107. Of course, the document transmission device 100 may also include other components, and the components may be increased or decreased according to actual needs.
Further, although the second device is exemplified by a camera in the present embodiment, it is not limited thereto. For example, the second device may also be a signal acquisition device such as a sound recording device, as long as there is a need for a device that transmits files to the iOS operating system in real time. For ease of understanding, the present embodiment describes the camera as an example of the second apparatus.
Wherein figure 2 shows a flow chart of the operations performed by the processor 101. Referring to fig. 2, the processor 101 is configured to perform the following operations:
s202: establishing a first transmission channel based on an iAP2 protocol with first equipment through a first interface component;
s204: establishing a second transmission channel based on the USB protocol with second equipment through a second interface component; and
s206: and transmitting the file from the second equipment to the first equipment in real time through the first transmission channel and the second transmission channel.
Specifically, after the file transfer apparatus 100 is connected to the first device 300 and the second device 200 through the USB cable. The file transmission apparatus 100 establishes a transmission channel (i.e., a first transmission channel) based on the iAP2 Protocol (i.e., iOS Application Protocol 2) with the first device 300 through the first interface component 102. The file transfer device 100 then establishes a transmission channel (i.e., a second transmission channel) based on the USB protocol with the second device 200 through the second interface component 103.
Then, the second device 200 can transmit a file (e.g., a photo file) to the first device 300 in real time through the first transmission channel and the second transmission channel. That is, the processor 101 of the file transfer apparatus 100 may transfer the file of the second device 200 from the second device 200 to the first device 300 in real time through the first transfer channel and the second transfer channel.
Specifically, for example, the processor 101 of the file transmission apparatus 100 may receive a picture file in real time from the second device 200 through the first transmission channel (e.g., based on a picture transmission protocol (PTP protocol)), and transmit the received picture file to the first device 300.
As described in the background, iPhone handsets (or other iOS operating system based devices) have a higher prevalence among the cameraman population and higher transmission quality have not supported real-time camera-to-handset transmission. When these people need to transmit pictures in real time, extra hardware has to be used to meet the requirement, and the quality of the pictures does not meet the standards of an iPhone handset (or other devices based on the iOS operating system).
To address this technical problem, embodiments of the present disclosure provide a file transfer device 100. The file transfer apparatus 100 can transfer a file of the device 200, which is not an iOS operating system, such as a camera, to the first device 300, which is based on the iOS operating system, such as an iPhone, in real time through the first transfer channel established with the first device 300 and the second transfer channel established with the second device 200. Therefore, the technical problem that the photos of the camera are difficult to transmit to the iPhone mobile phone (or other devices based on the iOS operating system) in real time in the prior art is solved.
Optionally, the operation of establishing, by the first interface component, a first transmission channel based on the iAP2 protocol with the first device includes: based on the iAP2 protocol, sending a first authentication request to the first equipment through the first interface component; and establishing a first transmission channel based on the iAP2 protocol with the first equipment under the condition that the first equipment completes authentication.
Specifically, the file transfer apparatus 100 is connected to the first device 300 based on the iOS operating system by a cable through the first interface component 102. The first device 300 supplies power to the file transfer apparatus 100 so that the processor 101 performs an initialization operation.
During initialization, the processor 101 may send an authentication request to the first device 300 via the first interface component 102, e.g., according to the iAP2 protocol. The first device 300 authenticates the file transfer apparatus 100 after receiving the authentication request transmitted from the file transfer apparatus 100.
Then, after the first device 300 passes the authentication of the file transfer apparatus 100, the processor 101 establishes a first transfer channel based on the iAP2 protocol with the first device 300 through the first interface component 102.
Thus, in the embodiment of the present disclosure, using the iAP2 protocol, the file transfer apparatus 100 may establish a connection with the first device 300 as a slave device of the first device 300, thereby implementing a first transfer channel with the first device 300.
Further optionally, the operation of establishing a second transmission channel based on the USB protocol with a second device through a second interface component includes: receiving, by the second interface component, a second authentication request from the second device based on the USB protocol; authenticating the second device; and establishing a second transmission channel based on the USB protocol with the second device through the second interface component under the condition that the authentication of the second device is completed. .
Specifically, after The second appliance 200 is connected to The second interface component 103 of The file transfer device 100 through The USB cable (at which time The file transfer device 100 is already connected to The first appliance 300), the second appliance 200 sends an authentication request to The file transfer device 100 based On an OTG (On-The-Go) protocol. The file transfer apparatus 100 authenticates the second device 200, and establishes a second transfer channel based on the USB protocol with the second device 200 through the second interface component 103 after the authentication of the second device 200 is completed. Thus, a USB connection is established in which the file transfer apparatus 100 is the master and the second device 200 is the slave.
Optionally, the operation of transferring the file from the second device to the first device through the first transfer channel and the second transfer channel includes: and transmitting the first file generated by the second equipment to the first equipment in real time.
In particular, fig. 3 shows a schematic diagram of an interface displayed by the first device 300 based on the iOS operating system. Referring to fig. 3, two buttons, a "live-photo" button and a "mark photo" button, are displayed in the interface of the first device 300.
When the user clicks the button of "transmit photos in real time" on the first device 300, the first device 300 enters a mode of "transmit photos in real time".
In the "live transmission of a picture" mode, when the second device 200, which is a camera, takes a picture (i.e., generates a picture file), the second device 200 may transmit the generated picture file to the first device 300 through the first transmission channel and the second transmission channel in real time by the file transmission apparatus 100.
Thus, real-time file transfer from a device other than the iOS operating system to a device based on the iOS operating system can be realized during shooting or recording or the like by the non-iOS operating device such as a camera.
Further, the operation of transmitting the file generated by the second device to the first device in real time includes: receiving first file information of a first file generated by second equipment from the second equipment in real time through a second transmission channel, wherein the first file information is information for indicating the first file; sending the first file information to first equipment through a first transmission channel; receiving a first file acquisition request for acquiring a first file from first transmission equipment through a first transmission channel; and receiving the first file from the second device through the second transmission channel according to the first file acquisition request, and sending the first file to the first device through the first transmission channel.
In the "real-time transmission of the photograph", for example, when the second device 200 as a camera takes a photograph, the photograph information (i.e., the first file information of the claims) of the photograph file (i.e., the first file) is transmitted to the file transmission apparatus 100 in real time through the second transmission channel. After receiving the photo information in real time through the second transmission channel, the processor 101 of the file transmission apparatus sends the photo information to the first device 300 through the first transmission channel. Then, the first device 300, after receiving the photo information through the first transmission channel, sends a file acquisition request (i.e., a first file acquisition request) requesting acquisition of the photo file to the file transmission apparatus 100 through the first transmission channel. After receiving the file acquisition request, the file transmission apparatus 100 receives the photo file from the second device 200 through the second transmission channel, and sends the photo file to the first device 300 through the first transmission channel.
Thus, in this way, real-time file transfer from the second device 200, such as a camera, which is not an iOS operating system, to the first device 300, such as an iPhone, which is based on an iOS operating system, can be achieved. For example, when the second device 200, which is a camera, has taken a picture, information of the taken picture is transmitted to the file transfer apparatus 100 through the second transmission channel in real time, and then the file transfer apparatus 100 transmits the information of the picture to the first device 300 through the first transmission channel. After obtaining the information of the photo, the first device 300 sends a request for obtaining the photo to the file transfer device 100 through the first transfer channel, and then the file transfer device 100 obtains the photo from the second device 200 through the first transfer channel and then sends the photo to the first device 100 through the first transfer channel.
Thus, real-time file transfer from a device other than the iOS operating system to a device based on the iOS operating system can be realized during shooting or recording or the like by the non-iOS operating device such as a camera.
Optionally, the operation of transferring the file from the second device to the first device through the first transfer channel and the second transfer channel includes: and transmitting the second file marked by the second equipment to the first equipment in real time.
Specifically, referring to fig. 3, when the user clicks a button of "transmit markup photo" on the first device 300, the first device 300 enters a mode of "transmit markup photo". In this case, although the user generates many photo files when taking a photo using the second device (e.g., camera) 200 and the file transfer apparatus 100 transmits information for generating a photo to the first device 300, the first device 300 does not transmit an acquisition request for acquiring the photo to the transfer apparatus 100.
When the user marks the photo through the second device 200, the second device 200 transmits the photo file of the marked photo file (i.e., the second file) to the first device 300 through the file transmission apparatus 100 in real time.
In this way, a function of transferring a file marked by the user at the second device 200 to the first device 300 in real time is realized. Thereby providing convenience to the user.
Further, the operation of transmitting the second file marked by the second device to the first device in real time includes: receiving second file information of a second file marked by a second device from the second device in real time through a second transmission channel, wherein the second file information is information for indicating the second file; sending the second file information to the first equipment through the first transmission channel; receiving a second file acquisition request for acquiring a second file from the first transmission equipment through the first transmission channel; and receiving the second file from the second device through the second transmission channel according to the second file acquisition request, and sending the second file to the first device through the first transmission channel.
Specifically, when the user performs the marking operation on the photo through the second device 200, the second device 200 may transmit the file information (i.e., the second file information) of the photo file of the marked photo file (i.e., the second file) to the file transmission apparatus 100 through the second transmission channel in real time. The file transfer apparatus 100 receives file information of the user-tagged photo file from the second device 200 and transmits the file information to the first device 300. The first device 300, having received the file information, sends a file acquisition request (i.e., a second file acquisition request) for acquiring the marked photo file to the file transfer apparatus 100. After acquiring the file acquisition request, the file transfer apparatus 100 receives the marked photo file from the second device 200 and transmits the marked photo file to the first device 300.
In this way, a function of transferring a file marked by the user at the second device 200 to the first device 300 in real time is realized. Thereby providing convenience to the user.
Thus, according to the present embodiment, the file transfer apparatus can transfer a file of a device other than the iOS operating system, such as a camera, to a first device other than the iOS operating system, such as an iPhone, in real time through the first transfer channel established with the first device based on the iOS operating system and the second transfer channel established with the second device other than the iOS operating system. Therefore, the technical problem that the photos of the camera are difficult to be transmitted to the iPhone mobile phone (or other devices based on the iOS operating system) in real time in the prior art is solved.
Further, according to a second aspect of the present embodiment, there is provided a file receiving method based on the iOS operating system. The method is performed by a processor of the first device 300 shown in fig. 1. In which fig. 4 shows a schematic diagram of a first device 300, and referring to fig. 4, the first device 300 includes: a processor 301; a USB interface 302 connected to the processor 301; and a memory 303 coupled to the processor 301. Further, the first device 300 includes an antenna 304 and the like for communication.
Fig. 5 shows a flow chart of a method performed by the processor 301 of the first device 300. Referring to fig. 5, the method includes:
s502: receiving an authentication request for authenticating the file transfer apparatus from the file transfer apparatus based on the iAP2 protocol;
s504: authenticating the file transmission device, and establishing a first transmission channel based on an iAP2 protocol with the file transmission device; and
s506: and receiving files of a second device of the non-iOS operating system from the file transmission device in real time through the first transmission channel, wherein a second transmission channel based on the USB protocol is established between the second device and the file transmission device.
Specifically, as described above, the file transfer apparatus 100 is connected to the first device 300 based on the iOS operating system by the first interface component 102 using the USB cable. The first device 300 performs an initialization operation of supplying power to the file transfer apparatus 100.
During the initialization process, the processor 101 of the file transfer apparatus 100 may send an authentication request to the first device 300 through the first interface component 102 according to the iAP2 protocol, for example. The processor 301 of the first device 300 authenticates the file transfer apparatus 100 after receiving the authentication request transmitted from the file transfer apparatus 100 through the USB interface 302.
Then, the processor 301 of the first device 300 establishes a USB connection with the file transfer apparatus 100 through the USB interface 302, thereby creating a first transfer channel based on the iAP2 protocol. Thus, in the embodiment of the present disclosure, based on the iAP2 protocol, the file transfer apparatus 100 establishes the first transfer channel with the first device 300 as a slave device of the first device 300. Thus, the first device 300 can receive the file transmitted by the second device 200, which is not the iOS operating system, from the file transmission apparatus 100 through the first transmission channel in real time. Wherein a second transmission channel based on the USB protocol is established between the second equipment and the file transmission device.
Thus, in this way, based on the first transmission channel and the second transmission channel, real-time file transmission from the second device 200 to the first device 300 can be achieved. Therefore, the technical problem that the photos of the camera are difficult to transmit to the iPhone mobile phone (or other devices based on the iOS operating system) in real time in the prior art is solved.
Optionally, the operation of receiving the file of the second device from the file transmission apparatus in real time through the first transmission channel includes: and receiving the first file generated by the second equipment in real time from the file transmission device through the first transmission channel.
Further, the operation of receiving the first file generated by the second device in real time from the file transmission apparatus through the first transmission channel includes: receiving first file information of a first file from a file transmission device in real time through a first transmission channel; sending a first file acquisition request for acquiring a first file to first transmission equipment through a first transmission channel; and acquiring the first file from the file transmission device through the first transmission channel.
As described above, in the "real-time transmission of a photograph" mode, for example, when the second device 200 as a camera takes a photograph, the photograph information (i.e., the first file information of the claims) of the photograph file (i.e., the first file) is transmitted to the file transmission apparatus 100 in real time through the second transmission channel. After receiving the photo information in real time through the second transmission channel, the processor 101 of the file transmission apparatus sends the photo information to the first device 300 through the first transmission channel. Then, the first device 300, after receiving the photo information through the first transmission channel, sends a file acquisition request (i.e., a first file acquisition request) requesting acquisition of the photo file to the file transmission apparatus 100 through the first transmission channel. After receiving the file acquisition request, the file transmission apparatus 100 receives the photo file from the second device 200 through the second transmission channel, and sends the photo file to the first device 300 through the first transmission channel.
Thus, in this way, real-time file transfer from the second device 200, such as a camera, which is not an iOS operating system, to the first device 300, such as an iPhone, which is based on an iOS operating system, can be achieved. For example, when the second device 200, which is a camera, has taken a picture, information of the taken picture is transmitted to the file transfer apparatus 100 through the second transmission channel in real time, and then the file transfer apparatus 100 transmits the information of the picture to the first device 300 through the first transmission channel. After obtaining the information of the photo, the first device 300 sends a request for obtaining the photo to the file transfer device 100 through the first transfer channel, and then the file transfer device 100 obtains the photo from the second device 200 through the first transfer channel and then sends the photo to the first device 100 through the first transfer channel.
Thus, real-time file transfer from a device other than the iOS operating system to a device based on the iOS operating system can be realized during shooting or recording or the like by the non-iOS operating device such as a camera.
Optionally, the operation of receiving the file of the second device from the file transmission apparatus in real time through the first transmission channel includes: and receiving the second file marked by the second equipment from the file transmission device in real time through the first transmission channel.
Further, the operation of receiving in real time a second file marked by a second device from the file transfer apparatus via the first transfer channel includes: receiving second file information of a second file in real time from the file transmission device through the first transmission channel; sending a second file acquisition request for acquiring a second file to the first transmission equipment through the first transmission channel; and acquiring the second file from the file transmission device through the first transmission channel.
As described above, when the user performs the marking operation on the photo through the second device 200, the second device 200 may transmit the file information (i.e., the second file information) of the photo file of the marked photo file (i.e., the second file) to the file transmission apparatus 100 through the second transmission channel in real time. The file transfer apparatus 100 receives file information of the user-tagged photo file from the second device 200 and transmits the file information to the first device 300. The first device 300, upon receiving the file information, sends a file acquisition request (i.e., a second file acquisition request) for acquiring the marked photo file to the file transfer apparatus 100. After acquiring the file acquisition request, the file transfer device 100 receives the marked photo file from the second device 200 and sends the photo file to the first device 300.
In this way, a function of transferring a file marked by the user at the second device 200 to the first device 300 in real time is realized. Thereby providing convenience to the user.
Further, according to a third aspect of the present embodiment, there is provided a storage medium. The storage medium comprises a stored program, wherein the method of any of the above is performed by a processor when the program is run.
Thus, according to the present embodiment, the file transfer apparatus can transfer files of a device other than the iOS operating system, such as a camera, to a first device other than the iOS operating system, such as an iPhone, in real time through the first transfer channel established with the first device other than the iOS operating system and the second transfer channel established with the second device other than the iOS operating system. Therefore, the technical problem that the photos of the camera are difficult to be transmitted to the iPhone mobile phone (or other devices based on the iOS operating system) in real time in the prior art is solved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
Fig. 6 shows a file receiving apparatus 600 based on the iOS operating system according to the present embodiment, which apparatus 600 corresponds to the method according to the second aspect of embodiment 1. Referring to fig. 6, the apparatus 600 includes: a processor 610; and a memory 620 coupled to the processor 610 for providing instructions to the processor 610 to process the following processing steps:
receiving an authentication request for authenticating the file transfer apparatus from the file transfer apparatus based on the iAP2 protocol; authenticating the file transmission device, and establishing a first transmission channel based on an iAP2 protocol with the file transmission device; and receiving the file transmitted by the second equipment of the non-iOS operating system from the file transmission device in real time through the first transmission channel, wherein a second transmission channel based on the USB protocol is established between the second equipment and the file transmission device.
Optionally, the operation of receiving the file of the second device from the file transmission apparatus in real time through the first transmission channel includes: and receiving the first file generated by the second equipment in real time from the file transmission device through the first transmission channel.
Further, the operation of receiving the first file generated by the second device in real time from the file transmission apparatus through the first transmission channel includes: receiving first file information of a first file from a file transmission device in real time through a first transmission channel; sending a first file acquisition request for acquiring a first file to first transmission equipment through a first transmission channel; and acquiring the first file from the file transmission device through the first transmission channel.
Optionally, the operation of receiving the file of the second device from the file transmission apparatus in real time through the first transmission channel includes: a second document marked by a second device is received from the document transfer apparatus through the first transfer channel.
Further, the operation of receiving in real time a second file marked by a second device from the file transfer apparatus via the first transfer channel includes: receiving second file information of a second file in real time from the file transmission device through the first transmission channel; sending a second file acquisition request for acquiring a second file to the first transmission equipment through the first transmission channel; and acquiring the second file from the file transmission device through the first transmission channel.
Thus, according to the present embodiment, the file transfer apparatus can transfer a file of a device other than the iOS operating system, such as a camera, to a first device other than the iOS operating system, such as an iPhone, in real time through the first transfer channel established with the first device based on the iOS operating system and the second transfer channel established with the second device other than the iOS operating system. Therefore, the technical problem that the photos of the camera are difficult to transmit to the iPhone mobile phone (or other devices based on the iOS operating system) in real time in the prior art is solved.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be implemented in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (3)

1. A USB cable transmission apparatus comprising a transmission device (100), a first USB transmission cable, and a second USB transmission cable, wherein the transmission device (100) comprises: a first interface component (102) connected with the first USB transmission cable, and used for connecting with a first device (300) of an iOS operating system through the first USB transmission cable; a second interface component (103) connected with the second USB transmission cable, and used for connecting with a second device (200) of a non-iOS operating system through the second USB transmission cable; and a processor (101) coupled to the first interface component and the second interface component, wherein the processor is configured to:
establishing a first transmission channel based on the iAP2 protocol with the first device through the first interface component (102);
-establishing a second transmission channel based on the USB protocol with the second device through the second interface component (103); and
transmitting the file from the second equipment to the first equipment in real time through the first transmission channel and the second transmission channel;
an operation of transferring a file from a second device to the first device through the first transfer channel and the second transfer channel, comprising: transmitting the first file generated by the second equipment to the first equipment in real time, wherein
The operation of transmitting the first file generated by the second device to the first device in real time comprises the following steps:
receiving first file information of a first file generated by the second device from the second device in real time through the second transmission channel, wherein the first file information is information for indicating the first file;
sending the first file information to the first equipment through the first transmission channel;
receiving a first file acquisition request for acquiring the first file from the first transmission equipment through the first transmission channel;
according to the first file acquisition request, receiving the first file from the second equipment through the second transmission channel, and sending the first file to the first equipment through the first transmission channel;
establishing a first transmission channel based on the iAP2 protocol with the first device through the first interface component, including
Based on the iAP2 protocol, sending a first authentication request to the first device through the first interface component;
under the condition that the first equipment completes authentication, establishing the first transmission channel based on an iAP2 protocol with the first equipment;
an operation of establishing a second transmission channel based on a USB protocol with the second device through the second interface component, comprising:
receiving, by the second interface component, a second authentication request from the second device based on a USB protocol;
authenticating the second device; and
and under the condition that the authentication of the second equipment is completed, establishing the second transmission channel based on the USB protocol with the second equipment through the second interface component.
2. The transfer device of claim 1, wherein the operation of transferring a file from a second device to the first device via the first transfer channel and the second transfer channel comprises: and transmitting the second file marked by the second equipment to the first equipment in real time.
3. The transfer device of claim 2, wherein the operation of transferring the second device tagged second file to the first device in real time comprises:
receiving second file information of a second file marked by the second device from the second device in real time through the second transmission channel, wherein the second file information is information for indicating the second file;
sending the second file information to the first equipment through the first transmission channel;
receiving a second file acquisition request for acquiring the second file from the first transmission equipment through the first transmission channel; and
and receiving the second file from the second equipment through the second transmission channel according to the second file acquisition request, and sending the second file to the first equipment through the first transmission channel.
CN201811626029.5A 2018-12-28 2018-12-28 File transmission device, file receiving method, file transmission device, file receiving device, and storage medium Active CN109639821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811626029.5A CN109639821B (en) 2018-12-28 2018-12-28 File transmission device, file receiving method, file transmission device, file receiving device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811626029.5A CN109639821B (en) 2018-12-28 2018-12-28 File transmission device, file receiving method, file transmission device, file receiving device, and storage medium

Publications (2)

Publication Number Publication Date
CN109639821A CN109639821A (en) 2019-04-16
CN109639821B true CN109639821B (en) 2022-11-01

Family

ID=66078853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811626029.5A Active CN109639821B (en) 2018-12-28 2018-12-28 File transmission device, file receiving method, file transmission device, file receiving device, and storage medium

Country Status (1)

Country Link
CN (1) CN109639821B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097560A (en) * 2006-06-29 2008-01-02 巨盛电子股份有限公司 Action information sharing management system
CN101299789A (en) * 2007-04-30 2008-11-05 宇瞻科技股份有限公司 Image transmission device and method

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533377A (en) * 2008-03-14 2009-09-16 浪潮乐金数字移动通信有限公司 Universal USB peer data transmission line and transmission method
CN100594507C (en) * 2008-11-18 2010-03-17 谢翔 Data transmission device
US8214545B2 (en) * 2009-08-12 2012-07-03 Streaming Networks (Pvt) Ltd. Multi-functional USB apparatus with auto-configuration and USB battery cap
CN102999457A (en) * 2011-09-09 2013-03-27 昆达电脑科技(昆山)有限公司 Data concentrator and transmission method for third-party data
CN102446143A (en) * 2011-09-26 2012-05-09 翔德电子科技(深圳)有限公司 Method for avoiding USB identification during connecting camera with iPad
US20130298208A1 (en) * 2012-05-06 2013-11-07 Mourad Ben Ayed System for mobile security
CN202818436U (en) * 2012-06-20 2013-03-20 唐亮 Apparatus for connecting digital camera with intelligent mobile phone and transmitting image file
CN102724375A (en) * 2012-06-20 2012-10-10 唐亮 Transmission device and method capable of connecting digital camera and intelligent mobile phone and transmitting image file
CN103052062A (en) * 2012-12-06 2013-04-17 深圳市文鼎创数据科技有限公司 Switching device for communicating mobile terminal with intelligent key device and communication method for switching device
CN103327031A (en) * 2013-07-11 2013-09-25 成都西可科技有限公司 Method for analyzing RAW format image file protocol stream based on MTP (Mail Transfer Protocol)
CN103473198A (en) * 2013-09-13 2013-12-25 吴涛 Method for sharing and transmitting files between mobile terminals
US10255470B2 (en) * 2014-11-13 2019-04-09 The Code Corporation Barcode reader and accessory for the barcode reader
CN107926075B (en) * 2015-08-14 2021-12-17 深圳市大疆创新科技有限公司 System and method for supporting data communication in heterogeneous environment
CN105430642B (en) * 2015-10-23 2019-05-31 小米科技有限责任公司 Document transmission method and device
CN106209859A (en) * 2016-07-13 2016-12-07 袁峰 Image wireless system for instantly sharing based on WiFi SD card and operation method thereof
US20180118344A1 (en) * 2016-10-31 2018-05-03 Innov8 Cabin Solutions, LLC Aircraft personal content system
CN207965750U (en) * 2018-03-28 2018-10-12 深圳市四季宏胜科技有限公司 A kind of smart machine accesses the device of external storage by direct-connected mode

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097560A (en) * 2006-06-29 2008-01-02 巨盛电子股份有限公司 Action information sharing management system
CN101299789A (en) * 2007-04-30 2008-11-05 宇瞻科技股份有限公司 Image transmission device and method

Also Published As

Publication number Publication date
CN109639821A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
KR100548402B1 (en) System for making sticker photograph using mobile communication terminal
EP3200549A1 (en) Method and device for wireless communication between communication terminals
CN101573957B (en) Method and apparatus for transferring images from imaging device to remote device
CN103139313A (en) File transfer method and file transfer system between mobile terminals
EP2941058A1 (en) Near field communication method and device
CN104584490A (en) Data transmitting method and device
CN100589517C (en) An image downloading method, system and device in the digital photo frame
US20170251504A1 (en) Apparatus and method for requesting and transferring contents
CN103617028A (en) Collaborative document comment method and collaborative document comment device
CN110750206B (en) Data processing method, device and system
CN109639821B (en) File transmission device, file receiving method, file transmission device, file receiving device, and storage medium
KR20180068054A (en) Data sharing method among passengers of vehicle and system thereof
JP5877283B1 (en) Operating environment setting system, portable terminal, relay device, and operating environment setting program
CN105991163B (en) Communication method and device based on Bluetooth application
US20130057708A1 (en) Real-time Wireless Image Logging Using a Standalone Digital Camera
US9756195B2 (en) Communication apparatus capable of communicating with external apparatus, control method for communication apparatus, and storage medium
WO2017191876A1 (en) System for managing online records by individuals via network and method for managing online records by individuals using system
CN112637041B (en) Method, apparatus and storage medium for distributing information based on priority
CN104486390A (en) Method and device for sharing data
KR101737382B1 (en) Service providing method for easy mobile subscription
JP2020091787A (en) Communication device and control method thereof
KR20060030631A (en) Apparatus and method of share album service
KR20030029556A (en) Method for providing broadcast contents using a mobile terminal and computer readable record medium on which a program therefor is recorded
CN103473261A (en) Method for obtaining matching of network access facilities and sharing data between network access facilities
CN105610951B (en) Method for synchronizing data between devices and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Liu Gang

Inventor after: Zhao Chen

Inventor after: Guo Yaoyuan

Inventor before: Liu Gang

Inventor before: Guo Yaoyuan

CB03 Change of inventor or designer information