WO2023125242A1 - 数据传输方法及相关设备 - Google Patents

数据传输方法及相关设备 Download PDF

Info

Publication number
WO2023125242A1
WO2023125242A1 PCT/CN2022/141091 CN2022141091W WO2023125242A1 WO 2023125242 A1 WO2023125242 A1 WO 2023125242A1 CN 2022141091 W CN2022141091 W CN 2022141091W WO 2023125242 A1 WO2023125242 A1 WO 2023125242A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
shared
information
link
local
Prior art date
Application number
PCT/CN2022/141091
Other languages
English (en)
French (fr)
Inventor
曹宝坤
Original Assignee
展讯通信(天津)有限公司
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 展讯通信(天津)有限公司 filed Critical 展讯通信(天津)有限公司
Publication of WO2023125242A1 publication Critical patent/WO2023125242A1/zh

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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the embodiments of the present application relate to the technical field of communications, and in particular, to a data transmission method and related equipment.
  • the user first sends data such as video, music, etc. to a remote server such as a business server, a relay server, etc., and the server The data is then forwarded to the target user.
  • a remote server such as a business server, a relay server, etc.
  • This data transmission method has a strong dependence on the remote server. For example, both the source terminal and the target terminal must know the connection information of the same remote server, and the two rely on the connection information to establish a communication connection with the remote server in order to establish an The data transmission channel for data transmission.
  • the remote server goes down or refuses service, the terminal cannot establish a connection with the remote server, the data transmission channel between the terminals is disconnected, and the data transmission between the terminals cannot continue.
  • the embodiments of the present application provide a data transmission method and related equipment, so as to reduce the dependence on the server and enhance the flexibility of data transmission when data transmission is performed between devices.
  • the embodiment of the present application provides a data transmission method.
  • the method is applied to an electronic terminal as a local electronic device, and includes: acquiring locally stored identity information, the identity information including the local identity information and the opposite end Identity information; sending an ADPU link establishment request to the peer electronic device, the request carrying the local identity information; receiving a request response message sent by the peer electronic device; according to the locally stored peer identity information , verifying the peer information carried in the request response message; when the verification of the peer information is passed, establishing an application data unit APDU link with the peer electronic device; The peer electronic device sends an operation instruction, where the operation instruction is used to instruct the peer electronic device to perform an operation.
  • an APDU link is directly established between the local electronic device and the peer electronic device, and point-to-point transmission of operation instructions is used to instruct the peer electronic device to perform actions.
  • the connection between devices in this application There is no server involved in the link, the message does not need to be transferred through the server, and the data transmission can be realized without connecting to the server. There is no dependence on the server, which enhances the flexibility of data transmission.
  • the transmission of the present application adopts the APDU command, which has high communication efficiency, can reduce the delay of point-to-point communication, and can also increase the confidentiality of communication.
  • the method further includes: acquiring first configuration information, where the first configuration information corresponds to a first shared server; sending the first configuration information to the peer electronic device through the ADPU link A configuration information; connect to the first sharing server according to the first configuration information, so as to establish a data transmission link with the peer electronic device through the first sharing server; The information is transmitted to the first sharing server so that the first sharing server sends the sharing information to the peer electronic device, where the sharing information is shared data or a shared data link.
  • the operation instruction includes at least one of the following: a control instruction for the shared information, and a setting instruction for the peer electronic device.
  • the method further includes: sending a configuration update request to the shared server management platform; receiving the shared server management platform The update response message sent, obtaining the second configuration information in the update response message, the second configuration information corresponding to the second shared server; sending the second configuration to the peer electronic device through the ADPU link data; connect to the second shared server according to the second configuration information, so as to establish a data transmission link with the peer electronic device through the second shared server; transmit the shared information through the data transmission link to the second sharing server so that the second sharing server sends the sharing information to the peer electronic device, where the sharing information is shared data or a shared data link.
  • the local electronic device stores third configuration information locally, and the third configuration information corresponds to a third sharing server.
  • the method further includes: acquiring the third configuration information, sending the three configuration data to the peer electronic device through the ADPU link; connecting the third configuration information according to the third configuration information A sharing server, to establish a data transmission link with the peer electronic device through the third sharing server; transmit sharing information to the third sharing server through the data transmission link so that the third sharing The server sends the shared information to the peer electronic device, where the shared information is shared data or a shared data link.
  • the embodiment of the present application provides a data transmission method, the method is applied to an electronic terminal as a peer electronic device, and the method includes: receiving an ADPU link establishment request, and receiving an ADPU link establishment request in the ADPU link establishment request
  • the local terminal identity information corresponding to the local terminal electronic device carried is verified; when the local terminal identity information is verified, a response message of the ADPU request is sent to the local terminal electronic device to establish an ADPU link, and the The response message carries the identity information of the opposite-end electronic device; receiving the operation instruction sent by the local-end electronic device through the APDU link, and performing operations according to the operation instruction.
  • the receiving the ADPU link establishment request, and verifying the local terminal identity information corresponding to the local terminal electronic device carried in the ADPU link establishment request includes: receiving the ADPU link establishment request Link establishment request, obtain locally stored identity information, the locally stored identity information includes the identity information of the local end electronic device; according to the locally stored identity information of the local end electronic device, the ADPU link The local terminal identity information corresponding to the local terminal electronic device carried in the establishment request is verified.
  • the method further includes: receiving first configuration information sent by the local electronic device through the ADPU link, where the first configuration information corresponds to the first shared server; according to the The first configuration information is connected to the first shared server, so as to establish a data transmission link with the local electronic device through the first shared server; through the data transmission link, the local electronic device receives the The shared information relayed by the first shared server, the shared information is shared data or shared data links.
  • the operation instruction includes at least one of the following: a control instruction for the shared information, and a setting instruction for the peer electronic device.
  • the method further includes: receiving the second Configuration data, the second configuration data corresponds to a second shared server; connect to the second shared server according to the second configuration information, so as to establish a data transmission link with the local electronic device through the second shared server and receiving the shared information transferred from the local electronic device through the second shared server through the data transmission link, where the shared information is shared data or a shared data link.
  • an embodiment of the present application provides an electronic device, the device including: a first obtaining module, configured to obtain locally stored identity information, where the identity information includes local-end identity information and peer-end identity information; request A module, configured to send an ADPU link establishment request to a peer electronic device, the request carrying the local identity information; a request response receiving module, configured to receive a request response message sent by the peer electronic device; the peer The verification module is used to verify the peer information carried in the request response message according to the peer identity information stored locally; the APDU link module is used to communicate with the peer information after the verification of the peer information is passed.
  • the peer electronic device establishes an application data unit APDU link; an instruction module is configured to send an operation instruction to the peer electronic device through the APDU link, and the operation command is used to instruct the peer electronic device to operate .
  • the device further includes: a second acquisition module, configured to acquire first configuration information, the first configuration information corresponding to the first shared server; a configuration information synchronization module, configured to pass the The ADPU link sends the first configuration information to the peer electronic device; the data transmission link module is used to connect the first shared server according to the first configuration information, so as to pass the first shared server Establishing a data transmission link with the peer electronic device; a sharing module, configured to transmit the shared information to the first shared server through the data transmission link so that the first shared server will share the shared information sent to the peer electronic device, the shared information is shared data or a shared data link.
  • a second acquisition module configured to acquire first configuration information, the first configuration information corresponding to the first shared server
  • a configuration information synchronization module configured to pass the The ADPU link sends the first configuration information to the peer electronic device
  • the data transmission link module is used to connect the first shared server according to the first configuration information, so as to pass the first shared server Establishing a data transmission link with the peer electronic device
  • a sharing module
  • the operation instruction includes at least one of the following: a control instruction for the shared information, and a setting instruction for the peer electronic device.
  • the device further includes: an update request module, configured to send a configuration update request to a shared server management platform when connecting to the first shared server according to the first configuration information fails;
  • An update response receiving module configured to receive an update response message sent by the shared server management platform, and obtain second configuration information in the update response message, where the second configuration information corresponds to a second shared server; the configuration information is synchronized
  • the module is further configured to send the second configuration data to the peer electronic device through the ADPU link;
  • the data transmission link module is further configured to connect the second shared device according to the second configuration information
  • the server is configured to establish a data transmission link with the peer electronic device through the second sharing server;
  • the sharing module is also configured to transmit the sharing information to the second sharing server through the data transmission link so that the second sharing server sends the sharing information to the peer electronic device, where the sharing information is shared data or a shared data link.
  • the device stores third configuration information locally, and the third configuration information corresponds to a third shared server
  • the local electronic device further includes: the obtaining module further uses Obtaining the third configuration information when connecting to the first shared server through the first configuration information fails; the configuration information synchronization module is also configured to send the electronic device to the peer electronic device through the ADPU link Sending the three configuration data; the data transmission link module is also used to connect to the third shared server according to the third configuration information, so as to establish a connection with the peer electronic device through the third shared server A data transmission link; the sharing module is further configured to transmit the sharing information to the third sharing server through the data transmission link so that the third sharing server sends the sharing information to the peer
  • the shared information is shared data or shared data links.
  • the embodiment of the present application provides an electronic device, the device including: a request receiving module, configured to receive an ADPU link establishment request, and corresponding to the local electronic device carried in the ADPU link establishment request The identity information of the local terminal is verified; the APDU link module is used to send a response message of the ADPU request to the electronic device of the local terminal after the identity information of the local terminal is verified, so as to establish an ADPU link, and the response The message carries the identity information of the opposite-end electronic device; the command receiving module is configured to receive the operation command sent by the local-end electronic device through the APDU link, and operate according to the operation command.
  • the request receiving module further includes: an acquisition submodule, configured to receive the ADPU link establishment request, and acquire locally stored identity information, the locally stored identity information including the The identity information of the local terminal electronic device; the local terminal verification submodule is used to verify the local terminal corresponding to the local terminal electronic device carried in the ADPU link establishment request according to the locally stored identity information of the local terminal electronic device. Verify the identity information of the terminal.
  • an acquisition submodule configured to receive the ADPU link establishment request, and acquire locally stored identity information, the locally stored identity information including the The identity information of the local terminal electronic device
  • the local terminal verification submodule is used to verify the local terminal corresponding to the local terminal electronic device carried in the ADPU link establishment request according to the locally stored identity information of the local terminal electronic device. Verify the identity information of the terminal.
  • the device further includes: a configuration information synchronization module, configured to receive the first configuration information sent by the local electronic device through the ADPU link, and the first configuration information corresponds to A first shared server; a data transmission link module, configured to connect to the first shared server according to the first configuration information, so as to establish a data transmission link with the local electronic device through the first shared server;
  • the sharing module is configured to receive, through the data transmission link, the sharing information relayed by the local electronic device through the first sharing server, where the sharing information is shared data or a shared data link.
  • the operation instruction includes at least one of the following: a control instruction for the shared information, and a setting instruction for the peer electronic device.
  • the device further includes: the configuration information synchronization module, further configured to, when connecting to the first shared server according to the first configuration information fails, receive the The second configuration data is sent to China through the ADPU link, and the second configuration data corresponds to the second shared server; the data transmission link module is also used to connect to the second shared server according to the second configuration information , to establish a data transmission link with the local electronic device through the second sharing server;
  • the shared information relayed by the shared server is shared data or shared data links.
  • the embodiment of the present application provides a terminal device, including: at least one processor; and at least one memory communicated with the processor, wherein: the memory stores a program executable by the processor Instructions, the processor invokes the program instructions to execute the methods provided in the first aspect and the second aspect.
  • the embodiment of the present application provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the first aspect and the second provision. Methods.
  • FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application.
  • FIG. 2 is a flow chart of the data transmission method provided in the first embodiment of the present application.
  • Fig. 3 is a flowchart of a preferred implementation of the first embodiment of the present application.
  • FIG. 4 is a schematic diagram of an implementation environment provided by another embodiment of the present application.
  • FIG. 5 is a schematic diagram of an implementation environment provided by another embodiment of the present application.
  • FIG. 6 is a flow chart of another preferred implementation manner of the first embodiment of the present application.
  • FIG. 7 is a flowchart of another preferred implementation manner of the first embodiment of the present application.
  • FIG. 8 is a flow chart of the data transmission method provided in the second embodiment of the present application.
  • FIG. 9 is a flowchart of a preferred implementation manner of the second embodiment of the present application.
  • FIG. 10 is a flowchart of another preferred implementation manner of the second embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a local electronic device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a local electronic device provided in another embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a local electronic device provided in another embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a peer electronic device provided in an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a peer electronic device provided by another embodiment of this specification.
  • FIG. 16 is a schematic structural diagram of a peer electronic device provided by another embodiment of the present specification.
  • data transmission relies on the two parties to connect to the designated server according to the predetermined same connection information, so as to establish a data transmission channel for data transmission.
  • This transmission method is too dependent on the designated server.
  • the data transmission channel will be disconnected, and the connection between terminals cannot be established for data transmission, which is less flexible.
  • the embodiment of the present application provides a data transmission method.
  • data transmission is performed between terminals, an APDU link is directly established, and operation instructions are transmitted point-to-point between devices.
  • FIG. 1 is a schematic diagram of an implementation environment of a data transmission method proposed in an embodiment of the present application.
  • the implementation environment includes a local electronic device 101 and a peer electronic device 102 .
  • the local electronic device 101 and the peer electronic device 102 can be any terminal devices that can access the network for transmission, such as personal computers, tablet computers, smart mobile terminals, personal digital assistants, audio and video players, cameras, game control desks, tablet devices, smart devices, wearable devices, vehicles, electric meters, gas pumps, large or small kitchen appliances, health care devices, implants, displays, or any other similar functional device.
  • FIG. 2 is a flow chart of the data transmission method provided in the first embodiment of the present application. The method is applied to the local electronic device 101 shown in FIG. 1. As shown in FIG. 2, the above data transmission method may include:
  • Step 201 acquire locally stored identity information, where the identity information includes local identity information and peer identity information.
  • Identity information may include: IMSI (International Mobile Subscriber Identity, International Mobile Subscriber Identity), Temporary Mobile Subscriber Identity (TMSI, Temporary Mobile Subscriber Identity), ACCID user account ID, International Mobile Equipment Identity (International Mobile Equipment Identity, IMEI ), number, etc.
  • IMSI International Mobile Subscriber Identity, International Mobile Subscriber Identity
  • TMSI Temporary Mobile Subscriber Identity
  • ACCID user account ID International Mobile Equipment Identity (International Mobile Equipment Identity, IMEI ), number, etc.
  • key information is obtained in addition to the identity information, and the key information includes the public key and private key of the local electronic device and the public key of the peer electronic device.
  • Step 202 sending an ADPU link establishment request to the peer electronic device, the request carrying the identity information of the local end.
  • the request instruction adopts the ADPU format, and is used to establish an ADPU link to the opposite electronic device.
  • ADPU Application Protocol data unit, application protocol data unit, this instruction is defined by the ISO816 specification of the ISO International Organization for Standardization/IEC International Electrotechnical Commission.
  • ADPU can be divided into command APDU (command APDU) and response APDU (response APDU).
  • the command APDU contains a mandatory 4-byte header (CLA, INS, P1, P2) and a data segment (0 to 255 bytes of data).
  • the field INS is used to indicate a specific command, such as "authentication", "write data” and so on.
  • the INS field of the definition command APDU is used to represent different commands.
  • the definition needs to refer to basic protocols such as GSM11.11 and GSM11.14.
  • the request command in the embodiment of this application needs to use the command APDU format.
  • This application does not Limit the name of the INS field of the command, which can be arbitrary, such as Q, etc., and the local identity information is placed in the data segment of the command.
  • the identity information of the local end is encrypted with the public key of the opposite end electronic device and then encapsulated in the request instruction in APDU format.
  • PPP Point-to-Point Protocol
  • PPP Point-to-Point
  • the peer-to-peer protocol is specified in the RFC 1661 protocol of the Internet Engineering Task Force (Internet Engineering Task Force).
  • PPP has multiple protocols for specific implementations.
  • the RFC 2516 protocol describes PPPoE (Point-to-Point Protocol over Ethernet) as a method of implementing PPP over Ethernet, sometimes used with DSL.
  • the RFC 2364 protocol specifies the Point-to-Point Protocol over ATM (PPoA), which describes the method of transporting PPP over ATM Adaptation Layer 5 (AAL5), which is also a common alternative to PPPoE used with DSL.
  • PPPoA Point-to-Point Protocol over ATM
  • AAL5 ATM Adaptation Layer 5
  • Step 203 receiving a request response message sent by the peer electronic device.
  • a request response message returned by the peer electronic device is received, and the format of the request response message is a response APDU.
  • the request response message is returned by the peer electronic device for the ADPU request command sent by the local electronic device. Specifically, after receiving the command sent by the local electronic device, the peer electronic device reads the local identity information in the data segment , verifying whether the read information is true, and returning a request response message to the local electronic device when the read information is true.
  • request response message is sent using the same PPP (point-to-point) protocol as that of the local electronic device.
  • Step 204 verifying the peer information carried in the request response message according to the locally stored peer identity information
  • the request-response message sent by the peer electronic device is in response APDU format, and the instruction carries the identity information of the peer, reads the identity information, and verifies whether the information is the same as the identity information of the peer stored in the local storage system.
  • the peer information in the request response message is encrypted
  • the information is decrypted using the private key of the local electronic device read in step 201 for verification.
  • Step 205 when the verification of the peer information is passed, an APDU link is established with the peer electronic device.
  • the peer identity information carried in the request response message is the same as the peer identity information stored locally, the identity of the peer electronic device is successfully confirmed, and an APDU link can be established with the peer electronic device at this time.
  • the APDU link refers to the point-to-point protocol connection between the local electronic device and the peer electronic device. Since all the transmissions on the connection in the embodiment of this application are APDU instructions, it is called an APDU link for the convenience of description. , The APDU command has the advantages of high data transmission efficiency and strong confidentiality.
  • the local electronic device has completed a typical request/response mode, that is, sending a request and receiving a response.
  • the completion of this mode means that the local electronic device has completed a communication with the peer electronic device.
  • the remote electronic device successfully receives the request sent by the local electronic device, it indicates the delivery of the local electronic device to the socket (socket) and the request information.
  • the socket includes the point-to-point protocol number, the local terminal The IP address of the electronic device, the port number used by the local electronic device, the destination IP address, and the destination port number, and then, the opposite electronic device sends a response message to the local electronic device according to the socket, thus, the local electronic device completes A PPP protocol communication/connection process with the peer electronic device.
  • this embodiment does not regard it as a complete completion of establishing a PPP protocol connection facing the peer electronic device, but responds to the request
  • a complete communication process is deemed to be completed only after the identity information of the peer electronic device in the response message is verified successfully.
  • This application successfully verifies the identity information of the peer electronic device in the request response message, indicating that the local electronic device has completely completed a PPP protocol communication process with the peer electronic device, and successfully communicated between the local end electronic device and the peer electronic device.
  • a PPP protocol link is established.
  • the communication can be solidified into two dedicated functional interfaces SendAPDU and ReceiveAPDU according to the socket by means of an auxiliary module such as a net module or a modem module, for subsequent calls.
  • an auxiliary module such as a net module or a modem module
  • the local electronic device needs to establish a monitoring mechanism to monitor the link.
  • the monitoring object includes not only the instructions or data sent by the peer electronic device, but also The command or data that needs to be sent by the end, and then perform corresponding actions.
  • Step 206 sending an operation instruction to the opposite electronic device through the APDU link, where the operation instruction is used to instruct the opposite electronic device to perform an operation.
  • the local electronic device After the APDU link established by the above steps, the local electronic device sends an operation instruction to the opposite electronic device through the link.
  • the operation instruction is also in the format of a command APDU, and the operation instruction can be used to instruct the opposite electronic device to perform various operations.
  • Operations such as data acquisition, when the operation command is used for data acquisition, a name can also be specified in the INS field to identify it, which can be arbitrary, such as G, and can be stored in the data segment of the command to indicate the peer electronic device Obtain information about the data to be transmitted, such as the IP address where the data to be transmitted is saved.
  • an APDU link is directly established between the local electronic device and the peer electronic device, and point-to-point transmission of operation instructions is used to instruct the peer electronic device to perform actions.
  • the connection between devices in this application There is no server involved in the link, the message does not need to be transferred through the server, and the data transmission can be realized without connecting to the server. There is no dependence on the server, which enhances the flexibility of data transmission.
  • the transmission of the present application adopts the APDU command, which has high communication efficiency, can reduce the delay of point-to-point communication, and can also increase the confidentiality of communication.
  • point-to-point connections are obvious, but there are also certain disadvantages in only using point-to-point connections.
  • the APDU command is used, the delay between devices is still obvious.
  • the file transfer experience is poor, etc.
  • Fig. 3 is a flowchart of a preferred implementation of the first embodiment of the present application
  • the implementation environment in this embodiment is shown in Fig. 4
  • Fig. 4 shows the implementation of a preferred embodiment of the first embodiment of the present application Environment, as shown in FIG. 4
  • the implementation environment includes a local electronic device 101, a peer electronic device 102, and multiple shared servers.
  • the shared server can be an independent physical server, or a server cluster or distributed server composed of multiple physical servers.
  • the system can also be two independent parts deployed in the same server cluster or independent parts deployed in the same server such as middleware services, cloud computing, etc., and each shared server is provided with corresponding configuration information.
  • the steps may also include:
  • Step 301 acquire first configuration information, where the first configuration information corresponds to a first shared server.
  • each shared server is provided with its own corresponding configuration information, and the configuration information is used to connect to the shared server.
  • the configuration information can be APN/PDN, and APN is also called access point, Access Point Name, which determines which access method is used to access the network, such as the type of GPRS service, etc.
  • APN can be regarded as an identification of an external PDN (Public Data Network, public data network), configuration information in some cases It may also be a domain name, an IP address, or the like.
  • the local electronic device acquires first configuration information, where the first configuration information is configuration information for connecting to the first shared server.
  • the first configuration information can be saved locally or on a remote server. There are many situations for saving locally, for example, using the last used configuration information, or another example, saving multiple configuration information locally in advance , when it is necessary to obtain configuration information as the first configuration information, select a configuration information as the first configuration information according to filtering conditions such as the largest bandwidth, the shortest spatial distance, and the lowest delay.
  • the local electronic device in addition to obtaining the first configuration information, the local electronic device also obtains other configuration information, and other configuration information may also be used to serve the establishment of data transmission links, such as account information, authority information, verification information etc.
  • other configuration information is user-defined or customized configuration information. Whether or not other configuration information is transmitted and the content should depend on the specific circumstances of the connection to the shared server. For example, when the shared server requires a specified account to log in, then other configuration information such as account information needs to be transmitted at this time. For example, in order to ensure that the data If it is not lost, an encryption verification algorithm can be specified and sent to the peer electronic device, and the peer electronic device can verify the received configuration information and/or the message on the data link.
  • the acquisition of the first configuration information may be performed after the ADPU link is established, or it may be performed when the identity information is acquired in step 201, which is not limited in this application.
  • Step 302 sending the first configuration information to the peer electronic device through the ADPU link.
  • the local electronic device sends the acquired first configuration information to the peer electronic device through the ADPU link established in the above step 205 using the ADPU command.
  • the ADPU command used to send the configuration information is called a configuration synchronization command, similar to the above , the ADPU instruction is the command ADPU, the name of the INS field of the instruction is not limited, it can be arbitrary, such as S, etc., and the configuration information is placed in the data segment of the instruction.
  • the peer electronic device After receiving the ADPU instruction for configuration synchronization, the peer electronic device reads the configuration information in the instruction, which is the first configuration information at this time, and establishes a connection with the first shared server according to the configuration information.
  • command ADPU can only store data from 0 to 255 bytes, when the configuration data and local identity information are large, they can be split into multiple request commands and configuration synchronization commands.
  • the configuration synchronization instruction is also used to transmit other configuration information.
  • the configuration synchronization command is used to transmit other configuration information in addition to the information used to connect to the shared server.
  • the data in the configuration synchronization command can be in plain text or encrypted with a key to implement asymmetric encrypted transmission.
  • Step 303 connect to the first sharing server according to the first configuration information, so as to establish a data transmission link with the peer electronic device through the first sharing server.
  • the local end electronic device establishes a connection with the first shared server according to the first configuration information
  • the protocol for establishing the connection can be arbitrary such as HTTP, FTP, etc., and the specific type of the protocol can be specifically determined according to the data to be transmitted, so that For transmission, the determination process can be preset or specified in the configuration synchronization command.
  • the first shared server can be provided by an Internet operator or a content service provider.
  • the operator supports data services such as bip (Bearer Independent Call Control, bearer independent protocol) and mms (Multimedia Messaging Service, multimedia short message service), through
  • the configuration information establishes a data transmission link with the first shared server provided by the Internet operator.
  • the local electronic device After the local electronic device successfully establishes a connection with the first shared server, it calls an auxiliary module such as a net module or a modem module to form two functional interfaces, SendData and ReceiveData, so as to solidify the data transmission link into an interface for convenient calling.
  • an auxiliary module such as a net module or a modem module to form two functional interfaces, SendData and ReceiveData, so as to solidify the data transmission link into an interface for convenient calling.
  • the local electronic device can also monitor the data link by establishing a monitoring mechanism.
  • the monitoring object includes not only the data sent by the peer electronic device but also the data sent by the local electronic device itself. instructions or data, and then perform corresponding execution actions.
  • the local electronic device establishes a connection with the first shared server according to the first configuration information, and since the opposite electronic device also establishes a connection with the first shared server according to the first configuration information, both the local electronic device and the opposite electronic device will communicate with the first shared server.
  • the first shared server that is, the two establish another link through the first shared server, and this link is referred to as a data transmission link in this application.
  • Step 304 transmit the shared information to the first shared server through the data transmission link so that the first shared server sends the shared information to the peer electronic device, the shared information is shared data Or share data link.
  • the local electronic device can send the shared information to the opposite electronic device to the opposite electronic device. Since the data transmission link is established via the first sharing server, the route of the sharing information should be: the local electronic device sends the sharing information to the first sharing server, and the first sharing server forwards the sharing information to the peer after receiving the data. terminal electronic equipment.
  • the shared information may be shared data such as audio and video, or a connection for obtaining shared data such as a domain name.
  • the ADPU link can also be used to transmit a small amount of media data in addition to transmitting operation instructions and configuration information.
  • the ADPU link can temporarily carry some data content.
  • step 206 includes at least one of the following:
  • a control instruction for the shared information, and a setting instruction for the peer electronic device are included in A control instruction for the shared information, and a setting instruction for the peer electronic device.
  • a shared information control instruction which is used to control shared information, such as specifying a multimedia module that encodes and decodes shared information to play it, or assigning shared information to a third-party application to embed its function Perform controlled playback, or specify the peer electronic device to obtain data through a shared data connection.
  • a device setting instruction is set, and the instruction is used to set the peer electronic device, such as changing a system media configuration of the peer electronic device.
  • the configuration information of the server is also synchronized through the ADPU link, and a data transmission link is established between the devices through the server, which enhances data transmission. Capability, the transmission of different volumes can be realized between devices.
  • the server fails, the connection between the devices will not be completely disconnected, and some data It can still be transmitted through the ADPU link, and it only needs to use the ADPU link to retransmit the configuration information to replace it with a new server and re-establish the data link. This application is less dependent on the server, which improves the flexibility of data transmission sex.
  • Fig. 6 is a flowchart of another preferred implementation mode provided by the first embodiment of the present application.
  • the implementation environment in this embodiment is shown in Fig. 5, and the implementation environment includes a local electronic device 101, a peer electronic device 102, multiple The shared server and the shared server management platform 501, the shared server management platform 501 has a communication connection with the local electronic device 101, when the connection to the first shared server fails according to the first configuration information, as shown in Figure 6
  • it may also include:
  • Step 601 sending a configuration update request to the shared server management platform.
  • the local electronic device fails to connect to the first shared server according to the first configuration information, it means that the configuration information is wrong or the server has lost connection. At this time, it is necessary to replace the configuration information and connect to a new server to establish a shared server through the new server. Data transmission link.
  • the local electronic device can request new configuration information from the shared server management platform.
  • the new configuration information is referred to as the first Two configuration information.
  • the communication method between the local electronic device and the shared server management platform can be arbitrary, such as HTTP, UDP, etc., which is not limited in this application.
  • the shared server management platform stores configuration information corresponding to multiple shared servers.
  • the shared server management platform can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or deployed on the same server Two independent parts in a cluster or independent parts deployed in the same server such as middleware services, cloud computing, etc.
  • Step 602 Receive an update response message sent by the shared server management platform, and acquire second configuration information in the update response message, where the second configuration information corresponds to the second shared server.
  • the shared server management platform After receiving the configuration update request sent by the local electronic device, the shared server management platform selects one from the configuration information saved in the management platform as the second configuration information. Bandwidth, latency per shared server, etc.
  • the shared server management platform After the shared server management platform completes the selection of the second configuration information, it sends an update response message to the local electronic device, and the update response message carries the second configuration information.
  • the local electronic device After receiving the update response message, the local electronic device obtains the message carrying the second configuration message.
  • Step 603 sending the second configuration data to the peer electronic device through the ADPU link.
  • the local electronic device After obtaining the new configuration information, that is, after obtaining the second configuration information, the local electronic device sends a configuration synchronization command through the ADPU link to synchronize the obtained second configuration information to the opposite electronic device.
  • the configuration in this step The data segment of the synchronization instruction encapsulates the second configuration data.
  • Step 604 connect to the second sharing server according to the second configuration information, so as to establish a data transmission link with the peer electronic device through the second sharing server.
  • the local electronic device establishes a connection with the second sharing server according to the second configuration information, and this step can be performed with reference to the above step 303 .
  • the local electronic device establishes a connection with the second shared server, and since the opposite electronic device will also establish a connection with the second shared server according to the second configuration information, both the local electronic device and the opposite electronic device pass through the second shared server. A data transmission link is established.
  • Step 605 transmit the shared information to the second shared server through the data transmission link so that the second shared server sends the shared information to the peer electronic device, the shared information is shared data Or share data link.
  • the route of the shared information should be: the local electronic device sends the shared information to the second shared server, and the second shared server sends the shared information to the second shared server after receiving the data.
  • the shared information is forwarded to the peer electronic device.
  • the shared information may be shared data such as audio and video, or a connection for obtaining shared data such as a domain name.
  • Fig. 7 is a flow chart of yet another preferred implementation provided in the first embodiment of the present application.
  • the local electronic device stores third configuration information locally, and the third configuration information corresponds to the third Shared server, when connecting to the first shared server through the first configuration information fails, the method further includes:
  • Step 701 acquiring the third configuration information, and sending the three configuration data to the peer electronic device through the ADPU link;
  • the local electronic device When the local electronic device saves one or more configuration information besides the first configuration information, the local electronic device can select new configuration information from the local.
  • the new configuration information is referred to as third configuration information.
  • the local electronic device After obtaining the new configuration information, that is, after obtaining the third configuration information, the local electronic device sends a configuration synchronization command through the ADPU link to synchronize the obtained third configuration information to the opposite electronic device.
  • the configuration in this step The data segment of the synchronization instruction encapsulates the third configuration data.
  • Step 702 connect to the third shared server according to the third configuration information, so as to establish a data transmission link with the peer electronic device through the third shared server;
  • the local electronic device establishes a connection with the third sharing server according to the third configuration information, and this step can be performed with reference to the above step 303 .
  • both the local electronic device and the peer electronic device will establish a connection with the third shared server according to the second configuration information, both the local electronic device and the peer electronic device establish a connection through the third shared server. data transmission link.
  • Step 703 transmit the shared information to the third shared server through the data transmission link so that the third shared server sends the shared information to the peer electronic device, the shared information is shared data Or share data link.
  • the route of the shared information should be: the local electronic device sends the shared information to the third shared server, and the third shared server sends the shared information to the third shared server after receiving the data.
  • the shared information is forwarded to the peer electronic device.
  • the shared information may be shared data such as audio and video, or a connection for obtaining shared data such as a domain name.
  • Fig. 8 is a flow chart of the data transmission method provided in the second embodiment of the present application. The method is applied to the peer electronic device 102 in the data transmission system shown in Fig. 1. As shown in Fig. 8, the above data transmission method can be include:
  • Step 801 receiving an ADPU link establishment request, and verifying the local-end identity information corresponding to the local-end electronic device carried in the ADPU link establishment request;
  • the opposite electronic device receives the request instruction sent by the local electronic device, the format of the request instruction is command ADPU, and the instruction is used to request the opposite electronic device to establish an ADPU link.
  • the identity information is the identity information of the local terminal electronic device, and the peer electronic device verifies the obtained identity information.
  • the request instruction is sent to the opposite electronic device through the PPP (point-to-point) protocol.
  • PPP point-to-point protocol
  • the sending and receiving of the instruction related to the APDU all adopts the point-to-point protocol (Point-to-Point Protocol, PPP) to transmit.
  • PPP Point-to-Point Protocol
  • step 801 may also include:
  • Step 11 receiving the ADPU link establishment request, and obtaining locally stored identity information, the locally stored identity information including the identity information of the local terminal electronic device;
  • the identity information can include: IMSI (International Mobile Subscriber Identity, International Mobile Subscriber Identity), temporary mobile subscriber identity (TMSI, Temporary Mobile Subscriber Identity, ACCID user account ID, International Mobile Equipment Identity (IMEI), number, etc.
  • IMSI International Mobile Subscriber Identity
  • TMSI temporary mobile subscriber identity
  • ACCID user account ID International Mobile Equipment Identity (IMEI)
  • IMEI International Mobile Equipment Identity
  • the information obtained from the local storage system not only includes the identity information of the local electronic device, but also includes the identity information of the peer electronic device.
  • the key information includes the public key and private key of the peer electronic device and the The public key of the electronic device.
  • Step 12 Verify the local identity information corresponding to the local electronic device carried in the ADPU link establishment request according to the locally stored identity information of the local electronic device.
  • the identity information carried in the request instruction is verified according to the identity information verification of the local electronic device stored in the local storage system.
  • Step 802 After the authentication of the identity information of the local end is passed, send a response message of the ADPU request to the electronic device at the local end to establish an ADPU link, and the response message carries the ID of the electronic device at the opposite end. Identity Information.
  • the verification of the identity information of the local end is passed, for example, when the identity information of the local end carried in the request instruction is consistent with the identity information of the electronic device of the local end stored in the local storage system, the verification is passed. Passing the verification indicates that the opposite-end electronic device successfully confirms that the device sending the request command is the local-end electronic device.
  • the opposite end electronic device sends a response message to the local end electronic device, the response message is sent for the request command, the format is a response APDU, and the response APDU is constructed as follows (Response data, SW1-SW2), Contains Response data response data (data from 0 to 256 bytes) and SW1-SW2 response suffix (a mandatory 2-byte status word), the response suffix can indicate the command processing status, such as 90 00 (hexadecimal ) indicates success.
  • the data segment in the response message carries the identity information of the opposite-end electronic device, so that the local-end electronic device can confirm the identity of the device that sent the response message, and confirm whether the device is the opposite-end electronic device.
  • the local electronic device confirms that the identity information is correct, as the initiator of the communication, it completes a request/response mode, realizes communication with the opposite electronic device, and establishes an ADPU link with the opposite electronic device.
  • the identity information of the peer electronic device carried in the data segment of the response message can be plaintext or ciphertext.
  • the data carried in the request command is ciphertext or encrypted communication is agreed, use the local
  • the public key of the terminal electronic device encrypts the identity information of the peer electronic device, and encapsulates the ciphertext in the data segment of the response message.
  • the peer electronic device After the identity information of the local terminal is verified, the peer electronic device establishes an APDU link with the local terminal electronic device, which refers to the point-to-point protocol link/connection between the peer terminal electronic device and the local terminal electronic device.
  • this link is only used to transmit APDU instructions.
  • APDU link For the convenience of description, it is called an APDU link.
  • APDU instructions have the advantages of high data transmission efficiency and strong confidentiality.
  • the peer electronic device when it receives the request command, it has already completed a point-to-point protocol communication and synchronized the state information required for communication. For example, both instantiate the same socket, the state information indicates that the peer The device and the local electronic device can communicate with each other through a point-to-point protocol, and a communication link is established.
  • the peer electronic device does not regard the receipt of the request instruction as the complete completion of the communication connection, and further verification of the identity information of the local end is required. After the verification of the identity information of the local end is passed, it is regarded as a connection Completely completed, the remote electronic device successfully communicates with the local electronic device.
  • the peer electronic device defaults to be the correct peer, and the local electronic device will successfully confirm the identity information carried in the response message. Therefore, the peer electronic device passes the identity information verification at the local end. After that, it can be considered that the connection is established successfully. Of course, in some embodiments of the present application, by default, you are the correct peer. After the identity information of the local terminal is verified, it is not considered as a connection completion. Only after receiving the verification success message returned by the electronic device at the local For the connection to complete, the two successfully establish a connection.
  • the peer electronic device can also use an auxiliary module such as a net module or a modem module to communicate with the device according to the socket. It is solidified into two dedicated functional interfaces, SendAPDU and ReceiveAPDU, for subsequent calls.
  • Step 803 Receive an operation instruction sent by the local electronic device through the APDU link, and perform operations according to the operation instruction.
  • the peer electronic device receives the operation instruction sent by the local electronic device through the APDU link.
  • the operation instruction can be used to instruct the peer electronic device to perform various operations such as data acquisition.
  • an operation instruction for data acquisition can be defined.
  • a name specified in the INS field can be arbitrary, such as G, and the data segment of the command can store information used to instruct the peer electronic device to obtain the data to be transmitted, such as the IP address where the data to be transmitted is stored.
  • the peer electronic device monitors the APDU link by establishing a monitoring mechanism, wherein the monitored object includes not only the instruction or data sent by the local electronic device, but also the peer electronic device.
  • the device itself needs to send instructions or data, and then perform corresponding actions.
  • an APDU link is directly established between the local electronic device and the peer electronic device, and point-to-point transmission of operation instructions is used to instruct the peer electronic device to perform actions.
  • the connection between devices in this application There is no server involved in the link, the message does not need to be transferred through the server, and the data transmission can be realized without connecting to the server. There is no dependence on the server, which enhances the flexibility of data transmission.
  • the transmission of the present application adopts the APDU command, which has high communication efficiency, can reduce the delay of point-to-point communication, and can also increase the confidentiality of communication.
  • Fig. 9 is a flowchart of a preferred implementation of the second embodiment of the present application.
  • the implementation environment in this embodiment is shown in Fig. 4.
  • the data transmission system includes a local electronic device 101, a peer electronic device 102 and multiple shared
  • the server as shown in Figure 9, in the embodiment shown in Figure 8 of this application, the steps may also include:
  • Step 901 receiving first configuration information sent by the local electronic device through the ADPU link, where the first configuration information corresponds to the first shared server;
  • Step 902 connect to the first shared server according to the first configuration information, so as to establish a data transmission link with the local electronic device through the first shared server;
  • the peer electronic device establishes a connection with the first shared server according to the first configuration information
  • the protocol for establishing the connection can be arbitrary such as HTTP, FTP, etc., and the protocol can provide specific instructions based on the data to be transmitted, so as to facilitate transmission,
  • the specific protocol type can be preset or specified in the configuration synchronization command.
  • both the opposite electronic device and the local electronic device will be connected to the first shared server, that is, the two have established a connection through the first shared server.
  • Another link which is referred to as a data transmission link in this application.
  • the peer electronic device can also use auxiliary modules such as a net module or a modem module to solidify the link into two dedicated function interfaces, SendData and ReceiveData, for subsequent calls.
  • auxiliary modules such as a net module or a modem module to solidify the link into two dedicated function interfaces, SendData and ReceiveData, for subsequent calls.
  • the opposite-end electronic device monitors the data transmission link by establishing a monitoring mechanism, wherein the object of monitoring includes not only instructions or data sent by the local electronic device, but also information that the opposite-end electronic device itself needs to send. Instructions or data, and then perform corresponding execution actions.
  • Step 903 Receive, through the data transmission link, the shared information transferred by the local electronic device through the first shared server, where the shared information is shared data or a shared data link.
  • the peer electronic device receives the sharing information sent by the first sharing server.
  • the sharing information is sent by the local electronic device to the first sharing server, and then the first sharing server relays the sending.
  • the shared information may be shared data such as audio and video, or a connection for obtaining shared data such as a domain name.
  • step 803 includes at least one of the following:
  • a control instruction for the shared information, and a setting instruction for the peer electronic device are included in A control instruction for the shared information, and a setting instruction for the peer electronic device.
  • set a shared information control instruction which is used to control shared information, such as specifying a multimedia module that encodes and decodes shared information to play it, or assigning shared information to a third-party application to embed its function Perform controlled playback, or specify the peer electronic device to obtain data through a shared data connection.
  • a device setting instruction is set, and the instruction is used to set the peer electronic device, such as changing a system media configuration of the peer electronic device.
  • the configuration information of the server is also synchronized through the ADPU link, and a data transmission link is established between the devices through the server, which enhances data transmission. Capability, the transmission of different volumes can be realized between devices.
  • the server fails, the connection between the devices will not be completely disconnected, and some data It can still be transmitted through the ADPU link, and it only needs to use the ADPU link to retransmit the configuration information to replace it with a new server and re-establish the data link. This application is less dependent on the server, which improves the flexibility of data transmission sex.
  • Fig. 10 is a flow chart of another preferred implementation of the second embodiment of the present application, when the connection to the first shared server fails according to the first configuration information, the receiving of the local electronic device through the ADPU
  • the configuration information sent by the link also includes:
  • Step A receiving the second configuration data sent by the local electronic device through the ADPU link, and the second configuration data corresponds to the second shared server;
  • the peer electronic device fails to connect to the first shared server according to the first configuration information, it means that the configuration information is wrong or the server is out of connection. At this time, it is necessary to replace the configuration information and connect to a new server to establish a shared server through the new server. Data transmission link.
  • the opposite electronic device waits to receive a new configuration synchronization command sent by the local electronic device.
  • the new configuration synchronization command carries new configuration information, which is called second configuration information in this embodiment.
  • Step B connecting to the second shared server according to the second configuration information, so as to establish a data transmission link with the local electronic device through the second shared server;
  • the peer electronic device establishes a connection with the second shared server according to the second configuration information, and since the local electronic device also establishes a connection with the second shared server according to the second configuration information, both the local electronic device and the peer electronic device A data transmission link is established through the second shared server.
  • Step C receiving the shared information relayed by the local electronic device through the second shared server through the data transmission link, the shared information being shared data or a shared data link.
  • the sharing information sent by the second sharing server through the data link is received, and the sharing information is sent by the local electronic device to the second sharing server.
  • the shared information may be shared data such as audio and video, or a connection for obtaining shared data such as a domain name.
  • Figure 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • the above-mentioned electronic device may include: a first acquisition module 1101, a request module 1102, a request response receiving module 1103, and a peer verification module 1104, APDU link module 1105 and instruction module 1106;
  • the first acquiring module 1101 is configured to acquire locally stored identity information, where the identity information includes local identity information and peer identity information;
  • Requesting module 1102 is used for sending ADPU link establishment request to opposite end electronic equipment, carries described local end identity information in the said request;
  • the peer verification module 1104 is configured to verify the peer information carried in the request response message according to the peer identity information stored locally;
  • APDU link module 1105 configured to establish an application data unit APDU link with the peer electronic device after the peer information verification is passed;
  • the instruction module 1106 is configured to send an operation instruction to the peer electronic device through the APDU link, and the operation instruction is used to instruct the peer electronic device to operate.
  • the local electronic device provided by the embodiment shown in FIG. 11 can be used to implement the technical solution of the method embodiment shown in FIG. 2 of this specification, and its realization principle and technical effect can further refer to the related description in the method embodiment.
  • Fig. 12 is a schematic structural diagram of an electronic device provided by another embodiment of this specification.
  • the above-mentioned electronic device may further include: a second acquisition module 1201, a configuration information synchronization module 1202, a data transmission link module 1203 and a sharing module 1204;
  • the second acquiring module 1201 is configured to acquire first configuration information, where the first configuration information corresponds to the first shared server;
  • a configuration information synchronization module 1202 configured to send the first configuration information to the peer electronic device through the ADPU link;
  • a data transmission link module 1203, configured to connect to the first shared server according to the first configuration information, so as to establish a data transmission link with the peer electronic device through the first shared server;
  • a sharing module 1204 configured to transmit the shared information to the first shared server through the data transmission link so that the first shared server sends the shared information to the peer electronic device, and the shared information For shared data or shared data links.
  • operation instructions include at least one of the following:
  • a control instruction for the shared information, and a setting instruction for the peer electronic device are included in A control instruction for the shared information, and a setting instruction for the peer electronic device.
  • the above-mentioned electronic device stores third configuration information locally, the third configuration information corresponds to the third shared server, and the electronic device further includes:
  • the obtaining module 1201 is further configured to obtain the third configuration information when connecting to the first shared server through the first configuration information fails;
  • the configuration information synchronization module 1202 is further configured to send the three configuration data to the peer electronic device through the ADPU link;
  • the data transmission link module 1203 is further configured to connect to the third shared server according to the third configuration information, so as to establish a data transmission link with the peer electronic device through the third shared server;
  • the sharing module 1204 is further configured to transmit the sharing information to the third sharing server through the data transmission link so that the third sharing server sends the sharing information to the peer electronic device,
  • the above shared information is shared data or shared data links.
  • the local electronic device provided by the embodiment shown in FIG. 12 can be used to implement the technical solution of the above-mentioned method embodiments in FIG. 3 and FIG. 7 of the present application, and its realization principles and technical effects can further refer to the relevant descriptions in the method embodiments.
  • FIG. 13 is a schematic structural diagram of an electronic device provided in another embodiment of this specification.
  • the above-mentioned electronic device may further include: an update request module 1301 and an update response receiving module 1302;
  • An update request module 1301, configured to send a configuration update request to the shared server management platform when the connection to the first shared server fails according to the first configuration information
  • An update response receiving module 1302 configured to receive an update response message sent by the shared server management platform, and obtain second configuration information in the update response message, where the second configuration information corresponds to the second shared server;
  • the configuration information synchronization module 1202 is further configured to send the second configuration data to the peer electronic device through the ADPU link;
  • the data transmission link module 1203 is further configured to connect to the second shared server according to the second configuration information, so as to establish a data transmission link with the peer electronic device through the second shared server;
  • the sharing module 1204 is further configured to transmit the sharing information to the second sharing server through the data transmission link so that the second sharing server sends the sharing information to the peer electronic device, so
  • the above shared information is shared data or shared data links.
  • the electronic device provided by the embodiment shown in FIG. 13 can be used to implement the technical solution of the above-mentioned method embodiment in FIG. 6 of the present application, and its realization principle and technical effect can further refer to the relevant description in the method embodiment.
  • FIG. 14 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG. 14, the above-mentioned electronic device may include: a request receiving module 1401, an APDU link module 1402, and an instruction receiving module 1403;
  • the request receiving module 1401 is configured to receive an ADPU link setup request, and verify the local terminal identity information corresponding to the local terminal electronic device carried in the ADPU link setup request;
  • the APDU link module 1402 is configured to send a response message of the ADPU request to the local electronic device after the authentication of the local terminal identity information is passed, so as to establish an ADPU link, and the response message carries the Identity information of the peer electronic device;
  • the instruction receiving module 1403 is configured to receive the operation instruction sent by the local electronic device through the APDU link, and perform operations according to the operation instruction.
  • the electronic device provided by the embodiment shown in FIG. 14 can be used to implement the technical solution of the method embodiment shown in FIG. 8 of this specification, and its implementation principle and technical effect can further refer to the relevant description in the method embodiment.
  • Fig. 15 is a schematic structural diagram of an electronic device provided by another embodiment of this specification.
  • the electronic device further includes: a configuration information synchronization module 1501, a data transmission link module 1502, and a sharing module 1503;
  • the configuration information synchronization module 1501 is configured to receive the first configuration information sent by the local electronic device through the ADPU link, and the first configuration information corresponds to the first shared server;
  • a data transmission link module 1502 configured to connect to the first shared server according to the first configuration information, so as to establish a data transmission link with the local electronic device through the first shared server;
  • the sharing module 1503 is configured to receive, through the data transmission link, the sharing information transferred by the local electronic device through the first sharing server, where the sharing information is shared data or a shared data link.
  • operation instructions include at least one of the following:
  • a control instruction for the shared information, and a setting instruction for the peer electronic device are included in A control instruction for the shared information, and a setting instruction for the peer electronic device.
  • the peer electronic device provided by the embodiment shown in FIG. 15 can be used to execute the technical solution of the method embodiment shown in FIG. 9 of this specification, and its implementation principle and technical effect can further refer to the relevant description in the method embodiment.
  • Fig. 16 is a schematic structural diagram of an electronic device provided in another embodiment of this specification.
  • the request receiving module in the above-mentioned electronic device further includes:
  • the acquiring submodule 1601 is configured to receive the ADPU link establishment request, and acquire locally stored identity information, where the locally stored identity information includes the identity information of the local electronic device;
  • the local terminal verification submodule 1602 is configured to verify the local terminal identity information corresponding to the local terminal electronic device carried in the ADPU link establishment request according to the locally stored identity information of the local terminal electronic device.
  • the electronic equipment also includes:
  • the configuration information synchronization module 1501 is further configured to receive the second configuration data sent by the local electronic device through the ADPU link when the connection to the first shared server fails according to the first configuration information.
  • the second configuration data corresponds to the second shared server;
  • the data transmission link module 1502 is further configured to connect to the second shared server according to the second configuration information, so as to establish a data transmission link with the local electronic device through the second shared server;
  • the sharing module 1503 is further configured to receive, through the data transmission link, shared information transferred from the local electronic device through the second sharing server, where the shared information is shared data or a shared data link.
  • the electronic device provided by the embodiment shown in FIG. 16 can be used to implement the technical solution of the method embodiment shown in FIG. 10 in this specification, and its implementation principle and technical effect can further refer to the relevant description in the method embodiment.
  • An embodiment of the present application provides a terminal device, which may include at least one processor; and at least one memory connected to the processor in communication, wherein: the memory stores program instructions executable by the processor, and the processor Calling the above-mentioned program instructions can execute the data transmission method provided by the above-mentioned method embodiments in this specification.
  • the above-mentioned terminal device may be an intelligent electronic device such as a smart phone, a tablet computer, or a notebook computer, and the form of the above-mentioned terminal device is not limited in this embodiment.
  • An embodiment of the present application provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the data transmission method provided in the above-mentioned method embodiments of this specification .
  • the computer readable medium may be a computer readable signal medium or a computer readable storage medium.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including - but not limited to - electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
  • Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to - wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
  • RF radio frequency
  • Computer program code for carrying out the operations described herein can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer such as use an Internet service provider to connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • first and second are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features.
  • the features defined as “first” and “second” may explicitly or implicitly include at least one of these features.
  • “plurality” means at least two, such as two, three, etc., unless otherwise specifically defined.
  • the word “if” as used herein may be interpreted as “at” or “when” or “in response to determining” or “in response to detecting”.
  • the phrases “if determined” or “if detected (the stated condition or event)” could be interpreted as “when determined” or “in response to the determination” or “when detected (the stated condition or event) )” or “in response to detection of (a stated condition or event)”.
  • terminals involved in the embodiments of the present application may include, but are not limited to, personal computers (personal computers, PCs), personal digital assistants (personal digital assistants, PDAs), wireless handheld devices, tablet computers (tablet computers), Mobile phones, MP3 players, MP4 players, etc.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined Or it can be integrated into another system, or some features can be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • each functional unit in each embodiment of this specification may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
  • the above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium.
  • the above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or processor (processor) to execute the methods described in the various embodiments of this specification. partial steps.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media capable of storing program codes.

Abstract

一种数据传输方法及相关设备,其中,方法应用于作为本地端电子设备的电子终端,包括:获取本地存储的身份信息,向对端电子设备发送应用协议数据单元APDU链路建立请求,接收对端电子设备发送的请求响应消息,请求响应消息为对端电子设备验证通过APDU链路建立请求中携带的本地端身份信息后发送的,对请求响应消息中携带的对端信息进行验证;当对端信息验证通过后,与对端电子设备建立APDU链路,通过APDU链路向对端电子设备发送操作指令。方法中设备之间直接建立APDU链路传输操作指令,无需连接服务器就可以实现数据的传输,对服务器没有依赖,增强了数据传输的灵活性。

Description

数据传输方法及相关设备
本申请要求于2021年12月31日提交中国专利局、申请号为202111664408.5、申请名称为“数据传输方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种数据传输方法及相关设备。
背景技术
随着信息社会的发展,终端之间的数据传输愈发的频繁和重要。通过数据传输,能够实现终端之间的互联互通、协同合作,打破信息壁垒和信息孤岛,促进数据的融合与治理,提升数据价值,推动数字经济和公共治理的发展。
现有技术中,大部分数据传输并非终端之间直接进行的,而是通过服务器进行中转的,例如,用户先将数据如视频、音乐等发送至远程服务器如业务服务器、中继服务器等,服务器再将数据转发至目标用户。
该种数据传输方式对远程服务器存在较强的依赖,例如,源终端和目标终端都必须知晓一个相同远程服务器的连接信息,二者依赖该连接信息与远程服务器建立通信连接,才能建立终端之间的数据传输通道,以进行数据传输。当远程服务器宕机或者拒绝服务时,终端不能与远程服务器建立连接,终端之间的数据传输通道断开,终端之间的数据传输将无法继续。
发明内容
本申请实施例提供了一种数据传输方法及相关设备,以实现设备之间进行数据传输时,减少对服务器的依赖,增强了数据传输的灵活性。
第一方面,本申请实施例提供一种数据传输方法,所述方法应用于作为本地 端电子设备的电子终端,包括:获取本地存储的身份信息,所述身份信息包括本地端身份信息和对端身份信息;向对端电子设备发送ADPU链路建立请求,所述请求中携带所述本地端身份信息;接收所述对端电子设备发送的请求响应消息;根据本地存储的所述对端身份信息,对所述请求响应消息中携带的对端信息进行验证;当所述对端信息验证通过后,与所述对端电子设备建立应用数据单元APDU链路;通过所述APDU链路向所述对端电子设备发送操作指令,所述操作指令用于指示所述对端电子设备进行操作。
上述数据传输方法中,本地电子设备与对端电子设备之间直接建立APDU链路,点对点传输操作指令,以指示对端电子设备执行动作,与现有技术相比,本申请中设备之间的链路没有服务器参与,消息无需经过服务器进行中转,无需连接服务器就可以实现数据的传输,对服务器没有依赖,增强了数据传输的灵活性。且本申请的传输采用APDU指令,通信效率高,能够减小点对点通信的延迟,还能够增加通信的保密性。
其中一种可能的实现方式中,所述方法还包括:获取第一配置信息,所述第一配置信息对应第一共享服务器;通过所述ADPU链路向所述对端电子设备发送所述第一配置信息;依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述对端电子设备的数据传输链路;通过所述数据传输链路将共享信息传输至所述第一共享服务器以使所述第一共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
其中一种可能的实现方式中,所述操作指令包括以下至少一者:对所述共享信息的控制指令、对所述对端电子设备的设置指令。
其中一种可能的实现方式中,当依据所述第一配置信息连接所述第一共享服务器失败时,所述方法还包括:向共享服务器管理平台发送配置更新请求;接收所述共享服务器管理平台发送的更新响应消息,获取所述更新响应消息中的第二配置信息,所述第二配置信息对应第二共享服务器;通过所述ADPU链路向所述 对端电子设备发送所述第二配置数据;依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述对端电子设备的数据传输链路;通过所述数据传输链路将共享信息传输至所述第二共享服务器以使所述第二共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
其中一种可能的实现方式中,所述本地端电子设备在本地存储有第三配置信息,所述第三配置信息对应第三共享服务器,当通过所述第一配置信息连接所述第一共享服务器失败时,所述方法还包括:获取所述第三配置信息,通过所述ADPU链路向所述对端电子设备发送所述三配置数据;依据所述第三配置信息连接所述第三共享服务器,以通过所述第三共享服务器建立与所述对端电子设备的数据传输链路;通过所述数据传输链路将共享信息传输至所述第三共享服务器以使所述第三共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
第二方面,本申请实施例提供一种数据传输方法,所述方法应用于作为对端电子设备的电子终端,所述方法包括:接收ADPU链路建立请求,对所述ADPU链路建立请求中携带的本地端电子设备对应的本地端身份信息进行验证;当所述本地端身份信息验证通过后,向所述本地端电子设备发送所述ADPU请求的响应消息,以建立ADPU链路,所述响应消息中携带有所述对端电子设备的身份信息;接收所述本地端电子设备通过所述APDU链路发送的操作指令,依据所述操作指令进行操作。
其中一种可能的实现方式中,所述接收ADPU链路建立请求,对所述ADPU链路建立请求中携带的所述本地端电子设备对应的本地端身份信息进行验证,包括:接收所述ADPU链路建立请求,获取本地存储的身份信息,所述本地存储的身份信息包括所述本地端电子设备的身份信息;根据本地存储的所述本地端电子设备的身份信息,对所述ADPU链路建立请求中携带的所述本地端电子设备对应 的本地端身份信息进行验证。
其中一种可能的实现方式中,所述方法还包括:接收所述本地端电子设备通过所述ADPU链路向发送的第一配置信息,所述第一配置信息对应第一共享服务器;依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述本地端电子设备的数据传输链路;通过所述数据传输链路接收所述本地端电子设备通过所述第一共享服务器中转的共享信息,所述共享信息为共享数据或者共享数据链接。
其中一种可能的实现方式中,所述操作指令包括以下至少一者:对所述共享信息的控制指令、对所述对端电子设备的设置指令。
其中一种可能的实现方式中,当依据所述第一配置信息连接所述第一共享服务器失败时,所述方法还包括:接收所述本地端电子设备通过所述ADPU链路向发送第二配置数据,所述第二配置数据对应第二共享服务器;依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述本地端电子设备的数据传输链路;通过所述数据传输链路接收所述本地端电子设备通过所述第二共享服务器从中转的共享信息,所述共享信息为共享数据或者共享数据链接。
第三方面,本申请实施例提供一种电子设备,所述设备,包括:第一获取模块,用于获取本地存储的身份信息,所述身份信息包括本地端身份信息和对端身份信息;请求模块,用于向对端电子设备发送ADPU链路建立请求,所述请求中携带所述本地端身份信息;请求响应接收模块,用于接收所述对端电子设备发送的请求响应消息;对端验证模块,用于根据本地存储的所述对端身份信息,对所述请求响应消息中携带的对端信息进行验证;APDU链路模块,用于当所述对端信息验证通过后,与所述对端电子设备建立应用数据单元APDU链路;指令模块,用于通过所述APDU链路向所述对端电子设备发送操作指令,所述操作指令用于指示所述对端电子设备进行操作。
其中一种可能的实现方式中,所述设备,还包括:第二获取模块,用于获取第一配置信息,所述第一配置信息对应第一共享服务器;配置信息同步模块,用于通过所述ADPU链路向所述对端电子设备发送所述第一配置信息;数据传输链路模块,用于依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述对端电子设备的数据传输链路;共享模块,用于通过所述数据传输链路将共享信息传输至所述第一共享服务器以使所述第一共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
其中一种可能的实现方式中,所述操作指令包括以下至少一者:对所述共享信息的控制指令、对所述对端电子设备的设置指令。
其中一种可能的实现方式中,所述设备,还包括:更新请求模块,用于当依据所述第一配置信息连接所述第一共享服务器失败时,向共享服务器管理平台发送配置更新请求;更新响应接收模块,用于接收所述共享服务器管理平台发送的更新响应消息,获取所述更新响应消息中的第二配置信息,所述第二配置信息对应第二共享服务器;所述配置信息同步模块,还用于通过所述ADPU链路向所述对端电子设备发送所述第二配置数据;所述数据传输链路模块,还用于依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述对端电子设备的数据传输链路;所述共享模块,还用于通过所述数据传输链路将共享信息传输至所述第二共享服务器以使所述第二共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
其中一种可能的实现方式中,所述设备在本地存储有第三配置信息,所述第三配置信息对应第三共享服务器,所述本地端电子设备,还包括:所述获取模块,还用于当通过所述第一配置信息连接所述第一共享服务器失败时,获取所述第三配置信息;所述配置信息同步模块,还用于通过所述ADPU链路向所述对端电子设备发送所述三配置数据;所述数据传输链路模块,还用于依据所述第三配置信 息连接所述第三共享服务器,以通过所述第三共享服务器建立与所述对端电子设备的数据传输链路;所述共享模块,还用于通过所述数据传输链路将共享信息传输至所述第三共享服务器以使所述第三共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
第四方面,本申请实施例提供一种电子设备,所述设备,包括:请求接收模块,用于接收ADPU链路建立请求,对所述ADPU链路建立请求中携带的本地端电子设备对应的本地端身份信息进行验证;APDU链路模块,用于当所述本地端身份信息验证通过后,向所述本地端电子设备发送所述ADPU请求的响应消息,以建立ADPU链路,所述响应消息中携带有所述对端电子设备的身份信息;指令接收模块,用于接收所述本地端电子设备通过所述APDU链路发送的操作指令,依据所述操作指令进行操作。
其中一种可能的实现方式中,所述请求接收模块,还包括:获取子模块,用于接收所述ADPU链路建立请求,获取本地存储的身份信息,所述本地存储的身份信息包括所述本地端电子设备的身份信息;本地端验证子模块,用于根据本地存储的所述本地端电子设备的身份信息,对所述ADPU链路建立请求中携带的所述本地端电子设备对应的本地端身份信息进行验证。
其中一种可能的实现方式中,所述设备还包括:配置信息同步模块,用于接收所述本地端电子设备通过所述ADPU链路向发送的第一配置信息,所述第一配置信息对应第一共享服务器;数据传输链路模块,用于依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述本地端电子设备的数据传输链路;共享模块,用于通过所述数据传输链路接收所述本地端电子设备通过所述第一共享服务器中转的共享信息,所述共享信息为共享数据或者共享数据链接。
其中一种可能的实现方式中,所述操作指令包括以下至少一者:对所述共享信息的控制指令、对所述对端电子设备的设置指令。
其中一种可能的实现方式中,所述设备还包括:所述配置信息同步模块,还用于当依据所述第一配置信息连接所述第一共享服务器失败时,接收所述本地端电子设备通过所述ADPU链路向发送第二配置数据,所述第二配置数据对应第二共享服务器;所述数据传输链路模块,还用于依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述本地端电子设备的数据传输链路;所述共享模块,还用于通过所述数据传输链路接收所述本地端电子设备通过所述第二共享服务器从中转的共享信息,所述共享信息为共享数据或者共享数据链接。
第五方面,本申请实施例提供一种终端设备,包括:至少一个处理器;以及与所述处理器通信连接的至少一个存储器,其中:所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行第一、第二方面提供的方法。
第六方面,本申请实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行第一方面、第二提供的方法。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本申请一个实施例提供的实施环境的示意图;
图2为本申请第一实施例提供的数据传输方法的流程图;
图3为本申请第一实施例的一个优选实施方式的流程图;
图4为本申请另一个实施例提供的实施环境的示意图;
图5为本申请再一个实施例提供的实施环境的示意图;
图6为本申请第一实施例的另一个优选实施方式的流程图;
图7为本申请第一实施例的再一个优选实施方式的流程图;
图8为本申请第二实施例提供的数据传输方法的流程图;
图9为本申请第二实施例的一个优选实施方式的流程图;
图10为本申请第二实施例的另一个优选实施方式的流程图;
图11为本申请实施例提供的一种本地端电子设备的结构示意图;
图12为本申请另一个实施例提供的本地端电子设备的结构示意图;
图13为本申请再一个实施例提供的本地端电子设备的结构示意图;
图14为本申请实施例提供的一种对端电子设备的结构示意图;
图15为本说明书另一个实施例提供的对端电子设备的结构示意图;
图16为本说明书再一个实施例提供的对端电子设备的结构示意图。
具体实施方式
为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。
现有相关技术中,数据传输依赖于传输双方根据既定的相同的连接信息连接上指定服务器,从而建立数据传输通道,以进行数据传输,该传输方式过于依赖于指定服务器,当指定服务器故障时,数据传输通道将断开,终端之间无法建立连接来进行数据传输,灵活性较差。
基于以上问题,本申请实施例提供一种数据传输方法,当终端之间进行数据 传输时,直接建立APDU链路,设备之间点对点传输操作指令,无需连接服务器来建立链路,对服务器没有依赖,传输灵活性较高。
图1是本申请实施例提出的数据传输方法的实施环境的示意图,如图1所示,实施环境包括本地端电子设备101和对端电子设备102。本地端电子设备101和对端电子设备102可以是任何可以接入网络进行传输的终端设备,例如,个人计算机,平板电脑,智能移动终端、个人数字助理、音视频播放器、、相机、游戏控制台、平板设备、智能设备、可穿戴设备、交通工具、电表、气泵、大型或小型厨房器具、健康护理设备、植入物、显示器、或任何其他类似的功能设备。
图2为本申请第一实施例提供的数据传输方法的流程图,所述方法应用于图1所示的本地端电子设备101中,如图2所示,上述数据传输方法可以包括:
步骤201,获取本地存储的身份信息,所述身份信息包括本地端身份信息和对端身份信息。
获取本地存储系统内存储的全部或者部分身份信息,所述身份信息包括了本地端电子设备身份信息和对端电子设备的身份信息。身份信息可以包括:IMSI(International Mobile Subscriber Identity,国际移动用户识别码)、临时移动用户识别码(TMSI,Temporary Mobile Subscriber Identity),ACCID用户账号标识、国际移动设备识别码(International Mobile Equipment Identity,IMEI)、号码等。
优选的,除身份信息还获取密钥信息,所述密钥信息包括本地端电子设备的公钥、私钥及对端电子设备的公钥。
步骤202,向对端电子设备发送ADPU链路建立请求,所述请求中携带所述本地端身份信息。
将获取的本地端身份信息封装在请求指令中,该请求指令采用ADPU格式,用于向对端电子设备建立ADPU链路。
ADPU,Application Protocol data unit,应用协议数据单元,该指令由ISO国际标准化组织/IEC国际电工委员会的ISO816规范定义的。ADPU可分为命令 APDU(command APDU)和响应APDU(response APDU)。命令APDU,包含了一个必选的4字节的头部(CLA,INS,P1,P2)和数据段(0到255字节的数据)。命令APDU中,字段INS用于表示特定的命令,例如“身份验证”、“写数据”等。定义命令APDU的INS字段用来表示不同的指令,定义需要参照及GSM11.11、GSM11.14等基础协议进行,示例的,本申请实施例中的请求指令,需要采用命令APDU格式,本申请不限制该指令的INS字段的名称,其可以是任意的如Q等,本地端身份信息则被放置在指令的数据段中。
优选的,将本地端身份信息使用对端电子设备的公钥加密后再封装于APDU格式的请求指令中。
值得注意的是,本申请中涉及APDU的指令的发送及接收都采用点对点协议(Point-to-Point Protocol,PPP)进行传输,PPP(点对点)协议,在计算机网络中是用于两个路由之间直接进行的数据链路层(ISO的第2层)通信协议,中间没有任何主机或任何其他网络。它可以提供连接认证,传输加密,和数据压缩。点对点协议在互联网工程任务组(Internet Engineering Task Force)的RFC 1661协议中被指定。PPP在具体实现上有多种协议,RFC 2516协议将PPPoE(以太网点对点协议)描述为一种通过以太网实现PPP的方法,有时与DSL一起使用。RFC 2364协议规定了ATM上的点对点协议(PPPoA),该协议描述了通过ATM适配层5(AAL5)传输PPP的方法,这也是与DSL一起使用的PPPoE的常见替代方案。
步骤203,接收所述对端电子设备发送的请求响应消息。
接收对端电子设备返回的请求响应消息,该请求响应消息的格式为响应APDU。请求响应消息是对端电子设备针对本地端电子设备发送的ADPU请求指令而返回的,具体的,对端电子设备接收到本地端电子设备发送的指令后,读取数据段中的本地端身份信息,验证所读取的信息是否为真,当读取的信息为真时,向本地端电子设备返回请求响应消息。
应当注意,该请求响应消息采用与本地端电子设备的同样的PPP(点对点)协议进行发送。
步骤204,根据本地存储的所述对端身份信息,对所述请求响应消息中携带的对端信息进行验证;
对端电子设备发送的请求响应消息,该消息为响应APDU格式,该指令中携带了对端的身份信息,读取该身份信息,验证该信息是否与本地存储系统中保存的对端身份信息相同。
优选的,当请求响应消息中的对端信息为加密状态时,使用步骤201读取的本地端电子设备私钥对该信息进行解密,以进行验证。
步骤205,当所述对端信息验证通过后,与所述对端电子设备建立应用数据单元APDU链路。
当请求响应消息中携带的对端的身份信息与本地保存的对端身份信息相同,则成功确认对端电子设备的身份,此时可以与对端电子设备建立APDU链路。
APDU链路,指的是本地端电子设备与对端电子设备之间的点对点协议连接,由于在本申请实施例中该连接上面传输的全部为APDU指令,为了便于说明将其称为APDU链路,APDU指令具有数据传输效率高,保密性强等优点。
在上述步骤201至步骤204中,本地端电子设备已经完成了一次典型的请求/响应模式,即发出请求及接收响应,该模式的完成则说明本地端电子设备完成一次与对端电子设备的通信。示例的,当对端电子设备成功接收本地端电子设备发送请求时,则说明本地端电子设备向socket(套接字)及请求信息的交付,该套接字中包括了点对点协议号、本地端电子设备的IP地址、本地端电子设备用于该端口号、目的IP地址,目的端口号,而后,对端电子设备向依据socket向本地端电子设备发送响应信息,由此,本地端电子设备完成一次与对端电子设备的PPP协议通信/连接过程。
但是在本申请实施例中,尽管收到了对端电子设备收到请求响应消息,本实 施例并不将其视为建立一个面向对端电子设备的PPP协议连接的彻底完成,而是在对请求响应消息中的对端电子设备的身份信息验证成功后,才视为完成一次完整的通信过程。本申请在当成功验证请求响应消息中的对端电子设备身份信息,说明本地端电子设备彻底完成一次与对端电子设备的PPP协议通信过程,成功在本地端电子设备和对端电子设备之间建立了一条PPP协议链路。
进一步的,在成功验证请求响应消息中的对端电子设备身份信息后,还可以借助辅助模块如net模块或者modem模块,依据该socket,将该通信固化为SendAPDU、RecieveAPDU两个专用的功能接口,以便后续调用。
在一些情况在,在APDU链路成功后,本地端电子设备还需建立监听机制,以对该链路进行监听,其中,监听的对象不仅包括对端电子设备发送的指令或数据,还包括本端需要发送的指令或数据,进而做相应执行动作。
步骤206,通过所述APDU链路向所述对端电子设备发送操作指令,所述操作指令用于指示所述对端电子设备进行操作。
本地端电子设备通过上述步骤建立的APDU链路后,通过该链路向对端电子设备发送操作指令,该操作指令也是命令APDU的格式,操作指令可用于指示所述对端电子设备进行多种操作如数据获取,操作指令用于数据获取时,同样可以在INS字段中指令一个名称来标识,其可以是任意的如G,可以在指令的数据段中则可存放用于指示对端电子设备获取待传输数据的信息,如待传输数据保存的IP地址等。
上述数据传输方法中,本地电子设备与对端电子设备之间直接建立APDU链路,点对点传输操作指令,以指示对端电子设备执行动作,与现有技术相比,本申请中设备之间的链路没有服务器参与,消息无需经过服务器进行中转,无需连接服务器就可以实现数据的传输,对服务器没有依赖,增强了数据传输的灵活性。且本申请的传输采用APDU指令,通信效率高,能够减小点对点通信的延迟,还能够增加通信的保密性。
点对点连接带来的好处是显而易见的,但是只使用点对点连接也存在一定的缺点,如,尽管使用了APDU指令,但是设备之间的延迟仍然较为明显,又如,点对点协议及APDU指令的对大文件的传输体验较差等。
图3为本申请第一实施例的一个优选实施方式的流程图,在该实施例中的实施环境如图4所示,图4示出了本申请第一实施例的一个优选实施例的实施环境,如图4所示,实施环境包括本地端电子设备101、对端电子设备102和多个共享服务器,共享服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是部署在相同服务器集群中的两个独立部分或者部署在同一服务器中的独立部分如中间件服务、云计算等,每个共享服务器均设置有对应的配置信息。
如图3所示,本申请图2所示实施例中,步骤还可以包括:
步骤301,获取第一配置信息,所述第一配置信息对应第一共享服务器。
本实施例的数据传输系统中,每个共享服务器都设置有自己的对应的配置信息,配置信息是用于连接该共享服务器的,配置信息可以是APN/PDN,APN又称接入点,Access Point Name,其决定了通过哪种接入方式来访问网络,如GPRS的业务种类等,APN可视为对一个外部PDN(Public Data Network,公用数据网)的标识,配置信息在某些情况下还可以是域名、IP地址等。
本地端电子设备获取第一配置信息,第一配置信息是用于连接第一共享服务器的配置信息。
第一配置信息可以是保存在本地的或者保存在远端服务器上的,保存在本地的情况包括多种,例如沿用上一次使用过的配置信息,或者又如,预先在本地保存多个配置信息,当需要获取配置信息作为第一配置信息时,依据筛选条件如带宽最大的、空间距离最近的、延迟最低的等选择一个配置信息作为第一配置信息。
优选的,本地端电子设备除获取第一配置信息外,还获取其他配置信息,其他配置信息可以也是用于服务于数据传输链路的建立的一些信息,如账户信息、 权限信息、校验信息等,在一些示例中,其他配置信息是用户自定义或客户化个性化的配置信息。其他配置信息是否传输及内容应当视连接共享服务器的具体情况而定,例如,当共享服务器需要指定账户才能登入时,则此时就需要传输账户信息这一其他配置信息,又如,为了保证数据不丢失,可以指定加密校验算法,将其发送至对端电子设备,对端电子设备可以对接收到的配置信息和/或对数据链路上的消息进行校验。
对于第一配置信息的获取,其可以在建立ADPU链路之后进行,也可以是在步骤201中在获取身份信息时执行,本申请对此不进行限制。
步骤302,通过所述ADPU链路向所述对端电子设备发送所述第一配置信息。
本地端电子设备通过上述步骤205建立的ADPU链路,使用ADPU指令向对端电子设备发送所获取的第一配置信息,用于发送配置信息的ADPU指令被称为配置同步指令,与上述类似的,该ADPU指令为命令ADPU,不限制该指令的INS字段的名称,其可以是任意的如S等,配置信息则被放置在指令的数据段中。
对端电子设备在接收到配置同步的ADPU指令后,读取该指令中的配置信息,此时为第一配置信息,依据该配置信息建立与第一共享服务器的连接。
需要注意的是,由于命令ADPU只能存放0到255字节的数据,当配置数据、本地端身份信息较大时,可以将其拆分于多个请求指令、配置同步指令中。
优选的,配置同步指令还用于传输其他配置信息。配置同步指令除用于传输用于连接共享服务器的信息外,还用于传输其他配置信息,
配置同步指令中的数据可以是明文,也可以是使用密钥进行加密,实施非对称加密传输。
步骤303,依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述对端电子设备的数据传输链路。
本地端电子设备依据所述第一配置信息与第一共享服务器建立连接,建立该连接的协议可以是任意的如HTTP、FTP等,该协议的具体类型可以依据待传输 的数据来具体确定,以便于传输,确定过程可以是预先设置或在配置同步指令中指定。
第一共享服务器可以是由互联网运营商或者内容服务商提供的,如运营商支持bip(Bearer Independent Call Control,承载无关协议),支持mms(Multimedia Messaging Service,多媒体短信服务)等数据业务时,通过配置信息与互联网运营商提供的第一共享服务器建立数据传输链路。
优选的,本地端电子设备与第一共享服务器成功建立连接后,调用辅助模块如net模块或者modem模块,形成SendData,RecieveData两个功能接口,以将数据传输链路固化为接口,方便调用。
数据传输链路建立成功后,本地端电子设备也可以通过建立监听机制,以对该数据链路进行监听,监听的对象不仅包括对端电子设备发送过来的数据还包括,本端电子设备自己发送的指令或数据,进而做相应执行动作。
本地端电子设备依据第一配置信息与第一共享服务器建立连接,由于对端电子设备也会依据第一配置信息建立与第一共享服务器的连接,则本地端电子设备和对端电子设备都会与第一共享服务器,即两者通过第一共享服务器建立起了另一个链路,该链路在本申请中称为数据传输链路。
步骤304,通过所述数据传输链路将共享信息传输至所述第一共享服务器以使所述第一共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
通过数据传输链路,本地端电子设备可以将需要向对端电子设备的共享信息发送至对端电子设备。由于数据传输链路是经由第一共享服务器建立的,则共享信息的路由应当是:本地端电子设备将共享信息发送至第一共享服务器,第一共享服务器接收到数据后将共享信息转发至对端电子设备。本实施例中,共享信息可以是共享数据如音视频等,也可以是用于获取共享数据的连接如域名等。
优选的,在本申请的一些实施例中,ADPU链路除用于传输操作指令及配置 信息外,还可以用于传输少量的媒体数据,例如,在服务器异常时,ADPU链可临时备用承载一些数据内容。
进一步的,步骤206中的所述操作指令包括以下至少一者:
对所述共享信息的控制指令、对所述对端电子设备的设置指令。
本实施例中,操作指令不只一种,还可以设定多种操作指令进行扩展,使其满足多种需要。示例的,设置一种共享信息控制指令,该指令用于控制共享信息,如当指定对共享信息进行编解码的多媒体模块,以对其播放,或,指定共享信息交给第三方应用嵌入其功能中做受控播放,或者,指定对端电子设备通过共享数据连接获取数据等。另一种示例中,设置一种设备设置指令,该指令用于对对端电子设备进行设置,如更改对端电子设备的系统某个媒体配置。
本实施例中,本地端电子设备和对端电子设备之间除建立ADPU链路外,还通过ADPU链路同步服务器的配置信息,通过服务器在设备之间建立数据传输链路,增强了数据传输能力,设备之间能够实现不同体量的传输。同时,与现有技术相比,本实施例的本地端电子设备和对端电子设备存在ADPU和数据传输两种链路,当服务器故障时,设备之间并不会彻底断开连接,部分数据仍可以通过ADPU链路传输,且仅需利用ADPU链路重新传递配置信息,就能实现更换为新的服务器,重新建立数据链路,本申请对服务器依赖程度较低,提高了数据传输的灵活性。
图6为本申请第一实施例提供的另一个优选实施方式的流程图,本实施例中的实施环境如图5所示,实施环境包括本地端电子设备101、对端电子设备102、多个共享服务器和共享服务器管理平台501,所述共享服务器管理平台501与所述本地端电子设备101存在通信连接,当依据所述第一配置信息连接所述第一共享服务器失败时,如图6所示,本申请图3所示实施例中,步骤303之后,还可以包括:
步骤601,向共享服务器管理平台发送配置更新请求。
当本地端电子设备依据所述第一配置信息连接所述第一共享服务器失败时,说明配置信息有误或者服务器失去连接,此时需要更换配置信息,连接新的服务器,以通过新的服务器建立数据传输链路。
对于本地端电子设备不保存有配置信息或者仅保存有一个配置信息的情况下,本地端电子设备可以向共享服务器管理平台请求新的配置信息,本实施例中将该新的配置信息称为第二配置信息。对于本地端电子设备与共享服务器管理平台之间的通信方式,其可以是任意的,如HTTP、UDP等,本申请对此没有限制。
共享服务器管理平台内保存有多个共享服务器对应的配置信息,共享服务器管理平台可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是部署在相同服务器集群中的两个独立部分或者部署在同一服务器中的独立部分如中间件服务、云计算等。
步骤602,接收所述共享服务器管理平台发送的更新响应消息,获取所述更新响应消息中的第二配置信息,所述第二配置信息对应第二共享服务器。
共享服务器管理平台接收到本地端电子设备发送的配置更新请求后,从管理平台内保存的配置信息选取一个作为第二配置信息,选择的方式,可以是任意的,如随机选取、按照共享服务器的带宽、按照共享服务器的延迟等。
共享服务器管理平台完成第二配置信息的选取后,向本地端电子设备发送更新响应消息,该更新响应消息携带第二配置消息。
本地端电子设备接收到更新响应消息后,获取该消息携带第二配置消息。
步骤603,通过所述ADPU链路向所述对端电子设备发送所述第二配置数据。
获取到新的配置信息后,即获取到第二配置信息后,本地端电子设备通过ADPU链路发送配置同步指令,以向对端电子设备同步所获取的第二配置信息,该步骤中的配置同步指令的数据段封装的是第二配置数据。
步骤604,依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述对端电子设备的数据传输链路。
本地端电子设备依据第二配置信息与第二共享服务器建立连接,该步骤可参照上述303执行。
本地端电子设备与第二共享服务器建立连接,由于对端电子设备也会依据第二配置信息建立与第二共享服务器的连接,则本地端电子设备和对端电子设备两者通过第二共享服务器建立起了数据传输链路。
步骤605,通过所述数据传输链路将共享信息传输至所述第二共享服务器以使所述第二共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
由于本实施例中的数据传输链路是经由第二共享服务器建立的,则共享信息的路由应当是:本地端电子设备将共享信息发送至第二共享服务器,第二共享服务器接收到数据后将共享信息转发至对端电子设备。本实施例中,共享信息可以是共享数据如音视频等,也可以是用于获取共享数据的连接如域名等。
图7为本申请第一实施例提供的再一个优选实施方式的流程图,在该实施例中,所述本地端电子设备在本地存储有第三配置信息,所述第三配置信息对应第三共享服务器,当通过所述第一配置信息连接所述第一共享服务器失败时,所述方法还包括:
步骤701,获取所述第三配置信息,通过所述ADPU链路向所述对端电子设备发送所述三配置数据;
当本地端电子设备除第一配置信息外还保存有一个或者多个配置信息的情况下,本地端电子设备可以向在本地选择新的配置信息,除第一配置信息外的配置信息,本实施例中将该新的配置信息称为第三配置信息。
获取到新的配置信息后,即获取到第三配置信息后,本地端电子设备通过ADPU链路发送配置同步指令,以向对端电子设备同步所获取的第三配置信息,该步骤中的配置同步指令的数据段封装的是第三配置数据。
步骤702,依据所述第三配置信息连接所述第三共享服务器,以通过所述第 三共享服务器建立与所述对端电子设备的数据传输链路;
本地端电子设备依据第三配置信息与第三共享服务器建立连接,该步骤可参照上述步骤303执行。
与步骤303类似的,由于本地端电子设备和对端电子设备都会依据第二配置信息建立与第三共享服务器的连接,则本地端电子设备和对端电子设备两者通过第三共享服务器建立起了数据传输链路。
步骤703,通过所述数据传输链路将共享信息传输至所述第三共享服务器以使所述第三共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
由于本实施例中的数据传输链路是经由第三共享服务器建立的,则共享信息的路由应当是:本地端电子设备将共享信息发送至第三共享服务器,第三共享服务器接收到数据后将共享信息转发至对端电子设备。本实施例中,共享信息可以是共享数据如音视频等,也可以是用于获取共享数据的连接如域名等。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
图8为本申请第二实施例提供的数据传输方法的流程图,所述方法应用于图1所示的数据传输系统中的对端电子设备102,如图8所示,上述数据传输方法可以包括:
步骤801,接收ADPU链路建立请求,对所述ADPU链路建立请求中携带的所述本地端电子设备对应的本地端身份信息进行验证;
对端电子设备接收本地端电子设备所发送的请求指令,该请求指令的格式为命令ADPU,该指令用于向对端电子设备请求建立ADPU链路。
接收到请求指令后,获取该指令中携带的身份信息,该身份信息是本地端电子设备内保存的自己的身份信息,对端电子设备对所获取的身份信息进行验证。
所述请求指令是通过PPP(点对点)协议进行发送至对端电子设备的,本申请中涉及APDU的指令的发送及接收都采用点对点协议(Point-to-Point Protocol,PPP)进行传输。
进一步的,步骤801还可以包括:
步骤11,接收所述ADPU链路建立请求,获取本地存储的身份信息,所述本地存储的身份信息包括所述本地端电子设备的身份信息;
接收到本地端电子设备所发送的请求指令后,获取本地存储系统内存储本地端电子设备身份信息,身份信息可以包括:IMSI(International Mobile Subscriber Identity,国际移动用户识别码)、临时移动用户识别码(TMSI,Temporary Mobile Subscriber Identity,ACCID用户账号标识、国际移动设备识别码(International Mobile Equipment Identity,IMEI)、号码等。
优选的,接收到本地端电子设备所发送的请求指令后,从本地存储系统内获取的信息不仅包括本地端电子设备身份信息,还包括对端电子设备身份信息。
在请求指令中携带的数据为密文或者约定进行加密通信的情况下,还需从本地存储系统内获取密钥信息,所述密钥信息包括对端电子设备的公钥、私钥及本地端电子设备的公钥。
使用对端电子设备的私钥解密请求指令中数据段的密文,以获取请求指令中携带的本地端身份信息。
步骤12,根据本地存储的所述本地端电子设备的身份信息,对所述ADPU链路建立请求中携带的所述本地端电子设备对应的本地端身份信息进行验证。
在本地存储系统中完成身份信息的获取后,依据本地存储系统内存储的本地端电子设备的身份信息验证,对请求指令中携带的身份信息验证。
步骤802,当所述本地端身份信息验证通过后,向所述本地端电子设备发送 所述ADPU请求的响应消息,以建立ADPU链路,所述响应消息中携带有所述对端电子设备的身份信息。
当本地端身份信息验证通过,例如,当请求指令中携带的本地端身份信息与本地存储系统内存储的本地端电子设备身份信息一致时,则验证通过。验证通过表明对端电子设备成功确认发送请求指令的设备为本地端电子设备。
本地端身份信息验证成功后,对端电子设备向本地端电子设备发送响应消息,所述响应消息时针对请求指令所发送,格式为响应APDU,响应APDU构造如下(Response data,SW1-SW2),包含了Response data响应数据(0到256字节的数据)和SW1-SW2响应后缀(为必选的2字节的状态字),响应后缀能够表示命令处理状态,如90 00(十六进制)表示成功。
响应消息中的数据段携带对端电子设备的身份信息,以使供本地端电子设备确认发送该响应消息的设备的身份,确认该设备是否为对端电子设备。当本地端电子设备确认身份信息正确后,作为通信的发起方,其完成一次请求/响应模式,实现与对端电子设备通信,与对端电子设备建立ADPU链路。
同样的,响应消息中的数据段携带对端电子设备的身份信息可以是明文,也可以是密文,例如,在请求指令中携带的数据为密文或者约定进行加密通信的情况下,使用本地端电子设备的公钥加密对端电子设备的身份信息,将该密文封装在响应消息中的数据段中。
本地端身份信息验证通过后,对端电子设备建立与本地端电子设备的APDU链路,该链路是指对端电子设备与本地端电子设备之间的点对点协议链路/连接,由于在本申请实施例中该链路仅用于传输APDU指令,为了便于说明将其称为APDU链路,APDU指令具有数据传输效率高,保密性强等优点。
实际上,对端电子设备接收请求指令时,其就已经完成了一次点对点协议通信,同步了通信所需的状态信息如二者都实例化了一个相同的socket,该状态信息,表明对端电子设备与本地端电子设备能够进行点对点协议通信连接,建立了 通信链路。
但在本实施例中,本申请中对端电子设备不将接收请求指令视为通信连接的彻底完成,还需进一步验证本地端身份信息,在本地端身份信息验证通过后,才视为一次连接的彻底完成,对端电子设备成功与本地端电子设备通信连接。
值得注意的是,本实施例中对端电子设备是默认自己就是正确的对端,本地端电子设备将成功确认应消息中携带的身份信息,因而,对端电子设备在本地端身份信息验证通过后,就可以视为连接建立成功。当然,本申请一些实施例中,默认自己就是正确的对端,在本地端身份信息验证通过后,不视为一次连接的完成,只有在接收到本地端电子设备返回的验证成功消息,才视为连接完成,二者成功建立连接。
可选的,对端电子设备建立ADPU链路后,即在成功验证请求响应消息中的对端电子设备身份信息后,还可以借助辅助模块如net模块或者modem模块,依据该socket,将该通信固化为SendAPDU、RecieveAPDU两个专用的功能接口,以便后续调用。
步骤803,接收所述本地端电子设备通过所述APDU链路发送的操作指令,依据所述操作指令进行操作。
对端电子设备接收本端电子设备通过APDU链路发送的操作指令,操作指令可用于指示对端电子设备进行多种操作如数据获取等,例如,可以定义一个数据获取的操作指令,该指令的INS字段中指定一个名称可以是任意的如G,该指令的数据段中则可存放用于指示对端电子设备获取待传输数据的信息,如待传输数据保存的IP地址等。
优选的,在APDU链路成功后,对端电子设备通过建立监听机制,以对该APDU链路进行监听,其中,监听的对象不仅包括本端电子设备发送的指令或数据,还包括对端电子设备自己需要发送的指令或数据,进而做相应执行动作。
上述数据传输方法中,本地电子设备与对端电子设备之间直接建立APDU链 路,点对点传输操作指令,以指示对端电子设备执行动作,与现有技术相比,本申请中设备之间的链路没有服务器参与,消息无需经过服务器进行中转,无需连接服务器就可以实现数据的传输,对服务器没有依赖,增强了数据传输的灵活性。且本申请的传输采用APDU指令,通信效率高,能够减小点对点通信的延迟,还能够增加通信的保密性。
图9为本申请第二实施例的一个优选实施方式的流程图,本实施例中的实施环境如图4所示,数据传输系统包括本地端电子设备101、对端电子设备102和多个共享服务器,如图9所示,本申请图8所示实施例中,步骤还可以包括:
步骤901,接收所述本地端电子设备通过所述ADPU链路向发送的第一配置信息,所述第一配置信息对应第一共享服务器;
接收本地端电子设备通过所述ADPU链路下发的配置同步指令,该步骤中的配置同步指令携带的是第一配置信息。
步骤902,依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述本地端电子设备的数据传输链路;
对端电子设备依据所述第一配置信息与第一共享服务器建立连接,建立该连接的协议可以是任意的如HTTP、FTP等,该协议可以依据待传输的数据来具体指令,以便于传输,具体协议类型可以预先设置或在配置同步指令中指定。
由于本地端电子设备也会依据第一配置信息建立与第一共享服务器的连接,则对端电子设备和本地端电子设备都会与第一共享服务器连接,即两者通过第一共享服务器建立起了另一个链路,该链路在本申请中称为数据传输链路。
可选的,对端电子设备建立与共享服务器的链路后,还可以借助辅助模块如net模块或者modem模块,将该链路固化为SendData,RecieveData两个专用的功能接口,以便后续调用。
可选的,对端电子设备通过建立监听机制,以对该数据传输链路进行监听,其中,监听的对象不仅包括本端电子设备发送的指令或数据,还包括对端电子设 备自己需要发送的指令或数据,进而做相应执行动作。
步骤903,通过所述数据传输链路接收所述本地端电子设备通过所述第一共享服务器中转的共享信息,所述共享信息为共享数据或者共享数据链接。
通过数据传输链路,对端电子设备接收第一共享服务器发送的共享信息,该共享信息是由本地端电子设备的发送至第一共享服务器,第一共享服务器再中转发送的,本实施例中,共享信息可以是共享数据如音视频等,也可以是用于获取共享数据的连接如域名等。
进一步的,步骤803中的所述操作指令包括以下至少一者:
对所述共享信息的控制指令、对所述对端电子设备的设置指令。
本实施例中,操作指令可以是多种,设定多种操作指令,扩展操作指令的应用范围,满足多种需要。
示例的,设置一种共享信息控制指令,该指令用于控制共享信息,如当指定对共享信息进行编解码的多媒体模块,以对其播放,或,指定共享信息交给第三方应用嵌入其功能中做受控播放,或者,指定对端电子设备通过共享数据连接获取数据等。另一种示例中,设置一种设备设置指令,该指令用于对对端电子设备进行设置,如更改对端电子设备的系统某个媒体配置。
本实施例中,本地端电子设备和对端电子设备之间除建立ADPU链路外,还通过ADPU链路同步服务器的配置信息,通过服务器在设备之间建立数据传输链路,增强了数据传输能力,设备之间能够实现不同体量的传输。同时,与现有技术相比,本实施例的本地端电子设备和对端电子设备存在ADPU和数据传输两种链路,当服务器故障时,设备之间并不会彻底断开连接,部分数据仍可以通过ADPU链路传输,且仅需利用ADPU链路重新传递配置信息,就能实现更换为新的服务器,重新建立数据链路,本申请对服务器依赖程度较低,提高了数据传输的灵活性。
图10为本申请第二实施例的另一个优选实施方式的流程图,当依据所述第 一配置信息连接所述第一共享服务器失败时,所述接收所述本地端电子设备通过所述ADPU链路向发送的配置信息,还包括:
步骤A,接收所述本地端电子设备通过所述ADPU链路向发送第二配置数据,所述第二配置数据对应第二共享服务器;
当对端电子设备依据所述第一配置信息连接所述第一共享服务器失败时,说明配置信息有误或者服务器失去连接,此时需要更换配置信息,连接新的服务器,以通过新的服务器建立数据传输链路。
对端电子设备等待接收本地端电子设备发送新的配置同步指令,新的配置同步指令携带了新的配置信息,该新的配置信息在本实施例中称为第二配置信息。
步骤B,依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述本地端电子设备的数据传输链路;
对端电子设备依据第二配置信息与第二共享服务器建立连接,由于本地端电子设备也会依据第二配置信息建立与第二共享服务器的连接,则本地端电子设备和对端电子设备两者通过第二共享服务器建立起了数据传输链路。
步骤C,通过所述数据传输链路接收所述本地端电子设备通过所述第二共享服务器从中转的共享信息,所述共享信息为共享数据或者共享数据链接。
接收通过第二共享服务器通过数据链路发送的共享信息,该共享信息是由本地端电子设备发送至第二共享服务器的。共享信息可以是共享数据如音视频等,也可以是用于获取共享数据的连接如域名等。
图11为本发明一个实施例提供的一种电子设备的结构示意图,如图11所示,上述电子设备可以包括:第一获取模块1101、请求模块1102、请求响应接收模块1103、对端验证模块1104、APDU链路模块1105和指令模块1106;
其中,第一获取模块1101,用于获取本地存储的身份信息,所述身份信息包括本地端身份信息和对端身份信息;
请求模块1102,用于向对端电子设备发送ADPU链路建立请求,所述请求 中携带所述本地端身份信息;
请求响应接收模块1103,用于接收所述对端电子设备发送的请求响应消息;
对端验证模块1104,用于根据本地存储的所述对端身份信息,对所述请求响应消息中携带的对端信息进行验证;
APDU链路模块1105,用于当所述对端信息验证通过后,与所述对端电子设备建立应用数据单元APDU链路;
指令模块1106,用于通过所述APDU链路向所述对端电子设备发送操作指令,所述操作指令用于指示所述对端电子设备进行操作。
图11所示实施例提供的本地端电子设备可用于执行本说明书图2所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
图12为本说明书另一个实施例提供的电子设备的结构示意图,本实施例中,上述电子设备还可以包括:第二获取模块1201、配置信息同步模块1202、数据传输链路模块1203和共享模块1204;
第二获取模块1201,用于获取第一配置信息,所述第一配置信息对应第一共享服务器;
配置信息同步模块1202,用于通过所述ADPU链路向所述对端电子设备发送所述第一配置信息;
数据传输链路模块1203,用于依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述对端电子设备的数据传输链路;
共享模块1204,用于通过所述数据传输链路将共享信息传输至所述第一共享服务器以使所述第一共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
进一步的,所述操作指令包括以下至少一者:
对所述共享信息的控制指令、对所述对端电子设备的设置指令。
进一步地,上述电子设备在本地存储有第三配置信息,所述第三配置信息对应第三共享服务器,所述电子设备,还包括:
获取模块1201,当通过所述第一配置信息连接所述第一共享服务器失败时,还用于获取所述第三配置信息;
配置信息同步模块1202,还用于通过所述ADPU链路向所述对端电子设备发送所述三配置数据;
所述数据传输链路模块1203,还用于依据所述第三配置信息连接所述第三共享服务器,以通过所述第三共享服务器建立与所述对端电子设备的数据传输链路;
所述共享模块1204,还用于通过所述数据传输链路将共享信息传输至所述第三共享服务器以使所述第三共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
图12所示实施例提供的本地端电子设备可用于执行本申请上述图3、图7方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
图13为本说明书再一个实施例提供的电子设备的结构示意图,本实施例中,上述电子设备还可以包括:更新请求模块1301和更新响应接收模块1302;
更新请求模块1301,用于当依据所述第一配置信息连接所述第一共享服务器失败时,向共享服务器管理平台发送配置更新请求;
更新响应接收模块1302,用于接收所述共享服务器管理平台发送的更新响应消息,获取所述更新响应消息中的第二配置信息,所述第二配置信息对应第二共享服务器;
所述配置信息同步模块1202,还用于通过所述ADPU链路向所述对端电子设备发送所述第二配置数据;
所述数据传输链路模块1203,还用于依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述对端电子设备的数据传输链路;
所述共享模块1204,还用于通过所述数据传输链路将共享信息传输至所述第二共享服务器以使所述第二共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
图13所示实施例提供的电子设备可用于执行本申请上述图6方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
图14为本发明一个实施例提供的一种电子设备的结构示意图,如图14所示,上述电子设备可以包括:请求接收模块1401、APDU链路模块1402和指令接收模块1403;
请求接收模块1401,用于接收ADPU链路建立请求,对所述ADPU链路建立请求中携带的本地端电子设备对应的本地端身份信息进行验证;
APDU链路模块1402,用于当所述本地端身份信息验证通过后,向所述本地端电子设备发送所述ADPU请求的响应消息,以建立ADPU链路,所述响应消息中携带有所述对端电子设备的身份信息;
指令接收模块1403,用于接收所述本地端电子设备通过所述APDU链路发送的操作指令,依据所述操作指令进行操作。
图14所示实施例提供的电子设备可用于执行本说明书图8所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
图15为本说明书另一个实施例提供的电子设备的结构示意图,本实施例中,上述电子设备还包括:配置信息同步模块1501、数据传输链路模块1502和共享模块1503;
配置信息同步模块1501,用于接收所述本地端电子设备通过所述ADPU链路向发送的第一配置信息,所述第一配置信息对应第一共享服务器;
数据传输链路模块1502,用于依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述本地端电子设备的数据传输链路;
共享模块1503,用于通过所述数据传输链路接收所述本地端电子设备通过所 述第一共享服务器中转的共享信息,所述共享信息为共享数据或者共享数据链接。
进一步的,所述操作指令包括以下至少一者:
对所述共享信息的控制指令、对所述对端电子设备的设置指令。
图15所示实施例提供的对端电子设备可用于执行本说明书图9所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
图16为本说明书再一个实施例提供的电子设备的结构示意图,本实施例中,上述电子设备中的请求接收模块,还包括:
获取子模块1601,用于接收所述ADPU链路建立请求,获取本地存储的身份信息,所述本地存储的身份信息包括所述本地端电子设备的身份信息;
本地端验证子模块1602,用于根据本地存储的所述本地端电子设备的身份信息,对所述ADPU链路建立请求中携带的所述本地端电子设备对应的本地端身份信息进行验证。
进一步的,所述电子设备还包括:
所述配置信息同步模块1501,当依据所述第一配置信息连接所述第一共享服务器失败时,还用于接收所述本地端电子设备通过所述ADPU链路向发送第二配置数据,所述第二配置数据对应第二共享服务器;
所述数据传输链路模块1502,还用于依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述本地端电子设备的数据传输链路;
所述共享模块1503,还用于通过所述数据传输链路接收所述本地端电子设备通过所述第二共享服务器从中转的共享信息,所述共享信息为共享数据或者共享数据链接。
图16所示实施例提供的电子设备可用于执行本说明书图10所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
本申请实施例提供一种终端设备,所述终端设备可以包括至少一个处理器;以及与上述处理器通信连接的至少一个存储器,其中:存储器存储有可被处理器执行的程序指令,上述处理器调用上述程序指令能够执行本说明书上述方法实施例提供的数据传输方法。
其中,上述终端设备可以为智能手机、平板电脑或笔记本电脑等智能电子设备,本实施例对上述终端设备的形式不作限定。
本申请实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行本说明书上述方法实施例提供的数据传输方法。
上述非暂态计算机可读存储介质可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(read only memory,ROM)、可擦式可编程只读存储器(erasable programmable read only memory,EPROM)或闪存、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用 或者与其结合使用的程序。
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、射频(radio frequency,RF)等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言或其组合来编写用于执行本说明书操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(local area network,LAN)或广域网(wide area network,WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
在本发明实施例的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本说明书的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组 合。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本说明书的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本说明书的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本说明书的实施例所属技术领域的技术人员所理解。
取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。
需要说明的是,本申请实施例中所涉及的终端可以包括但不限于个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、无线手持设备、平板电脑(tablet computer)、手机、MP3播放器、MP4播放器等。
在本说明书所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性, 机械或其它的形式。
另外,在本说明书各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)或处理器(processor)执行本说明书各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述仅为本说明书的较佳实施例而已,并不用以限制本说明书,凡在本说明书的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书保护的范围之内。

Claims (22)

  1. 一种数据传输方法,其特征在于,所述方法应用于作为本地端电子设备的电子终端,所述方法包括:
    获取本地存储的身份信息,所述身份信息包括本地端身份信息和对端身份信息;
    向对端电子设备发送ADPU链路建立请求,所述请求中携带所述本地端身份信息;
    接收所述对端电子设备发送的请求响应消息;
    根据本地存储的所述对端身份信息,对所述请求响应消息中携带的对端信息进行验证;
    当所述对端信息验证通过后,与所述对端电子设备建立应用数据单元APDU链路;
    通过所述APDU链路向所述对端电子设备发送操作指令,所述操作指令用于指示所述对端电子设备进行操作。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    获取第一配置信息,所述第一配置信息对应第一共享服务器;
    通过所述ADPU链路向所述对端电子设备发送所述第一配置信息;
    依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述对端电子设备的数据传输链路;
    通过所述数据传输链路将共享信息传输至所述第一共享服务器以使所述第一共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
  3. 根据权利要求2所述的方法,其特征在于,所述操作指令包括以下至少一者:
    对所述共享信息的控制指令、对所述对端电子设备的设置指令。
  4. 根据权利要求2所述的方法,其特征在于,当依据所述第一配置信息连接所述第一共享服务器失败时,所述方法还包括:
    向共享服务器管理平台发送配置更新请求;
    接收所述共享服务器管理平台发送的更新响应消息,获取所述更新响应消息中的第二配置信息,所述第二配置信息对应第二共享服务器;
    通过所述ADPU链路向所述对端电子设备发送所述第二配置数据;
    依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述对端电子设备的数据传输链路;
    通过所述数据传输链路将共享信息传输至所述第二共享服务器以使所述第二共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
  5. 根据权利要求2所述的方法,其特征在于,所述本地端电子设备在本地存储有第三配置信息,所述第三配置信息对应第三共享服务器,当通过所述第一配置信息连接所述第一共享服务器失败时,所述方法还包括:
    获取所述第三配置信息,通过所述ADPU链路向所述对端电子设备发送所述三配置数据;
    依据所述第三配置信息连接所述第三共享服务器,以通过所述第三共享服务器建立与所述对端电子设备的数据传输链路;
    通过所述数据传输链路将共享信息传输至所述第三共享服务器以使所述第三共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
  6. 一种数据传输方法,其特征在于,所述方法应用于作为对端电子设备的电子终端设备,所述方法包括:
    接收ADPU链路建立请求,对所述ADPU链路建立请求中携带的本地端电子设备对应的本地端身份信息进行验证;
    当所述本地端身份信息验证通过后,向所述本地端电子设备发送所述ADPU请求的响应消息,以建立ADPU链路,所述响应消息中携带有所述对端电子设备的身份信息;
    接收所述本地端电子设备通过所述APDU链路发送的操作指令,依据所述操作指令进行操作。
  7. 根据权利要求6所述的方法,其特征在于,所述接收ADPU链路建立请求,对所述ADPU链路建立请求中携带的本地端电子设备对应的本地端身份信息进行验证,包括:
    接收所述ADPU链路建立请求,获取本地存储的身份信息,所述本地存储的身份信息包括所述本地端电子设备的身份信息;
    根据本地存储的所述本地端电子设备的身份信息,对所述ADPU链路建立请求中携带的所述本地端电子设备对应的本地端身份信息进行验证。
  8. 根据权利要求6或7所述的方法,其特征在于,所述方法还包括:
    接收所述本地端电子设备通过所述ADPU链路向发送的第一配置信息,所述第一配置信息对应第一共享服务器;
    依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述本地端电子设备的数据传输链路;
    通过所述数据传输链路接收所述本地端电子设备通过所述第一共享服务器中转的共享信息,所述共享信息为共享数据或者共享数据链接。
  9. 根据权利要求8所述的方法,其特征在于,所述操作指令包括以下至少一者:
    对所述共享信息的控制指令、对所述对端电子设备的设置指令。
  10. 根据权利要求8所述的方法,其特征在于,当依据所述第一配置信息连接所述第一共享服务器失败时,所述方法还包括:
    接收所述本地端电子设备通过所述ADPU链路向发送第二配置数据,所述第二配置数据对应第二共享服务器;
    依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述本地端电子设备的数据传输链路;
    通过所述数据传输链路接收所述本地端电子设备通过所述第二共享服务器从中转的共享信息,所述共享信息为共享数据或者共享数据链接。
  11. 一种电子设备,其特征在于,所述设备,包括:
    第一获取模块,用于获取本地存储的身份信息,所述身份信息包括本地端身份信息和对端身份信息;
    请求模块,用于向对端电子设备发送ADPU链路建立请求,所述请求中携带所述本地端身份信息;
    请求响应接收模块,用于接收所述对端电子设备发送的请求响应消息;
    对端验证模块,用于根据本地存储的所述对端身份信息,对所述请求响应消息中携带的对端信息进行验证;
    APDU链路模块,用于当所述对端信息验证通过后,与所述对端电子设备建立应用数据单元APDU链路;
    指令模块,用于通过所述APDU链路向所述对端电子设备发送操作指令,所述操作指令用于指示所述对端电子设备进行操作。
  12. 根据权利要求11所述的设备,其特征在于,所述设备,还包括:
    第二获取模块,用于获取第一配置信息,所述第一配置信息对应第一共享服务器;
    配置信息同步模块,用于通过所述ADPU链路向所述对端电子设备发送所述第一配置信息;
    数据传输链路模块,用于依据所述第一配置信息连接所述第一共享服 务器,以通过所述第一共享服务器建立与所述对端电子设备的数据传输链路;
    共享模块,用于通过所述数据传输链路将共享信息传输至所述第一共享服务器以使所述第一共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
  13. 根据权利要求12所述的设备,其特征在于,所述操作指令包括以下至少一者:
    对所述共享信息的控制指令、对所述对端电子设备的设置指令。
  14. 根据权利要求13所述的设备,其特征在于,,所述设备,还包括:
    更新请求模块,用于当依据所述第一配置信息连接所述第一共享服务器失败时,向共享服务器管理平台发送配置更新请求;
    更新响应接收模块,用于接收所述共享服务器管理平台发送的更新响应消息,获取所述更新响应消息中的第二配置信息,所述第二配置信息对应第二共享服务器;
    所述配置信息同步模块,还用于通过所述ADPU链路向所述对端电子设备发送所述第二配置数据;
    所述数据传输链路模块,还用于依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述对端电子设备的数据传输链路;
    所述共享模块,还用于通过所述数据传输链路将共享信息传输至所述第二共享服务器以使所述第二共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
  15. 根据权利要求13所述的设备,其特征在于,所述设备在本地存储有第三配置信息,所述第三配置信息对应第三共享服务器,所述设备,还包括:
    所述获取模块,还用于当通过所述第一配置信息连接所述第一共享服务器失败时,获取所述第三配置信息;
    所述配置信息同步模块,还用于通过所述ADPU链路向所述对端电子设备发送所述三配置数据;
    所述数据传输链路模块,还用于依据所述第三配置信息连接所述第三共享服务器,以通过所述第三共享服务器建立与所述对端电子设备的数据传输链路;
    所述共享模块,还用于通过所述数据传输链路将共享信息传输至所述第三共享服务器以使所述第三共享服务器将所述共享信息发送给所述对端电子设备,所述共享信息为共享数据或者共享数据链接。
  16. 一种电子设备,其特征在于,所述设备,包括:
    请求接收模块,用于接收ADPU链路建立请求,对所述ADPU链路建立请求中携带的本地端电子设备对应的本地端身份信息进行验证;
    APDU链路模块,用于当所述本地端身份信息验证通过后,向所述本地端电子设备发送所述ADPU请求的响应消息,以建立ADPU链路,所述响应消息中携带有所述对端电子设备的身份信息;
    指令接收模块,用于接收所述本地端电子设备通过所述APDU链路发送的操作指令,依据所述操作指令进行操作。
  17. 根据权利要求16所述的设备,其特征在于,所述请求接收模块,还包括:
    获取子模块,用于接收所述ADPU链路建立请求,获取本地存储的身份信息,所述本地存储的身份信息包括所述本地端电子设备的身份信息;
    本地端验证子模块,用于根据本地存储的所述本地端电子设备的身份信息,对所述ADPU链路建立请求中携带的所述本地端电子设备对应的本地端身份信息进行验证。
  18. 根据权利要求16或者17所述的设备,其特征在于,所述设备还包括:
    配置信息同步模块,用于接收所述本地端电子设备通过所述ADPU链路向发送的第一配置信息,所述第一配置信息对应第一共享服务器;
    数据传输链路模块,用于依据所述第一配置信息连接所述第一共享服务器,以通过所述第一共享服务器建立与所述本地端电子设备的数据传输链路;
    共享模块,用于通过所述数据传输链路接收所述本地端电子设备通过所述第一共享服务器中转的共享信息,所述共享信息为共享数据或者共享数据链接。
  19. 根据权利要求18所述的系统,其特征在于,所述操作指令包括以下至少一者:
    对所述共享信息的控制指令、对所述对端电子设备的设置指令。
  20. 根据权利要求18所述的系统,其特征在于,所述设备还包括:
    所述配置信息同步模块,还用于当依据所述第一配置信息连接所述第一共享服务器失败时,接收所述本地端电子设备通过所述ADPU链路向发送第二配置数据,所述第二配置数据对应第二共享服务器;
    所述数据传输链路模块,还用于依据所述第二配置信息连接所述第二共享服务器,以通过所述第二共享服务器建立与所述本地端电子设备的数据传输链路;
    所述共享模块,还用于通过所述数据传输链路接收所述本地端电子设备通过所述第二共享服务器从中转的共享信息,所述共享信息为共享数据或者共享数据链接。
  21. 一种终端设备,包括:
    至少一个处理器;以及
    与所述处理器通信连接的至少一个存储器,其中:
    所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如权利要求1至10任一所述的方法。
  22. 一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如权利要求1至10任一所述的方法。
PCT/CN2022/141091 2021-12-31 2022-12-22 数据传输方法及相关设备 WO2023125242A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111664408.5A CN114301925B (zh) 2021-12-31 2021-12-31 数据传输方法及相关设备
CN202111664408.5 2021-12-31

Publications (1)

Publication Number Publication Date
WO2023125242A1 true WO2023125242A1 (zh) 2023-07-06

Family

ID=80973641

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141091 WO2023125242A1 (zh) 2021-12-31 2022-12-22 数据传输方法及相关设备

Country Status (2)

Country Link
CN (1) CN114301925B (zh)
WO (1) WO2023125242A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301925B (zh) * 2021-12-31 2023-12-08 展讯通信(天津)有限公司 数据传输方法及相关设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006086729A1 (en) * 2005-02-11 2006-08-17 Axalto, Inc. System and method for data communications allowing slave devices to be network peers
CN106134160A (zh) * 2014-01-27 2016-11-16 法斯埃托有限公司 用于对等通信的系统和方法
CN106657370A (zh) * 2017-01-03 2017-05-10 腾讯科技(深圳)有限公司 数据传输方法及装置
CN109189698A (zh) * 2018-08-10 2019-01-11 深圳绿米联创科技有限公司 设备控制方法、装置以及物联网系统
CN110944406A (zh) * 2018-09-25 2020-03-31 维沃移动通信有限公司 一种旁链路的链路建立方法及终端
CN114301925A (zh) * 2021-12-31 2022-04-08 展讯通信(天津)有限公司 数据传输方法及相关设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168267B (zh) * 2014-07-23 2018-02-02 中国科学院信息工程研究所 一种接入sip安防视频监控系统的身份认证方法
CN105376059B (zh) * 2014-08-15 2019-04-02 中国电信股份有限公司 基于电子钥匙进行应用签名的方法和系统
CN110365484B (zh) * 2015-03-17 2023-01-20 创新先进技术有限公司 一种设备认证的数据处理方法、装置及系统
CN105721468B (zh) * 2016-02-17 2021-11-16 阿里巴巴集团控股有限公司 通讯方法及装置
CN107318174A (zh) * 2017-06-28 2017-11-03 广东欧珀移动通信有限公司 一种通信方法、装置及终端
DE102019002050B3 (de) * 2019-03-22 2020-08-13 Giesecke+Devrient Mobile Security Gmbh Verfahren zum Aufbau einer Datenverbindung, Verfahren zum Bereitstellen von Verbindungsparametern, sowie Teilnehmeridentitätsmodul
CN109905310B (zh) * 2019-03-26 2020-12-29 杭州迪普科技股份有限公司 数据传输方法、装置、电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006086729A1 (en) * 2005-02-11 2006-08-17 Axalto, Inc. System and method for data communications allowing slave devices to be network peers
CN106134160A (zh) * 2014-01-27 2016-11-16 法斯埃托有限公司 用于对等通信的系统和方法
CN106657370A (zh) * 2017-01-03 2017-05-10 腾讯科技(深圳)有限公司 数据传输方法及装置
CN109189698A (zh) * 2018-08-10 2019-01-11 深圳绿米联创科技有限公司 设备控制方法、装置以及物联网系统
CN110944406A (zh) * 2018-09-25 2020-03-31 维沃移动通信有限公司 一种旁链路的链路建立方法及终端
CN114301925A (zh) * 2021-12-31 2022-04-08 展讯通信(天津)有限公司 数据传输方法及相关设备

Also Published As

Publication number Publication date
CN114301925A (zh) 2022-04-08
CN114301925B (zh) 2023-12-08

Similar Documents

Publication Publication Date Title
US20190132401A1 (en) Electronic device using logical channels for communication
JP4401849B2 (ja) 2次チャンネルを確立するシステム及び方法
US10425454B2 (en) Device and method for transferring the rendering of multimedia content
CN106031121B (zh) 媒体内容的共享方法及装置
KR100585781B1 (ko) 모바일 인스턴트 메시징 서비스의 파일 전송 방법
WO2015158114A1 (zh) 一种智能通讯方法、终端及系统
JP5321708B2 (ja) 移動式無線通信装置及びその接続状態の管理方法
WO2017215215A1 (zh) 一种切换下载方式的方法、及其控制方法与控制系统
CN111787517A (zh) 智能设备激活绑定的方法和装置
WO2015180051A1 (zh) 数据发送方法及装置
WO2023125242A1 (zh) 数据传输方法及相关设备
CN110536246A (zh) 一种设备防丢失方法及系统
CN101867572A (zh) 无线优盘的实现方法及系统
CN101827453A (zh) 一种pc与无线终端建立连接的方法及系统
KR20110025012A (ko) 근거리 네트워크에서 사용자 인터페이스 매칭장치 및 방법
WO2010058634A1 (en) Client - server communications in mobile radio communications device
JP5698366B2 (ja) 制御方法、装置、及びシステム
JP4778708B2 (ja) Gprs及びgsm接続による通信装置の管理
WO2017185339A1 (zh) 无线连接方法、装置及系统
JP2005529550A5 (zh)
US20130188559A1 (en) Method for Establishing a Communication Connection over the Internet Between Mobile Terminals, Computer Program, and Storage Medium
CN103220345A (zh) 门户设备管理方法以及门户设备和系统
JP2009182458A (ja) 通信装置、通信システム、通信方法及びプログラム
WO2012122914A2 (zh) 基于ip的可视化语音邮件实现方法和系统
JP6000231B2 (ja) ネットワークシステム、常時接続方法、電子機器、常時接続サーバ、アプリケーションサーバ、プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22914496

Country of ref document: EP

Kind code of ref document: A1