CN110166561A - Data processing method, device, system, equipment and the medium of wearable device - Google Patents

Data processing method, device, system, equipment and the medium of wearable device Download PDF

Info

Publication number
CN110166561A
CN110166561A CN201910441396.6A CN201910441396A CN110166561A CN 110166561 A CN110166561 A CN 110166561A CN 201910441396 A CN201910441396 A CN 201910441396A CN 110166561 A CN110166561 A CN 110166561A
Authority
CN
China
Prior art keywords
data
end server
wearable device
platform
pending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910441396.6A
Other languages
Chinese (zh)
Other versions
CN110166561B (en
Inventor
肖巍巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Megvii Technology Co Ltd
Original Assignee
Beijing Megvii Technology Co Ltd
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 Beijing Megvii Technology Co Ltd filed Critical Beijing Megvii Technology Co Ltd
Priority to CN201910441396.6A priority Critical patent/CN110166561B/en
Publication of CN110166561A publication Critical patent/CN110166561A/en
Application granted granted Critical
Publication of CN110166561B publication Critical patent/CN110166561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • 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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

Present disclose provides a kind of data processing method of wearable device, data processing equipment, adaptation processing system, electronic equipment and computer readable storage mediums, belong to technical field of data processing.This method is applied to the back-end server of adaptation processing system, and adaptation processing system further includes wearable device, front-end server and at least one data platform, back-end server and front-end server common storage area;This method comprises: obtaining pending data from memory block in response to the notice of front-end server;According to the unique identification for the wearable device for including in pending data, at least one target data platform is determined from data platform;Pending data is sent to target data platform, handles target data platform to pending data.The data interchange of wearable device and data platform may be implemented in the disclosure, and the data for collecting wearable equipment are fully utilized and develop, and widens its application scenarios.

Description

Data processing method, device, system, equipment and the medium of wearable device
Technical field
This disclosure relates to technical field of data processing more particularly to a kind of data processing method of wearable device, can wear Wear data processing equipment, adaptation processing system, electronic equipment and the computer readable storage medium of equipment.
Background technique
Wearable device is a kind of emerging intelligent terminal, including intelligent glasses, Intelligent bracelet, smartwatch, intelligence Energy sport footwear etc., has had certain popularization degree in people's daily life.
One feature of wearable device is lasting long using the time, the daily wearing of the people and time used is usually more than The use free of discontinuities of 10 hours or even 24 hours.In use, human body or environment can be monitored in real time in wearable device Related data, therefore can produce the data of magnanimity.It is lower for the producing level of this partial data and Exploitation degree at present, A kind of monitoring data are normally only used as, monitoring result are fed back into user, to limit the applied field of wearable device It is extensive universal to be unfavorable for it for scape.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
Present disclose provides a kind of data processing methods of wearable device, the data processing equipment, suitable of wearable device With processing system, electronic equipment and computer readable storage medium, so overcome at least to a certain extent the prior art for Data producing level caused by wearable device and the lower problem of Exploitation degree.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to the disclosure in a first aspect, a kind of data processing method of wearable device is provided, applied to adaptation processing The back-end server of system, the adaptation processing system further include that wearable device, front-end server and at least one data are flat Platform, the back-end server and the front-end server common storage area;The described method includes: in response to the front-end server Notice, from the memory block obtain pending data, the pending data by the wearable device be sent to it is described before End server is simultaneously stored in the memory block, and the front-end server notifies back-end server data to be handled to enter institute State memory block;According to the unique identification for the wearable device for including in the pending data, from the data platform Determine at least one target data platform;The pending data is sent to the target data platform, makes the number of targets The pending data is handled according to platform.
It also include sample data in the pending data in a kind of exemplary embodiment of the disclosure;Will it is described to Processing data are sent to before the target data platform, the method also includes: according to the sample data and the target What data platform provided determines format transformation rule referring to the transformational relation between data, by the format transformation rule to institute Pending data is stated to format.
In a kind of exemplary embodiment of the disclosure, the method also includes: if connect by the front-end server The access request for the first time of the wearable device is received, then based on the access request for the first time, establishes and stores described wearable The incidence relation of the unique identification of equipment and the unique identification and one or more data platforms;Pass through the front end The unique identification is back to the wearable device by server, so that the wearable device adds the unique identification Into the data of subsequent transmission.
It is described described wearable according to include in the pending data in a kind of exemplary embodiment of the disclosure The unique identification of equipment determines at least one target data platform, comprising: from the pending data from the data platform The middle unique identification for extracting the wearable device, and the target will be determined as with the associated data platform of the unique identification Data platform.
It is described the pending data is sent to the target data to put down in a kind of exemplary embodiment of the disclosure Platform, comprising: the pending data is passed through into kafka (a kind of distributed post subscription message system) or http (Hyper Text Transfer Protocol, hypertext transfer protocol) agreement is sent to the target data platform.
In a kind of exemplary embodiment of the disclosure, the method also includes: passing through the success of kafka or http agreement After sending data, mark has been sent to the data sent addition in the memory block;Memory block described in periodic scan, To not have the data for having sent mark and is sent to its corresponding data platform.
In a kind of exemplary embodiment of the disclosure, the method also includes: every number is recorded in the memory block According to the transmission frequency of failure;If not having the data for having sent mark there are multiple in the memory block, preferentially will It wherein sends the most data of the frequency of failure and is sent to its corresponding data platform.
In a kind of exemplary embodiment of the disclosure, the method also includes: it is sent if existed in the memory block The frequency of failure reaches the data of preset value, then the data is deleted out of described memory block, and record the log deleted about this Information.
In a kind of exemplary embodiment of the disclosure, the memory block includes multiple subregions, and each subregion has predetermined Storage period;After memory block described in the periodic scan, the method also includes: deleting is more than storage in each subregion The data in time limit.
In a kind of exemplary embodiment of the disclosure, the method also includes: if it is flat to receive the target data The processing result data is then sent to the front end and taken by the processing result data about the pending data that platform returns Business device, to be forwarded to the wearable device by the front-end server.
According to the second aspect of the disclosure, a kind of data processing method of wearable device is provided, is applied to adaptation processing The front-end server of system, the adaptation processing system further include that wearable device, back-end server and at least one data are flat Platform, the back-end server and the front-end server common storage area;The described method includes: pending data is received, it is described Pending data is sent to the front-end server by the wearable device;The pending data is stored to the storage Area;It notifies back-end server data to be handled to enter the memory block, makes the back-end server will be described to be processed Data are sent to the target data platform in the data platform, with the target data platform to the pending data into Row processing;It wherein, include the unique identification of the wearable device, the unique identification and the mesh in the pending data Marking data platform has incidence relation.
In a kind of exemplary embodiment of the disclosure, the memory block includes multiple subregions;It is described will be described to be processed Data are stored to the memory block, comprising: according to the determination of the data type of the pending data and the pending data The subregion matched stores the pending data to the subregion.
In a kind of exemplary embodiment of the disclosure, the method also includes: according to unique identification verification The permission of wearable device;If verification does not pass through, the pending data is abandoned;If verification pass through, execute by it is described to The step of processing data are stored to the memory block.
In a kind of exemplary embodiment of the disclosure, the method also includes: if receiving the wearable device The access request for the first time sent, then be forwarded to the back-end server for the access request for the first time, so that the back-end services Device establishes the unique identification of the wearable device according to the access request for the first time;From the back-end server receive described in can The unique identification of wearable device, and the unique identification is back to the wearable device, so that the wearable device will The unique identification is added in the data of subsequent transmission.
It is described that the wearable device is verified according to the unique identification in a kind of exemplary embodiment of the disclosure Permission, comprising: whether the unique identification for detecting the wearable device is stored unique identification, if so, described wear Equipment is worn by authorization check, the unique identification is stored by the front-end server or the back-end server to the storage Area.
In a kind of exemplary embodiment of the disclosure, the method also includes: if receiving the back-end server The processing result data is then sent to described wearable set by the processing result data about the pending data returned It is standby.
In a kind of exemplary embodiment of the disclosure, the method also includes: from the wearable device reception state Characterization information judges the current state of the wearable device according to the state representation information.
In a kind of exemplary embodiment of the disclosure, the method also includes: if the wearable device is current State changes, then the current state information of the wearable device is sent to the back-end server, by described Back-end server is sent to the target data platform.
According to the third aspect of the disclosure, a kind of data processing method of wearable device is provided, is applied to adaptation processing A target data platform at least one data platform of system, the adaptation processing system further includes wearable device, preceding Hold server and back-end server;The described method includes: receiving pending data, the pending data is by the back-end services Device is sent to the target data platform;The pending data is handled;It wherein, include institute in the pending data The unique identification of wearable device is stated, the unique identification and the target data platform have incidence relation.
It is described that the pending data is handled, comprising: to described in a kind of exemplary embodiment of the disclosure Pending data is handled, and corresponding processing result data is obtained;It passes sequentially through the back-end server and the front end takes Business device, is forwarded to the wearable device for the processing result data;Or the target is added in the processing result data The kafka of data platform keeps the wearable device described obtaining by way of subscribing to the kafka of the target data platform Processing result data.
It is described that the pending data is handled in a kind of exemplary embodiment of the disclosure, it obtains corresponding Processing result data, comprising: identify the solicited message in the pending data, the solicited message is based on, in business datum Historical data relevant to the pending data is searched in library;The processing knot is determined according to the historical data found Fruit data.
In a kind of exemplary embodiment of the disclosure, the method also includes: it will be described in pending data write-in Service database, to be stored as new historical data.
According to the fourth aspect of the disclosure, a kind of data processing equipment of wearable device is provided, is applied to adaptation processing The back-end server of system, the adaptation processing system further include that wearable device, front-end server and at least one data are flat Platform, the back-end server and the front-end server common storage area;Described device includes: acquisition module, in response to The notice of the front-end server obtains pending data from the memory block, and the pending data wearable is set by described Standby to be sent to the front-end server and be stored in the memory block, the front-end server notifies the back-end server to need It handles data and enters the memory block;Determining module, for according to the wearable device for including in the pending data Unique identification, from the data platform determine at least one target data platform;Sending module, being used for will be described to be processed Data are sent to the target data platform, handle the target data platform to the pending data.
It also include sample data in the pending data in a kind of exemplary embodiment of the disclosure;Described device Further include: conversion module, for turning according between the sample data and the reference data of target data platform offer The relationship of changing determines format transformation rule, is formatted by the format transformation rule to the pending data.
In a kind of exemplary embodiment of the disclosure, the acquisition module, if be also used to through the front end services Device receives the access request for the first time of the wearable device, then based on the access request for the first time, establish and store it is described can The incidence relation of the unique identification of wearable device and the unique identification and one or more data platforms;The transmission Module is also used to that the unique identification is back to the wearable device by the front-end server, so that described wear Equipment is worn to be added to the unique identification in the data of subsequent transmission.
In a kind of exemplary embodiment of the disclosure, the determining module, for being extracted from the pending data The unique identification of the wearable device, and the target data will be determined as with the associated data platform of the unique identification and put down Platform.
In a kind of exemplary embodiment of the disclosure, the sending module, for passing through the pending data Kafka or http agreement is sent to the target data platform.
In a kind of exemplary embodiment of the disclosure, the sending module further include: mark administrative unit, for logical It crosses after kafka or http agreement is successfully transmitted data, mark has been sent to the data sent addition in the memory block; Memory block scanning element will not have the data for having sent mark and be sent to it for memory block described in periodic scan Corresponding data platform.
In a kind of exemplary embodiment of the disclosure, the sending module further include: recording unit is sent, in institute The transmission frequency of failure that each data are recorded in memory block is stated, if not having described sent there are multiple in the memory block The data of mark then preferentially will wherein send the most data of the frequency of failure and be sent to its corresponding data platform.
In a kind of exemplary embodiment of the disclosure, the transmission recording unit, if be also used in the memory block The data for reaching preset value in the presence of the transmission frequency of failure then delete the data out of described memory block, and record and delete about this The log information removed.
In a kind of exemplary embodiment of the disclosure, the memory block includes multiple subregions, and each subregion has predetermined Storage period;The memory block scanning element, is also used to after memory block described in periodic scan, deletes in each subregion More than the data of storage period.
In a kind of exemplary embodiment of the disclosure, the sending module, if being also used to receive the number of targets According to platform return the processing result data about the pending data, then by the processing result data be sent to it is described before Server is held, to be forwarded to the wearable device by the front-end server.
According to the 5th of the disclosure the aspect, a kind of data processing equipment of wearable device is provided, is applied to adaptation processing The front-end server of system, the adaptation processing system further include that wearable device, back-end server and at least one data are flat Platform, the back-end server and the front-end server common storage area;Described device includes: receiving module, for receive to Data are handled, the pending data is sent to the front-end server by the wearable device;Memory module is used for institute Pending data is stated to store to the memory block;Notification module, for notifying back-end server data to be handled to enter The memory block puts down the back-end server by the target data that the pending data is sent in the data platform Platform, to handle in the target data platform the pending data;Wherein, comprising described in the pending data The unique identification of wearable device, the unique identification and the target data platform have incidence relation.
In a kind of exemplary embodiment of the disclosure, the memory block includes multiple subregions;The memory module, is used for According to the determination of the data type of the pending data and the matched subregion of the pending data, the pending data is deposited It stores up to the subregion.
In a kind of exemplary embodiment of the disclosure, described device further include: correction verification module, for according to described unique Mark verifies the permission of the wearable device, if verification does not pass through, abandons the pending data, if verification passes through, The memory module is dispatched to store the pending data to the memory block.
In a kind of exemplary embodiment of the disclosure, the receiving module, if being also used to receive described wearable The access request for the first time that equipment is sent, then be forwarded to the back-end server for the access request for the first time, so that the rear end Server establishes the unique identification of the wearable device according to the access request for the first time, and connects from the back-end server The unique identification of the wearable device is received, and the unique identification is back to the wearable device, so that described wear Equipment is worn to be added to the unique identification in the data of subsequent transmission.
In a kind of exemplary embodiment of the disclosure, the correction verification module, for detecting the wearable device only One identifies whether as stored unique identification, if so, the wearable device is by authorization check, the unique identification by The front-end server or the back-end server are stored to the memory block.
In a kind of exemplary embodiment of the disclosure, the receiving module, if being also used to receive the rear end clothes It is engaged in the processing result data about the pending data that device returns, being then sent to the processing result data described can wear Wear equipment.
In a kind of exemplary embodiment of the disclosure, described device further include: monitoring modular is used for from described wearable Equipment reception state characterization information judges the current state of the wearable device according to the state representation information.
In a kind of exemplary embodiment of the disclosure, the monitoring modular, if being also used to the wearable device Current state changes, then the current state information of the wearable device is sent to the back-end server, to pass through The back-end server is sent to the target data platform.
According to the 6th of the disclosure the aspect, a kind of data processing equipment of wearable device is provided, is applied to adaptation processing A target data platform at least one data platform of system, the adaptation processing system further includes wearable device, preceding Hold server and back-end server;Described device includes: receiving module, for receiving pending data, the pending data The target data platform is sent to by the back-end server;Processing module, for handling the pending data; It wherein, include the unique identification of the wearable device, the unique identification and the target data in the pending data Platform has incidence relation.
In a kind of exemplary embodiment of the disclosure, the processing module, to the pending data Reason, obtains corresponding processing result data, and pass sequentially through the back-end server and the front-end server, by the processing Result data is forwarded to the wearable device, or the processing result data is added to the kafka of the target data platform, Make the wearable device obtaining the processing result data by way of subscribing to the kafka of the target data platform.
In a kind of exemplary embodiment of the disclosure, the processing module, for identification in the pending data Solicited message is based on the solicited message, and historical data relevant to the pending data is searched in service database, and The processing result data is determined according to the historical data found.
In a kind of exemplary embodiment of the disclosure, described device further include: memory module, being used for will be described to be processed The service database is written in data, to be stored as new historical data.
According to the 7th of disclosure aspect, provide a kind of adaptation processing system, including wearable device, front-end server, With back-end server and at least one data platform, the back-end server and the front-end server common storage area;Wherein: The wearable device sends the pending data for acquiring pending data, and to the front-end server;Before described End server the pending data is stored to the memory block for receiving the pending data, and notify it is described after Server data to be handled are held to enter the memory block;The back-end server, in response to the front-end server Notice obtains the pending data from the memory block, according to the wearable device for including in the pending data Unique identification, at least one target data platform is determined from the data platform, and the pending data is sent to The target data platform;The target data platform, for receiving and processing the pending data.
According to the eighth aspect of the disclosure, a kind of electronic equipment is provided, comprising: processor;And memory, for storing The executable instruction of the processor;Wherein, the processor is configured to above-mentioned to execute via the executable instruction is executed Any one method.
According to the 9th of the disclosure the aspect, a kind of computer readable storage medium is provided, computer program is stored thereon with, It is characterized in that, the computer program realizes any one of the above method when being executed by processor.
The exemplary embodiment of the disclosure has the advantages that
Wearable device can access adaptation processing system, and the pending data generated carries out unification in back-end server Scheduling and distribution processor finally handled in target data platform with being adapted to corresponding data platform.On the one hand, lead to The data interchange for crossing wearable device and data platform, the data for collecting wearable equipment are fully utilized and develop. On the other hand, the adaptation processing system of highly compatible is provided, the scope of application is expanded to by the wearable device of single type The wearable device of polymorphic type has widened the application scenarios of wearable device.In another aspect, passing through setting docking wearable device Front-end server and Interworking Data platform the shared storage of back-end server and front-end server and back-end server Area reduces the situation that pending data is overstock in a certain link, and back-end server assumes responsibility for data dispatch and distribution Task allows data platform to be absorbed in the data processing of business side, improves and handle delay issue caused by Data Concurrent, To optimize the overall process of stream compression and processing, efficiency is improved.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 shows a kind of configuration diagram of adaptation processing system in the present exemplary embodiment;
Fig. 2 shows the flow charts of the data processing method of wearable device a kind of in the present exemplary embodiment;
Fig. 3 shows a kind of schematic diagram of back-end server transmission data in the present exemplary embodiment;
Fig. 4 shows a kind of schematic diagram of memory block in the present exemplary embodiment;
Fig. 5 shows the flow chart of the data processing method of another wearable device in the present exemplary embodiment;
Fig. 6 shows the flow chart of the data processing method of another wearable device in the present exemplary embodiment;
Fig. 7 shows a kind of interaction diagrams of the data processing method of wearable device in the present exemplary embodiment;
Fig. 8 shows a kind of structural block diagram of the data processing equipment of wearable device in the present exemplary embodiment;
Fig. 9 shows the structural block diagram of the data processing equipment of another wearable device in the present exemplary embodiment;
Figure 10 shows the structural block diagram of the data processing equipment of another wearable device in the present exemplary embodiment;
Figure 11 shows a kind of electronic equipment for realizing the above method in the present exemplary embodiment;
Figure 12 shows a kind of computer readable storage medium for realizing the above method in the present exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.
The exemplary embodiment of the disclosure provides firstly a kind of adaptation processing system.Fig. 1 shows the example of the system Property framework, as shown in Figure 1, adaptation processing system 100 may include wearable device 110, front-end server 120, back-end services Device 130 and at least one data platform 140.Wherein, wearable device 110 can be intelligent glasses, Intelligent bracelet, intelligent hand The wearable terminal device of the users such as table, intelligent shoe can acquire related data during user's use, such as Healthy data, environmental data etc.;Front-end server 120 and back-end server 130 can be presented as application server or in Between part server form, be usually deployed in the backstage of enterprise;130 common storage area of front-end server 120 and back-end server 150, memory block 150 can be small-sized database, be also possible to memory or caching;Front-end server 120 be responsible for it is wearable Equipment 110 is docked, and back-end server 130 is responsible for docking with data platform 140;Data platform 140 can be positioned at enterprise or The database or database server of tripartite service provider, are also possible to cloud platform etc., can be by front-end server 120 with after Indirect data interaction is formed between end server 130, with wearable device 110.The type of service of different data platform 140, Data type etc. is typically different, such as data platform A corresponds to health monitoring business, and data platform B corresponds to Orientation on map industry Business etc..
It should be noted that different types of wearable device 110 can be accessed same suitable in the present exemplary embodiment With in processing system 100, corresponding data platform 140 is compatible with by front-end server 120 and back-end server 130.This Outside, the number of each component is merely exemplary in Fig. 1, and usual a set of front-end server 120 and back-end server 130 can connect More set front-end servers 120 and back-end server 130 also can be set in whole system in a large amount of wearable device 110, and right In access 140 number of data platform without limitation.
In adaptation processing system 100, the data handling procedure of each section is as follows:
Wearable device 110 is for acquiring pending data, and forward end server 120 sends pending data.Wherein, Pending data is usually the initial data that wearable device 110 acquires, and needs to be further processed, such as needs to store to number According to platform 140, verified, need to feed back etc..According to the difference of 110 type of wearable device, pending data can be with It is various types of data such as text, image or audio.Wearable device 110 can be sent in real time while acquiring data To front-end server 120, front end services can also be sent to according to period regular hour or after accumulating to certain data volume Device 120, may also respond to user instruction, send specific pending data, and the disclosure does not limit this.
Front-end server 120 stores pending data to memory block 150, and after notice for receiving pending data The end data to be handled of server 130 enter memory block 150.
Back-end server 130 obtains number to be processed from memory block 150 for the notice in response to front-end server 120 According to, according to the unique identification for the wearable device 110 for including in pending data, at least one determining target from data platform Data platform 140, and pending data is sent to target data platform 140.
Target data platform 140, for receiving and processing pending data, such as can be according to the business of pending data Request is responded, and if there is the processing result data that needs are fed back, then can pass through back-end server 130, front end services Device 120 returns to wearable device 110.
The data processing method in front-end server, back-end server and target data platform is done into one separately below Step is described in detail.
Illustrate the data processing method of the wearable device executed by back-end server first, Fig. 2 shows this method Process may include step S210~S230:
Step S210 obtains pending data from memory block in response to the notice of front-end server;
Step S220 is determined from data platform according to the unique identification for the wearable device for including in pending data At least one target data platform;
Pending data is sent to target data platform by step S230, make target data platform to pending data into Row processing.
Wherein, the unique identification of wearable device can be its device name, device numbering, the account of system login, MAC Address (Media Access Control, physical address), IP address (Internet Protocol, internet protocol address) etc., Identity for unique identification's wearable device.Wearable device and target data platform can have incidence relation, such as The type of service of target data platform and the device type of wearable device match or the two has binding relationship etc., because This back-end server can determine target data platform associated with it by the unique identification of parsing wearable device, from And pending data is sent to target data platform.
Based on above description, in the present exemplary embodiment, wearable device can access adaptation processing system, generate Pending data carries out unified scheduling and distribution processor in back-end server, to be adapted to corresponding data platform, finally in mesh It is handled on mark data platform.On the one hand, by the data interchange of wearable device and data platform, make wearable equipment The data of collection are fully utilized and develop.On the other hand, the adaptation processing system of highly compatible is provided, by the scope of application The wearable device that polymorphic type is expanded to by the wearable device of single type has widened the application scenarios of wearable device.Again On the one hand, pass through the front-end server of setting docking wearable device and back-end server and the front end of Interworking Data platform The memory block that server and back-end server share reduces the situation that pending data is overstock in a certain link, and rear end Server assumes responsibility for the task of data dispatch and distribution, and data platform is allowed to be absorbed in the data processing of business side, improves Delay issue is handled caused by Data Concurrent, to optimize the overall process of stream compression and processing, improves efficiency.
Since the type of wearable device is different, cause pending data format accessed by back-end server different, Such as: the health data of the Intelligent bracelet acquisition of different model may have different field names, the intelligent glasses of different model The image of shooting may have different pixel and size or equipment using different software or program language, lead to data Structure difference, compression algorithm difference, packing manner difference etc..On the other hand, each data platform generallys use unified format Storing data, data format can regard reference format as.Based on this, for the ease of the processing of data, back-end server may be used also To be formatted according to the data format of target data platform to pending data, keep pending data and target data flat The data format of platform is consistent, can specifically include: the conversion of data structure or data type, and image data carries out unified size Adjustment or compression, the different field for expressing same meaning are converted to criteria field, and the Data Format Transform of same field is standard Format, etc..
In one exemplary embodiment, it formats for the ease of back-end server, can be taken in pending data Band sample data, then back-end server can be according to the conversion between the reference data that sample data and target data platform provide Relationship determines format transformation rule, is formatted by the format transformation rule to pending data.Wherein, sample data It is that having for the generations such as field, attribute, variable or function that wearable device gives in advance according to adaptation processing system counts itself According to the data of format, correspondingly, target data platform is according to the data of the offers such as same field, attribute, variable or function Referring to data.As it can be seen that sample data has corresponding relationship with referring to data.Back-end server after receiving pending data, Sample data therein can be extracted, it is subjected to format comparison with referring to data, to determine sample data to referring to data Format transformation rule, the format transformation rule can be used for pending data format conversion.Usual sample data can cover Wider range, with all types of data that may be sent comprising wearable device, so that back-end server is directed to every kind The data of type determine corresponding format transformation rule, finally obtain more comprehensive format transformation rule.
Target data platform can directly identify data after back-end server reception pending data.Usually to Processing data can also carry specific network request or its when not carrying network request, its request can be defaulted for mesh It marks data platform and pending data is written, data platform can make corresponding processing, etc..In one exemplary embodiment, After step S230, following steps can also be performed: if receive target data platform return about pending data Processing result data, then processing result data is sent to front-end server, it is wearable to be forwarded to by front-end server Equipment.For example: pending data is the data that user logs in, and target data platform can be verified, and is serviced to the back-end Device back-checking with allowing or refusing as a result, logged in, back-end server is forwarded back to wearable device by front-end server;Wait locate Manage the timi requirement data that data are user's morning run, data platform can accordingly generate the motion profile of user, with chart or its His data mode is sent to back-end server, then returns to wearable device by front-end server;Pending data is user The health data of daily upload, data platform can be stored to corresponding database, return and upload successful information.It needs Illustrate, back-end server forward end server send processing result data when, can by the way of directly transmitting, By the way of can receiving and sending between, after storing data into memory block, notice front-end server obtains data from memory block.This The case where data are sent between the front-end server and back-end server mentioned in text, unless otherwise noted, all comprising above-mentioned straight It receives and sends and any way received and sent.
In the present exemplary embodiment, different types of wearable device, such as intelligent glasses and smartwatch, it can be by number It is sent on same data platform according to by back-end server, data platform is provided based on the data of distinct device more Service between sample, striding equipment, such as: the road conditions photo shared according to intelligent glasses user, for smartwatch, user provides reality When navigation Service;By the location data intercommunication of the location data of intelligent glasses user and smartwatch user, to realize that two classes are used Friend recommendation service near between family;Or data platform is provided more intelligent by the big data between analysis distinct device The service of change.
In one exemplary embodiment, if back-end server receives wearable device for the first time by front-end server Access request can then be based on the access request for the first time, establish and store the unique identification and unique mark of wearable device Know the incidence relation with one or more data platforms, and unique identification be back to by wearable device by front-end server, So that unique identification is added in the data of subsequent transmission by wearable device.
Wherein, access request refers to the information that wearable device is sent for the first time in systems for the first time, can be in systems Registration request, be also possible to carry out the request of reading and writing data for the first time, wherein should include wearable device identity information, example Such as its device name, MAC Address, IP address.After the request reaches back-end server, back-end server can be according to the request In equipment identity information be it establishes a unique identification in systems, naturally it is also possible to certain identity first is carried out to it and is tested Card, resettles unique identification after being verified, which can use the mark of wearable device itself, such as above-mentioned set Standby title, MAC Address, IP address, can also redistribute the mark in a system, such as device numbering, system login Account etc..In addition, back-end server can also determine the incidence relation of wearable device and data platform, such as according to equipment class Type determine its with data platform being associated in type, according to IP address determine its with data platform being associated with over a geographical Deng.
Unique identification and incidence relation storage (such as are stored as an allocation list not into system by back-end server It is disconnected to update), and unique identification is returned to wearable device.In the pending data of the subsequent transmission of wearable device all comprising this only One mark, therefore, back-end server can extract the unique identification of wearable device from pending data, and will be unique with this It identifies associated data platform and is determined as target data platform.
Further, in one exemplary embodiment, back-end server is in the connection request for the first time according to wearable device After establishing unique identification for it, format calibration information can also be sent to wearable device by front-end server, made wearable Equipment provides sample data according to format calibration information, so that it is determined that standardized Data Format Transform is regular.Wherein, format school To information for requiring wearable device to provide sample data, wherein may include field, the category that back-end server gives in advance Property, variable or function etc. so that wearable device generates data, i.e. sample number under given field, attribute, variable or function According to;Meanwhile back-end server can also be obtained to associated data platform referring to data, further according to sample data to referring to data Transformational relation determine format transformation rule.The interactive process of format calibration information and sample data can occur to set wearable After standby acquisition unique identification, which is actually that back-end server proofreads process to the format that wearable device carries out, with true Fixed standardized format transformation rule all uses the lattice in the pending data that the subsequently received wearable device is sent Formula transformation rule provides sample data without it again, i.e., sample data can not be carried in pending data, thus further Data volume is simplified, efficiency is improved.
Other than distributing unique identification for wearable device, unique identification can also be distributed for each pending data, In order to manage, the unique identification of equipment can use two sets of different identifier mechanisms from the unique identification of data.
In one exemplary embodiment, back-end server can send pending data by kafka or http agreement To target data platform, both agreements can be adapted to most of wearable devices and data platform, and popularization is higher.
In the case where a large amount of wearable devices access adaptation processing system, the same time, there may be largely need to send To the pending data of data platform, in order to advanced optimize data transmission flow, the transmission that Data Concurrent may cause is reduced Abnormal, the disclosure provides following two exemplary sending method, but following the description should not cause to limit to the protection scope of the disclosure It is fixed:
(1) message queue mechanism: back-end server can send number to be processed to target data platform by message queue According to.After pending data inbound message queue, it is sent to target data platform one by one in a certain order;Pending data can To be deleted from message queue immediately after transmission, can also be deleted after the response for receiving data platform, the disclosure is to this Without limitation.
(2) memory block scan mechanism: back-end server can after being successfully transmitted data by kafka or http agreement, Mark, and periodic scan memory block have been sent to the data sent addition in memory block, will not have and send The data of mark are sent to its corresponding data platform.The mechanism, can be with above-mentioned mechanism (1) usually as a kind of added machinery Or other sending methods are used in conjunction with.Such as shown in Fig. 3, back-end server 130 is normally sent to be processed by message queue 131 Data, while periodic scan memory block 150;Data in memory block 150 can be divided into two classes: have sent mark with not It is usually the pending data not sent normally, back-end server without the data for having sent mark with mark has been sent After 130 scannings to the pending data not sent normally, it is sent to its corresponding data platform 140 again, can be improved The reliability that data are sent.
Further, the transmission frequency of failure of each data can also be recorded in memory block, if existed in memory block It is multiple not have the data for having sent mark, then it preferentially will wherein send the most data of the frequency of failure and be sent to its corresponding number According to platform.In the case where periodic scan, sending the most data of the frequency of failure is generally also earliest data, thus can be with Priority processing.
The data that the frequency of failure reaches preset value are sent in addition, if existing in memory block, then deleting out of memory block should Data, and record the log information deleted about this.When i.e. the transmission frequency of failure is excessive, illustrating data itself, there may be different Often, therefore can directly delete, wherein preset value is as judgment criteria, can rule of thumb, practical application situation etc. determines.
You need to add is that storage period can be arranged for memory block, to control the capacity of memory block, such as can be set For half a year, i.e. memory block saves pending data received from wearable device in nearly half a year, or has and has sent Mark has sent mark setting different storage periods with not having, such as with having sent data preservation one month of mark, no Half a year is saved with the data for having sent mark.In addition, synchrolock can also be arranged in memory block, to prevent the repetition of data from sending out It send.
In one exemplary embodiment, memory block may include multiple subregions, such as when memory block is hard disk, can have Multiple fdisks can have multiple word banks or multiple subregions can be multiple databases when memory block is database. Front-end server when storing pending data to memory block, can be determined according to the data type of pending data with wait locate The subregion for managing Data Matching, pending data is stored to the subregion.It for example, can be refering to what is shown in Fig. 4, front-end server 120 after receiving pending data, identifies the type of pending data, if it is text data, then storage to the first storage Subregion 151, if it is image data, then storage to the second partition holding 152, if it is video data, then storage is deposited to third Subregion 153 is stored up, if pending data includes numerous types of data, can be split, be respectively stored into different subregions.
In above-mentioned memory block, each subregion can have scheduled storage period, and the storage period of each subregion is usually not Together.For example, longer storage period can be arranged for the first partition holding 151 in Fig. 4, the second partition holding 152 takes second place, Third partition holding 153 is third, naturally it is also possible to be set as opposite situation, make the storage period of third partition holding 153 Longest.Based on this, back-end server can delete the number in each subregion more than storage period behind periodic scan memory block According to save space resources.
Different data structures, such as the first partition holding in Fig. 4 can also be taken according to the data characteristics of each subregion 151 can use HDFS (Hadoop distributed file system), and the second partition holding 152 can be (right using Object Store As storage system), third partition holding 153 can be using MongoDB GridFS (for storing the file system of 16MB or more System).
Next, the data processing method for the wearable device that explanation is executed by front-end server, Fig. 5 show this method Process, may include step S510~S530:
Step S510 receives the pending data sent by wearable device;
Step S520 stores pending data to memory block;
Step S530, notice back-end server data to be handled enter memory block, make back-end server by number to be processed According to the target data platform being sent in data platform, to handle in target data platform pending data.
It wherein, include the unique identification of wearable device in pending data, the unique identification and target data platform have It is relevant.Front-end server can send more brief presetting message when rear end server sends notice, such as Message coding file is configured on front-end server and back-end server in advance, front-end server sends specific coded message, It is to have new pending data that back-end server, which inquires the corresponding information of the coding,.In this way, it is possible to reduce preceding Data volume involved in interaction between server and back-end server is held, data handling procedure is optimized.
In one exemplary embodiment, if front-end server receive back-end server return about pending data Processing result data, then processing result data is sent to wearable device.Processing result data is by target data platform The obtained feedback data of pending data is handled, processing result data is sent to back-end server by target data platform, then It is back to wearable device via front-end server, to complete the overall process of data processing.
In one exemplary embodiment, memory block may include multiple subregions, and front-end server is deposited by pending data , can be according to the determination of the data type of pending data and the matched subregion of pending data when storage to memory block, it will be to be processed Data are stored to the subregion.
In one exemplary embodiment, after step S510, following steps are can also be performed in front-end server:
According to the permission of the unique identification verification wearable device in pending data;
If verification does not pass through, pending data is abandoned;
If verification passes through, S520 and subsequent step are thened follow the steps.
Authorization check can specifically be implemented in the following manner: judging whether the unique identification registered in systems, sentence Whether the unique identification of breaking meets scheduled rule, such as whether device name is whether effective type, IP address are legal, etc. Deng.If it is determined that effectively, then illustrating that pending data from legal wearable device, can enter subsequent step;It is on the contrary Then pending data is abandoned, or returns to miscue information to wearable device.To be filtered to pending data, Reduce subsequent treating capacity.
In one exemplary embodiment, following steps can also be performed in front-end server:
If receiving the access request for the first time of wearable device transmission, access request back-end services will be forwarded to for the first time Device, so that back-end server establishes the unique identification of wearable device according to access request for the first time,
The unique identification of wearable device is received from back-end server, and unique identification is back to wearable device, with It is added to wearable device by unique identification in the data of subsequent transmission.
About the treatment process of access request for the first time and the establishment process of unique identification, back-end server portion Illustrated, front-end server primarily serves the above process effect of forwarding.It should be noted that being established for wearable device After unique identification, unique identification can be stored into memory block by back-end server, can also complete to deposit by front-end server The process of storage.
Based on the unique identification of above-mentioned foundation, front-end server can verify permission by following steps:
Whether the unique identification for detecting wearable device is stored unique identification, if so, wearable device passes through Authorization check.
From the above mentioned, unique identification is stored by the front-end server or the back-end server to memory block.This example In property embodiment, wearable device needs to register in systems, its unique identification information is stored in system, then can pass through Verification.Front-end server extracts unique identification therein, searches in memory block after receiving pending data, if searched It arrives, then by verification, conversely, then not abandoning pending data by verification.
In one exemplary embodiment, following steps can also be performed in front-end server:
From wearable device reception state characterization information, the current shape of wearable device is judged according to state representation information State.
Wherein, state representation information can be the heartbeat of periodicity sending, be also possible to the prompt sent when abnormal state Information, by state representation information, front-end server can grasp the current state of wearable device in real time: it is online, offline or It is unknown etc..
Further, if the current state of wearable device changes, the current state of wearable device is believed Breath is sent to back-end server, to be sent to target data platform by back-end server, allows between target data platform Obtain wearable device real-time status, to determine the executive mode of task.Such as when wearable device from become online from When line, target data platform can stop to send feedback data.
Next, the data processing method for the wearable device that explanation is executed by target data platform, Fig. 6 show the party The process of method, may comprise steps of:
Step S610, receives pending data, and pending data is sent to target data platform by back-end server;
Step S620, handles pending data.
It wherein, include the unique identification of wearable device in pending data, unique identification has with target data platform Incidence relation.Usual pending data can carry specific network request or its when not carrying network request, can default It is requested as pending data is written to target data platform, and target data platform is made specifically according to the type or content of request Processing.
In one exemplary embodiment, following steps can also be performed in target data platform:
Pending data is handled, corresponding processing result data is obtained;
Back-end server and front-end server are passed sequentially through, processing result data is forwarded to wearable device;Or it will place The kafka that target data platform is added in result data is managed, wearable device is made to pass through the side of the kafka of objective of subscription data platform Formula obtains processing result data.
Wherein, to feedback processing result data the case where for example: pending data is the data that user logs in, target Data platform can be verified, and rear end server back-checking with allowing or refusing as a result, logged in, back-end server passes through Front-end server is forwarded back to wearable device;Pending data is the timi requirement data of user's morning run, and data platform can evidence This generates the motion profile of user, is sent to back-end server with chart or other data modes, then return by front-end server Return to wearable device;Pending data is the health data of the daily upload of user, and data platform can be stored to accordingly Database, return and upload successful information.If target data platform is generating needs using the form for subscribing to kafka After the processing result data of feedback, wearable device can be pushed to.
In one exemplary embodiment, target data platform can especially by following steps to pending data at Reason:
It identifies the solicited message of pending data, the solicited message is based on, in business datum library lookup and pending data Relevant historical data;
Above-mentioned processing result data is determined according to the historical data found.
Wherein, the business datum of service database platform for storing data, usual each data platform can be associated with one A or multiple service databases, can also be with shared service database between different data platform.Solicited message refers to number to be processed The service request content for including in.Historical data can be the stored number sent by wearable device in service database According to or processed data, solicited message etc..When searching historical data, solicited message can be used for determining data attribute, Pending data can be used for determining index, for example: the user of smartwatch uploads location data, and solicited message is to obtain Route information, target data platform can search the positioning road conditions that nearby other users upload in nearest 5 minutes or 10 minutes Information is fed back to the user to determine route;The user of intelligent glasses shoots and uploads building photo, request letter Breath searches identical building in the historical photograph that target data platform can be transmitted through in other users for identification building name Object identifies building name according to photographic intelligence, is fed back to the user;The user of intelligent glasses shoots and uploads scene Photo, solicited message be alarm, target data platform can the database based on history picture or history video, search simultaneously point Warning message is analysed, result is fed back into the user.
In one exemplary embodiment, service database can also be written in pending data by target data platform, to deposit The historical data of Chu Weixin, then currently processed pending data can be used as the information source of other data of subsequent processing, thus real Show the closed loop of data processing method, further develop and useedd the data of wearable device, improves data value, and shape At more diversified platform service.
Fig. 7 shows the interaction flow of the data processing method of wearable device in the present exemplary embodiment, based in Fig. 1 Adaptation processing system 100, which can specifically include:
(1) foundation of unique identification.Wearable device 110 executes step S711, access request for the first time is sent, via front end Server 120 is forwarded to back-end server 130;Back-end server 130 executes step S731, is established only according to connection request for the first time One mark, and step S732 is executed, unique identification is stored to memory block 150;Unique identification is returned via front-end server 120 To wearable device 110, wearable device 110 executes step S712, unique identification is received, to add this in follow-up data only One mark.
(2) determination of format transformation rule.After the unique identification for determining wearable device 110, back-end server 130 is held Row step S733 sends format calibration information, is forwarded to wearable device 110 via front-end server 120;Wearable device 110 execute step S713, receive format calibration information, then execute step S714, provide sample data, sample data is via front end Server 120 is forwarded to back-end server 130;Back-end server 130 executes step S734, according to sample data and data platform The reference data of offer determines format transformation rule.
(3) data processing.Wearable device 110 executes step S715, acquires pending data.It is subsequently sent to front end clothes Business device 120;Front-end server 120 executes step S721, judges whether the unique identification in pending data is effective;If invalid, S724 is thened follow the steps, the pending data is abandoned;If effectively, S722 is thened follow the steps, by pending data storage to storage Then area 150 executes step S723, notify back-end server 130;Back-end server 130 executes step after receiving notice S735 obtains pending data from memory block 150, then executes step S736, determine number of targets according to unique identification therein According to platform 140, then step S737 is executed, sends target data platform 140 for pending data;Target data platform 140 is first Step S741 is executed, pending data is received, then execute step S742, business processing is carried out to it, if producing processing knot Fruit data, then follow the steps S743, by processing result data via the forwarding of back-end server 130 and front-end server 120, return Return to wearable device 110;Wearable device 110 executes step S716, receives processing result data;So as to complete wearable Whole interactive processes of the data processing of equipment.
The exemplary embodiment of the disclosure additionally provides a kind of data processing equipment of wearable device, can be applied to figure Back-end server 130 in 1.As shown in figure 8, the device 800 may include: to obtain module 810, in response to front end services The notice of device obtains pending data from memory block, and pending data is sent to front-end server by wearable device and is stored In memory block, front-end server notice back-end server data to be handled enter memory block;Determining module 820 is used for basis The unique identification for the wearable device for including in pending data determines at least one target data platform from data platform; Sending module 830 carries out target data platform to pending data for pending data to be sent to target data platform Processing.
It in one exemplary embodiment, can also include sample data in pending data;Data processing equipment can be with It include: conversion module, for being determined according to the transformational relation between sample data and the reference data of target data platform offer Format transformation rule formats pending data by format transformation rule.
In one exemplary embodiment, if obtaining module can be also used for receiving wearable set by front-end server Standby access request for the first time is established and is stored the unique identification of wearable device then based on access request for the first time and uniquely mark Know the incidence relation with one or more data platforms;Sending module is also used to return to unique identification by front-end server To wearable device, so that unique identification is added in the data of subsequent transmission by wearable device.
In one exemplary embodiment, determining module can be also used for extracting the unique of wearable device in pending data Mark, and target data platform will be determined as with the associated data platform of unique identification.
In one exemplary embodiment, sending module can be used for sending out pending data by kafka or http agreement It send to target data platform.
In one exemplary embodiment, sending module can also include: mark administrative unit, for by kafka or After http agreement is successfully transmitted data, mark has been sent to the data sent addition in memory block;Store domain scanning list Member is used for periodic scan memory block, will not have the data for having sent mark and is sent to its corresponding data platform.
In one exemplary embodiment, sending module can also include: transmission recording unit, for recording in memory block The transmission frequency of failure of each data, if there are multiple data for not having and having sent mark in memory block, preferentially by it The middle most data of the frequency of failure that send are sent to its corresponding data platform.
In one exemplary embodiment, the frequency of failure is sent if sending recording unit and can be also used for existing in memory block Reach the data of preset value, then deletes the data out of memory block, and record the log information deleted about this.
In one exemplary embodiment, memory block may include multiple subregions, and each subregion has scheduled storage period; Memory block scanning element can be also used for deleting the number in each subregion more than storage period after periodic scan memory block According to.
In one exemplary embodiment, if sending module can be also used for receiving target data platform return about The processing result data of pending data, then be sent to front-end server for processing result data, to be turned by front-end server It is sent to wearable device.
The exemplary embodiment of the disclosure additionally provides a kind of data processing equipment of wearable device, can be applied to figure Front-end server 120 in 1.As shown in figure 9, the device 900 may include: receiving module 910, for receiving number to be processed According to pending data is sent to front-end server by wearable device;Memory module 920, for by pending data store to Memory block;Notification module 930 makes back-end server will be to for notifying back-end server data to be handled to enter memory block Processing data are sent to the target data platform in data platform, to handle in target data platform pending data; It wherein, include the unique identification of wearable device in pending data, unique identification and target data platform have incidence relation.
In one exemplary embodiment, memory block may include multiple subregions;Memory module, for according to pending data Data type it is determining with the matched subregion of pending data, pending data is stored to subregion.
In one exemplary embodiment, data processing equipment can also include: correction verification module, for according to unique identification school The permission of wearable device is tested, if verification does not pass through, abandons pending data, if verification passes through, dispatching memory module will Pending data is stored to memory block.
In one exemplary embodiment, if receiving module can be also used for receiving connecing for the first time for wearable device transmission Enter request, then access request will be forwarded to back-end server for the first time, so that back-end server can according to the foundation of access request for the first time The unique identification of wearable device, and from the unique identification of back-end server reception wearable device, and unique identification is returned To wearable device, so that unique identification is added in the data of subsequent transmission by wearable device.
In one exemplary embodiment, whether the unique identification that correction verification module can be used for detecting wearable device is to have deposited The unique identification of storage, if so, wearable device, by authorization check, unique identification is deposited by front-end server or back-end server It stores up to memory block.
In one exemplary embodiment, receiving module, if be also used to receive back-end server return about wait locate The processing result data for managing data, then be sent to wearable device for processing result data.
In one exemplary embodiment, data processing equipment can also include: monitoring modular, for connecing from wearable device State representation information is received, the current state of wearable device is judged according to state representation information.
In one exemplary embodiment, if the current state that monitoring modular can be also used for wearable device becomes Change, then the current state information of wearable device is sent to back-end server, to be sent to number of targets by back-end server According to platform.
The exemplary embodiment of the disclosure additionally provides a kind of data processing equipment of wearable device, can be applied to fit A target data platform at least one data platform with processing system, target data platform 140 as shown in figure 1.Such as figure Shown in 10, which may include: receiving module 1010, and for receiving pending data, pending data is taken by rear end Business device is sent to target data platform;Processing module 1020, for handling pending data;Wherein, pending data In include wearable device unique identification, unique identification and target data platform have incidence relation.
In one exemplary embodiment, processing module can be also used for handling pending data, obtain corresponding Processing result data, and back-end server and front-end server are passed sequentially through, processing result data is forwarded to wearable device, Or processing result data is added to the kafka of target data platform, so that wearable device is passed through objective of subscription data platform The mode of kafka obtains processing result data.
In one exemplary embodiment, processing module can be also used for the solicited message in identification pending data, be based on Solicited message searches historical data relevant to pending data in service database, and according to the historical data found Determine processing result data.
In one exemplary embodiment, data processing equipment can also include: memory module, for writing pending data Enter service database, to be stored as new historical data.
The detail of each module/unit has been described in detail in the embodiment of method part in above-mentioned apparatus, therefore It repeats no more.
The exemplary embodiment of the disclosure additionally provides a kind of electronic equipment that can be realized the above method.
Person of ordinary skill in the field it is understood that various aspects of the disclosure can be implemented as system, method or Program product.Therefore, various aspects of the disclosure can be with specific implementation is as follows, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
The electronic equipment 1100 of this exemplary embodiment according to the disclosure is described referring to Figure 11.Figure 11 is shown Electronic equipment 1100 be only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 11, electronic equipment 1100 is showed in the form of universal computing device.The component of electronic equipment 1100 can To include but is not limited to: at least one above-mentioned processing unit 1110, connects not homologous ray at least one above-mentioned storage unit 1120 The bus 1130 of component (including storage unit 1120 and processing unit 1110), display unit 1140.
Wherein, storage unit is stored with program code, and program code can be executed with unit 1110 processed, so that processing is single Member 1110 executes described in above-mentioned " illustrative methods " part of this specification according to the various illustrative embodiments of the disclosure Step.For example, processing unit 1110 can execute Fig. 2, Fig. 5, Fig. 6 or method and step shown in Fig. 7 etc..
Storage unit 1120 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 1121 and/or cache memory unit 1122, it can further include read-only memory unit (ROM) 1123.
Storage unit 1120 can also include program/utility with one group of (at least one) program module 1125 1124, such program module 1125 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 1130 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 1100 can also be with one or more external equipments 1300 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 1100 communicate, and/or with make The electronic equipment 1100 can with it is one or more of the other calculating equipment be communicated any equipment (such as router, modulation Demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 1150.Also, electronic equipment 1100 Network adapter 1160 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public affairs can also be passed through Common network network, such as internet) communication.As shown, network adapter 1160 passes through its of bus 1130 and electronic equipment 1100 The communication of its module.It should be understood that although not shown in the drawings, other hardware and/or software can be used in conjunction with electronic equipment 1100 Module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic Tape drive and data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to the exemplary implementation of the disclosure The method of example.
The exemplary embodiment of the disclosure additionally provides a kind of computer readable storage medium, and being stored thereon with can be realized The program product of this specification above method.In some possible embodiments, various aspects of the disclosure can also be realized For a kind of form of program product comprising program code, when program product is run on the terminal device, program code is used for Execute terminal device described in above-mentioned " illustrative methods " part of this specification according to the various exemplary embodiment party of the disclosure The step of formula.
With reference to shown in Figure 12, describes the program according to the exemplary embodiment of the disclosure for realizing the above method and produce Product 1200, can be using portable compact disc read only memory (CD-ROM) and including program code, and can set in terminal It is standby, such as run on PC.However, the program product of the disclosure is without being limited thereto, in this document, readable storage medium storing program for executing can With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.
Program product can be using any combination of one or more readable mediums.Readable medium can be readable signal Jie Matter or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or partly lead System, device or the device of body, or any above combination.More specific example (the non exhaustive column of readable storage medium storing program for executing Table) it include: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only storage Device (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the disclosure operation program Code, programming language include object oriented program language-Java, C++ etc., further include conventional process Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user It executes in equipment, partly execute on a user device, executing, as an independent software package partially in user calculating equipment Upper part executes on a remote computing or executes in remote computing device or server completely.It is being related to remotely counting In the situation for calculating equipment, remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of the processing according to included by the method for disclosure exemplary embodiment It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to an exemplary embodiment of the present disclosure, above-described two or More multimode or the feature and function of unit can embody in a module or unit.Conversely, above-described one A module or the feature and function of unit can be to be embodied by multiple modules or unit with further division.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points 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, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the attached claims.

Claims (28)

1. a kind of data processing method of wearable device, the back-end server applied to adaptation processing system, which is characterized in that The adaptation processing system further includes wearable device, front-end server and at least one data platform, the back-end server With the front-end server common storage area;The described method includes:
In response to the notice of the front-end server, pending data is obtained from the memory block, the pending data is by institute It states wearable device to be sent to the front-end server and be stored in the memory block, the front-end server notifies the rear end Server data to be handled enter the memory block;
According to the unique identification for the wearable device for including in the pending data, determined from the data platform to A few target data platform;
The pending data is sent to the target data platform, makes the target data platform to the pending data It is handled.
2. the method according to claim 1, wherein also including sample data in the pending data;By institute Pending data is stated to be sent to before the target data platform, the method also includes:
Determine that format turns referring to the transformational relation between data according to what the sample data and the target data platform provided Rule is changed, the pending data is formatted by the format transformation rule.
3. the method according to claim 1, wherein the method also includes:
If receiving the access request for the first time of the wearable device by the front-end server, connect for the first time based on described Enter request, establishes and store the unique identification and the unique identification and one or more data of the wearable device The incidence relation of platform;
The unique identification is back to the wearable device by the front-end server, so that the wearable device will The unique identification is added in the data of subsequent transmission.
4. according to the method described in claim 3, it is characterized in that, described can according to including in the pending data The unique identification of wearable device determines at least one target data platform from the data platform, comprising:
The unique identification of the wearable device is extracted from the pending data, and will be with the associated number of the unique identification It is determined as the target data platform according to platform.
5. the method according to claim 1, wherein described be sent to the number of targets for the pending data According to platform, comprising:
The pending data is sent to the target data platform by kafka or http agreement.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
After being successfully transmitted data by kafka or http agreement, in the memory block to the data sent addition Send mark;
Memory block described in periodic scan will not have the data for having sent mark and be sent to its corresponding data platform.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
The transmission frequency of failure of each data is recorded in the memory block;
If not having the data for having sent mark there are multiple in the memory block, preferentially will wherein send unsuccessfully secondary The most data of number are sent to its corresponding data platform.
8. the method according to the description of claim 7 is characterized in that the method also includes:
The data that the frequency of failure reaches preset value are sent if existed in the memory block, the number is deleted out of described memory block According to, and record the log information deleted about this.
9. according to the method described in claim 6, each subregion has it is characterized in that, the memory block includes multiple subregions Scheduled storage period;
After memory block described in the periodic scan, the method also includes:
Delete the data in each subregion more than storage period.
10. the method according to claim 1, wherein the method also includes:
It, will be described if receiving the processing result data about the pending data that the target data platform returns Processing result data is sent to the front-end server, to be forwarded to the wearable device by the front-end server.
11. a kind of data processing method of wearable device, applied to the front-end server of adaptation processing system, feature exists In the adaptation processing system further includes wearable device, back-end server and at least one data platform, the back-end services Device and the front-end server common storage area;The described method includes:
Pending data is received, the pending data is sent to the front-end server by the wearable device;
The pending data is stored to the memory block;
It notifies back-end server data to be handled to enter the memory block, makes the back-end server will be described to be processed Data are sent to the target data platform in the data platform, with the target data platform to the pending data into Row processing;
It wherein, include the unique identification of the wearable device, the unique identification and the target in the pending data Data platform has incidence relation.
12. according to the method for claim 11, which is characterized in that the memory block includes multiple subregions;
It is described to store the pending data to the memory block, comprising:
According to the determination of the data type of the pending data and the matched subregion of the pending data, by the number to be processed According to storing to the subregion.
13. according to the method for claim 11, which is characterized in that the method also includes:
The permission of the wearable device is verified according to the unique identification;
If verification does not pass through, the pending data is abandoned;
If verification passes through, the step of storing the pending data to the memory block is executed.
14. according to the method for claim 13, which is characterized in that the method also includes:
If receiving the access request for the first time that the wearable device is sent, the access request for the first time is forwarded to described Back-end server, so that the back-end server establishes unique mark of the wearable device according to the access request for the first time Know;
Receive the unique identification of the wearable device from the back-end server, and by the unique identification be back to it is described can Wearable device, so that the unique identification is added in the data of subsequent transmission by the wearable device.
15. according to the method for claim 14, which is characterized in that described described wearable according to unique identification verification The permission of equipment, comprising:
Whether the unique identification for detecting the wearable device is stored unique identification, if so, the wearable device By authorization check, the unique identification is stored by the front-end server or the back-end server to the memory block.
16. according to the method for claim 11, which is characterized in that the method also includes:
If the processing result data about the pending data that the back-end server returns is received, by the place Reason result data is sent to the wearable device.
17. according to the method for claim 11, which is characterized in that the method also includes:
From the wearable device reception state characterization information, the wearable device is judged according to the state representation information Current state.
18. according to the method for claim 17, which is characterized in that the method also includes:
If the current state of the wearable device changes, the current state information of the wearable device is sent To the back-end server, to be sent to the target data platform by the back-end server.
19. a kind of data processing method of wearable device, applied at least one data platform of adaptation processing system One target data platform, which is characterized in that the adaptation processing system further includes that wearable device, front-end server and rear end take Business device;The described method includes:
Pending data is received, the pending data is sent to the target data platform by the back-end server;
The pending data is handled;
It wherein, include the unique identification of the wearable device, the unique identification and the target in the pending data Data platform has incidence relation.
20. according to the method for claim 19, which is characterized in that described to handle the pending data, comprising:
The pending data is handled, corresponding processing result data is obtained;
The back-end server and the front-end server are passed sequentially through, the processing result data is forwarded to described wearable Equipment;Or the processing result data is added to the kafka of the target data platform, so that the wearable device is passed through subscription The mode of the kafka of the target data platform obtains the processing result data.
21. according to the method for claim 20, which is characterized in that it is described that the pending data is handled, it obtains Corresponding processing result data, comprising:
Identify the solicited message in the pending data, be based on the solicited message, in service database search with it is described The relevant historical data of pending data;
The processing result data is determined according to the historical data found.
22. according to the method for claim 21, which is characterized in that the method also includes:
The service database is written into the pending data, to be stored as new historical data.
23. a kind of data processing equipment of wearable device, applied to the back-end server of adaptation processing system, feature exists In the adaptation processing system further includes wearable device, front-end server and at least one data platform, the back-end services Device and the front-end server common storage area;Described device includes:
Obtain module, for the notice in response to the front-end server, obtain pending data from the memory block, it is described to Processing data are sent to the front-end server by the wearable device and are stored in the memory block, the front-end server Back-end server data to be handled are notified to enter the memory block;
Determining module, for the unique identification according to the wearable device for including in the pending data, from the number According at least one target data platform determining in platform;
Sending module makes the target data platform pair for the pending data to be sent to the target data platform The pending data is handled.
24. a kind of data processing equipment of wearable device, applied to the front-end server of adaptation processing system, feature exists In the adaptation processing system further includes wearable device, back-end server and at least one data platform, the back-end services Device and the front-end server common storage area;Described device includes:
Receiving module, for receiving pending data, the pending data is sent to the front end by the wearable device Server;
Memory module, for storing the pending data to the memory block;
Notification module makes the back-end services for notifying back-end server data to be handled to enter the memory block The pending data is sent to the target data platform in the data platform by device, in the target data platform to institute Pending data is stated to be handled;
It wherein, include the unique identification of the wearable device, the unique identification and the target in the pending data Data platform has incidence relation.
25. a kind of data processing equipment of wearable device, applied at least one data platform of adaptation processing system One target data platform, which is characterized in that the adaptation processing system further includes that wearable device, front-end server and rear end take Business device;Described device includes:
Receiving module, for receiving pending data, the pending data is sent to the target by the back-end server Data platform;
Processing module, for handling the pending data;
It wherein, include the unique identification of the wearable device, the unique identification and the target in the pending data Data platform has incidence relation.
26. a kind of adaptation processing system, which is characterized in that including wearable device, front-end server and back-end server and extremely A few data platform, the back-end server and the front-end server common storage area;Wherein:
The wearable device sends the pending data for acquiring pending data, and to the front-end server;
The front-end server stores the pending data to the memory block for receiving the pending data, and Back-end server data to be handled are notified to enter the memory block;
The back-end server obtains described to be processed for the notice in response to the front-end server from the memory block Data are determined from the data platform according to the unique identification for the wearable device for including in the pending data At least one target data platform, and the pending data is sent to the target data platform;
The target data platform, for receiving and processing the pending data.
27. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to come perform claim requirement 1-10,11-18 or 19- via the execution executable instruction Method described in any one of 22.
28. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Method described in any one of claim 1-10,11-18 or 19-22 is realized when being executed by processor.
CN201910441396.6A 2019-05-24 2019-05-24 Data processing method, device, system, equipment and medium for wearable equipment Active CN110166561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910441396.6A CN110166561B (en) 2019-05-24 2019-05-24 Data processing method, device, system, equipment and medium for wearable equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910441396.6A CN110166561B (en) 2019-05-24 2019-05-24 Data processing method, device, system, equipment and medium for wearable equipment

Publications (2)

Publication Number Publication Date
CN110166561A true CN110166561A (en) 2019-08-23
CN110166561B CN110166561B (en) 2022-04-15

Family

ID=67632814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910441396.6A Active CN110166561B (en) 2019-05-24 2019-05-24 Data processing method, device, system, equipment and medium for wearable equipment

Country Status (1)

Country Link
CN (1) CN110166561B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112801136A (en) * 2020-12-31 2021-05-14 广州技象科技有限公司 Internet of things gateway data processing method and device with feature identification

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195878A (en) * 2010-03-19 2011-09-21 F5网络公司 Proxy SSL handoff via mid-stream renegotiation
US20120108917A1 (en) * 2008-12-15 2012-05-03 Corventis, Inc. Patient monitoring systems and methods
US20130318152A1 (en) * 2011-05-04 2013-11-28 Appsfreedom, Inc. Method and system for exchanging information between back-end and front-end systems
US20170168802A1 (en) * 2015-12-14 2017-06-15 Facebook, Inc. Delegating database queries
CN107133297A (en) * 2017-04-26 2017-09-05 努比亚技术有限公司 Data interactive method, system and computer-readable recording medium
CN107328437A (en) * 2017-06-28 2017-11-07 国网上海市电力公司 Towards the wearable device of electric power safety inspection operation
US20170339255A1 (en) * 2014-12-04 2017-11-23 Koninklijke Philips N.V. Dynamic feedback for wearable devices
CN107431721A (en) * 2014-09-24 2017-12-01 甲骨文国际公司 Divide the application distribution for distinct electronic apparatuses
CN108833571A (en) * 2018-06-28 2018-11-16 中国建设银行股份有限公司 A kind of data interactive method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120108917A1 (en) * 2008-12-15 2012-05-03 Corventis, Inc. Patient monitoring systems and methods
CN102195878A (en) * 2010-03-19 2011-09-21 F5网络公司 Proxy SSL handoff via mid-stream renegotiation
US20130318152A1 (en) * 2011-05-04 2013-11-28 Appsfreedom, Inc. Method and system for exchanging information between back-end and front-end systems
CN107431721A (en) * 2014-09-24 2017-12-01 甲骨文国际公司 Divide the application distribution for distinct electronic apparatuses
US20170339255A1 (en) * 2014-12-04 2017-11-23 Koninklijke Philips N.V. Dynamic feedback for wearable devices
US20170168802A1 (en) * 2015-12-14 2017-06-15 Facebook, Inc. Delegating database queries
CN107133297A (en) * 2017-04-26 2017-09-05 努比亚技术有限公司 Data interactive method, system and computer-readable recording medium
CN107328437A (en) * 2017-06-28 2017-11-07 国网上海市电力公司 Towards the wearable device of electric power safety inspection operation
CN108833571A (en) * 2018-06-28 2018-11-16 中国建设银行股份有限公司 A kind of data interactive method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
彭金胜: "一种新型的Web国际化解决思路及实践", 《软件》 *
陈荣赏等: "LVS/DR、NGINX混合负载均衡集群技术应用研究", 《湖北民族学院学报(自然科学版)》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112801136A (en) * 2020-12-31 2021-05-14 广州技象科技有限公司 Internet of things gateway data processing method and device with feature identification

Also Published As

Publication number Publication date
CN110166561B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
US20220318657A1 (en) Artificial intelligence delivery edge network
EP3511881A1 (en) Information fusion in multi-domain operational environment
US11483349B2 (en) Multi-domain operational environment utilizing a common information layer
US10735262B1 (en) System and method for self-orchestrated canary release deployment within an API gateway architecture
EP3509025A1 (en) Automated multi-domain operational services
US20190373051A1 (en) Task Scheduling System for Internet of Things (IoT) Devices
US9961028B2 (en) Automated image consolidation and prediction
CN112346936A (en) Application fault root cause positioning method and system
US20220292346A1 (en) System and method for intelligent service intermediation
Diyan et al. Intelligent Internet of Things gateway supporting heterogeneous energy data management and processing
KR102039995B1 (en) Method and system for providnig efficient multimedia message depending on user context information in messenger service
CN107832365B (en) Multi-class travel product pushing method and device, electronic equipment and storage medium
CN115103157A (en) Video analysis method and device based on edge cloud cooperation, electronic equipment and medium
CN111259839A (en) Target object behavior monitoring method, device, equipment, system and storage medium
CN110166561A (en) Data processing method, device, system, equipment and the medium of wearable device
US11328205B2 (en) Generating featureless service provider matches
CN112203135A (en) Intelligent double-recording method, system and server
US20190087909A1 (en) Technology platform dispatch system
CN110442554B (en) Data management method and device for power inspection
CN112738153B (en) Gateway selection method, system, device, server and medium in service system
US10536822B1 (en) Identifying purpose and context of a line of people
CN113986965A (en) Data processing method based on monitoring operation and maintenance system and monitoring operation and maintenance system
CN112907008A (en) Processing method and device with viewing request, storage medium and equipment
CN109862298A (en) Scenario reduction Image Management method, apparatus, equipment and system
US20230169345A1 (en) Multiscale dimensional reduction of data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant