CN110445839A - It is a kind of to realize cross-platform data communications method for electronic reading terminal - Google Patents

It is a kind of to realize cross-platform data communications method for electronic reading terminal Download PDF

Info

Publication number
CN110445839A
CN110445839A CN201910611335.XA CN201910611335A CN110445839A CN 110445839 A CN110445839 A CN 110445839A CN 201910611335 A CN201910611335 A CN 201910611335A CN 110445839 A CN110445839 A CN 110445839A
Authority
CN
China
Prior art keywords
file
terminal
platform
data communications
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910611335.XA
Other languages
Chinese (zh)
Inventor
王凯平
李萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910611335.XA priority Critical patent/CN110445839A/en
Publication of CN110445839A publication Critical patent/CN110445839A/en
Pending legal-status Critical Current

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The present invention proposes a kind of to realize cross-platform data communications method for electronic reading terminal, the electronic reading terminal includes NB-IoT communication module, this method comprises: NB-IoT communication module sends connection request to server end fixed port in set time or place;The connection confirmation message that server end returns is received, connection is established in confirmation;2 end of server obtains existing file list information corresponding with the terminal, this document list information is determined based on the information that open platform is sent, to determine file transmission list and the corresponding file of transmission according to this document list information, the file of the transmission includes the message content of file identification and file packet attribute, and electronic reading terminal receives file based on the file transmission list that server-side is sent.The present invention can guarantee response and terminal reading contents of the terminal based on the event accuracy synchronous with user account data under the premise of terminal low-power consumption, long stand-by time.

Description

It is a kind of to realize cross-platform data communications method for electronic reading terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of realize cross-platform data communications method.
Background technique
Smart phone brings content abundant and application, and according to statistics, it is more than 2 that daily people, which spend in the time on mobile phone, A hour is even more.In routine use, reads message, news and e-book and occupy main time.Especially news and E-book, length is long, and reading time is long, and news and e-book constantly in time can continuous updating, user may daily It will read, but due to screen luminance of mobile phone height, and it is big to eye irritation directly to shine, thus prolonged use is easy to make The problems such as at visual fatigue and visual impairment, and prolonged use makes mobile telephone power consumption big, needs frequent charge.
To solve the above-mentioned problems, electronic ink display technology starts to occur, and with the shape of kindle electricity book reader Formula is widely accepted.Electronic ink display technology is illuminated compared with the display technologies such as traditional LC D or OLED using passive type, this Body does not shine, small to the stimulation of eyes, and good readability, low-power consumption, good contrast are still able to maintain under strong sunlight Etc. characteristics, become article, the ideal carrier for the word reads application such as books are read, although electronic ink display technology have it is many excellent Point, but it is also obvious that being exactly that refresh rate is not high, monochrome display is not appropriate for as the main of mobile phone the shortcomings that this technology Screen.There is the user of reading habit, it usually needs the special electric paper book for carrying similar kindle.But carry two electricity Sub- equipment is not convenient enough, moreover, electric paper book is not available the affluent resources on smart phone, has significant limitations, does not have at present There is any technical solution to can be realized the synchronization by the content on smart phone on associated electronic reading device, does not also have Have any technical solution can be realized it is cross-platform (such as smart phone wechat platform, electronic reading device service platform, And page end) instant content synchronization.Since nearly 2 years, especially 2016, with the large scale deployment of shared bicycle, narrowband Internet of Things (Narrow Band Internet of Things, NB-IoT) becomes an important branch of all things on earth internet. NB-IoT is implemented in cellular network, only consumes the bandwidth of about 180KHz, can be deployed directly into GSM network, UMTS network or LTE Network, to reduce lower deployment cost, realize smooth upgrade.NB-IoT is the emerging technology in one, the field IoT, supports low power consuming devices It is connected in the cellular data of wide area network, also referred to as low-power consumption wide area network (LPWAN).NB-IoT supports stand-by time length, to net The efficient connection of network connection request higher device.
In the prior art, intelligent water of the NB-IoT module usually as low-power consumption in (or original design intention) smart city Table, gas meter use.When being communicated with server, it is necessary to actively be requested from NB-IoT module to server, server After receiving request confirmation, communication connection (UDP/TCP) is established.Every time when communication, the IP address of NB-IoT module is communication operation Quotient base station is randomly assigned, and after the completion of communication (server push or NB-IoT module upload), module enters PSM mode (ultralow function Consume suspend mode), server can not wake up NB-IoT module at this time, also can not PUSH message to module.NB-IoT module is at this A little field applications, it is low that the biggest advantage is to occupied bandwidths, and makes the terminal device power consumption in smart city very low, but match Although the terminal device for having NB-IoT module has above-mentioned superior performance, do not find also to have in other field at present suitable Application.
Summary of the invention
In view of the above problems, it proposes on the application overcomes the above problem or at least be partially solved in order to provide one kind State the scheme of problem.One aspect of the present invention provides and a kind of realizes cross-platform data communication for electronic reading terminal Method, the electronic reading terminal include NB-IoT communication module, this method comprises: in set time or place, NB-IoT communication Module sends connection request to server end fixed port;It is true to send connection to terminal for connection request of the server based on terminal Recognize message;
Server end is corresponding with user according to terminal device ID and the User ID inquiry carried in the connection request Listed files, determine terminal need synchronized update file and update listed files, the file with opening platform be based on The file link information that user's request is sent is related;
After the electric terminal and server end establish connection, server sends the update file to electronic reading terminal The document content information that list and needs update;
Electronic reading terminal forms file content according to the document content information.
Optionally, before NB-IoT communication module sends connection request to server end fixed port, terminal establishes one Socket, to establish connection with server end.
Optionally, this method further include: file-file packet attribute, the electricity are added in the data packet of the file Sub- reading terminal transmits file according to file-file packet attribute and carries out correctness verification.
Optionally, this method further include: connection request that server end is sent according to NB-IoT communication module, existing file List information judges whether communication is abnormal.
Optionally, this method further includes having transmitted the end order that file issues, electronic reading terminal according to server end Into battery saving mode.
Optionally, this method further include: file content is assembled into the NB capsule data sequence of particular size;Text will be updated Part list and each data sequence data packet are sent to terminal.
Optionally, this method further include: configuration New IO thread pool, for the connection request of processing terminal, the thread Pond includes boss sets of threads and worker sets of threads, and the boss sets of threads is used to the connection request of processing terminal, described Worker sets of threads is used to handle listed files information.
Optionally, this method further include: utilize ServerBootstrap object transmitting boss sets of threads and worker thread Group.
Optionally, this method further include: according to listed files is updated, start to send file to terminal, comprising: call ServerBootstrap class method childHandler realizes class processing business.
Optionally, the class processing business includes text analyzing, the label that the data of user's publication are carried out with natural language And production.
Optionally, this method further include: pushed according to natural language processing label, user's portrait, location information to user Corresponding text file.
Optionally, the data communications method passes through platform of internet of things intermediary.
Optionally, this method further include: product model corresponding with terminal is established, so that platform of internet of things is according to the product Model is attached with terminal;
The format converting module for carrying out binary format and the conversion of JSON format is established, is called for platform of internet of things, so that Socket connection is carried out between the server end and platform of internet of things, and NB-IoT is based between the platform of internet of things and terminal Communications protocol connection.
The technical solution provided in the embodiment of the present application has at least the following technical effects or advantages: what the application proposed Data communications method is that terminal request is answered to carry out data transmission, so that power consumption of terminal is low, the present invention is utilized in down direction application The transmission of seldom communication link based on NB-IOT, data will not block, and be suitable for the textual datas such as news, e-book According to transmission;At electronic reading end when being read, since file data is obtained from server end, it is stored in this Ground, will not lead to any delay because of network transmission, and reading experience is good.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the treasured scroll terminal and the direct-connected schematic diagram of server end of the first embodiment;
Fig. 2 shows the communication processes of terminal;
Fig. 3 shows server end communication process;
Fig. 4 shows the treasured scroll terminal of second of embodiment and server end passes through third party's platform of internet of things intermediary The schematic diagram of connection.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Since electronic ink display technology is compared with the display technologies such as traditional LC D or OLED, illuminated using passive type, itself It does not shine, it is small to the stimulation of eyes, and good readability, low-power consumption, good contrast etc. are still able to maintain under strong sunlight Characteristic becomes the ideal carrier of the word reads applications such as article, books reading.Terminal proposed by the present invention is with applying electronic The terminal (hereinafter referred to as treasured scroll equipment) of the electronic ink screen of ink display technology.The electric ink display screen is very one section long In time, screen can show clearly word content not poweredly, and such feature allows terminal device single charge to use Time is significantly increased.Therefore the electronic reading terminal device configuration electric ink display screen being used in the present invention is as reading screen Curtain.
It was found that the biggest advantage is to occupied bandwidths is low for NB-IoT module, and its communication mode sets terminal Standby power consumption is very low, and the present invention attempts to solve electronic reading terminal equipment acquisition file content using nb-Iot communication module Technical problem, and then realize and smart phone content synchronization.
One aspect of the present invention, provide it is a kind of realize cross-platform data communications method, be used for electronic reading terminal Data transmission between server-side, which includes NB-IoT communication module, low-power consumption display screen, data processing Module, antenna and eSIM chip etc..
This method comprises:
At the appointed time or position, terminal to server end fixed port send connection request;
Server end verifies connection request, and establishes connection;
Terminal to server end sends data and updates request;
After received server-side to the transmission request of file, server is checked according to terminal device ID and corresponding User ID The purchase books of middle user, push the corresponding database projects of projects such as news at collection article, determine that terminal needs synchronized update File, the information relevant to User ID that the determination process is sent based on open platform, and according to customized logical Agreement is interrogated, these e-books, article and news are assembled into the NB capsule data sequence of particular size, listed files will be updated And address returns to terminal;
After terminal receives the confirmation message of server end return and updates list, according to file address information, successively to clothes The request transmission of business device end;
After received server-side to the transmission request of file, according to customized communications protocol, divides file and be assembled into The NB sequence of data packet of particular size;The sequence of data packet of the transmission includes file identification and file packet attribute, verification The contents such as position.
The present invention can guarantee response of the terminal based on event, and eventually under the premise of terminal low-power consumption, long stand-by time The accuracy for holding reading content synchronous with user account data.
In the above-mentioned methods, the purchase books of user, collection article, the corresponding database of push news item in server Project, from a wealth of sources, the first embodiment are as follows:
It is operated according to the first client (preferably wechat client) of user's smart phone to the first platform (first visitor The corresponding server in family end, preferably wechat cloud) treasured scroll read request is sent, the treasured scroll read request includes file chain to be read Connect information;When sending treasured scroll read request to wechat cloud according to the wechat client operation of user's smart phone, can specifically lead to Cross the modes such as wechat forwarding, collection, purchase;First platform obtains corresponding file content according to the link information, and The file content is sent to the second platform (second service end in other words is the cloud or server of treasured scroll terminal service); In this embodiment, it needs in advance to bind smart phone wechat account and treasured scroll terminal device.Why preferably Wechat is can to load small routine because wechat is a kind of open platform, realize between wechat cloud and other third-party server Channel.
Second of embodiment are as follows: user carries out books purchase in electric business platform using smart phone, intelligent hand after purchase Treasured scroll read request comprising e-book link information and account identification information is sent to the first platform by machine, the first platform with Treasured scroll server communicates, and Xiang Mobao provides file content corresponding with the treasured scroll read request by server;Treasured scroll service There are two types of working methods altogether for device, and one is from the corresponding file content of electric business platform acquisition, then deposit file content in real time Server, and the listed files corresponding with treasured scroll terminal that timely updates are stored up, is sent out when treasured scroll terminal issues request, then by file It send to treasured scroll terminal.One is the request is first stored, corresponding text is obtained when reaching the scheduled update time, then from electric business platform Part content, after updating listed files, the content that will acquire is transmitted to treasured scroll terminal again.
The third embodiment are as follows: user obtains news or other texts using smart phone in third party's client Treasured scroll read request comprising article link information and account identification information is sent to server by chapter, by server according to The request obtains corresponding article content from the corresponding server of third party's client (hereinafter referred to as third-party server);Service There are two types of working methods altogether for device, and one is obtain corresponding article content, one kind from third-party server in real time according to the request First store the request, obtain corresponding article content when reaching the scheduled update time, then from third-party server, after acquisition and When to treasured scroll terminal transmit.
Treasured scroll terminal to server send obtain data content request, can by treasured scroll terminal default setting, can also by with Family sets itself, such as the 8 points of readings at night of user's habit can then will acquire 9 points at night of the time setting of data, black in this way Precious terminal can at night 9 points until 8 points of second night it is continual from server obtain file content, with guarantee at night 8 The content that point is read is to be buffered in the data of treasured scroll terminal local, hardly has any delay when so reading.
In the second platform and the communication process of treasured scroll terminal, treasured scroll terminal is established TCP/UDP with the second platform and is connect, and adopts With a kind of newly-designed NIO frame under existing socket socket communication agreement, the communication frame is as follows:
Above-mentioned communication frame has the characteristics that high concurrent, high robustness.
When sending file to terminal from server end, each file packet includes terminal serial number, protocol version, Yong Huxu Row number, file Hash codes, file packet sequence number, packet content-length and packet content.The design of communication protocol byte is as follows:
Message body design code is as follows:
The design of above-mentioned communication frame and message body can guarantee long file convenient for being synthesized, being verified in treasured scroll terminal Transmit the safety of the transmission under low bandwidth.
Above be used as a kind of specific embodiment, can between wechat and treasured scroll terminal sharing data, pass through others Embodiment can also realize that the instant communication clients such as mobile phone QQ and extensive smart phone read client and ink in fact Sharing data between precious terminal.
The specific implementation means that the second platform sends file content to treasured scroll terminal are specifically described below.
Fig. 1 shows treasured scroll terminal and a kind of direct-connected connection of server end.In this case, terminal device needs It is directly accessed internet.
As shown in Fig. 2, NB-IoT communication module sends connection request to server end fixed port in the set time;It connects The connection confirmation message that server end returns is received, connection is established in confirmation;The existing file stored in terminal is sent to server end List information, so that server-side determines file transmission list and the corresponding file of transmission according to this document list information, it is described The file of transmission includes the file transmission column that the message content of file identification and file packet attribute is sent based on server-side Table receives file.
In the present invention, terminal device keeps connecting with not needing long connection with server, and is only in the set time A period of time in server keep connect, receive the file of update.
In this application, NB-IoT module periodically inquires whether server has information needs to issue, which periodically inquires Process it is as follows, NB-IoT module periodically issues to server-side and establishes the request of Socket connection;After establishing connection, in client With server end it is direct-connected in the case where, client and server end can directly exchange data by TCP connection.
When server will issue data, then server, which can send relevant information to terminal, indicates data distributing, The information has the description for issuing data, such as size, needs to be divided into how many times etc..After module receives the information, report One gets out received information;After server receives the information, start to issue, the data format needs issued every time have Number, so that terminal can make up file packet.Module receives upper hair-like state after data, there are two types of state is general, one is Verification error, need to re-issue, one is verify successfully.Server continues to issue according to the judgement of the status information of upper hair or weight It is new to send.All files are sent completely the order that rear server issues an end, and module enters after receiving end order Psm (power saving mode) is waited according to clock and is carried out periodical inquiry next time.
Communication flow between treasured scroll terminal and server is as follows:
1) set time (such as morning 6:00), treasured scroll terminal to server end fixed port sends connection request handshake_ request_1。
2) received server-side returns to treasured scroll terminal check message handshake_confirm_1 to request;
3) treasured scroll terminal receives the handshake information handshake_confirm_1 of server end return, and confirmation connection can Existing file list information file_list_1 to establish, in concurrent ink delivery treasured terminal;
4) received server-side compares user account information user_id, user_ to the file_list of treasured scroll terminal The listed files user_file_hashset of properties etc., the purchase of inquiry client server end or collection, if it find that having The file content of update, news directly send file transmission list transfer_confirm_with_ to treasured scroll terminal file_list。
5) treasured scroll terminal is begun preparing one by one after receiving transfer_confirm_with_file_list Reception file.
6) server end is sending file transmission list transfer_confirm_with_file_ to treasured scroll terminal After list, start to transmit file.Each file also in the file packet package of Ying Xiang treasured scroll terminal transmission addition about File-file packet attribute message content: transfer_file_id_with_x/xx_th_package facilitates treasured scroll terminal It arranges upon completion of the transmission and verification is carried out to the correctness of file transmission.
As a kind of specific embodiment, wechat platform is utilized as the second platform in server end provided by the invention Opening, with server end or platform is used as, wechat platform is mainly responsible for wechat end small routine and hardware development platform, orders The operation of the system service programs such as the number of readding, service number and relevant user's operation position relevant to wechat client, are awarded user The operations such as power, payment, and the second platform provided by the invention is more responsible for related service program and the user behaviour of treasured scroll terminal Make, as the login of treasured scroll terminal user, the operation of user's treasured scroll account and with the editing and processing of file content and will be wait read The file data content of reading is sent on treasured scroll terminal device, and certainly, which can also be responsible for a series of and user location, payment Relevant system operatio.
As a kind of specific embodiment, server end is mainly made of six main modules: exception processing module, log Logging modle, data reception module, data transmission blocks, service management module, session management module.Wherein, abnormality processing mould Block is used to monitor the exception that NB-IoT communication occurs, the connection request sent with specific reference to NB-IoT communication module, existing file List information judges whether communication is abnormal, and is handled in time abnormal, so as to improve system stability;Log recording Module is for recording normal user's connection and transmission request, communication abnormality situation and the content of output etc.;Data reception Block is used to be managed user's connection, control, and can identify hardware terminal, user account, and according to customized communications protocol It explains that received nb-IoT equipment message carries out legitimate verification to user equipment and account, carries out legitimate verification;The industry Business processing module, for realizing specific service logic, the data that terminal is uploaded by applications client (including various differences Client) carry out data persistence processing, save, and user add using natural language processing algorithm NLP content, feel emerging The content of interest carries out the text analyzing based on NLP, marks, and according to NLP label+user's portrait+position, carries out extensive online text This NLP and text crawl, third party content IP exchange etc., to carry out the production of content and push to terminal.Data send mould Block, by the data publication of Service Processing Module to terminal, including being published to the hardware terminal (end equipped with electric ink display screen End), application terminal such as wechat small routine, service number, subscribe to number, and in line platform, cross-platform device and can be realized The content platform of content IP exchange agreement.Session management module is responsible for maintenance terminal when connecting server to session (meeting Words) storage and management, operation, the connection between maintenance terminal and server, and be more than the predetermined time do not operate when, break Open connection.
In order to realize above-mentioned module, and the connection of realization magnanimity terminal equipment and high concurrent asynchronous data downlink, for clothes Business device is configured.Specifically include: configuration New IO thread pool, for the connection request of processing terminal, the thread pool includes Boss sets of threads and worker sets of threads, the boss sets of threads are used to the connection request of processing terminal, the worker thread Group is used to handle existing file list information.As a kind of specific embodiment, transmitted using ServerBootstrap object Boss sets of threads and worker sets of threads.Because NIO itself is non-obstruction, his message selector Selector can be with The access of more clients is connected under single thread.In order to reinforce the performance of NIO, we construct thread pool, it is not necessary to wait When processing connection, thread is resettled, but thread use is directly taken from thread pool can be with after completing a task Utilize the other task of the thread process.It can guarantee that server end can establish connection, and energy with the terminal device of magnanimity in this way Completion task.
When Service Processing Module realizes service logic, call ServerBootstrap class method childHandler real Existing class processing business, the class processing business include the data of user's publication are carried out text analyzing, the label of natural language with And production, Service Processing Module push corresponding text to user according to natural language processing label, user's portrait, location information This document.It develops through the above configuration, the server end based on MQTT agreement, which is able to use, supports magnanimity connection, and can support To the high concurrent downlink asynchronous data of magnanimity terminal equipment.
It is specifically as follows to the configuration exploitation of server end:
1, NIO thread pool is configured
2, ServerBootstrap object is created, two thread pools of boss, work is transmitted, determines in ServerBootstrap Justice server-side " thread pool " corresponding relevant configuration is all the attribute started with child.
ServerBootstrap bootstrap=new ServerBootstrap ();//(2)
3, ServerBootstrap class method childHandler is called to realize that class handles specific business, listening port And connection is handled.
4, I/O event handles Handler:
5, it using ServerBootstrap object binding, begins listening for:
The application is based on asynchronous non-block type, event driven high performance network communications protocol and customized thread pool, In Massive concurrent data are capable of handling on Internet of Things communication architecture so that treasured scroll terminal device be able to using NB-IOT communication modes with Smart phone is synchronous, realizes supplement of the smart phone in terms of reading.
In treasured scroll terminal device and server end connection procedure, preferably using third party's platform of internet of things as Middle layer, as shown in Figure 4.In this embodiment, when communicating every time, the IP address of NB-IoT equipment is communication operator's base Station is randomly assigned.In order to which third party's platform of internet of things understands the ability and characteristic that treasured scroll terminal device has, need in Internet of Things The abstract model of a equipment of platform construction, so that platform understands the information such as service, attribute, the order that this equipment is supported.
Product model corresponding with terminal is established especially by profile exploitation, so that platform of internet of things is according to the product Model is attached with terminal.In product creation, if selection uses system template, system can be automatic according to device parameter Using corresponding profile template, developer can modify on the basis of this again, if selecting customized product template, need Profile is completely defined, service name, attribute and order are defined.Under each service, attribute and life may include It enables, the NB-IoT module and Internet of Things of configurating terminal device can also be carried out according to the actual conditions of equipment only comprising one of them Net platform uses CoAP protocol, and the payload of CoAP message is application layer data, and the format of application layer data is set by terminal Standby self-defining.Since terminal device is more demanding to power saving, application layer data does not use popular JSON format, but Using binary format, but platform of internet of things is communicated with application side using JSON format, it is therefore desirable to develop encoding and decoding Plug-in unit is called for platform of internet of things, to complete the conversion of binary format and JSON format.Equipment in reported data, if Data format is binary code stream, then needs to carry out encoding and decoding developing plug.Therefore need establish carry out binary format with The format converting module of JSON format conversion, is called for platform of internet of things, so that between the server end and platform of internet of things TCP connection is carried out, is connected between the platform of internet of things and terminal based on NB-IoT communications protocol.
After profile product model and encoding and decoding plug-in unit are built, server end calls telecommunications cloud platform, and " addition is set Standby API ", server end stores data after calling successfully, and formal equipment is added in telecommunications cloud platform.As a kind of specific Implement scene calls third party's platform of internet of things by third-party application before terminal device accesses third party's platform of internet of things " addition equipment API " interface register equipment in platform of internet of things, and the exclusive identification code of equipment (such as IMEI) is set as The identifying code of standby access platform.The Portable device unique identification when terminal device accesses third party's platform of internet of things completes equipment Access authentication.The true online process of terminal device is as follows:
1, device power checks card-like state, and signal is waited after normal and being networked, and Xu Chongqi after time-out reaches if restarting number 3 times, wait next heart time;
2, after equipment networks, access telecommunication platform operation is carried out, AT instruction flow is as follows:
- > > AT+CGSN=1//acquisition IMEI, it is 123456789012345 that IMEI, which is assumed below,
- > > AT+M2MCLINEW=180.101.147.115,5683, " urn:imei:123456789012345 ", 90//registered to telecommunications IOT.
- < <+M2MCLI:register success
- < <+M2MCLI:observer success
3, after being successfully accessed, start to interact.
1. interactive step of@is to send online information first:
- > > AT+M2MCLISEND=616c697665//transmission alive information
- < <+M2MCLI:notify success
2. server of@issues<AAT+START=123>after receiving alive information, and NB-IoT module is told to prepare to receive letter Breath, mode are to call transmitting order to lower levels api.As a kind of specific implementation scene, it is flat that Internet of Things is defined in equipment profile file The order that platform can be issued to equipment, third-party application (can be wechat small routine, service number, wechat robot, browser etc.) This interface can be called to equipment transmitting order to lower levels, configuration or the Service Properties for modifying equipment, to realize the control to terminal device. Platform of internet of things is there are two types of order issuing mechanism, and to issue immediately, platform of internet of things is received to be handed down to immediately after order and be set one kind It is standby, guarantee real-time, does not guarantee serial property.One kind issues for caching, and platform is cached after receiving order, reachable in equipment When be lined up serially issue, the response (ACK that NB-IoT module automatically replies) that platform receives previous order can just issue latter A order guarantees serial property, does not guarantee real-time.
@3.NB-IoT module receive following push represent receive that server issues be ready for sending file command:
- < <+M2MCLIRREV:4141542b53544152543d313233//representative will issue 123 groups of data,
Into reception pattern, sends and prepares to receive order:
- > > AT+M2MCLISEND=7265616479//ready
4. server of@carries out order of issuing the documents after receiving the information, and format is which group is preceding 8 bytes represent, greatly End mode, is followed by data, and after distributing one group of data every time, module, which receives, can all go up reception state.
After@5 is sent and after NB-IoT module finishes receiving, end order<AAT+STOP>is issued
@6NB-IoT module enters PSM mode after receiving end order, waits next active heartbeat.
Event driven content synchronization method proposed by the present invention or say be terminal and server-side communication means be suitble to Terminal with text reading function enables to power consumption of terminal extremely low, guarantees permanent stand-by time, and can not need to spend The time for taking any waiting network transmitting can obtain text and be read.
The technical solution provided in the embodiment of the present application has at least the following technical effects or advantages: what the application proposed Data communications method will not block, and be suitable for the word reads such as news, e-book, when being read, from local acquisition, It will not lead to any delay, and the low-power consumption for can be realized reading terminal because of network transmission, so that the use of terminal Time is permanent.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, In Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.

Claims (13)

1. a kind of realize cross-platform data communications method for electronic reading terminal, which is characterized in that the electronic reading terminal Including NB-IoT communication module, this method comprises: in set time or place, NB-IoT communication module is to server end fixing end Mouth sends connection request;
Connection request of the server based on terminal sends connection confirmation message to terminal;
Server end inquires text corresponding with user according to the terminal device ID and User ID carried in the connection request Part list determines that terminal needs the file of synchronized update and updates listed files, and the file and open platform are based on user Request the file link information sent related;
After the electric terminal and server end establish connection, server sends the update listed files to electronic reading terminal And the document content information for needing to update;
Electronic reading terminal forms file content according to the document content information.
2. data communications method according to claim 1, it is further characterized in that, in NB-IoT communication module to server end Before fixed port sends connection request, electronic reading terminal establishes a socket, to establish connection with server end.
3. data communications method according to claim 1 or 2, it is further characterized in that, it is added in the data packet of the file There is file-file packet attribute, the electronic reading terminal transmits file according to file-file packet attribute and carries out correctness school It tests.
4. data communications method according to claim 1 or 2, this method further include: server end is communicated according to NB-IoT Connection request, the existing file list information of module transmission judge whether communication is abnormal.
5. data communications method according to claim 1 or 2, this method further include, file has been transmitted according to server end The end order issued, electronic reading terminal enter battery saving mode.
6. data communications method according to claim 1 or 2, this method further include: be assembled into file content specific big Small NB capsule data sequence;Listed files will be updated and each data sequence forms data packet and is sent to terminal.
7. data communications method according to claim 1 or 2, this method further include: configuration New IO thread pool, for locating The connection request of terminal is managed, the thread pool includes boss sets of threads and worker sets of threads, and the boss sets of threads is used to locate The connection request of terminal is managed, the worker sets of threads is used to handle listed files information.
8. data communications method according to claim 7, this method further include: passed using ServerBootstrap object Pass boss sets of threads and worker sets of threads.
9. data communications method according to claim 7, this method further include: according to listed files is updated, start to end End sends file, comprising: ServerBootstrap class method childHandler is called to realize class processing business.
10. data communications method according to claim 9, the class processing business includes carrying out to the data of user's publication Text analyzing, label and the production of natural language.
11. data communications method according to claim 10, it is further characterized in that, this method further include: according to natural language Speech processing label, user's portrait, location information push corresponding text file to user.
12. -11 described in any item data communications methods according to claim 1, it is further characterized in that, the data communications method Pass through platform of internet of things intermediary.
13. data communications method according to claim 12, it is further characterized in that, this method further include: foundation and terminal Corresponding product model, so that platform of internet of things is attached according to the product model with terminal;
The format converting module for carrying out binary format and the conversion of JSON format is established, is called for platform of internet of things, so that described Socket connection is carried out between server end and platform of internet of things, is communicated between the platform of internet of things and terminal based on NB-IoT Agreement connection.
CN201910611335.XA 2019-07-08 2019-07-08 It is a kind of to realize cross-platform data communications method for electronic reading terminal Pending CN110445839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910611335.XA CN110445839A (en) 2019-07-08 2019-07-08 It is a kind of to realize cross-platform data communications method for electronic reading terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910611335.XA CN110445839A (en) 2019-07-08 2019-07-08 It is a kind of to realize cross-platform data communications method for electronic reading terminal

Publications (1)

Publication Number Publication Date
CN110445839A true CN110445839A (en) 2019-11-12

Family

ID=68429848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910611335.XA Pending CN110445839A (en) 2019-07-08 2019-07-08 It is a kind of to realize cross-platform data communications method for electronic reading terminal

Country Status (1)

Country Link
CN (1) CN110445839A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868349A (en) * 2019-11-27 2020-03-06 河钢数字技术股份有限公司 Distributed high-concurrency data acquisition and processing method and system in Internet of things environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008112038A1 (en) * 2007-03-09 2008-09-18 Amazon Technologies, Inc. Personalizing handheld electronic book readers
CN101681458A (en) * 2007-03-29 2010-03-24 亚马逊技术股份有限公司 Content purchase and transfer management for reader device
CN205788901U (en) * 2016-05-17 2016-12-07 重庆蓝岸通讯技术有限公司 E-book reader
CN109255967A (en) * 2018-09-12 2019-01-22 三星电子(中国)研发中心 Method and apparatus for release information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008112038A1 (en) * 2007-03-09 2008-09-18 Amazon Technologies, Inc. Personalizing handheld electronic book readers
CN101681458A (en) * 2007-03-29 2010-03-24 亚马逊技术股份有限公司 Content purchase and transfer management for reader device
CN205788901U (en) * 2016-05-17 2016-12-07 重庆蓝岸通讯技术有限公司 E-book reader
CN109255967A (en) * 2018-09-12 2019-01-22 三星电子(中国)研发中心 Method and apparatus for release information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
蓝海杨: "用kindle看公众号文章,了解一下", 《用KINDLE看公众号文章,了解一下》 *
韩进主编: "《海外人文社会科学发展年度报告2013》", 30 November 2014 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868349A (en) * 2019-11-27 2020-03-06 河钢数字技术股份有限公司 Distributed high-concurrency data acquisition and processing method and system in Internet of things environment
CN110868349B (en) * 2019-11-27 2021-07-09 河钢数字技术股份有限公司 Distributed high-concurrency data acquisition and processing method and system in Internet of things environment

Similar Documents

Publication Publication Date Title
CN104660682B (en) A kind of OPC data collection and monitoring intelligent terminal based on TD-LTE
CN108023879A (en) A kind of NB-IOT device data acquisition system and methods based on block chain
CN1525318B (en) Remote program installing system and method for mobile computing device
CN111343020A (en) Unified management method and device for multi-protocol Internet of things equipment
CN101938525A (en) Subscribed/pushed cache mechanism based system and method for wireless enterprise application
CN109889416A (en) A kind of smart home system and construction method based on micro services framework
CN103491217B (en) A kind of fission mobile phone
WO2002087094A1 (en) System and method for communicating information from a computerized distributor to portable computing devices
CN102664871A (en) Method for processing intelligent terminal address list
CN101262645A (en) Mobile production monitoring system based on wireless PDA
CN104992543A (en) Cloud system applied to mobile phone client side and intelligent equipment meter reading
CN107453780A (en) A kind of calendar information synchronous method, device and system
CN109032573A (en) A kind of hardware programming system and method
CN101739295B (en) Method and device for calling extension program based on process
CN101299854B (en) Mobile terminal and data maintenance method thereof
CN106781760A (en) A kind of operation based reminding method, job management equipment and wearable device
CN110445839A (en) It is a kind of to realize cross-platform data communications method for electronic reading terminal
CN101551758B (en) System and method for implementing paralleling work of device management and tasks
CN102932761B (en) Incoming call connection information display processing method based on cell-phone visiting card
CN108773205A (en) Intelligent printing device and intelligent printing control method
CN109218142A (en) One kind being based on OneM2M agreement platform of internet of things terminal access method and device
CN103581843B (en) A kind of personal information transmission method and system
CN105916184B (en) A kind of industrial wireless sensing network termination implementation method meeting ISA100.11a standard
CN103546879B (en) A kind of method and system of SIM card processing data
CN209088989U (en) A kind of data acquisition gateway

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191112