Disclosure of Invention
Embodiments of the present invention provide a data sharing method and system, which are used to solve the problems in the background art.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
a data sharing method specifically comprises the following steps:
receiving a sharing connection request sent by a mobile terminal, acquiring user information according to the sharing connection request, and establishing a sharing connection channel with the mobile terminal;
receiving a book selection signal sent by the mobile terminal through the shared connecting channel, generating selected book data according to the book selection signal, and sending the selected book data to the mobile terminal through the shared connecting channel;
receiving a book reading request sent by the mobile terminal through the shared connecting channel, loading a target reading book according to the book reading request, and transmitting the target reading book to the mobile terminal through the shared connecting channel on line;
calculating the signal connection strength of the shared connection channel in real time, comparing the signal connection strength with a preset basic connection strength, and interrupting the online transmission of the target reading book and generating an interruption transmission signal when the signal connection strength is smaller than the basic connection strength;
and recording the reading progress according to the interrupt transmission signal and the user information, generating user reading progress data, and performing cloud storage on the user reading progress data.
As a further limitation of the technical solution of the embodiment of the present invention, the receiving a shared connection request sent by a mobile terminal, obtaining user information according to the shared connection request, and establishing a shared connection channel with the mobile terminal specifically includes the following steps:
receiving a sharing connection request sent by a mobile terminal;
analyzing the sharing connection request to acquire user information;
and establishing a shared connection channel between the mobile terminal and the mobile terminal according to the shared connection request.
As a further limitation of the technical solution of the embodiment of the present invention, the receiving a book selection signal sent by the mobile terminal through the shared connection channel, generating selected book data according to the book selection signal, and sending the selected book data to the mobile terminal through the shared connection channel specifically includes the following steps:
sending a preset book searching and displaying interface to a mobile terminal through the shared connecting channel;
when a user searches and selects books in the book searching and displaying interface, receiving a book selecting signal sent by the mobile terminal through the shared connecting channel;
generating selected book data according to the book selection signal;
and sending the selected book data to the mobile terminal through the shared connecting channel.
As a further limitation of the technical solution of the embodiment of the present invention, the receiving a book reading request sent by the mobile terminal through the shared connection channel, loading a target reading book according to the book reading request, and transmitting the target reading book to the mobile terminal through the shared connection channel on line specifically includes the following steps:
after completing the book searching and selecting, the user receives a book reading request sent by the mobile terminal through the shared connecting channel;
analyzing the book reading request to determine a target reading book;
and loading a target reading book from a preset book database, and transmitting the target reading book to the mobile terminal on line through the shared connecting channel.
As a further limitation of the technical solution of the embodiment of the present invention, the calculating a signal connection strength of the shared connection channel in real time, comparing the signal connection strength with a preset basic connection strength, and when the signal connection strength is smaller than the basic connection strength, interrupting online transmission of the target reading book, and generating an interruption transmission signal specifically includes the following steps:
calculating the signal connection strength of the shared connection channel in real time;
judging whether the signal connection strength is smaller than a preset basic connection strength;
when the signal connection strength is smaller than the basic connection strength, interrupting the online transmission of the target reading book and generating an interruption transmission signal;
and when the signal connection strength is not less than the basic connection strength, maintaining the online transmission of the target reading book.
As a further limitation of the technical solution of the embodiment of the present invention, the recording a reading progress according to the interrupt transmission signal and the user information to generate user reading progress data, and performing cloud storage on the user reading progress data specifically includes the following steps:
recording progress according to the interrupt transmission signal to generate book reading progress data;
generating user reading progress data according to the book reading progress data and the user information;
and carrying out cloud storage on the user reading progress data.
The utility model provides a data sharing system, the system includes connection request acceptance processing unit, selects signal acceptance processing unit, target books online transmission unit, signal connection intensity comparison unit and user reading progress cloud storage unit, wherein:
the connection request receiving and processing unit is used for receiving a shared connection request sent by a mobile terminal, acquiring user information according to the shared connection request and establishing a shared connection channel with the mobile terminal;
the selection signal receiving and processing unit is used for receiving book selection signals sent by the mobile terminal through the shared connecting channel, generating selection book data according to the book selection signals, and sending the selection book data to the mobile terminal through the shared connecting channel;
the target book online transmission unit is used for receiving a book reading request sent by the mobile terminal through the shared connecting channel, loading a target reading book according to the book reading request, and transmitting the target reading book to the mobile terminal through the shared connecting channel online;
the signal connection strength comparison unit is used for calculating the signal connection strength of the shared connection channel in real time, comparing the signal connection strength with a preset basic connection strength, and when the signal connection strength is smaller than the basic connection strength, interrupting the online transmission of the target reading book and generating an interrupted transmission signal;
and the user reading progress cloud storage unit is used for recording the reading progress according to the interruption transmission signal and the user information, generating user reading progress data and carrying out cloud storage on the user reading progress data.
As a further limitation of the technical solution of the embodiment of the present invention, the connection request receiving and processing unit specifically includes:
a connection request receiving module, configured to receive a shared connection request sent by a mobile terminal;
the user information acquisition module is used for analyzing the sharing connection request and acquiring user information;
and the shared channel establishing module is used for establishing a shared connection channel between the mobile terminal and the shared connection request according to the shared connection request.
As a further limitation of the technical solution of the embodiment of the present invention, the selection signal receiving and processing unit specifically includes:
the display interface sending module is used for sending a preset book searching display interface to the mobile terminal through the shared connecting channel;
the selection signal receiving module is used for receiving a book selection signal sent by the mobile terminal through the shared connecting channel when a user searches and selects books in the book searching and displaying interface;
the selected data generating module is used for generating selected book data according to the book selecting signal;
and the selected data sending module is used for sending the selected book data to the mobile terminal through the shared connecting channel.
As a further limitation of the technical solution of the embodiment of the present invention, the target book online transmission unit specifically includes:
the book request receiving module is used for receiving a book reading request sent by the mobile terminal through the shared connecting channel after a user finishes book searching and selecting;
the target book determining module is used for analyzing the book reading request and determining a target reading book;
and the book online transmission module is used for loading the target reading book from a preset book database and transmitting the target reading book to the mobile terminal on line through the shared connecting channel.
Compared with the prior art, the invention has the beneficial effects that:
the embodiment of the invention establishes a shared connection channel; transmitting a target reading book on line; when the signal connection strength is smaller than the basic connection strength, interrupting the on-line transmission of the target reading book; and cloud storage user reading progress data. The method can establish a sharing connection channel between the mobile terminal and the mobile terminal according to a sharing connection request sent by the mobile terminal, receive a book selection signal and a book reading request of the mobile terminal through the sharing connection channel, further transmit a target reading book to the mobile terminal on line, and interrupt the on-line transmission of the target reading book when the signal connection strength is smaller than the basic connection strength, so that massive electronic book resources can be provided for a user at a reading angle, the user can conveniently find interesting electronic book reading, and the on-line transmission of the target reading book can be interrupted when the user leaves the reading angle, thereby effectively avoiding electronic book data from being stolen.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It can be understood that, because the conventional reading corner can only place paper books, and the space of the reading corner is limited, the number of placed paper books is small, and therefore many users cannot find books in the reading corner. With the rise of the e-book, some reading corners can provide the download of the e-book, and although the user can find out the interesting book from the massive e-book data, the user does not directly purchase the related e-book, and if a complete download mode is directly provided, the e-book data is easily stolen, thereby causing the piracy problem of the e-book.
In order to solve the above problem, in the embodiments of the present invention, a shared connection channel is established; transmitting a target reading book on line; when the signal connection strength is smaller than the basic connection strength, interrupting the on-line transmission of the target reading book; and cloud storage user reading progress data. The method can establish a sharing connection channel between the mobile terminal and the mobile terminal according to a sharing connection request sent by the mobile terminal, receive a book selection signal and a book reading request of the mobile terminal through the sharing connection channel, further transmit a target reading book to the mobile terminal on line, and interrupt the on-line transmission of the target reading book when the signal connection strength is smaller than the basic connection strength, so that massive electronic book resources can be provided for a user at a reading angle, the user can conveniently find interesting electronic book reading, the on-line transmission of the target reading book can be interrupted when the user leaves the reading angle, and electronic book data are effectively prevented from being stolen.
Fig. 1 shows a flow chart of a method provided by an embodiment of the invention.
Specifically, the data sharing method specifically includes the following steps:
step S101, receiving a sharing connection request sent by a mobile terminal, obtaining user information according to the sharing connection request, and establishing a sharing connection channel with the mobile terminal.
In the embodiment of the invention, after a user carries a mobile terminal to enter a reading angle, the user can send a sharing connection request through the mobile terminal, establish a sharing connection channel with the mobile terminal by receiving the sharing connection request sent by the mobile terminal, and acquire user information by analyzing the sharing connection request.
It can be understood that the shared connection request sent by the mobile terminal includes the user information corresponding to the mobile terminal, and therefore, the user information is extracted by analyzing the shared connection request. The user information may be a name, a mobile phone number, and the like of the user.
Specifically, fig. 2 shows a flowchart of establishing a shared connection channel in the method provided by the embodiment of the present invention.
In a preferred embodiment of the present invention, the receiving a shared connection request sent by a mobile terminal, acquiring user information according to the shared connection request, and establishing a shared connection channel with the mobile terminal specifically includes the following steps:
in step S1011, the shared connection request sent by the mobile terminal is received.
Step S1012, analyzing the shared connection request to obtain user information.
Step S1013, establishing a shared connection channel with the mobile terminal according to the shared connection request.
Further, the data sharing method further comprises the following steps:
and step S102, receiving a book selection signal sent by the mobile terminal through the shared connecting channel, generating selected book data according to the book selection signal, and sending the selected book data to the mobile terminal through the shared connecting channel.
In the embodiment of the invention, after a shared connection channel between the mobile terminal and the mobile terminal is established, a preset book searching and displaying interface is sent to the mobile terminal through the shared connection channel, the book searching and displaying interface can be displayed on the mobile terminal, a user can search and select books through the book searching and displaying interface on the mobile terminal, a book selecting signal is generated on the mobile terminal, the mobile terminal sends the generated book selecting signal through the shared connection channel, and selected book data is generated by receiving the book selecting signal and sent to the mobile terminal through the shared connection channel, so that the results of book searching and selecting performed by the user in the book searching and displaying interface on the mobile terminal are displayed in real time.
Specifically, fig. 3 shows a flow chart of the book selection signal receiving process in the method according to the embodiment of the present invention.
In an embodiment of the present invention, the receiving a book selection signal sent by the mobile terminal through the shared connection channel, generating selected book data according to the book selection signal, and sending the selected book data to the mobile terminal through the shared connection channel specifically includes the following steps:
and step S1021, sending a preset book searching and displaying interface to the mobile terminal through the shared connecting channel.
Step S1022, when the user searches and selects books on the book search display interface, the user receives a book selection signal sent by the mobile terminal through the shared connection channel.
And S1023, generating book selection data according to the book selection signal.
And step S1024, sending the selected book data to the mobile terminal through the shared connecting channel.
Further, the data sharing method further comprises the following steps:
step S103, receiving a book reading request sent by the mobile terminal through the shared connecting channel, loading a target reading book according to the book reading request, and transmitting the target reading book to the mobile terminal on line through the shared connecting channel.
In the embodiment of the invention, after completing book search and selection, a user can select a book to be read, a book reading request is generated on the mobile terminal, the mobile terminal sends the book reading request through the shared connecting channel, a target reading book which the user wants to read is determined by receiving the book reading request sent by the mobile terminal through the shared connecting channel, the target reading book is loaded in a preset book database, and the loaded target reading book is transmitted to the mobile terminal on line through the shared connecting channel.
It can be understood that, for the online transmission of the target reading book, the target reading book is divided into a plurality of books to transmit data, and the data is gradually transmitted to the mobile terminal through the shared connecting channel. Specifically, the book transmission data of the first part is transmitted firstly, after the user finishes reading the book transmission data of the first part, the book transmission data of the second part is transmitted to the mobile terminal, and after the user finishes the book content corresponding to the book transmission data of the first part, the book transmission data of the first part on the mobile terminal is deleted, so that the situation that the mobile terminal of the user directly obtains a complete target reading book is avoided, and therefore the situation that the temporarily read book data is stolen without being purchased by the user is avoided.
Specifically, fig. 4 shows a flowchart of book reading request receiving processing in the method provided by the embodiment of the present invention.
In a preferred embodiment provided by the present invention, the receiving a book reading request sent by the mobile terminal through the shared connection channel, loading a target reading book according to the book reading request, and transmitting the target reading book to the mobile terminal through the shared connection channel on line specifically includes the following steps:
and step S1031, after the user finishes the book searching and selecting, receiving a book reading request sent by the mobile terminal through the shared connecting channel.
Step S1032 analyzes the book reading request, and determines the target reading book.
Step S1033, loading a target reading book from a preset book database, and transmitting the target reading book to the mobile terminal on line through the shared connection channel.
Further, the data sharing method further comprises the following steps:
and step S104, calculating the signal connection strength of the shared connection channel in real time, comparing the signal connection strength with a preset basic connection strength, and interrupting the online transmission of the target reading book and generating an interruption transmission signal when the signal connection strength is smaller than the basic connection strength.
In the embodiment of the invention, the signal connection strength of the shared connection channel is calculated in real time, and is compared with the preset basic connection strength to judge whether the signal connection strength is smaller than the basic connection strength. When the signal connection strength is smaller than the basic connection strength, indicating that the user and the mobile terminal leave the reading angle, interrupting the online transmission of the target reading book at the moment, and generating an interruption transmission signal; when the signal connection strength is not less than the basic connection strength, the user and the mobile terminal are still at the reading angle, and the online transmission of the target reading book is kept, so that the normal reading of the user is ensured.
Specifically, fig. 5 shows a flowchart of signal connection strength calculation comparison in the method provided by the embodiment of the present invention.
In a preferred embodiment of the present invention, the calculating a signal connection strength of the shared connection channel in real time, comparing the signal connection strength with a preset basic connection strength, and when the signal connection strength is smaller than the basic connection strength, interrupting online transmission of the target reading book and generating an interruption transmission signal specifically includes the following steps:
step S1041, calculating the signal connection strength of the shared connection channel in real time.
Step S1042, determining whether the signal connection strength is less than a preset basic connection strength.
And S1043, when the signal connection strength is smaller than the basic connection strength, interrupting the online transmission of the target reading book and generating an interruption transmission signal.
And step S1044, when the signal connection strength is not less than the basic connection strength, maintaining the online transmission of the target reading book.
Further, the data sharing method further comprises the following steps:
and step S105, recording reading progress according to the interrupt transmission signal and the user information, generating user reading progress data, and performing cloud storage on the user reading progress data.
In the embodiment of the invention, after the interrupt transmission signal is generated, the reading progress on the mobile terminal is recorded, the book reading progress data is generated, the user reading progress data is generated by combining the user information, the user reading progress data is cloud-stored, and the user can conveniently start continuous reading of the corresponding target reading book according to the cloud-stored user reading progress data when entering any reading angle next time.
Specifically, fig. 6 shows a flowchart of reading progress record cloud storage in the method provided by the embodiment of the present invention.
In a preferred embodiment of the present invention, the recording a reading progress according to the interrupt transmission signal and the user information, generating user reading progress data, and performing cloud storage on the user reading progress data specifically includes the following steps:
and step S1051, recording the progress according to the interrupt transmission signal, and generating book reading progress data.
Step S1052, generating the user reading progress data according to the book reading progress data and the user information.
And step S1053, carrying out cloud storage on the user reading progress data.
Further, fig. 7 is a diagram illustrating an application architecture of the system according to the embodiment of the present invention.
In another preferred embodiment, the present invention provides a data sharing system, including:
a connection request receiving andprocessing unit 101, configured to receive a shared connection request sent by a mobile terminal, acquire user information according to the shared connection request, and establish a shared connection channel with the mobile terminal.
In the embodiment of the present invention, after a user enters a reading angle with a mobile terminal, the user may send a shared connection request through the mobile terminal, and the connection request receivingprocessing unit 101 establishes a shared connection channel with the mobile terminal by receiving the shared connection request sent by the mobile terminal, and obtains user information by analyzing the shared connection request.
Specifically, fig. 8 shows a block diagram of a connection requestacceptance processing unit 101 in the system according to the embodiment of the present invention.
In a preferred embodiment provided by the present invention, the connectionrequest receiving unit 101 specifically includes:
the connectionrequest receiving module 1011 is configured to receive a shared connection request sent by the mobile terminal.
A userinformation obtaining module 1012, configured to analyze the shared connection request to obtain user information.
A sharedchannel establishing module 1013, configured to establish a shared connection channel with the mobile terminal according to the shared connection request.
Further, the data sharing system further includes:
and the selection signal receiving andprocessing unit 102 is configured to receive a book selection signal sent by the mobile terminal through the shared connection channel, generate selection book data according to the book selection signal, and send the selection book data to the mobile terminal through the shared connection channel.
In the embodiment of the present invention, after a shared connection channel between the mobile terminal and the selection signal receiving andprocessing unit 102 is established, a preset book search and display interface is sent to the mobile terminal through the shared connection channel, the book search and display interface can be displayed on the mobile terminal, a user can search and select books through the book search and display interface on the mobile terminal, a book selection signal is generated on the mobile terminal, the mobile terminal sends the generated book selection signal through the shared connection channel, the selection signal receiving andprocessing unit 102 generates selection book data by receiving the book selection signal, and sends the selection book data to the mobile terminal through the shared connection channel, so that a result of book search and selection performed by the user in the book search and display interface on the mobile terminal is displayed in real time.
Specifically, fig. 9 shows a block diagram of the structure of the selection signal receivingprocessing unit 102 in the system according to the embodiment of the present invention.
In a preferred embodiment provided by the present invention, the selection signal receiving andprocessing unit 102 specifically includes:
and a displayinterface sending module 1021, configured to send a preset book search display interface to the mobile end through the shared connection channel.
The selectionsignal receiving module 1022 is configured to receive, through the shared connection channel, a book selection signal sent by the mobile terminal when a user searches and selects a book in the book search display interface.
And a selectiondata generation module 1023 for generating selection book data according to the book selection signal.
And a selecteddata sending module 1024, configured to send the selected book data to the mobile terminal through the shared connection channel.
Further, the data sharing system further includes:
and the target bookonline transmission unit 103 is configured to receive a book reading request sent by the mobile terminal through the shared connection channel, load a target reading book according to the book reading request, and transmit the target reading book to the mobile terminal through the shared connection channel online.
In the embodiment of the present invention, after completing book search and selection, a user may select a book to be read, generate a book reading request on a mobile terminal, the mobile terminal sends the book reading request through a shared connection channel, the target bookonline transmission unit 103 determines a target reading book that the user wants to read by receiving the book reading request sent by the mobile terminal through the shared connection channel, loads the target reading book in a preset book database, and transmits the loaded target reading book to the mobile terminal online through the shared connection channel.
Specifically, fig. 10 shows a block diagram of a structure of the target bookonline transmission unit 103 in the system according to the embodiment of the present invention.
In a preferred embodiment provided by the present invention, the target bookonline transmission unit 103 specifically includes:
and a bookrequest receiving module 1031, configured to receive a book reading request sent by the mobile terminal through the shared connection channel after the user completes book search and selection.
A targetbook determining module 1032, configured to analyze the book reading request, and determine a target reading book.
The bookonline transmission module 1033 is configured to load a target reading book from a preset book database, and transmit the target reading book to the mobile terminal online through the shared connection channel.
Further, the data sharing system further includes:
and the signal connectionstrength comparison unit 104 is configured to calculate the signal connection strength of the shared connection channel in real time, compare the signal connection strength with a preset basic connection strength, interrupt online transmission of the target reading book when the signal connection strength is smaller than the basic connection strength, and generate an interrupt transmission signal.
In this embodiment of the present invention, the signal connectionstrength comparing unit 104 performs real-time calculation on the signal connection strength of the shared connection channel, and compares the signal connection strength with a preset basic connection strength to determine whether the signal connection strength is smaller than the basic connection strength. When the signal connection strength is smaller than the basic connection strength, the user and the mobile terminal leave the reading angle, the online transmission of the target reading book is interrupted, and a transmission interruption signal is generated; when the signal connection strength is not less than the basic connection strength, the user and the mobile terminal are still at the reading angle, and the online transmission of the target reading book is kept, so that the normal reading of the user is ensured.
And the user reading progresscloud storage unit 105 is used for recording the reading progress according to the interruption transmission signal and the user information, generating user reading progress data, and performing cloud storage on the user reading progress data.
In the embodiment of the present invention, after the interrupt transmission signal is generated, the user reading progresscloud storage unit 105 records the reading progress on the mobile terminal, generates book reading progress data, generates user reading progress data in combination with user information, and performs cloud storage on the user reading progress data, so that when a user enters any reading corner next time, the user can start continuous reading of a corresponding target reading book according to the cloud-stored user reading progress data.
In summary, the embodiment of the present invention can establish the shared connection channel between the mobile terminal and the mobile terminal according to the shared connection request sent by the mobile terminal, receive the book selection signal and the book reading request of the mobile terminal through the shared connection channel, further transmit the target reading book to the mobile terminal on line, and interrupt the on-line transmission of the target reading book when the signal connection strength is smaller than the basic connection strength, thereby providing a user with a large amount of e-book resources at the reading angle, facilitating the user to find the interested e-book reading, and interrupt the on-line transmission of the target reading book when the user leaves the reading angle, thereby effectively avoiding the e-book data from being stolen.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in various embodiments may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that various changes and modifications can be made by those skilled in the art without departing from the spirit of the invention, and these changes and modifications are all within the scope of the invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.