Summary of the invention
The embodiment of the present disclosure, which provides a kind of data transmission method and system, the hardware resource for being able to solve terminal device, to be hadThe problem of limiting, not being able to satisfy user demand.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of data transmission method is provided, this method comprises:
Terminal device sends service request to server, and service request is used to indicate the operation that server executes instruction;
The operation that server is executed instruction according to service request, and terminal display interface, terminal are generated according to operating resultDisplay interface includes at least one pixel;
Server carries out Image Acquisition to terminal display interface and image encodes;
Server sends terminal display interface to terminal device;
Terminal device carries out image decoding to terminal display interface and shows.
Because terminal device sends service request to server, indicates its operation executed instruction, terminal will be needed originallyThe operation that equipment executes is executed by server, and terminal device only needs to receive the display interface of server transmission and display, will be wholeThe hardware resource requirements of end equipment are transferred to server, and server can as the case may be distribute different service requests hardPart resource executes operation, solves the problems, such as that terminal device hardware resource is limited, has better met user demand.
In one embodiment, terminal device sends service request to server, comprising:
Service request is sent to server by Back Control Channel by terminal device, and Back Control Channel is used for transmission clothesBusiness request.
Back Control Channel is to be exclusively used in transmitting service request between terminal device and server, improves terminal deviceThe efficiency of transmission of service request between server.
In one embodiment, after server receives service request, this method further include:
Service request will be distributed to corresponding upper layer application by session control channel by server, and session control channel is usedIn service request is transmitted to corresponding upper layer application.
Dedicated session control channel is established to service request, improves the treatment effeciency of service request.
In one embodiment, this method further include:
Terminal device sends sensor information to server, and sensor information is used to indicate the sensor on terminal deviceTesting result;
Sensor information is distributed to corresponding upper layer application by sensor session channel by server, and sensor session is logicalRoad is used for transmitting sensor information to corresponding upper layer application.
Dedicated sensor session channel is established to sensor information, is enabled the server to sensor on terminal deviceTesting result timely respond to, improve user experience.
In one embodiment, the operation of instruction includes by the Internet transmission network data, this method further include:
Terminal device sends network data to server;
Network data is distributed to corresponding upper layer application, network data transmission by network data transmission channel by serverChannel is used for network data transmission to corresponding upper layer application.
Dedicated network data transmission channel is established for network data, so that needing the network data by the Internet transmissionEfficiency of transmission improves.
In one embodiment, the operation that server is executed instruction according to service request, comprising:
Server is encoded and is sent to network data according to service request, using Microsoft Loopback Adapter.
Server setting Microsoft Loopback Adapter is not required to so that terminal device transmitting network data can also be executed by serverIt wants terminal device to operate, further weakens terminal device for the demand of hardware resource, when network system, which updates, to be optimized,The network service updated can be experienced by not needing user's replacement terminal equipment, further improve user experience.
In one embodiment, the operation of instruction includes storage target data, this method further include:
Terminal device sends target data to server;
Target data is transmitted to the memory module of server by data storage session channel by server, and data store meetingTalking path is used to for target data being transmitted to the memory module of server.
To need the target data stored to establish dedicated storage session channel, guarantee to pass in target data storing processTransmission quality and efficiency of transmission.
In one embodiment, server includes: according to the operation that service request executes instruction
Target data is stored in memory space by server according to service request.
The target data that user wants storage also is stored in the memory space of server, when what user asked for more depositsWhen storing up space, it is only necessary to distribute more memory spaces to server application, not need replacement terminal equipment, user usesIt is more convenient flexible, further improve user experience.
In one embodiment, this method further include:
Terminal device sends booting logon information to server, and booting logon information includes the account name of user and logs in closeCode, booting logon information provide service for requesting for user;
Server sends booting circle of user to terminal device in the account name and correct modification logging for determining userFace;
Terminal device shows the starting-up interface of the user received.
Because server can provide service for multiple users, user identity is tested according to the account name of user and passwordCard avoids other people from enjoying service using the account name of user, protects privacy of user and uses equity.
According to the second aspect of an embodiment of the present disclosure, a kind of data transmission system is provided, the system is for executing first partyData transmission method described in any one of face or first aspect embodiment, the data transmission system include: serverAnd terminal device;
Wherein, terminal device, for sending service request to server, service request is used to indicate server and executes instructionOperation;
Server, for the service request that receiving terminal apparatus is sent, the operation executed instruction according to service request, and rootTerminal display interface is generated according to operating result, terminal display interface includes at least one pixel;
Server is also used to carry out terminal display interface Image Acquisition and image coding, and sends eventually to terminal deviceHold display interface
Terminal device is also used to carry out image decoding to terminal display interface and show.
In one embodiment, terminal device is also used to that service request is sent to server by Back Control Channel,Back Control Channel is used for transmission service request.
In one embodiment, server is also used to that service request is distributed on corresponding by session control channelLayer application, session control channel are used to service request being transmitted to corresponding upper layer application.
In one embodiment, terminal device is also used to send sensor information to server, and sensor information is for referring toShow the testing result of the sensor on terminal device;
Server is also used to receive heat transfer agent, is distributed to sensor information by sensor session channel correspondingUpper layer application, sensor session channel are used for transmitting sensor information to corresponding upper layer application.
In one embodiment, the operation of instruction includes passing through the Internet transmission network data;
Terminal device is also used to send network data to server;
Server is also used to that network data is distributed to corresponding upper layer application, network by network data transmission channelData transmission channel is used for network data transmission to corresponding upper layer application.
In one embodiment, server is also used to receiving network data, according to service request, utilizes Microsoft Loopback Adapter pairNetwork data is encoded and is sent.
In one embodiment, the operation of instruction includes storage target data;
Terminal device is also used to send target data to server;
Server is also used to store the memory module that target data is transmitted to server by session channel, number by dataAccording to storage session channel for target data to be transmitted to the memory module of server.
In one embodiment, server is also used to receive target data, and according to service request, target data is storedIn memory space.
In one embodiment, terminal device is also used to send booting logon information to server, and be switched on logon information packetThe account name and modification logging of user are included, booting logon information provides service for requesting for user;
Server is also used to receive booting logon information, in the account name and correct modification logging for determining user, to endThe starting-up interface of end equipment transmission user;
Terminal device is also used to receive the starting-up interface of user, and shows the starting-up interface of the user received.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, notThe disclosure can be limited.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related toWhen attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodimentDescribed in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appendedThe example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
The embodiment of the present disclosure provides a kind of data transmission method, as shown in Figure 1, the data transmission method includes following stepIt is rapid:
101, terminal device sends service request to server.
In one embodiment, terminal device sends service request to server, comprising: terminal device passes through Reverse Turning ControlService request is sent to server by channel, and Back Control Channel is used for transmission service request.
Back Control Channel is to be exclusively used in transmitting service request between terminal device and server, improves terminal deviceThe efficiency of transmission of service request between server.
102, the operation that server is executed instruction according to service request, and terminal display interface is generated according to operating result.
Terminal display interface includes at least one pixel.Terminal display interface is picture format, it is believed that is a frame figureTerminal display interface is fed back to user by picture, user can be clearly seen that operation as a result, and terminal device only needs to showShow, reduces dependence of the terminal device to hardware resource, improve user experience.
Operation indicated by service request can there are many, for example, instruction operation can be login account, transmission networkData, storage target data etc., the operation of instruction can also be open an APP, send chat message, watch online video,System setting etc. is carried out according to personal preference, the operation executed on the terminal device can be realized in server.Herein, to refer toThe operation shown be login account, transmitting network data, storage these three application scenarios of target data for be described as follows:
In the first application scenarios, the operation of instruction is login account, and this method can also include: terminal device to clothesBusiness device sends booting logon information, and booting logon information includes the account name and modification logging of user, and booting logon information is used forRequest provides service for user;Server sends to terminal device and uses in the account name and correct modification logging for determining userThe starting-up interface at family;Terminal device shows the starting-up interface of the user received.
Because server can provide service for multiple users, user identity is tested according to the account name of user and passwordCard avoids other people from enjoying service using the account name of user, protects privacy of user and uses equity.
Herein, it should be noted that screen-lock password or unlock fingerprint can also be arranged in terminal device, be with smart phonePassword solution lock screen can be arranged in example, many smart phones, or setting unlock fingerprint is used to solve lock screen, these passwords canIt to store on the terminal device, is not verified by server, because the operating frequency of solution lock screen is higher, utilizes serverVerifying increases too many volume of transmitted data, occupies excessive Internet resources, and the storage that unlocking pin or unlock fingerprint occupy is emptyBetween again it is very small, therefore, on the terminal device by these password storages, can be saved while meeting user demand network moneySource.
In second of application scenarios, the operation of instruction includes by the Internet transmission network data, this method further include:Terminal device sends network data to server;
The operation that server is executed instruction according to service request, comprising: server utilizes Microsoft Loopback Adapter according to service requestNetwork data is encoded and is sent.
Setting Microsoft Loopback Adapter does not need terminal and sets so that terminal device transmitting network data can also be executed by serverStandby operation further weakens terminal device and the demand of hardware resource is not needed to use when network system, which updates, to be optimized yetFamily replacement terminal equipment can experience the network service updated, further improve user experience.
In the third application scenarios, the operation of instruction includes storage target data, this method further include: terminal device toServer sends target data;
Server includes: that target data is stored in memory space by server according to the operation that service request executes instructionIn.
The target data that user wants storage also is stored in the memory space of server, when what user asked for more depositsWhen storing up space, it is only necessary to distribute more memory spaces to server application, not need replacement terminal equipment, user usesIt is more convenient flexible, further improve user experience.
Three of the above application scenarios are exemplary illustration, do not represent the disclosure and are confined to this.
In conjunction with above-mentioned three kinds of application scenarios, there are many types for the data transmission between server and terminal device, for example, clothesRequest data stream, sensor session data stream, transmitted data on network stream, datum number storage be engaged according to stream etc., server can be to notSame data flow establishes different session channels, herein, enumerates four examples and is illustrated:
In first example, after server receives service request, this method further include: server will pass through session controlService request is distributed to corresponding upper layer application by channel processed, and session control channel is corresponding for service request to be transmitted toLayer application.
Dedicated session control channel is established to service request, improves the treatment effeciency of service request.
In second example, this method further include: terminal device sends sensor information, sensor information to serverIt is used to indicate the testing result of the sensor on terminal device;Server is distributed sensor information by sensor session channelTo corresponding upper layer application, sensor session channel is used for transmitting sensor information to corresponding upper layer application.
It should be noted that may include touch screen and various sensors on terminal device, user can be by touchingTouch control operation is carried out on screen generate service request to be sent to server, be also possible to sensor and generate service according to testing result to askIt asks.By taking terminal device is smart phone as an example: for example, user clicks on the touch screen of smart phone opens chat software, thenThe service request that smart phone generates opening chat software is sent to server, and server executes the operation of opening chat software simultaneouslyThe display interface that chat software opens is generated, the display interface that chat software opens is sent back into smart phone, userSee the display interface that chat software opens;For another example, user watches video using smart phone, when the gravity on smart phoneSensor detects that smart phone position is flipped, then the service request for generating overturning picture is sent to server, serverIt executes the operation of overturning picture and generates the display interface after image turning and send back smart phone, user is it is seen that pictureVideo after overturning shows picture.Certainly, only exemplary illustration herein, does not represent the disclosure and is confined to this.
Dedicated sensor session channel is established to sensor information, is enabled the server to sensor on terminal deviceTesting result timely respond to, improve user experience.
In third example, this method further include: server is distributed network data by network data transmission channelTo corresponding upper layer application, network data transmission channel is used for network data transmission to corresponding upper layer application.
Dedicated network data transmission channel is established for network data, so that needing the network data by the Internet transmissionEfficiency of transmission improves.
In the 4th example, this method further include: server stores session channel by data and transmits target dataTo the memory module of server, data storage session channel is used to for target data being transmitted to the memory module of server.
To need the target data stored to establish dedicated storage session channel, guarantee to pass in target data storing processTransmission quality and efficiency of transmission.
Above four kinds of session channels are exemplary illustration, do not represent the disclosure and are confined to this.
103, server carries out Image Acquisition to terminal display interface and image encodes.
Because terminal display interface is picture format, image coding is carried out to it can be improved efficiency of transmission and transmission matterAmount, while also protecting privacy of user.
104, server sends terminal display interface to terminal device.
105, terminal device carries out image decoding to terminal display interface and shows.
Because server responds the service request of user, terminal device only needs to show the terminal generated according to operating resultDisplay interface reduces the data processing amount of terminal device.
The data transmission method that the embodiment of the present disclosure provides, the service request that receiving terminal apparatus is sent, and execute instructionOperation, will need originally terminal device execute operation executed by server, terminal device only need to receive server transmissionDisplay interface and display, the hardware resource requirements of terminal device are transferred to server, server can be as the case may beOperation is executed to the service request distribution hardware resource of terminal device, solves the problems, such as that terminal device hardware resource is limited, moreGood meets user demand.
Based on the data transmission method that the corresponding embodiment of above-mentioned Fig. 1 provides, the embodiment of the present disclosure provides a kind of cloud terminalSystem is able to carry out data transmission method described in the corresponding embodiment of above-mentioned Fig. 1, as shown in Fig. 2, cloud terminal system packetTerminal device and server are included, terminal device includes display screen and communication module;Server includes session management module and interconnectionNetwork technology (English: Internet Technology, IT) infrastructure.
Terminal device can send service request to server, and receive the terminal display interface of server transmission.Wherein,Display screen is used to log in and open new in booting, certification in application, reporting current resolution and screen message, works normallyWhen, the terminal display interface of display server transmission.Communication module is used to carry out data transmission between server, communication moduleIt can support Wireless Fidelity (English: Wireless Fidelity, WiFi) communication function, can also support 3G/4G/5G etc. to moveDynamic mechanics of communication can also support the mechanicss of communication such as Internet of Things, the disclosure to this with no restriction.
Server has access to internet, is carried out data transmission by internet and other equipment, and and terminal deviceConnection, the operation for receiving the service request of its transmission and executing instruction generate terminal display interface according to operating result and are sent toTerminal device.Wherein, IT infrastructure includes hardware resource, is mounted with that APP, IT infrastructure can also carry out data and deposit thereonStorage.The operation that IT infrastructure can be executed instruction according to the service request that terminal device is sent, and generate terminal and show boundaryFace.Session management module is used for the display information according to IT infrastructure, and is carried out in a manner of image pixel to the display informationCoding, is then sent to terminal device, session management module by dedicated screen message transmission channel for the information after codingIt is also used to be distributed the different data received.
Based on the data transmission method that the corresponding embodiment of above-mentioned Fig. 1 provides, the embodiment of the present disclosure provides a kind of data biographyTransmission method, this method can be applied to server and terminal device, for example, terminal device can be smart phone, tablet computer,Smartwatch etc., the present embodiment by user on the terminal device using APP for be illustrated, do not represent the disclosure and be confined toThis.This method can be applied to cloud terminal system described in the corresponding embodiment of above-mentioned Fig. 2, referring to shown in Fig. 3, this implementationExample provide data transmission method the following steps are included:
301, data transmission link is established between terminal device and server.
The data transmission link may include dedicated control transmission channel, and dedicated control transmission channel, which is used for transmission service, asksIt asks.Data transmission link can also include sensor session channel, power management session channel, external data storage session channelDeng the disclosure is without limitation.
302, terminal device sends service request to server.
Service request can be user by carrying out touch control operation generation on the touchscreen, be also possible on terminal deviceSensor according to testing result generate.In the present embodiment, which, which is used to indicate, is executed instruction in target APPOperation.
303, after server receives the service request that terminal device is sent, hardware resource is distributed for service request.
304, the operation that server calls execute instruction in target APP for the hardware resource of service request distribution.
It should be noted that executed instruction in target APP operation when, if instruction operation needs and internet intoRow data interaction, then server calls Microsoft Loopback Adapter carries out network data transmission.
305, server generates terminal display interface according to operating result.
In the present embodiment, the operation of instruction is executed in target APP, so terminal display interface is target APPDisplay interface.
306, server carries out Image Acquisition to terminal display interface and image encodes.
307, server sends terminal display interface to terminal device.
308, terminal device carries out image decoding and display terminal display interface to terminal display interface.
Based on the data transmission method that the corresponding embodiment of above-mentioned Fig. 3 provides, the embodiment of the present disclosure provides a kind of user and steps onRecording method allows user to log in, the party before executing for the data transmission method provided in the corresponding embodiment of Fig. 3Method can be applied to server and terminal device, for example, terminal device can be smart phone, tablet computer, smartwatch etc..This method can be applied to cloud terminal system described in the corresponding embodiment of above-mentioned Fig. 2, referring to shown in Fig. 4, the present embodimentThe user login method of offer the following steps are included:
401, terminal device opening initialization shows the login interface being locally stored.
402, terminal device and server establish data transmission link.
403, terminal device sends initialization information to server.
Initialization information be used to indicate the network identity of terminal device, the original state of display screen, each sensor justIt is one or more in the information such as beginning state.
404, terminal device generates booting logon information according to the information that user inputs.
Booting logon information includes the account name and modification logging of user, and booting logon information is provided for requesting for userService.
It should be noted that the information of user's input may include that user is inputted using touch screen and preset input methodAccount name, modification logging and login authentication code of user etc..
405, terminal device sends booting logon information to server.
406, server is verified according to booting logon information.
407, server generates the starting-up interface of user in the account name and correct modification logging for determining user.
The display interface of user can be pre-stored, be also possible to regenerate after being proved to be successful, the present embodimentFor regenerating the starting-up interface of user after being proved to be successful, does not represent the disclosure and be confined to this.
408, server carries out image coding to the starting-up interface of user and is sent to terminal device.
409, terminal device carries out image decoding to the starting-up interface of user and shows.
The data transmission method that the embodiment of the present disclosure provides, the service request that receiving terminal apparatus is sent, and execute instructionOperation, will need originally terminal device execute operation executed by server, terminal device only need to receive server transmissionDisplay interface and display, the hardware resource requirements of terminal device are transferred to server, server can be as the case may beOperation is executed to the service request distribution hardware resource of terminal device, solves the problems, such as that terminal device hardware resource is limited, moreGood meets user demand.
Based on the corresponding embodiment of above-mentioned Fig. 1-Fig. 4, the embodiment of the present disclosure provides a kind of data transmission system, for executingMethod described in the corresponding embodiment of above-mentioned Fig. 1-Fig. 4, as shown in figure 5, the data transmission system 50 includes: server501 and terminal device 502;
Wherein, terminal device 502, for sending service request to server 501, service request is used to indicate server501 operations executed instruction;
Server 501, for the service request that receiving terminal apparatus 502 is sent, the behaviour executed instruction according to service requestMake, and terminal display interface is generated according to operating result, terminal display interface includes at least one pixel;
Server 501 is also used to carry out terminal display interface Image Acquisition and image coding, and to terminal device 502Send terminal display interface
Terminal device 502 is also used to carry out image decoding to terminal display interface and show.
In one embodiment, terminal device 502 are also used to that service request is sent to service by Back Control ChannelDevice 501, Back Control Channel is used for transmission service request.
In one embodiment, server 501 are also used to be distributed to service request by session control channel correspondingUpper layer application, session control channel are used to service request being transmitted to corresponding upper layer application.
In one embodiment, terminal device 502 are also used to send sensor information, sensor information to server 501It is used to indicate the testing result of the sensor on terminal device 502;
Server 501 is also used to receive heat transfer agent, and sensor information is distributed to correspondence by sensor session channelUpper layer application, sensor session channel is used for transmitting sensor information to corresponding upper layer application.
In one embodiment, the operation of instruction includes passing through the Internet transmission network data;
Terminal device 502 is also used to send network data to server 501;
Server 501 is also used to that network data is distributed to corresponding upper layer application, net by network data transmission channelNetwork data transmission channel is used for network data transmission to corresponding upper layer application.
In one embodiment, server 501 are also used to receiving network data, according to service request, utilize Microsoft Loopback AdapterNetwork data is encoded and is sent.
In one embodiment, the operation of instruction includes storage target data;
Terminal device 502 is also used to send target data to server 501;
Server 501 is also used to store the storage mould that target data is transmitted to server 501 by session channel by dataBlock, data storage session channel are used to for target data being transmitted to the memory module of server 501.
In one embodiment, server 501 are also used to receive target data, and according to service request, target data is depositedStorage is in memory space.
In one embodiment, terminal device 502 are also used to send booting logon information to server 501, and booting logs inInformation includes the account name and modification logging of user, and booting logon information provides service for requesting for user;
Server 501 is also used to receive booting logon information, in the account name and correct modification logging for determining user,The starting-up interface of user is sent to terminal device 502;
Terminal device 502 is also used to receive the starting-up interface of user, and shows the starting-up interface of the user received.
The data transmission system that the embodiment of the present disclosure provides, the service request that receiving terminal apparatus is sent, and execute instructionOperation, will need originally terminal device execute operation executed by server, terminal device only need to receive server transmissionDisplay interface and display, the hardware resource requirements of terminal device are transferred to server, server can be as the case may beOperation is executed to the service request distribution hardware resource of terminal device, solves the problems, such as that terminal device hardware resource is limited, moreGood meets user demand.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed hereinIts embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes orPerson's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosureOr conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by followingClaim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, andAnd various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.