CN115225627A - File transmission method and device, computer equipment and storage medium - Google Patents

File transmission method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115225627A
CN115225627A CN202110433120.0A CN202110433120A CN115225627A CN 115225627 A CN115225627 A CN 115225627A CN 202110433120 A CN202110433120 A CN 202110433120A CN 115225627 A CN115225627 A CN 115225627A
Authority
CN
China
Prior art keywords
group
user equipment
information
vehicle
join
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.)
Granted
Application number
CN202110433120.0A
Other languages
Chinese (zh)
Other versions
CN115225627B (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.)
Pateo Connect and Technology Shanghai Corp
Original Assignee
Pateo Connect and Technology Shanghai Corp
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 Pateo Connect and Technology Shanghai Corp filed Critical Pateo Connect and Technology Shanghai Corp
Priority to CN202110433120.0A priority Critical patent/CN115225627B/en
Publication of CN115225627A publication Critical patent/CN115225627A/en
Application granted granted Critical
Publication of CN115225627B publication Critical patent/CN115225627B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a file transmission method, a file transmission device, computer equipment and a storage medium, wherein the method comprises the following steps: if the user equipment fails to join the first P2P group created by the vehicle-mounted equipment, the first P2P group is dispersed; creating a second P2P group; sending group connection information to the UE, wherein the group connection information is used for indicating the UE to join the second P2P group; and if the user equipment is successfully added into the second P2P group, receiving a target file sent by the user equipment based on a WIFI P2P mode. By adopting the method and the device, the success rate of network connection can be improved, and the success rate of file transmission is convenient to improve.

Description

File transmission method and device, computer equipment and storage medium
Technical Field
The application relates to the technical field of information processing, and mainly relates to a file transmission method, a file transmission device, computer equipment and a storage medium.
Background
With the development of vehicle interconnection technology, user equipment and vehicle-mounted equipment can be interconnected to realize file transmission. For example, the display information of the user equipment can be projected to a touch screen of the vehicle-mounted equipment, so that a user can conveniently browse the screen display of the user equipment by using the touch screen of the vehicle-mounted equipment. However, some user devices cannot access the network of the vehicle-mounted device, resulting in a failure in file transfer between the user device and the vehicle-mounted device.
Disclosure of Invention
The application provides a file transmission method, a file transmission device, computer equipment and a storage medium, which can improve the success rate of network connection and are convenient for improving the success rate of file transmission.
In a first aspect, the present application provides a file transfer method, wherein:
if the user equipment fails to join the first P2P group created by the vehicle-mounted equipment, the first P2P group is dispersed;
creating a second P2P group;
sending group connection information to the UE, wherein the group connection information is used for indicating the UE to join the second P2P group;
and if the user equipment successfully joins the second P2P group, receiving a target file sent by the user equipment based on a WIFI P2P mode.
In a second aspect, the present application provides a file transfer device, wherein:
the processing unit is used for resolving the first P2P group created by the vehicle-mounted equipment if the user equipment fails to join the first P2P group; creating a second P2P group;
a communication unit, configured to send group connection information to the ue, where the group connection information is used to instruct the ue to join the second P2P group; and if the user equipment is successfully added into the second P2P group, receiving a target file sent by the user equipment based on a WIFI P2P mode.
In a third aspect, the present application provides a computer apparatus comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for some or all of the steps as described in the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, wherein the computer program causes a computer to execute to implement some or all of the steps as described in the first aspect.
The application has the following beneficial effects:
after the file transmission method, the file transmission device, the computer equipment and the storage medium are adopted, if the user equipment fails to join the first P2P group created by the vehicle-mounted equipment, the first P2P group is disassembled, and a new P2P group is created to obtain a second P2P group. And then sending group connection information to the user equipment to prompt the user equipment to join the second P2P group. And after the user equipment successfully joins the second P2P group, receiving a target file sent by the user equipment based on the WIFI P2P mode. Therefore, the success rate of the user equipment accessing the network of the vehicle-mounted equipment can be improved, and the success rate of file transmission is convenient to improve.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Wherein:
fig. 1 is a system architecture diagram of a file transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a file transfer method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another file transmission method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another file transmission method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a file transfer device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art without any inventive work according to the embodiments of the present application are within the scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein may be combined with other embodiments.
The user devices involved in the embodiments of the present application may include, but are not limited to, personal computers, server computers, handheld or laptop devices, mobile devices (such as mobile phones, tablet computers, personal digital assistants, media players, and the like), consumer electronics devices, mini computers, mainframe computers, robots, drones, and other electronic devices.
The Wireless Fidelity Peer-to-Peer (WIFI P2P) mode according to the embodiments of the present application may also be referred to as a WIFI Direct mode, i.e., a WIFI Direct mode. The WIFI P2P mode may support a plurality of WIFI devices to be connected to each other without an Access Point (AP). In the embodiment of the application, the file transmission is performed based on the WIFI P2P mode, which can be understood as performing file transmission based on a P2P group. The file transmission is performed based on the hotspot mode, which can be understood as the file transmission performed based on the local area network corresponding to the AP.
In the embodiment of the present application, whether the user equipment supports the WIFI P2P mode may be determined according to configuration information of the user equipment, and a device that supports the WIFI P2P mode may be referred to as a P2P device. The configuration information of the user equipment includes version information of a system operated by the user equipment, for example, when the version of the system operated by the user equipment is higher than that of an Android (Android) system 5.0, it is determined that the user equipment can generally support a WIFI P2P mode. The configuration information of the user equipment may further include compatibility of a system operated by the user equipment, for example, when the system operated by the user equipment is compatible with a P2P mode, it is determined that the user equipment can support the WIFI P2P mode generally.
In this embodiment, a broadcast receiver may be created to intercept a corresponding system broadcast to obtain configuration information of a user equipment, and then determine whether the user equipment supports the WIFI P2P mode through a determination function (e.g., wifimanager.
The P2P device may create a P2P group according to a create group function (e.g., wifip2P manager. Creategroup ()), and configure the P2P device as a group leader (or called an administrator) of the P2P group. In addition, a Socket service receiving end can be created on the P2P device, a background service of a response is started, and after a connection request of another P2P device is monitored, the receiving end is connected with another P2P device based on the Socket service, so that communication can be realized between the two P2P devices, and file transmission is performed. The P2P device may dissolve the P2P group according to a dissolve group function (e.g., wifip2pmanager.
It should be noted that, a P2P device creating a P2P group generally serves as a receiving end, and a P2P device joining the P2P group may serve as a transmitting end. One P2P group may join at least two P2P devices, and one P2P device may create at least one P2P group. And if the P2P equipment creates a plurality of P2P groups, the P2P groups are dispersed according to the group identifiers of the P2P groups, and the corresponding P2P equipment is added according to the group identifiers of the P2P groups.
Referring to fig. 1, fig. 1 is a system architecture diagram of a file transfer method according to an embodiment of the present disclosure. As shown in fig. 1, the system includes a user device 10 and an in-vehicle device 20. It should be noted that the number and form of the devices in the system shown in fig. 1 are used for example, and do not constitute a limitation to the embodiment of the present application, and the user device 10 in fig. 1 is described by taking a mobile phone as an example. One in-vehicle apparatus 20 may be generally used by one user, one user may use one or more user apparatuses 10, and one or more in-vehicle apparatuses 20 may also be used. In the embodiment of the present application, the user may be a vehicle owner of the vehicle-mounted device 20 or a family, a friend, a colleague, etc. of the vehicle owner, and may also be a developer or a tester, etc. corresponding to the server 10, which is not limited herein.
As shown in FIG. 1, the in-vehicle device 20 may include a processor 201, a memory 202, a communication interface 203, and a bus 204. The processor 201, memory 202 and communication interface 203 may be interconnected by a bus 204. The memory 202 may be used to store software programs and data, and the processor 201 may execute various functional applications and data processing of the in-vehicle device 20 by operating the software programs and data stored in the memory 202. In an embodiment of the present application, the processor 201 may be configured to create a P2P group or to dissolve a P2P group. The processor 201 may also be configured to perform processing based on the received target file, for example, when the target file is a video, the video is displayed; when the target file is audio, the audio is played, and the like.
The communication interface 203 may be used for data communication with external devices, for example, a server or user equipment 20, for file transfer, and the like. The files related to the embodiments of the present application include images, videos, audios, texts, compression packages, installation packages, and the like, and are not limited herein.
In the embodiment of the present application, the communication interface 203 may be configured to send information to the user equipment 10, for example, group connection information for instructing the user equipment 10 to join a P2P group created by the in-vehicle equipment 20, group dismissal information for instructing the user equipment 10 to dismiss the P2P group created in the user equipment 10, and the like. The communication interface 203 may also be used to receive connection requests sent by the user equipment 10, such as group join requests, hotspot access requests, and the like. The communication interface 203 may also be used to receive files transmitted by the user device 10, such as screen-shot files, audio, etc., after the user device 10 and the in-vehicle device 20 are successfully connected.
As shown in fig. 1, the in-vehicle apparatus 20 may further include a display apparatus 205 for receiving information input by a user or displaying information provided to the user, various menu interfaces of the in-vehicle apparatus 20, and the like. For example, when the file transmitted from the user device 10 to the in-vehicle device 20 is a video, the display device 205 may display the video, which may be a video displayed in the display device of the user device 10, or a video that is not played and designated by the user, or the like.
The location of the user equipment 10 is not limited in the present application, and may be located in the space where the vehicle-mounted device 20 is located, or may be located outside the space where the vehicle-mounted device 20 is located as shown in fig. 1. The user equipment may include a processor, a memory, a communication interface, a display device, and the like, and reference may be made to the description of the vehicle-mounted device, which is not described herein again.
It should be noted that the vehicle-mounted device and the electronic device may further include devices not shown in fig. 1, such as a microphone, a speaker, an earphone, a flash, bluetooth, an external interface, a key, a motor, a sensor, and other possible functional modules, which are not described herein again.
According to the file transmission method provided by the embodiment of the application, the file transmission device can execute the file transmission method, the file transmission method can be realized by software and/or hardware, and the file transmission method is usually integrated in vehicle-mounted equipment, so that the success rate of network connection can be improved, and the success rate of file transmission can be improved conveniently.
Referring to fig. 2, fig. 2 is a schematic flow chart of a file transmission method according to an embodiment of the present application. The method is applied to the vehicle-mounted device for example, and comprises the following steps S201 to S204, wherein:
s201: and if the user equipment fails to join the first P2P group created by the vehicle-mounted equipment, the vehicle-mounted equipment dissembles the first P2P group.
S202: the in-vehicle device creates a second P2P group.
In this embodiment of the application, the first P2P group refers to a P2P group created in the vehicle-mounted device, and the second P2P group is a P2P group created again by the vehicle-mounted device after the first P2P group is disassembled. After the vehicle-mounted device is abnormally powered off or has other abnormal events, the communication of the originally created P2P group of the vehicle-mounted device is not normally disconnected, and a new P2P group may be influenced to join the originally created P2P group. Therefore, if the user equipment fails to join the first P2P group created by the vehicle-mounted equipment, the first P2P group is first disassembled, and then the second P2P group is created, so as to empty the information stored in the original P2P group, thereby facilitating the improvement of the success rate of joining the user equipment to the second P2P group.
When the vehicle-mounted device creates a plurality of P2P groups, step S201 may be understood as when the user device fails to join one P2P group created by the vehicle-mounted device, the vehicle-mounted device dissociates the P2P group, or all P2P groups. If the first P2P group is a P2P group that the ue has pre-designated to join, the first P2P group may be disassembled, and other P2P groups may not be disassembled, so as to avoid affecting the communication process of other P2P devices.
Optionally, determining a communication priority of each first P2P group; the disaggregated first P2P group is determined based on the communication priority. The communication priority is used for describing the necessity of the first P2P group to communicate, and the higher the communication priority is, the less the possibility that the first P2P group can be dispersed is represented, so that the accuracy of the dispersion can be improved by determining the dispersed first P2P group based on the communication priority.
The method for determining the communication priority is not limited, and the distance between the P2P device in the first P2P group and the vehicle-mounted device, the completion degree of file transmission, the time for the P2P device to join the first P2P group, and the like can be acquired. It can be understood that the closer the distance is, the greater the transmission rate is, the more stable the transmission is, and the accuracy of resolving the first P2P group can be improved by determining the communication priority of the first P2P group according to the distance between the P2P device and the vehicle-mounted device. The completion degree of the transmission file is used for describing the transmission ratio of the file to be transmitted or the file being transmitted, the larger the completion degree is, the less the transmission residual time is, the communication priority of the first P2P group is determined according to the completion degree, and the accuracy rate of resolving the first P2P group can be improved. The earlier the time when the P2P device joins the first P2P group is, the earlier the P2P device transmits the file, and the communication priority of the first P2P group is determined according to the time, so that the accuracy of resolving the first P2P group can be improved.
S203: and the vehicle-mounted equipment sends the group connection information to the user equipment.
In this embodiment of the present application, the group connection information is used to instruct the ue to join the second P2P group. It is understood that, after step S203 is executed, the user equipment may again send a group connection request to the in-vehicle device to join the second P2P group. After the user equipment successfully joins the second P2P group, the user equipment can send the target file to the vehicle-mounted equipment so as to realize file transmission.
The group connection information may include a prompt indicating that the ue joins the second P2P group, and may further include identification information of the second P2P group, a parameter joining the second P2P group, and the like, which are not limited herein. The identification information of the second P2P group may include a group name of the second P2P group, an identification encoded based on a creation time, an identification encoded based on a vehicle-mounted device, or an identification encoded based on an identification of a user equipment, and the like, which is not limited herein. It can be understood that the ue may request to join the second P2P group based on the identification information of the second P2P group, which may improve the accuracy of joining the second P2P group.
The parameters of the second P2P group may include the rf band or the verification information of the second P2P group. The radio frequency band is used to describe a frequency range of a receiving or sending channel of the second P2P group, and it can be understood that the ue requests to join the second P2P group based on the radio frequency band of the second P2P group, which can improve accuracy of joining the second P2P group. The authentication information is information that needs to be authenticated when joining the second P2P group or information that needs to be input for authentication, and it can be understood that the ue requests to join the second P2P group based on the authentication information, which can improve the security of the second P2P group for communication.
In one possible example, the group connection information comprises verification prompt information, and the vehicle-mounted device receives to-be-verified information sent by the user device aiming at the verification prompt information; and if the information to be verified is successfully matched with the preset verification information, the vehicle-mounted equipment allows the user equipment to join the second P2P group.
The verification prompt message may include information to be input when joining the second P2P group and how to input the information. And the information to be verified is information sent to the vehicle-mounted equipment by the user equipment according to the verification prompt information. The preset verification information is information which needs to be matched with the information to be verified when the user equipment joins the second P2P group, and it can be understood that when the information to be verified is successfully matched with the preset verification information, the verification is determined to be passed, and then the vehicle-mounted device allows the user equipment to join the second P2P group. And when the matching of the information to be verified and the preset verification information fails, determining that the verification fails, and not allowing the user equipment to join the second P2P group by the vehicle-mounted equipment.
The form of the verification prompt information is not limited, the verification prompt information can be pushed by user equipment for prompting, and if the user clicks the push information, the verification prompt information is displayed. The verification prompt information can also be played by user equipment, or prompted by a light prompt device, and the like.
In one possible example, the vehicle-mounted device acquires a correlation value between the user device and the vehicle-mounted device; the vehicle-mounted equipment determines the preset verification information and a verification mode of the preset verification information according to the correlation value; and the vehicle-mounted equipment generates the verification prompt information according to the verification mode.
And the association value is used for describing the association relationship between the user equipment and the vehicle-mounted equipment. The association value may be determined by a relationship between a user corresponding to the user device and a user corresponding to the vehicle-mounted device, a number of times that the user device and the vehicle-mounted device perform file transfer, a file type of file transfer performed between the user device and the vehicle-mounted device, and the like, which is not limited herein. It can be understood that when the relationship between the user corresponding to the user device and the user corresponding to the vehicle-mounted device is close, the possibility that the user device transmits the file to the vehicle-mounted device is high. Therefore, the correlation value is obtained according to the relationship between the user corresponding to the user equipment and the user corresponding to the vehicle-mounted equipment, and the accuracy of obtaining the correlation value can be improved. When the number of file transmission from the user equipment to the vehicle-mounted equipment is large, the possibility that the user equipment frequently transmits files to the vehicle-mounted equipment is high. Therefore, the correlation value is obtained according to the number of times of file transmission from the user equipment to the vehicle-mounted equipment, and the accuracy of obtaining the correlation value can be improved. When the file type transmitted to the vehicle-mounted device by the user device is a file type frequently operated by the vehicle-mounted device, the file type transmitted to the vehicle-mounted device by the user device can be represented to have certain operability, and the possibility of transmitting the file is high. Therefore, the associated value is obtained according to the file type of the file transmission between the user equipment and the vehicle-mounted equipment, and the accuracy of obtaining the associated value can be improved.
In one possible example, an in-vehicle device obtains a connection record between the user device and the in-vehicle device; and the vehicle-mounted equipment acquires the association value between the user equipment and the vehicle-mounted equipment according to the connection record.
The connection record is recorded information of connection between the user equipment and the vehicle-mounted device, and may include recorded information of connection based on a WIFI P2P mode, recorded information of connection based on a hotspot mode, recorded information of connection using a Universal Serial Bus (USB) or the like, and the like, which is not limited herein.
In the embodiment of the application, the association value between the user equipment and the vehicle-mounted equipment can be obtained according to the connection parameters of multiple dimensions, such as the connection duration, the connection times, the data transmission quantity and the like in the connection record. It can be understood that the longer the connection time, the more stable the connection relationship between the user equipment and the in-vehicle equipment is. Therefore, the correlation value is obtained according to the connection duration, and the accuracy of obtaining the correlation value can be improved. The more the number of connections is, the more likely it is that file transfer is performed between the user equipment and the in-vehicle equipment. Therefore, the correlation value is obtained according to the connection times, and the accuracy of obtaining the correlation value can be improved. The larger the data transfer amount is, the more important the file representing the file transfer between the user equipment and the in-vehicle equipment is. Therefore, the correlation value is acquired according to the data transmission quantity, and the accuracy of acquiring the correlation value can be improved.
S204: and if the user equipment successfully joins the second P2P group, the vehicle-mounted equipment receives the target file sent by the user equipment based on the WIFI P2P mode.
In this embodiment of the application, the target file may be any file that is sent to the vehicle-mounted device after the user equipment joins the second P2P group, for example, a file corresponding to a form of an image, a video, an audio, a text, a compression package, an installation package, and the like.
In the method shown in fig. 2, if the user equipment fails to join the first P2P group created by the vehicle-mounted device, the first P2P group is disassembled, and a new P2P group is created to obtain a second P2P group. And then sending group connection information to the user equipment to prompt the user equipment to join the second P2P group. And after the user equipment successfully joins the second P2P group, receiving a target file sent by the user equipment based on the WIFI P2P mode. Therefore, the success rate of the user equipment accessing the network of the vehicle-mounted equipment can be improved, and the success rate of file transmission is convenient to improve.
Referring to fig. 3, fig. 3 is a schematic flow chart of another file transmission method according to an embodiment of the present application. The method is exemplified by being applied to the vehicle-mounted device, and includes the following steps S301 to S305, where:
s301: and if the user equipment fails to join the first P2P group created by the vehicle-mounted equipment, the vehicle-mounted equipment dissembles the first P2P group.
S302: the in-vehicle device creates a second P2P group.
S303: and the vehicle-mounted equipment sends the group connection information to the user equipment.
In this embodiment of the present application, the group connection information is used to instruct the ue to join the second P2P group. The descriptions of steps S201 to S203 can be referred to in steps S301 to S303, and are not repeated herein.
S304: and if the user equipment fails to join the second P2P group, the vehicle-mounted equipment sends group dispersion information to the user equipment.
In an embodiment of the present application, the group dismissal information is used to instruct the ue to dismiss the P2P group created in the ue. After the user equipment has an abnormal event such as abnormal power failure or card jamming, the communication of the P2P group originally created by the user equipment is not normally disconnected, and the user equipment may be influenced to join another P2P group. And some user equipments may persistently store the established P2P group when establishing the WIFI P2P connection, and the stored group may not be used for the next connection due to a change of information (e.g., radio frequency, password, etc.) of the vehicle-mounted device, resulting in a failure to join the P2P group of the vehicle-mounted device. Therefore, if the UE fails to join the second P2P group, the group dismissal information is sent to the UE first to prompt the UE to dismiss the P2P group created in the UE, so that the success rate of network access can be further improved.
S305: and if the user equipment successfully joins the second P2P group, the vehicle-mounted equipment receives the target file sent by the user equipment based on the WIFI P2P mode.
In the method shown in fig. 3, if the user equipment fails to join the first P2P group created by the vehicle-mounted device, the first P2P group is disassembled, and a new P2P group is created to obtain a second P2P group. And then sending group connection information to the user equipment to prompt the user equipment to join the second P2P group. And after the user equipment fails to join the second P2P group, sending group dismissal information to the user equipment to prompt the user equipment to dismiss the P2P group created in the user equipment. And after the user equipment successfully joins the second P2P group, receiving a target file sent by the user equipment based on the WIFI P2P mode. Therefore, the success rate of the user equipment accessing the network of the vehicle-mounted equipment can be further improved, and the success rate of file transmission is convenient to improve.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another file transmission method according to an embodiment of the present disclosure. Taking the application of the method to the vehicle-mounted device as an example for illustration, the method includes the following steps S401 to S409, wherein:
s401: and if the user equipment fails to join the first P2P group created by the vehicle-mounted equipment, the vehicle-mounted equipment acquires the configuration information of the user equipment.
S402: and determining whether the user equipment supports the WIFI P2P mode according to the configuration information.
The configuration information is as described above and will not be described herein. In step S402, if it is determined that the user equipment supports the WIFI P2P mode according to the configuration information, step S403 is performed, otherwise, step S407 is performed.
S403: the vehicle-mounted device dissembles the first P2P group.
S404: the in-vehicle device creates a second P2P group.
S405: and the vehicle-mounted equipment sends the group connection information to the user equipment.
S406: and if the user equipment successfully joins the second P2P group, the vehicle-mounted equipment receives the target file sent by the user equipment based on the WIFI P2P mode.
In this embodiment of the present application, the group connection information is used to instruct the ue to join the second P2P group. The descriptions of steps S201 to S204 can be referred to in steps S403 to S406, and are not repeated herein.
S407: the vehicle-mounted device creates a target hotspot.
S408: and the vehicle-mounted equipment sends the hotspot connection information to the user equipment.
S409: and if the user equipment is successfully accessed to the target hotspot, the vehicle-mounted equipment receives a target file sent by the user equipment based on the hotspot mode.
In this embodiment, the hotspot connection information is used to indicate that the user equipment accesses the target hotspot. The target hotspot can be an AP of a local area network created by the vehicle-mounted device, and the user device accessing the target hotspot can be understood as the user device accessing the local area network corresponding to the vehicle-mounted device, so that file transmission can be realized based on the local area network.
In the method shown in fig. 4, if the user equipment fails to join the first P2P group created by the vehicle-mounted device, it is first determined whether the user equipment supports the WIFI P2P mode according to the configuration information of the user equipment. If so, the first P2P group is disassembled, and a new P2P group is created to obtain a second P2P group. And then sending group connection information to the user equipment to prompt the user equipment to join the second P2P group, so that after the user equipment successfully joins the second P2P group, the target file sent by the user equipment based on the WIFI P2P mode can be received. And if the user equipment does not support the WIFI P2P mode, creating a target hotspot, and sending hotspot connection information to the user equipment to prompt the user equipment to access the target hotspot, so that a target file sent by the user equipment based on the hotspot mode can be received after the user successfully accesses the target hotspot. Therefore, the success rate of the user equipment accessing the network of the vehicle-mounted equipment can be further improved by creating the P2P group corresponding to the WIFI P2P mode or the target hotspot corresponding to the hotspot mode. And file transmission is carried out by establishing a WIFI P2P mode or a hotspot mode, so that the success rate of file transmission can be further improved.
The method of the embodiments of the present application is set forth above in detail and the apparatus of the embodiments of the present application is provided below.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a file transmission device according to an embodiment of the present disclosure, and as shown in fig. 5, the file transmission device 500 includes a processing unit 501 and a communication unit 502.
When the file transmission apparatus 500 is a vehicle-mounted device, the processing unit 501 is configured to, if the user equipment fails to join the first P2P group created by the vehicle-mounted device, dissolve the first P2P group; creating a second P2P group; the communication unit 502 is configured to send group connection information to the ue, where the group connection information is used to instruct the ue to join the second P2P group; and if the user equipment is successfully added into the second P2P group, receiving a target file sent by the user equipment based on a WIFI P2P mode.
In a possible example, the communication unit 502 is further configured to send group dismissal information to the ue if the ue fails to join the second P2P group, where the group dismissal information is used to instruct the ue to dismiss the P2P group created in the ue.
In one possible example, the processing unit 501 is further configured to obtain configuration information of the user equipment; and if the user equipment is determined to support the WIFI P2P mode according to the configuration information, executing the step of dissolving the first P2P group.
In a possible example, the processing unit 501 is further configured to create a target hotspot if it is determined that the user equipment does not support the WIFI P2P mode according to the configuration information; the communication unit 502 is further configured to send hotspot connection information to the user equipment, where the hotspot connection information is used to indicate that the user equipment accesses the target hotspot; and if the user equipment is successfully accessed to the target hotspot, receiving a target file sent by the user equipment based on a hotspot mode.
In a possible example, the group connection information includes verification prompt information, and the communication unit 502 is further configured to receive information to be verified, which is sent by the user equipment for the verification prompt information; the processing unit 501 is further configured to allow the ue to join the second P2P group if the to-be-verified information is successfully matched with the preset verification information.
In one possible example, the processing unit 501 is further configured to obtain an association value between the user equipment and the vehicle-mounted device; determining the preset verification information and the verification mode of the preset verification information according to the correlation value; and generating the verification prompt information according to the verification mode.
In one possible example, the processing unit 501 is specifically configured to obtain a connection record between the user equipment and the vehicle-mounted device; and acquiring the association value between the user equipment and the vehicle-mounted equipment according to the connection record.
When the file transmission apparatus 500 is an in-vehicle device, the communication unit 502 is configured to receive group connection information from the in-vehicle device, where the group connection information is used to instruct the ue to join the second P2P group; and if the user equipment is successfully added into the second P2P group, sending a target file to the vehicle-mounted equipment based on a WIFI P2P mode.
In a possible example, the communication unit 502 is further configured to receive group dismissal information from the vehicle-mounted device if the user equipment fails to join the second P2P group, where the group dismissal information is used to instruct the user equipment to dismiss the P2P group created in the user equipment.
In a possible example, the communication unit 502 is further configured to receive hotspot connection information from the vehicle-mounted device, where the hotspot connection information is used to instruct the user device to access the target hotspot; and if the user equipment is successfully accessed to the target hotspot, sending a target file to the vehicle-mounted equipment based on the hotspot mode.
In one possible example, the communication unit 502 is further configured to send information to be verified to the vehicle-mounted device for the verification prompt information.
For the detailed process executed by each unit in the file transmission apparatus 500, reference may be made to the execution steps in the foregoing method embodiments, which are not described herein again.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure. As shown in fig. 6, the computer device 600 includes a processor 610, a memory 620, a communication interface 630, and one or more programs 640. The processor 610, memory 620, communication interface 630, and one or more programs 640 may be connected by a bus 650. The related functions implemented by the communication unit 502 shown in fig. 5 can be implemented by the communication interface 630, and the related functions implemented by the processing unit 501 shown in fig. 5 can be implemented by the processor 610. The one or more programs 640 are stored in the memory 620 and configured to be executed by the processor 610.
When the computer device is an in-vehicle device, the above-described program 640 includes instructions for executing the steps of:
if the user equipment fails to join the first P2P group created by the vehicle-mounted equipment, the first P2P group is dispersed;
creating a second P2P group;
sending group connection information to the UE, wherein the group connection information is used for indicating the UE to join the second P2P group;
and if the user equipment is successfully added into the second P2P group, receiving a target file sent by the user equipment based on a WIFI P2P mode.
In one possible example, the program 640 is further for instructions to perform the steps of:
and if the UE fails to join the second P2P group, sending group dismissal information to the UE, wherein the group dismissal information is used for indicating the UE to dismiss the P2P group created in the UE.
In one possible example, prior to dismissing the first P2P group, the program 640 is further for instructions to:
acquiring configuration information of the user equipment;
and if the user equipment is determined to support the WIFI P2P mode according to the configuration information, executing the step of dissolving the first P2P group.
In one possible example, the program 640 is further for instructions to perform the steps of:
if the user equipment is determined not to support the WIFI P2P mode according to the configuration information, creating a target hotspot;
sending hotspot connection information to the user equipment, wherein the hotspot connection information is used for indicating the user equipment to access the target hotspot;
and if the user equipment is successfully accessed to the target hotspot, receiving a target file sent by the user equipment based on a hotspot mode.
In one possible example, the group connection information includes verification hint information, and the program 640 is further for instructions to:
receiving to-be-verified information sent by the user equipment aiming at the verification prompt information;
and if the information to be verified is successfully matched with the preset verification information, allowing the user equipment to join the second P2P group.
In one possible example, prior to sending the group connection information to the user equipment, the program 640 is further for executing the instructions of:
acquiring a correlation value between the user equipment and the vehicle-mounted equipment;
determining the preset verification information and the verification mode of the preset verification information according to the correlation value;
and generating the verification prompt information according to the verification mode.
In one possible example, in terms of the obtaining of the association value between the user equipment and the vehicle-mounted device, the program 640 is specifically configured to execute the following steps:
acquiring a connection record between the user equipment and the vehicle-mounted equipment;
and acquiring the association value between the user equipment and the vehicle-mounted equipment according to the connection record.
When the computer device is a user device, the program 640 includes instructions for performing the steps of:
receiving group connection information from a vehicle-mounted device, wherein the group connection information is used for indicating the user equipment to join the second P2P group;
and if the user equipment is successfully added into the second P2P group, sending a target file to the vehicle-mounted equipment based on a WIFI P2P mode.
In one possible example, the program 640 is further for instructions to perform the steps of:
and if the user equipment fails to join the second P2P group, receiving group dismissal information from the vehicle-mounted equipment, wherein the group dismissal information is used for indicating the user equipment to dismiss the P2P group created in the user equipment.
In one possible example, the program 640 is further for instructions to perform the steps of:
receiving hotspot connection information from the vehicle-mounted equipment, wherein the hotspot connection information is used for indicating the user equipment to access the target hotspot;
and if the user equipment is successfully accessed to the target hotspot, sending a target file to vehicle-mounted equipment based on a hotspot mode.
In one possible example, the program 640 is further for instructions to perform the steps of:
and sending information to be verified to the vehicle-mounted equipment according to the verification prompt information.
Embodiments of the present application further provide a computer storage medium, where the computer storage medium stores a computer program for storing, the computer program enabling a computer to execute to implement part or all of steps of any one of the methods described in the method embodiments, and the computer includes a vehicle-mounted device or a user equipment.
Embodiments of the application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform to implement some or all of the steps of any of the methods recited in the method embodiments. The computer program product may be a software installation package and the computer comprises an in-vehicle device or a user device.
It should be noted that for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art will also appreciate that the embodiments described in this specification are presently preferred and that no particular act or mode of operation is required in the present application.
In the foregoing embodiments, 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 several embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, at least one unit or component may be combined or integrated with another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection between devices or units, 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 also be distributed on at least one network unit. 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 application 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 may be implemented in a hardware form, or may be implemented in a software program mode.
The integrated unit, if implemented in the form of a software program module and sold or used as a stand-alone product, may be stored in a computer readable memory. With such an understanding, the technical solution of the present application may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for transferring a file, comprising:
if the user equipment fails to join the first P2P group created by the vehicle-mounted equipment, the first P2P group is dispersed;
creating a second P2P group;
sending group connection information to the UE, wherein the group connection information is used for indicating the UE to join the second P2P group;
and if the user equipment successfully joins the second P2P group, receiving a target file sent by the user equipment based on a WIFI P2P mode.
2. The method of claim 1, further comprising:
and if the UE fails to join the second P2P group, sending group dismissal information to the UE, wherein the group dismissal information is used for indicating the UE to dismiss the P2P group created in the UE.
3. The method of claim 1, prior to dismissing the first P2P group, the method further comprising:
acquiring configuration information of the user equipment;
and if the user equipment is determined to support the WIFIP2P mode according to the configuration information, executing the step of dissolving the first P2P group.
4. The method of claim 3, further comprising:
if the user equipment is determined not to support the WIFI P2P mode according to the configuration information, creating a target hotspot;
sending hotspot connection information to the user equipment, wherein the hotspot connection information is used for indicating the user equipment to access the target hotspot;
and if the user equipment is successfully accessed to the target hotspot, receiving a target file sent by the user equipment based on a hotspot mode.
5. The method of any of claims 1-4, the group connection information comprising verification hint information, the method further comprising:
receiving to-be-verified information sent by the user equipment aiming at the verification prompt information;
and if the information to be verified is successfully matched with the preset verification information, allowing the user equipment to join the second P2P group.
6. The method of claim 5, prior to sending group connection information to the user equipment, the method further comprising:
acquiring a correlation value between the user equipment and the vehicle-mounted equipment;
determining the preset verification information and a verification mode of the preset verification information according to the correlation value;
and generating the verification prompt information according to the verification mode.
7. The method of claim 6, wherein the obtaining of the association value between the user equipment and the vehicle-mounted equipment comprises:
acquiring a connection record between the user equipment and the vehicle-mounted equipment;
and acquiring the association value between the user equipment and the vehicle-mounted equipment according to the connection record.
8. A document transport apparatus, comprising:
the processing unit is used for resolving the first P2P group created by the vehicle-mounted equipment if the user equipment fails to join the first P2P group; creating a second P2P group;
a communication unit, configured to send group connection information to the ue, where the group connection information is used to instruct the ue to join the second P2P group; and if the user equipment successfully joins the second P2P group, receiving a target file sent by the user equipment based on a WIFI P2P mode.
9. A computer device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in any of the methods of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, the computer program causing a computer to execute to implement the method of any one of claims 1-7.
CN202110433120.0A 2021-04-21 2021-04-21 File transmission method, device, computer equipment and storage medium Active CN115225627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110433120.0A CN115225627B (en) 2021-04-21 2021-04-21 File transmission method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110433120.0A CN115225627B (en) 2021-04-21 2021-04-21 File transmission method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115225627A true CN115225627A (en) 2022-10-21
CN115225627B CN115225627B (en) 2024-03-01

Family

ID=83606423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110433120.0A Active CN115225627B (en) 2021-04-21 2021-04-21 File transmission method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115225627B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709584A (en) * 2022-10-27 2023-09-05 荣耀终端有限公司 Method for connecting car machine and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702291A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Wi-Fi (wireless fidelity)-based group establishing method and WiFi directly-connecting equipment
KR20170025327A (en) * 2015-08-27 2017-03-08 이서진 How to transfer large files using a smartphone messenger and transfer large files using to Wifi Direct.
WO2018018866A1 (en) * 2016-07-29 2018-02-01 中兴通讯股份有限公司 Data sharing method and device
FR3067542A1 (en) * 2017-06-29 2018-12-14 Orange METHOD FOR MANAGING TRANSMISSION OF MULTIMEDIA CONTENT AND EQUIPMENT FOR IMPLEMENTING THE METHOD
CN111050415A (en) * 2019-12-23 2020-04-21 精诚工坊电子集成技术(北京)有限公司 Wireless data transmission method convenient to operate

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702291A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Wi-Fi (wireless fidelity)-based group establishing method and WiFi directly-connecting equipment
KR20170025327A (en) * 2015-08-27 2017-03-08 이서진 How to transfer large files using a smartphone messenger and transfer large files using to Wifi Direct.
WO2018018866A1 (en) * 2016-07-29 2018-02-01 中兴通讯股份有限公司 Data sharing method and device
FR3067542A1 (en) * 2017-06-29 2018-12-14 Orange METHOD FOR MANAGING TRANSMISSION OF MULTIMEDIA CONTENT AND EQUIPMENT FOR IMPLEMENTING THE METHOD
CN111050415A (en) * 2019-12-23 2020-04-21 精诚工坊电子集成技术(北京)有限公司 Wireless data transmission method convenient to operate

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
常朝霞;程卫军;: "基于Android的Wi-Fi Direct即时通信***的设计与实现", 电视技术, no. 01 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709584A (en) * 2022-10-27 2023-09-05 荣耀终端有限公司 Method for connecting car machine and terminal equipment
CN116709584B (en) * 2022-10-27 2024-05-17 荣耀终端有限公司 Method for connecting car machine and terminal equipment

Also Published As

Publication number Publication date
CN115225627B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
EP3716656B1 (en) Profile generation method, profile acquisition method, and related device and storage medium
US11093981B2 (en) Smart broadcasting device
CN105610949B (en) Resource data use permission sharing method, device and system
CN110869907B (en) Method and terminal for browsing application page
CN110662209B (en) Screen-throwing equipment connection method and device in isolation network
US20220214932A1 (en) Methods, devices and computer storage media for inter-mini program platform communication
JP6422997B2 (en) Business process execution method, apparatus, system, program, and recording medium
WO2012175786A1 (en) Methods, apparatuses and computer program products for provisioning applications to in vehicle infotainment systems with secured access
EP3142006A2 (en) Device control method and apparatus
JP6126755B2 (en) Terminal verification method, apparatus, program, and recording medium
CN105657781B (en) WiFi network access method and device
US20170171496A1 (en) Method and Electronic Device for Screen Projection
US20220245005A1 (en) Methods, devices and computer storage media for inter-mini program platform discovery
CN110167192B (en) Bluetooth connection management method and device, electronic equipment and non-transient storage medium
US20170163787A1 (en) Method and electronic device for upgrading or downgrading system
US10820187B2 (en) Electronic device for managing embedded subscriber identification module and method for same
CN113434105A (en) Screen projection control method and device, storage medium and electronic equipment
CN112346751A (en) Application program installation method and device, electronic equipment and storage medium
CN110278273B (en) Multimedia file uploading method, device, terminal, server and storage medium
CN110336592B (en) Data transmission method suitable for Bluetooth card reader, electronic equipment and storage medium
CN112543431A (en) Account synchronization method, medium and server
CN104468499A (en) Determining format compatibility across a data processing device and another data processing device prior to transfer of a multimedia file therebetween
CN115225627A (en) File transmission method and device, computer equipment and storage medium
KR20130123149A (en) Method for data network access authentication and an electronic device thereof
CN113726905A (en) Data acquisition method, device and equipment based on home terminal equipment

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 3701, No. 866 East Changzhi Road, Hongkou District, Shanghai, 200000

Patentee after: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Country or region after: China

Address before: 201821 room 208, building 4, No. 1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai

Patentee before: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Country or region before: China