Invention content
Based on this, it is necessary in view of the above technical problems, provide a kind of method and apparatus of blood glucose meter data processing, blood glucose
Instrument, can remote upgrade software solve blood glucose meter defect problem, without by product recall.
A kind of method of blood glucose meter data processing, the method includes:
Version identifier read requests are sent to the measurement module of connection, read the current version identifications for measuring module;
The upgrade request for carrying the current version identifications is sent to server, so that the server is according to described current
Version identifier judges whether newer measurement module software, if it is present returning to update response data;
Update, which is obtained, according to the update response data measures module software data;
Update measurement module software data is sent to measurement module, is measured so as to measure and updated described in module burning
Module software data.
A kind of device of first blood glucose meter data processing, described device include:
Version identifier acquisition module reads the survey for sending version identifier read requests to the measurement module of connection
Measure the current version identifications of module;
Upgrade request module, for sending the upgrade request for carrying the current version identifications to server, so that described
Server judges whether newer measurement module software according to the current version identifications, is carried if it is present returning
Response data is updated, obtaining update according to the update response data measures module software data;
Update module is burnt for update measurement module software data to be sent to measurement module so as to measure module
It records the update and measures module software data.
The method and apparatus of above-mentioned blood glucose meter data processing, terminal support module by sending version identifier read requests extremely
The measurement module of connection reads the current version identifications for measuring module, and the upgrade request for sending carrying current version identifications extremely takes
Business device, so that the server judges whether newer measurement module software according to current version identifications, if it is present
Update response data is returned to, obtaining update according to update response data measures module software data, and update is measured module software
Data are sent to measurement module, so that measuring module burning update measures module software data, terminal supports module to realize to surveying
The intelligent terminal for measuring module supports that terminal supports module to be connect with module software is measured, and big data can be supported to transmit, according to
The update that the current version identifications of the measurement module of reading obtain new version from server measures module software data, and will update
It measures module software data and is sent to measurement module, so that measuring module burning update measures module software data, realize and survey
The update of quantity algorithm, can remote upgrade software solve blood glucose meter defect problem, without by product recall.
A kind of method of blood glucose meter data processing, the method includes:
The version identifier read requests that terminal supports module to send are received, are worked as according to version identifier read requests acquisition
Preceding measurement module version identifier;
The current measurement module version identifier is sent to terminal and supports module, so that the terminal supports module to send
The current upgrade request for measuring module version identifier is carried to server, module software data is measured to obtain to update;
It receives the update that the terminal supports that module is sent and measures module software data, update described in burning measures mould
Group software data.
A kind of device of second blood glucose meter data processing, described device include:
Version identifier respond module, the version identifier read requests for supporting module to send for receiving terminal, according to described
Version identifier read requests obtain current measurement module version identifier;
Sending module supports module, so that the end for the current measurement module version identifier to be sent to terminal
End supports module is sent to carry the current upgrade request for measuring module version identifier to server, and mould is measured to obtain to update
Group software data;
Burning module measures module software data, burning for receiving the update that the terminal supports that module is sent
The update measures module software data.
The method and apparatus of above-mentioned blood glucose meter data processing are read by receiving the version identifier that terminal supports that module is sent
Request obtains current measurement module version identifier according to version identifier read requests, will currently measure the transmission of module version identifier
Module is supported to terminal, so that terminal supports module transmission to carry the current upgrade request for measuring module version identifier to service
Device measures module software data to obtain to update, and receives the update that terminal supports that module is sent and measures module software data, burning
Update measures module software data, measures module and supports that the request of module transmission or data are responded accordingly according to terminal,
Terminal supports module to be connect with module is measured, and big data can be supported to transmit, with the current version identifications of return measurement module
Module is supported to terminal so that terminal supports the update that module obtains new version from server to measure module software data, and connects
It receives update and measures module software data, burning update measures module software data, realizes the update of Measurement Algorithm, can remotely rise
Grade software solves blood glucose meter defect problem, is not necessarily to product recall.
A kind of blood glucose meter, blood glucose meter include measuring module and terminal support module, and the measurement module and terminal support mould
Group electrical connection;Terminal supports that module includes the device of the first blood glucose meter data processing described in any of the above-described embodiment, the survey
Amount module includes the device of the second blood glucose meter data processing described in any of the above-described embodiment.
A kind of blood glucose meter, blood glucose meter include that the measurement module being electrically connected to each other and terminal support module, the measurement module
It is inserted into interface, blood glucose current module, microprocessor, first memory including test paper, the test paper is inserted into interface and blood glucose electric current
Module connects, and the blood glucose current module, first memory are connect with microprocessor respectively;
The blood glucose current module includes the built-in formula module of autocoding and temperature sensor;
The first memory measures module software for burning;
The microprocessor is used to support module to communicate acquisition update burning and measure module software data with terminal;
The terminal supports that module includes application processor, second memory, network communication module, second storage
Device, network communication module are connect with application processor respectively;
The application processor is used to obtain update burning measurement module with server communication by network communication module soft
Number of packages is transferred to the measurement module according to and by update burning measurement module software data;
The second memory measures module software data for storing the update burning.
Above-mentioned blood glucose meter supports module to be connect with module is measured, big data can be supported to transmit, measure mould by terminal
Group by return current version identifications to terminal support module, terminal support module pass through from server obtain new version update
Module software data is measured, module is measured and receives update measurement module software data, burning update measures module software data, real
The update of existing Measurement Algorithm, can remote upgrade software solve blood glucose meter defect problem, without by product recall.
Specific implementation mode
Fig. 1 is the applied environment figure of the method operation of blood glucose meter data processing in one embodiment.As shown in Figure 1, this is answered
Include blood glucose meter 110 and server 120 with environment, wherein blood glucose meter 110, server 120 is communicated by network.Blood glucose meter
110 include that the measurement module of electrical connection and terminal support module, measures module for measuring blood glucose value, terminal and supports that module is to survey
It measures module and intelligent terminal support is provided, terminal supports module that there is independent operating system, independent running space can install
The program that software and the third party service provider provide.Terminal supports that the operating system that module is supported can be Android operations system
System, IOS operating system etc..It measures module and terminal supports that module can be communicate through a serial port.Terminal supports module from measurement
Module reads current version identifications, and sends upgrade request to server 120, and server 120 is according to current in upgrade request
Version identifier judges whether newer measurement module software, if it is present supporting module to return to update response to terminal
Data, terminal supports module to obtain update measurement module software data according to update response data and is sent to measurement module, surveys
It measures module burning update and measures module software data, to realize remote upgrade software, if blood glucose meter manufacture measurement module is soft
Part existing defects problem, it is simple and convenient without can be achieved with automatically updating product recall.
In one embodiment, the internal structure of the blood glucose meter 110 in Fig. 1 is as shown in Fig. 2, the blood glucose meter 110 includes logical
The measurement module 111 and terminal for crossing data line connection support module 112, and it includes that test paper is inserted into interface, blood to measure module 111
Sugared current module, microprocessor, first memory, terminal support module 112 to include application processor, second memory, wherein
Second memory includes non-volatile memory medium and memory, network communication module, display screen and input unit, wherein terminal
It supports that the second memory of module 112 includes that non-volatile memory medium is stored with operating system, further includes the second blood glucose meter number
According to the device of processing, the device is for realizing a kind of method of the blood glucose meter data processing suitable for terminal support module 112.It should
Application processor supports entire terminal to support the operation of module 112 for providing calculating and control ability.Terminal supports module
The operation that the device of the second blood glucose meter data processing in non-volatile memory medium is saved as in 112 provides environment, network
Communication module is used to carry out network communication with server 120, can be wire communication module or wireless communication module, wireless communication
Module can be Wireless LAN module or cellular mobile communication networks module, and display screen is defeated for showing application interface etc.
Enter device for receiving order or data input by user etc., input unit may include loud speaker or button.For band touch screen
Terminal support module 112, show that screen and input unit can be touch screen.Wherein, the first memory packet of module 111 is measured
It includes non-volatile memory medium and is stored with measurement module software, further include the device of the first blood glucose meter data processing, which uses
In a kind of method for the blood glucose meter data processing being suitable for measuring module 111 of realization.The microprocessor is calculated and is controlled for providing
Ability processed supports the entire operation for measuring module 111.Measure in module 111 in save as in non-volatile memory medium the
The operation of the device of one blood glucose meter data processing provides environment.Structure shown in Figure 2, it is only relevant with application scheme
The block diagram of part-structure does not constitute the restriction for the blood glucose meter being applied thereon to application scheme, and specific blood glucose meter can
To include either combining certain components than more or fewer components as shown in the figure or being arranged with different components.
In one embodiment, above-mentioned to be applied to as shown in figure 3, providing a kind of method of blood glucose meter data processing
Terminal in application environment supports module to come for example, including the following steps:
Step S210 sends version identifier read requests to the measurement module of connection, reads the current version for measuring module
Mark.
It is measured for blood-sugar content value specifically, measuring module, passes through measurement module of the burning in the ROM for measuring module
The current signal that the electrochemistry of reading generates is converted to blood-sugar content concentration value by the built-in formula of software realization autocoding.It measures
Module supports module that can be connect by FPC connecting lines with the terminal in blood glucose meter, measures module and supports module fixed set with terminal
At in blood glucose meter.In one embodiment, terminal supports module to be fabricated to different separable ends respectively from module is measured
Product is held, electrical connection can be realized by way of grafting.Version identifier read requests can pass through customized Data Transport Protocol
It is sent, such as elongated data stream format Data Transport Protocol, version identifier read requests currently make for obtaining measurement module
The corresponding version of measurement module software.Different version identifiers corresponds to different measurement module software, contains calculating blood glucose
Different computational algorithms are corresponded to when measuring concentration value.If current version identifications it is corresponding measure module software deposit algorithmically lack
It falls into, the update of module software realization algorithm can be measured by update.
Step S220 sends the upgrade request for carrying current version identifications to server, so that server is according to current version
This mark judges whether newer measurement module software, if it is present returning to update response data.
Specifically, upgrade request is used to ask newer measurement module software, upgrade request that can carry currently to server
Version identifier, current blood glucose instrument model.Current version identifications are by the character string of certain rule definition, and version identifier can wrap
Include Chinese character, English character, punctuation mark etc..Server is compared according to current version identifications with the version identifier of storage
Judge whether newer version identifier, as version identifier be pure digi-tal when, comparison rule is the version if server storage
This mark is bigger than preceding version identifier, then for there are newer version identifiers.For there are the version identifiers of a variety of symbols, can pass through
Custom algorithm compares with the presence or absence of newer version identifier.There is the corresponding version of multiple and different model blood glucose meters in server storage
When this mark, the version identifier of corresponding server storage can be obtained according to the current blood glucose instrument model in upgrade request.Update
Response data can directly be that update measures module software package or new edition for obtaining newer measurement module software
The version identifier and download address of this measurement module software, so that terminal supports module to download update according to download address and measure
Module software, update response data can also carry verify data, such as digital signature, and verify data measures module for verifying update
The correctness of software prevents measurement module software to be forged or distort.It is surveyed if there is no the new version of current blood glucose instrument model
Module software is measured, then version identifier, download address, digital signature specific field can be filled out and return to terminal support module for sky
Client.
Step S230 obtains update according to update response data and measures module software data, update is measured module software
Data are sent to measurement module, so that measuring module burning update measures module software data.
Specifically, if directly carrying update in update response data measures module software data, can directly parse
It obtains, downloading to obtain update according to download address if update response data carries download address measures module software number
According to.Update is measured into module software data and is sent to measurement module, when transmission can be passed by self-defining data transport protocol
It passs.It measures module and receives update measurement module software data, write-in ROM covers original measurement module software data and weighs automatically
It opens the update read in and be newly written and measures the realization software burning of module running software, not needing additional recording device can be automatically real
Now update measures the burning of module software.
In the present embodiment, terminal supports module by sending version identifier read requests to the measurement module of connection, reads
The current version identifications of module are measured, send the upgrade request for carrying current version identifications to server, so that the server
Newer measurement module software is judged whether according to current version identifications, if it is present returning to update response data, root
Update, which is obtained, according to update response data measures module software data, update, which is measured module software data, is sent to measurement module,
So that measuring module burning update measures module software data, terminal supports module to realize the intelligent terminal branch to measuring module
It holds, terminal supports module to be connect with module software is measured, and big data can be supported to transmit, according to working as the measurement module of reading
The update that preceding version identifier obtains new version from server measures module software data, and update is measured module software data hair
It send to module is measured, so that measuring module burning update measures module software data, realizes the update of Measurement Algorithm, Neng Gouyuan
Journey upgrades software and solves blood glucose meter defect problem, is not necessarily to product recall.
In one embodiment, elongated data stream format data, elongated data stream format are used with when measuring module communication
Data include beginning field and ending field, command field, data length field and packets fields.
Specifically, the length that elongated data stream format data refer to data is variable, the transmission of big data can be supported.Become
The characteristics of long data is the value decision that certain data item whether there is the data item parsed before, is referred to as before parsed
Data item be condition data item.Start the beginning that field is used for identification data packet, ending field is used for the knot of identification data packet
Tail, beginning field and ending field can be filled by predetermined constant character.Command field is such as obtained for specifying the current command
It takes current version identifications order, update to measure module software data order, purposes for showing data or specified needs to obtain
Data.Data length field is used to describe the length of packets fields, if length is 0, shows that data packet is not present, this
Corresponding order of secondary elongated data is acquisition type order.Packets fields are used to fill the data of actual needs transmission.Data packet
If there is system reserved field in field, system reserved field includes beginning field and ending field, the escape of predetermined constant
Field then needs field progress escape identical with system reserved field in packets fields being indicated with other fields,
In order to avoid obscuring with system reserved field so that resolve packet is wrong.
In one embodiment, elongated data stream format data further include check code field.
Specifically, check code field is used for the integrality of verification data transmission, avoid due to wrong mistake caused by packet loss.It is logical
It crosses and the data content progress check code of packets fields is calculated, be packed into check code field.Specific check code calculates
Method can customize, and such as use cyclic redundancy check code crc16 checking algorithms.
In a specific embodiment, the format of each data packet of elongated data flow is as shown in table 1:
It indicates that i-th of byte, wherein Byte1 are the beginning of data packet with Bytei, is command word for constant 0x7E, Byte2
Section, specified is currently any order, and Byte3 is the length of data packet Data fields, and Byte4~Byte (N+3) is data portion,
Length is the length that Byte3 is specified, and Byte (N+4)~Byte (N+5) is check code part, uses crc16 checking algorithms, logarithm
Check code is carried out according to packet Data contents to be calculated, (ByteN+5) is data inclusion tail, is constant 0x7E.Because 0x7E is to use
In the beginning and end of identification data packet, if there are this bytes for data portion, it will allow program to obscure for end of data
Or opening flag, lead to not expected error result, therefore once data portion needs to carry out escape there are these values,
Other bytes are converted to indicate, if there are the data of 0x7E for packet data part, escape table is carried out using 0x3E 0x7F
Show, and 0x3E is intended for the mark that escape data starts, and is that program reservation uses, and retains if data portion exists
Value, needs to carry out escape to indicate for other bytes, converts the value of escape to original value again when carrying out resolve packet, such as
There are the data of 0x3E for fruit packet data part, then use 0x3E 0x3F to carry out escape expression.
In one embodiment, before step S210, further include:The corresponding mark of version identifier read requests is obtained to read
Command field generates corresponding elongated data stream format data according to mark read command field and is asked as version identifier reading
It asks.
Specifically, when measurement module supports module to be communicated with terminal, request and request response data all pass through spy
The elongated data stream format data for the formula that fixes are indicated.Different requests can correspond to different mark reading orders, such as use
0x01 fills inlet identity read command field as mark reading order, measures module and receives elongated data stream format data
When, the value of parsing mark read command field then obtains current version identifications data in response if it is 0x01.
In one embodiment, as shown in figure 4, update, which is measured module software data, in step S230 is sent to measurement mould
Group the step of include:
Update is measured module software data piecemeal by step S231, obtains piecemeal sum and the corresponding son of each piecemeal more
It is new to measure module software data.
Specifically, if it is big data that update, which measures module software data, block transmission, specific piecemeal length can be used
Can be self-defined as needed, partition strategy can be self-defined as needed, such as uses fixed length piecemeal or elongated piecemeal.Each piecemeal
There is corresponding piecemeal to identify, module software data is measured for identifying the corresponding sub- update of a piecemeal.
Sub- update is measured the preset characters in module software data and is replaced using escape character, obtained more by step S232
It is new to measure the corresponding update measurement module command field of module.
It is replaced using escape character specifically, each height to be updated to the preset characters measured in module software data, it is different
Request can correspond to different mark reading orders, such as using 0x02 as update measure module order be packed into update measure mould
Group command field, when measurement module receives elongated data stream format data, the value of parsing mark read command field, if it is
0x02, then the packet data burning that will be received, update measure module software.
Step S233 generates the elongated data stream format data of the corresponding piecemeal of each piecemeal, the elongated data stream format of piecemeal
Data include that update measures module command field, and packets fields include the corresponding piecemeal mark of each piecemeal and piecemeal mark pair
The son update answered measures module software data.
Specifically, the field of the beginning preset byte of packets fields can be filled to piecemeal mark, as data unwrap first 2 word
Section is the sequence number of piecemeal.Predetermined sequence number can be transmitted after all piecemeals elongated data stream format data transmission as knot
Bundle flag such as indicates that measuring module software file transfer finishes as Serial No. 0xFF.
In the present embodiment, it can avoid integrally malfunctioning when big data is transmitted as a data packet using block transmission, can will go out
Block data packet that is wrong or losing is retransmitted, and fault-tolerant ability is improved.
In one embodiment, the data content progress check code meter of module software data is measured by being updated to each height
Calculation obtains check code, is packed into check code field, and the corresponding elongated data stream format data of piecemeal of each piecemeal include verification
Code field is used to verify the integrality and correctness of block data.
In one embodiment, update response data includes digital signature, will be updated in step S230 and measures module software
Data were sent to before the step of measuring module, further included:The current abstract that update measures module software data is calculated, public affairs are used
Key is decrypted digital signature to obtain standard abstract, and relatively more current abstract is made a summary with standard, if identical, is entered step
Update is measured module software data and is sent to measurement module by S230, if it is not the same, not dealing with then.
Specifically, digital signature is for differentiating digital information, a set of digital signature usually defines two kinds of complementary operations, one
It is a for signing, another is the piece of digital that other people that only information transmitter could generate can not forge for verifying
String is the valid certificates that information authenticity is sent to the sender of information.It is service to update the digital signature that response data carries
Device is encrypted the standard abstract of the update measurement module software data stored in server using private key and obtains, when terminal branch
Hold module receive server transmission update measure module software data when, digital signature is decrypted using public key and is marked
Quasi- abstract calculates the current abstract that the update received measures module software data, and relatively more current abstract is made a summary with standard, if
It is identical, then illustrate that the update received measures module software data and is not tampered with or forges, then entering step S230 will update
It measures module software data and is sent to measurement module, if it is not the same, then illustrating that the update received measures module software data
It may be the data distorted or forged, then not deal with.
In the present embodiment, by carrying digital signature in updating response data, improves update and measure module software number
According to authenticity, be further ensured that the correctness for measuring module software upgrading, ensure blood glucose meter to the accuracy of blood glucose measurement.
In one embodiment, as shown in figure 5, sending the upgrade request extremely clothes for carrying current version identifications in step S220
Be engaged in device the step of include:
Step S221, detection are currently up whether meet preset condition, and preset condition includes starting arrival upgrading week time
Phase and it is improper any one of restart, if meeting preset condition, enter step S222, otherwise do not deal with.
Specifically, can customize preset condition, such as provide that the startup time started for the first time each consecutive days is upgrade cycle,
It is improper that restart refer to leading to automatic shutdown caused by failure and restarting during use.
Step S222, whether detection is current with server communication, and current version identifications are carried if it is not, then sending
If upgrade request, in currently being communicated with server, is not dealt with to server.
Specifically, refer to and server exchange data with server communication, if in being currently not and being communicated with server,
The upgrade request for carrying current version identifications is sent to server, otherwise shows to have had sent upgrade request, is waiting for clothes
Business device response, then do not deal with.In one embodiment, judge the number of responses that server returns whether is received in preset time
According to if do not received, retransmitting upgrade request to server.
In the present embodiment, upgrade request is sent from trend server when being reached by preset condition, it can be automatically to measuring mould
Group software data is updated, and ensures newer promptness.
In one embodiment, as shown in fig. 6, providing a kind of method of blood glucose meter data processing, including:
Step S310 receives the version identifier read requests that terminal supports module to send, according to version identifier read requests
Obtain current measurement module version identifier.
Specifically, terminal supports module provides intelligent terminal support to measure module, it can be when preset condition meets to survey
It measures module and sends version identifier read requests.Version identifier read requests can be sent out by customized Data Transport Protocol
It send, such as elongated data stream format Data Transport Protocol, version identifier read requests, which are used to obtain, measures the currently used survey of module
Measure the corresponding version of module software.Different version identifiers corresponds to different measurement module software, is calculating blood-sugar content concentration
Different computational algorithms are corresponded to when value.If the corresponding measurement module software of current version identifications deposits defect algorithmically, can lead to
Cross the update that update measures module software realization algorithm.Version identifier read requests are parsed, version identifier read requests are such as obtained
Corresponding command field obtains version identifier order, and current measurement module version identifier is obtained according to version identifier order.
The current module version identifier that measures is sent to terminal support module, so that terminal supports module hair by step S320
It send and carries the current upgrade request for measuring module version identifier to server, module software data is measured to obtain to update.
Module is supported specifically, current will measure module version identifier and be sent to terminal, and when transmission can be by customized
Transport protocol is sent, and terminal supports module to receive current measurement module version identifier, then measures module version according to current
Mark generates upgrade request and is sent to server.Upgrade request is used to ask newer measurement module software to server, rises
Grade request can carry current version identifications, current blood glucose instrument model.Current version identifications are the word by certain rule definition
Symbol string, version identifier may include Chinese character, English character, punctuation mark etc..Server is according to current version identifications and storage
Version identifier be compared and judge whether newer version identifier, when such as version identifier being pure digi-tal, comparison rule is
If the version identifier of server storage is bigger than preceding version identifier, for there are newer version identifiers.For there are a variety of symbols
Number version identifier, can be compared by custom algorithm with the presence or absence of newer version identifier.Server storage have it is multiple not
With model blood glucose meter when corresponding version identifier, corresponding server can be obtained according to the current blood glucose instrument model in upgrade request
The version identifier of storage.Update response data can directly be that update measurement module is soft for obtaining newer measurement module software
Part data packet or new version measure the version identifier and download address of module software so that terminal support module according to
Download address downloads update and measures module software, and update response data can also carry verify data, such as digital signature, verify data
The correctness that module software is measured for verifying update prevents measurement module software to be forged or distort.If there is no current
The new version of blood glucose meter model measures module software, then can fill out version identifier, download address, digital signature specific field for sky
Return to the client that terminal supports module.Terminal supports the update response data directly parsing that module is returned according to server to obtain
It takes update to measure module software data, or downloads to obtain to update according to the download address in update response data and measure module software
Data, and it is sent to measurement module.
Step S330 receives the update that terminal supports that module is sent and measures module software data, and burning update measures module
Software data.
Module software data is measured specifically, measuring module and receiving update, ROM is written and restarts the new write-in of reading automatically
Update measure module running software realize software burning, do not need additional recording device can realize automatically update measure mould
The burning of group software.
In the present embodiment, the version identifier read requests for supporting module to send by receiving terminal are read according to version identifier
It takes acquisition request currently to measure module version identifier, the current module version identifier that measures is sent to terminal support module, so that
Terminal supports module is sent to carry the current upgrade request for measuring module version identifier to server, and module is measured to obtain to update
Software data receives the update that terminal supports that module is sent and measures module software data, and burning update measures module software data,
It measures module and supports that the request of module transmission or data are responded accordingly according to terminal, terminal supports module and measures module
It is connection, big data can be supported to transmit, supports module with the current version identifications of return measurement module to terminal so that terminal
It supports the update that module obtains new version from server to measure module software data, and receives update and measure module software data,
Burning update measure module software data, realize the update of Measurement Algorithm, can remote upgrade software solve blood glucose meter defect ask
Topic is not necessarily to product recall.
In one embodiment, it supports to use elongated data stream format data, elongated data flow when module communication with terminal
Formatted data includes beginning field and ending field, command field, data length field and packets fields.
In one embodiment, elongated data stream format data further include check code field.
Specifically, check code field is used for the integrality of verification data transmission, avoid due to wrong mistake caused by packet loss.It is logical
It crosses and the data content progress check code of packets fields is calculated, be packed into check code field.Specific check code calculates
Method can customize, and such as use cyclic redundancy check code crc16 checking algorithms.It measures module and parses elongated data stream format data
Check code is obtained, the integrality of the elongated data stream format data received is calculated according to check code.
In one embodiment, it includes the elongated data stream format data of multiple piecemeals that update, which measures module software data, such as
Shown in Fig. 7, step S330 includes:
Step S331 obtains the elongated data stream format data of each piecemeal, parses the elongated data stream format number of each piecemeal
According to, obtain the corresponding packets fields of the elongated data stream format data of each piecemeal, packets fields include piecemeal mark and point
The corresponding sub- update of block identification measures module software data.
Specifically, piecemeal mark measures module software data for identifying the corresponding sub- update of a piecemeal, from data packet
The predeterminated position of field extracts to obtain piecemeal mark, and unwrap first 2 byte such as data identifies for piecemeal.
Sub- update is measured the sequence of module software data according to the size of piecemeal mark and combination producing is complete by step S332
Update measures module software data.
Specifically, piecemeal mark generally then can directly identify the size of piecemeal mark using pure digi-tal according to Digital size,
If piecemeal mark uses multiple types character, such as number and monogram to be formed, then module agreement can be supported by with terminal
Sub- update is sequentially measured module software data group symphysis by the size of rule identification piecemeal mark to be ranked up
Module software data is measured at complete update.
Step S333 parses the elongated data stream format data of each piecemeal and obtains command field, if command field is more
New to measure module order, then burning update measures module software data.
Specifically, the corresponding predeterminated position of command field is obtained according to the create-rule of elongated data stream format data, from
And the corresponding data of read command field, the corresponding data of resolve command field, module order is measured if it is update, then is needed
Burning update measures module software data, and update is measured module software data write-in ROM and restarts the new write-in of reading automatically
Update measure module running software realize software burning.
In one embodiment, if detecting that piecemeal mark is discontinuous, there are the piecemeal of missing marks, then can will lack
Piecemeal mark be back to terminal and support module so that terminal supports the piecemeal that module retransmits missing to identify corresponding number
According to.
In the present embodiment, it can avoid integrally malfunctioning when big data is transmitted as a data packet using block transmission, can will go out
Block data packet that is wrong or losing is retransmitted, and fault-tolerant ability is improved.
In one embodiment, as shown in figure 8, providing a kind of device 400 of blood glucose meter data processing, including:
Version identifier acquisition module 410, for sending version identifier read requests to the measurement module of connection, described in reading
Measure the current version identifications of module.
Upgrade request module 420, for sending the upgrade request for carrying current version identifications to server, so that server
Newer measurement module software is judged whether according to current version identifications, and update number of responses is carried if it is present returning
According to according to update response data acquisition update measurement module software data.
Update module 430 is sent to measurement module, so as to measure module burning for that will update measurement module software data
The update measures module software data.
In one embodiment, elongated data stream format data, elongated data stream format are used with when measuring module communication
Data include beginning field and ending field, command field, data length field and packets fields.
In one embodiment, as shown in figure 9, device further includes:
Version identifier read requests generation module 440 reads life for obtaining the corresponding mark of version identifier read requests
Field is enabled, corresponding elongated data stream format data are generated as version identifier read requests according to mark read command field.
In one embodiment, as shown in Figure 10, update module 430 includes:
Blocking unit 431 obtains piecemeal sum and each piecemeal for the update to be measured module software data piecemeal
Corresponding sub- update measures module software data;
Escape unit 432 uses escape character for the sub- update to be measured the preset characters in module software data
It replaces;
Generation unit 433 measures the corresponding update measurement module command field of module for obtaining update, generates each point
The elongated data stream format data of the corresponding piecemeal of block, the elongated data stream format data of piecemeal include that update measures module command word
Section, packets fields include that the corresponding piecemeal mark of each piecemeal and the corresponding sub- update of piecemeal mark measure module software number
According to.
In one embodiment, update response data includes digital signature, and as shown in figure 11, device further includes:
Judgment module 450 measures the current abstract of module software data for calculating update, using public key to digital signature
It is decrypted to obtain standard abstract, relatively more current abstract is made a summary with standard, if identical, enters update module 430, if not
It is identical, then it does not deal with.
In one embodiment, upgrade request module 420 is additionally operable to detection is currently up whether meet preset condition, presets
Condition include start the time reach upgrade cycle and it is improper any one of restart, if meeting preset condition, detection is worked as
It is preceding whether with server communicate in, if it is not, then send carry current version identifications upgrade request to server, if worked as
Preceding startup is unsatisfactory for preset condition, then does not deal with.
In one embodiment, as shown in figure 12, a kind of device 500 of blood glucose meter data processing is provided, device includes:
Version identifier respond module 510, the version identifier read requests for supporting module to send for receiving terminal, according to version
This mark read requests obtain current measurement module version identifier.
Sending module 520, for the current module version identifier that measures to be sent to terminal support module, so that terminal is supported
Module, which is sent, carries the current upgrade request for measuring module version identifier to server, and module software number is measured to obtain to update
According to.
Burning module 530 measures module software data for receiving the update that terminal supports that module is sent, and burning update is surveyed
Measure module software data.
In one embodiment, it supports to use elongated data stream format data, the change long number when module communication with terminal
According to stream format data include beginning field and ending field, command field, data length field and packets fields.
In one embodiment, it includes the elongated data stream format data of multiple piecemeals that update, which measures module software data, such as
Shown in Figure 13, burning module 530 includes:
Son update measures module software data acquiring unit 531, for obtaining the elongated data stream format data of each piecemeal,
The elongated data stream format data of each piecemeal are parsed, the corresponding data packet word of the elongated data stream format data of each piecemeal is obtained
Section, packets fields include that piecemeal mark and the corresponding sub- update of piecemeal mark measure module software data.
Complete update measures module software data acquiring unit 532, and the size for being identified according to piecemeal surveys sub- update
The sequence of amount module software data and combination producing, which completely update, measures module software data.
Burning unit 533 obtains command field, if command word for parsing the elongated data stream format data of each piecemeal
Section is that update measures module order, then burning update measures module software data.
In one embodiment, as shown in figure 14, a kind of blood glucose meter 600 is provided, blood glucose meter 600 includes measuring module
610 and terminal support module 620, measure module 610 and terminal and module electricity 620 supported to be electrically connected;
Terminal supports that module 620 includes the device 400 of the blood glucose meter data processing described in any of the above-described embodiment;
Measure the device 500 that module 610 includes the blood glucose meter data processing described in any of the above-described embodiment.
In the present embodiment, terminal supports module to be connect with measurement module, can be detachable connection, can also
It is to be fixedly connected, big data can be supported to transmit, measures module and pass through the 500 return measurement module of device of blood glucose meter data processing
Current version identifications to terminal supports module, terminal that module is supported to be obtained from server by the device 400 of blood glucose meter data processing
It takes the update of new version to measure module software data, measures module and update survey is received by the device 500 of blood glucose meter data processing
Module software data is measured, burning update measures module software data, realizes the update of Measurement Algorithm, being capable of remote upgrade software solution
Certainly blood glucose meter defect problem is not necessarily to product recall.
In one embodiment, as shown in figure 15, a kind of blood glucose meter 700 is provided, blood glucose meter includes being electrically connected to each other
It measures module 710 and terminal supports module 720.
It includes that test paper is inserted into interface 711, blood glucose current module 712, microprocessor 713, first memory to measure module 710
714, test paper is inserted into interface 711 and is connect with blood glucose current module 712, and the blood glucose current module 712, first memory 714 divide
It is not connect with microprocessor 713, blood glucose current module 712 includes the built-in formula module 712a of autocoding and temperature sensor
712b, first memory 714 measure module software for burning, and microprocessor 713 is used to support module 720 communicates to obtain with terminal
Update burning is taken to measure module software data.
Terminal supports that module 720 includes application processor 721, second memory 722, network communication module 723, described the
Two memories 722, network communication module 723 are connect with application processor 721 respectively.Application processor 721 is for passing through network
Communication module 723 obtains update burning measurement module software data with server communication and update burning is measured module software number
Module 710 is measured according to being transferred to, second memory 722 measures module software data for storing update burning.
It is used to before taking a blood sample be inserted into test paper specifically, test paper is inserted into interface 711, bleed after being inserted into test paper, blood and enzyme reaction
Electric current is generated, the conductor on test paper is contacted with the conductor of interface so that blood glucose current module 712 monitors that blood is anti-with enzyme
The electric current that should be generated.Blood glucose current module 712 is used for according to electric current and the built-in formula module 712a of autocoding and temperature sensing
Blood glucose value is calculated in device 712b, and the built-in formula module 712a of autocoding is stored obtains the calculation of blood glucose value according to Current calculation
Method formula, due to chemical action and temperature strong correlation, temperature is that current information is finally converted into one of blood glucose value weight
Parameter is wanted, temperature is obtained by temperature sensor 712b.714 burning of first memory measurement module software passes through and measures mould
The built-in formula module 712a of autocoding may be updated in group software, to the computational methods of renewable blood glucose value, repairs algorithm errors
With obtain more accurate blood glucose value.Microprocessor 713 provides calculating and control ability, supports the entire operation for measuring module 710,
Module 720 is supported to communicate acquisition update and measure module software data deposit first memory 714 with terminal.
Terminal supports the application processor 721 of module 720 to provide calculating and control ability, and entire terminal is supported to support module
720 operation, terminal support module 720 to be respectively present independent processor with module 710 is measured, can the respective thing of parallel processing
Business.Network communication module 723 carries out network communication with server 120, obtains update and measures module software data and be sent to survey
Measure module 710.Terminal supports module that can be integrated in including mobile phone, tablet computer, personal digital assistant or Wearable
On.
In one embodiment, microprocessor is additionally operable to the communication data of module will be supported to be converted to elongated data with terminal
Stream format data and the elongated data stream format data of parsing, application processor are additionally operable to convert with the communication data for measuring module
For elongated data stream format data and parse elongated data stream format data.
Specifically, the specific format of elongated data stream format data can be self-defined as needed, in one embodiment, become
Long data stream format data includes starting field and ending field, command field, data length field and packets fields, optional
Including check code field.
In one embodiment, it measures module 710 and terminal supports module 720 to pass through FPC (Flexible Printed
Circuit, flexible PCB) connecting line connection.
In one embodiment, as shown in figure 16, terminal support module 720 further include display screen 724, loud speaker 725, by
At least one of key 726, the application processor 721 are connect at least one of display screen, loud speaker, button.
Specifically, wherein display screen can be LCD (Liquid Crystal Display, liquid crystal display) display screens or
Electric ink display screen, button can be the virtual key on physical keyboard button or Trackpad.
In one embodiment, as shown in figure 17, terminal supports that module 720 further includes power module 727, for being terminal
It supports module and measures module power supply.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, in the embodiment of the present invention, which can be stored in the storage medium of computer system, and by the computer system
At least one processor executes, and includes the flow such as the embodiment of above-mentioned each method with realization.Wherein, the storage medium can be
Magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, it is all considered to be the range of this specification record.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.