CN108712236A - A kind of information processing method, device and electronic equipment - Google Patents

A kind of information processing method, device and electronic equipment Download PDF

Info

Publication number
CN108712236A
CN108712236A CN201810734980.6A CN201810734980A CN108712236A CN 108712236 A CN108712236 A CN 108712236A CN 201810734980 A CN201810734980 A CN 201810734980A CN 108712236 A CN108712236 A CN 108712236A
Authority
CN
China
Prior art keywords
information
data
data head
head
partial
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
CN201810734980.6A
Other languages
Chinese (zh)
Other versions
CN108712236B (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 Bitmain Technology Co Ltd
Original Assignee
Beijing Bitmain 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 Bitmain Technology Co Ltd filed Critical Beijing Bitmain Technology Co Ltd
Priority to CN201810734980.6A priority Critical patent/CN108712236B/en
Publication of CN108712236A publication Critical patent/CN108712236A/en
Application granted granted Critical
Publication of CN108712236B publication Critical patent/CN108712236B/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
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention discloses a kind of information processing method, device and electronic equipments, are applied to field of communication technology.When getting data information, the partial information of the data head of the data information can first determine that, and when the partial information for determining the data head is consistent with the partial information of the data head to prestore, can determine that the data volume of the data information is effective information.Compared with the prior art, in embodiments of the present invention, when getting one group of data information, without comparing the accuracy of entire data head, and the accuracy of the partial information of correction data head is only needed, and, when the partial information for determining data head is correct, it can determine that the data volume after data head is effective information and reduces cost of implementation to improve the treatment effeciency of data information.

Description

A kind of information processing method, device and electronic equipment
Technical field
The present invention relates to a kind of field of communication technology more particularly to information processing method, device and electronic equipments.
Background technology
Currently, in the communication process of apparatus for transmitting signal and signal receiver, when signal receiver receives letter The data information that number sending device is sent can first judge whether the data head of data information is completely correct, if so, can resulting number It is believed that the data volume in breath is effective information, otherwise, it can determine that the data volume in data information is invalid information, need to inform letter Number sending device retransmits.
But applicant has found under study for action, and in practical applications, due to circuit shakiness etc., the number of data information According to head it is possible that first place (either several first) loses or the situation of the first (or several first) mistake, and such case is simultaneously It is not caused by channel-failures, after circuit stability, transmission sequence is in the data volume after data head may be not Will appear mistake, if retransmit data information, it is possible to the treatment effeciency of data information can be influenced, can also increase it is additional at This.
That is, there are treatment effeciency is relatively low and the higher problem of cost for existing information processing method.
Invention content
In a first aspect, an embodiment of the present invention provides a kind of information processing methods, including:
Obtain data information;Data information includes data head and data volume;
Determine the partial information of data head;
When the partial information of data head is consistent with the partial information of the data head to prestore, determine that data volume is effectively to believe Breath.
That is, when getting one group of data information, without comparing the accuracy of entire data head, and only need to compare The accuracy of the partial information of data head, and, when the partial information for determining data head is correct, you can judgement in data head it Data volume afterwards is effective information reduces cost of implementation to improve the treatment effeciency of data information.
With reference to first aspect, in the possible realization method of the first of first aspect, the part letter of data head is determined Breath, including:
Determine N in data head;Wherein, N is positive integer;
Using the information being made of to last N in data head as the partial information of data head.
That is, can first determine a certain position in data head, and the continuous information that this can be formed to last As the partial information of data head, to improve determining data head partial information flexibility.
With reference to first aspect, in second of first aspect of possible realization method, the part letter of data head is determined It ceases, further includes:
It determines M reciprocal in data head;Wherein, M is positive integer;
Using the information being made of to last M reciprocal in data head as the partial information of data head.
That is, in addition to aforesaid way, a certain position of inverse in data head can be also first determined, and can be by the position to last Partial information of the continuous information of one composition as data head, to further improve the flexible of the partial information of data head Property.
With reference to first aspect, in the third possible realization method of first aspect, determining that data volume is effective After information, information processing method further includes:
The authenticity of verification data body.
That is, after determining that data volume is effective information, it also can determine whether data volume is correct information, to Improve the validity and correctness of data transmission.
With reference to first aspect, in the 4th kind of first aspect of possible realization method, information processing method further includes:
When the partial information of the partial information of data head and the data head to prestore is inconsistent, determine that data volume is invalid letter Breath.
That is, when the partial information of the partial information for determining data head and the data head to prestore is inconsistent, may be used also It directly determines that data volume is invalid information, and abandons the invalid data body, so as to avoid there is error message in data transmission The case where, improve the correctness of transmission data.
The 4th kind of possible realization method with reference to first aspect, in the 5th kind of possible realization method of first aspect In, after determining that data volume is invalid information, information processing method further includes:
Reissue commands are sent to information transmitting terminal, to retransmit data information by information transmitting terminal.
That is, when it is invalid information to determine data volume, it also may be notified that information transmitting terminal retransmits data information, To ensure that the validity and correctness of data information.
Second aspect, an embodiment of the present invention provides a kind of information processing units, including:
Acquisition module, for obtaining data information;Data information includes data head and data volume;
Determining module, the partial information for determining data head;
Processing module, for when the partial information of data head is consistent with the partial information of the data head to prestore, determining Data volume is effective information.
That is, information processing unit is when getting one group of data information, without comparing the accurate of entire data head Property, and the accuracy of the partial information of correction data head is only needed, and, when the partial information for determining data head is correct, you can sentence Surely the data volume after data head, which is effective information, reduces and is implemented as to improve the treatment effeciency of data information This.
In conjunction with second aspect, in the possible realization method of the first of second aspect,
Determining module, for determining N in data head;And it will be by N in data head to last institute's group At partial information of the information as data head;Wherein, N is positive integer.
That is, can first determine a certain position in data head, and the continuous information that this can be formed to last As the partial information of data head, to improve determining data head partial information flexibility.
In conjunction with second aspect, in second of second aspect of possible realization method,
Determining module, it is M reciprocal in data head for determining;And by by M reciprocal in data head to last Partial information of one information formed as data head;Wherein, M is positive integer.
That is, in addition to aforesaid way, a certain position of inverse in data head can be also first determined, and can be by the position to last Partial information of the continuous information of one composition as data head, to further improve the flexible of the partial information of data head Property.
In conjunction with second aspect, in the third possible realization method of second aspect, information processing unit further includes:
Correction verification module, for determine data volume be effective information after, the authenticity of verification data body.
That is, after determining that data volume is effective information, it also can determine whether data volume is correct information, to Improve the validity and correctness of data transmission.
In conjunction with second aspect, in the 4th kind of second aspect of possible realization method,
Processing module is additionally operable to when the partial information of the partial information of data head and the data head to prestore is inconsistent, really It is invalid information to determine data volume.
That is, when the partial information of the partial information for determining data head and the data head to prestore is inconsistent, may be used also It directly determines that data volume is invalid information, and abandons the invalid data body, so as to avoid there is error message in data transmission The case where, improve the correctness of transmission data.
In conjunction with the 4th kind of possible realization method of second aspect, in the 5th kind of possible realization method of second aspect In, information processing unit further includes:
Sending module, for determine data volume be invalid information after, to information transmitting terminal send reissue commands, with by Information transmitting terminal retransmits data information.
That is, when it is invalid information to determine data volume, it also may be notified that information transmitting terminal retransmits data information, To ensure that the validity and correctness of data information.
The third aspect, an embodiment of the present invention provides the information processings in a kind of electronic equipment, including the embodiment of the present invention Device.
That is, information processing unit is when getting one group of data information, without comparing the accurate of entire data head Property, and the accuracy of the partial information of correction data head is only needed, and, when the partial information for determining data head is correct, you can sentence Surely the data volume after data head, which is effective information, reduces and is implemented as to improve the treatment effeciency of data information This.
Fourth aspect, an embodiment of the present invention provides a kind of computer equipments, including:
Memory, for storing program instruction;
Processor, for calling the program instruction stored in memory, to execute the information processing in the embodiment of the present invention Method.
That is, the processor in computer equipment is when getting one group of data information, without comparing entire data The accuracy of head, and the accuracy of the partial information of correction data head is only needed, and, it is correct in the partial information for determining data head When, you can data volume of the judgement after data head is effective information, to improve the treatment effeciency of data information, is reduced Cost of implementation.
5th aspect, an embodiment of the present invention provides a kind of computer storage media, computer storage media is stored with meter Calculation machine executable instruction, the information processing method that computer executable instructions are used to that computer to be made to execute in the embodiment of the present invention.
That is, when getting one group of data information, without comparing the accuracy of entire data head, and only need to compare The accuracy of the partial information of data head, and, when the partial information for determining data head is correct, you can judgement in data head it Data volume afterwards is effective information reduces cost of implementation to improve the treatment effeciency of data information.
The present invention has the beneficial effect that:
In conjunction with the aspect of above-mentioned first aspect~5th, an embodiment of the present invention provides a kind of information processing method, device with And electronic equipment can first determine that the partial information of the data head of data information, and determining number when getting data information When consistent with the partial information of the data head to prestore according to the partial information of head, it can determine that the data volume of data information is effectively to believe Breath.Compared with the prior art, in embodiments of the present invention, when getting one group of data information, without comparing entire data head Accuracy, and only need the accuracy of the partial information of correction data head, and, when the partial information for determining data head is correct, It can determine that the data volume after data head is effective information and is reduced to improve the treatment effeciency of data information Cost of implementation.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 show the flow diagram of the information processing method provided in the embodiment of the present invention one;
Fig. 2 show the first between the apparatus for transmitting signal and signal receiver provided in the embodiment of the present invention one Communication scheme;
Fig. 3 show second between the apparatus for transmitting signal and signal receiver provided in the embodiment of the present invention one Communication scheme;
Fig. 4 show the digital cash that is provided in the embodiment of the present invention one dig control chip in mine machine and computing chip it Between communication scheme;
Fig. 5 show the structural schematic diagram of the information processing unit provided in the embodiment of the present invention two;
Fig. 6 show the structural schematic diagram of the electronic equipment provided in the embodiment of the present invention two;
Fig. 7 show the structural schematic diagram of the computer equipment provided in the embodiment of the present invention three.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
Embodiment one:
In order to solve the problems, such as that treatment effeciency present in existing information processing method is relatively low and cost is higher, this hair Bright embodiment provides a kind of information processing method, as shown in Figure 1, it is the information processing side provided in the embodiment of the present invention one The flow diagram of method.Specifically, as shown in Figure 1, the information processing method in the embodiment of the present invention may include following steps:
Step 101:Obtain data information;Data information includes data head and data volume;
Step 102:Determine the partial information of data head;
Step 103:When the partial information of data head is consistent with the partial information of the data head to prestore, data volume is determined For effective information.
Specifically, the data information in the embodiment of the present invention is typically by corresponding information transmitting terminal, as signal transmission is set It is standby etc., it generates or sends out, and by corresponding information receiving end, such as signal receiver, obtain or receive.Certainly, in information It is also provided with corresponding relay device, such as router, codec between transmitting terminal and information receiving end, does not go to live in the household of one's in-laws on getting married to this It states.
Wherein, the data information in the embodiment of the present invention generally can be between apparatus for transmitting signal and signal receiver Channel in the various information such as message, instruction, the data transmitted, and, data information can be packaging information or encryption information, right This is not limited in any way.
Specifically, in embodiments of the present invention, data information is obtained may include:
Active obtaining data information;And/or
It is passive to obtain data information.
For example, actively crawl and passive reception etc., is not limited in any way this.
That is, in embodiments of the present invention, when getting data information, can first determine that the data of data information The partial information of head, and when the partial information for determining data head is consistent with the partial information of the data head to prestore, can determine that The data volume of data information is effective information.Compared with the prior art, in embodiments of the present invention, one group of data letter is being got When breath, without comparing the accuracy of entire data head, and the accuracy of the partial information of correction data head is only needed, and, in determination When the partial information of data head is correct, you can data volume of the judgement after data head is effective information, to improve number It is believed that the treatment effeciency of breath, reduces cost of implementation.
It should be noted that the executive agent of the information processing method provided in the embodiment of the present invention generally can be corresponding Information receiving end, signal receiver as the aforementioned etc., signal receiver can be an integrated equipment, such as be integrated in corresponding meter Calculation machine, digital cash dig the equipment in mine machine, terminal or other devices.For example, can be to be integrated in digital cash to dig in mine machine Computing chip, digital cash can be received and dig the calculating task or various fingers that the control chip of (or outer) in mine machine is sent It enables;Certainly, signal receiver can also be an autonomous device, and such as setting digs mine machine, terminal in corresponding computer, digital cash Or the equipment outside other devices can receive number for example, can be the computing chip for being independently arranged at digital cash and digging outside mine machine Word currency digs in mine machine the calculating task or various instructions that the control chip of (or outer) is sent, and does not repeat this.
Optionally, in embodiments of the present invention, apparatus for transmitting signal and signal receiver typically each can be corresponding logical Believe equipment, such as can be computer, signal transmitting and receiving machine, the chip that can realize communication, CPU (Central Processing Unit, central processing unit), MCU (Microcontroller Unit, micro-control unit), processor and controller etc., as long as It can realize sending and receiving for data information;And apparatus for transmitting signal and signal receiver can also be achieved displacement, such as In some cases, apparatus for transmitting signal can be additionally used in the reception of data information, and signal receiver can be additionally used in data information Transmission, the embodiment of the present invention is not limited in any way this.
It should be noted that as shown in Fig. 2, it is the apparatus for transmitting signal and signal receiver in the embodiment of the present invention Between the first communication scheme.Specifically, as shown in Figure 2, can pass through between apparatus for transmitting signal and signal receiver Wired mode connects, and, each apparatus for transmitting signal can be connect with one or more signal receiver, each letter Number receiving device can be connect with one or more apparatus for transmitting signal.Wherein, each signal receiver and corresponding Corresponding relay device can be also set between apparatus for transmitting signal, and details are not described herein again.
Certainly, as shown in figure 3, its between the apparatus for transmitting signal and signal receiver in the embodiment of the present invention Two kinds of communication schemes.It specifically, from the figure 3, it may be seen that can be wirelessly between apparatus for transmitting signal and signal receiver Connection, can such as pass through WiFi (WIreless Fidelity, Wireless Fidelity), Zigbee (purple honeybee), NFC (Near Field Communication, wireless near field communication), bluetooth or the modes such as infrared establish wireless connection, and, each signal hair Send equipment that can be connect with one or more (Fig. 3 is for one) signal receiver, each signal receiver can It is connect with one or more (Fig. 3 is for one) apparatus for transmitting signal, this is not repeated.
It should be noted that in embodiments of the present invention, signal receiver (or apparatus for transmitting signal) can also have Corresponding storage unit, to store the partial information of preset data head or data head, so that signal receiver (or apparatus for transmitting signal) can determine that the accuracy of the partial information of data header information when receiving data information.Wherein, Storage unit can be RAM (Random Access Memory, random access memory), ROM (Read only Memory, only Read memory), Flash (flash memory), SRAM (Static Random Access Memory, static RAM), DRAM (Dynamic Random Access Memory, dynamic random access memory) or DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory, the storage of Double Data Rate synchronous dynamic random Device) etc..Furthermore storage unit can also be external memory unit or internal storage unit, and, storage unit and signal reception set Connection type between standby (either apparatus for transmitting signal) is alternatively wired connection or wireless connection, does not repeat this.
Optionally, in embodiments of the present invention, apparatus for transmitting signal and signal receiver can also be corresponding chip, Such as can be the computing chip and control chip that digital cash is dug in mine machine.Specifically, in practical interactive process, signal transmission is set The standby control chip that can be corresponded to digital cash and dig in mine machine, can also correspond to the computing chip that digital cash is dug in mine machine;Similarly, Signal receiver can correspond to the control chip that digital cash is dug in mine machine, can also correspond to the calculating core that digital cash is dug in mine machine Piece.
For example, as shown in figure 4, it, which is the digital cash provided in the embodiment of the present invention, digs control chip and meter in mine machine Calculate the communication scheme between chip.Specifically, as shown in Figure 4, the control chip in digital cash digging mine machine can be to calculating core Piece sends corresponding mission bit stream (with aforementioned data information), and mission bit stream may include task head (with aforementioned data head) and appoint Business body (with aforementioned data volume), digital cash dig the computing chip in mine machine after receiving mission bit stream, this hair can be used Information processing method in bright embodiment first judges whether the task body of mission bit stream is effective, and is carried out down according to judgement result Single stepping, details are not described herein again.
Furthermore, it should be noted that digital cash digs the control chip in mine machine and the communication mode between computing chip Can also be wireless mode other than it can be wired mode.Certainly, when digital cash dig mine machine in different computing chips it Between carry out communication or different control chips between need communication when, can also be used provided in the embodiment of the present invention Information processing method, also repeat no more herein.
Specifically, it is determined that the partial information of data head, it may include:
Determine N in data head;Wherein, N is positive integer;
Using the information being made of to last N in data head as the partial information of data head.
For example, it is assumed that data head is 0987658934NKdb43mmD*2, and N=10, then the partial information of data head For NKdb43mmD*2;Assuming that data head is jkheu980hhGu@H, and N=3, then the partial information of data head can be heu980hhGu@H;Assuming that data head is HJhUnji1784j, N=1, then the partial information of data head can be HJhUnji1784j, the embodiment of the present invention are not limited in any way this.
That is, can first determine a certain position in data head, and the continuous information that this can be formed to last As the partial information of data head, to improve determining data head partial information flexibility.
It should be noted that the mode of the partial information of above-mentioned determining data head can usually be known as static mode, you can Fixation is compared since N, when comparison to last position, when determining all correct, you can think the data after data head Body is effective information.
Optionally it is determined that the partial information of data head, may also include:
It determines M reciprocal in data head;Wherein, M is positive integer;
Using the information being made of to last M reciprocal in data head as the partial information of data head.
Still by taking above-mentioned several examples as an example, it is assumed that data head 0987658934NKdb43mmD*2, and M=10 are then counted Partial information according to head can be Kdb43mmD*2;Assuming that data head is jkheu980hhGu@H, and M=8, then data head Partial information can be 80hhGu@H;Assuming that data head is HJhUnji1784j, M=12, then the partial information of data head For HJhUnji1784j, the embodiment of the present invention is not limited in any way this.
That is, in addition to aforesaid way, a certain position of inverse in data head can be also first determined, and can be by the position to last Partial information of the continuous information of one composition as data head, to further improve the flexible of the partial information of data head Property.
As shown in the above, it other than above-mentioned static mode can be used and determine the partial information of data head, can also adopt With dynamical fashion, the regular length of a partial information such as can first determine that, that is, determining the inverse M in data head Position, then selection meets a segment information of regular length and is compared every time, that is, be equivalent to by by M of data head to most Partial information of the information that latter position is formed as data header information, so, the portion for the data head determined each time The first place of point information is all dynamic change (when reading from front to back), and details are not described herein again.
Certainly, in order to improve the accuracy of information processing, it is preferable that can will be including last one section of continuous information As the partial information of data head, this is not repeated.
In addition, it is necessary to which explanation can also determine the part letter of data head otherwise in embodiments of the present invention Breath, such as can be determined by adaptive mode, as long as it includes last position of data head that can ensure that the partial information determined is One section of continuous information, this is not repeated.
Optionally, in embodiments of the present invention, can also preliminary setting data information a variety of important levels, it is a variety of with correspondence The length of partial information also can determine whether the important level of data information after getting data information, when determining data information Important level it is higher when, may be selected to determine longer partial information, to ensure accuracy;When determining the important of data information When grade is relatively low, it may be selected to determine shorter partial information.
That is, in embodiments of the present invention, the length of the partial information of data head can also be flexible according to actual conditions Setting, such as in the very high scene of accurate provisioning request to data information, the partial information of data head can be longer, is such as entire Data head or the data head etc. for only lacking first place;In requiring very high scene to the treatment effeciency of data information, data The partial information of head can be shorter, such as is the several latter of data head, does not repeat this.
Further, after determining that data volume is effective information, information processing method may also include:
The authenticity of verification data body.
For example, can by CRC (Cyclic Redundancy Check, cyclic redundancy check) mode, verification data body Authenticity, determine data volume be real information after, preserve or use data volume, determine data volume be deceptive information it Afterwards, reissue commands or alarm command can be sent to corresponding apparatus for transmitting signal, do not repeated herein.
That is, after determining that data volume is effective information, it also can determine whether data volume is correct information, to Improve the validity and correctness of data transmission.
Certainly, it should be noted that in embodiments of the present invention, the concrete mode of verification data body can also be other arbitrary Data check mode, such as way of contrast, even-odd check (Parity Check) mode, BCC (Block Check one by one Character, exclusive or check method) modes such as mode or hamming code check etc., as long as can be carried out to data volume information effective Verification, this is not limited in any way.
Further, information processing method may also include:
When the partial information of the partial information of data head and the data head to prestore is inconsistent, determine that data volume is invalid letter Breath.
For example, it is assumed that the partial information Kdb43mmD*2 of data head, and the partial information of the data head to prestore is When Kdb43mmD*m, then it can determine that the partial information of data head and the partial information of the data head to prestore are inconsistent, thus can be true It is invalid information to determine data volume.
That is, in embodiments of the present invention, when the partial information for determining the data head for receiving data information and in advance When the partial information for the data head deposited is inconsistent, you can judgement data information is changed during transmission, Huo Zhexin The data information that number sending device is sent out is error message, so as to avoid there is the case where error message in data transmission, is carried The correctness of transmission data is risen.
Further, after determining that data volume is invalid information, information processing method may also include:
Reissue commands are sent to information transmitting terminal, to retransmit data information by information transmitting terminal.
That is, when it is invalid information to determine data volume, it also may be notified that information transmitting terminal retransmits data information, To ensure that the validity and correctness of data information.
For example, after receiving data information, if the number for finding the partial information of the data head of data information and prestoring It is inconsistent according to the partial information of head, you can to determine that the data volume after data head is invalid information, later, can directly be sent out to signal It send equipment to send corresponding reissue commands, informs apparatus for transmitting signal transmission data information again.
Wherein, reissue commands can be the instruction for arbitrarily capableing of indication signal sending device retransmission data information, such as may be used For level signal, voice signal, instruction modulating signal etc., this is not limited in any way.
The embodiment of the present invention one provides a kind of information processing method, when getting data information, can first determine that number It is believed that the partial information of the data head of breath, and in the partial information phase one of the partial information for determining data head and the data head to prestore When cause, it can determine that the data volume of data information is effective information.Compared with the prior art, in embodiments of the present invention, it is obtaining When to one group of data information, without comparing the accuracy of entire data head, and only need correction data head partial information it is accurate Property, and, when the partial information for determining data head is correct, you can data volume of the judgement after data head is effective information, To improve the treatment effeciency of data information, cost of implementation is reduced.
Embodiment two:
Based on inventive concept identical with the embodiment of the present invention one, second embodiment of the present invention provides a kind of information processing apparatus It sets, as shown in figure 5, it is the structural schematic diagram of the information processing unit provided in the embodiment of the present invention.It specifically, can by Fig. 5 Know, the information processing unit in the embodiment of the present invention may include:
Acquisition module 51 can be used for obtaining data information;Data information includes data head and data volume;
Determining module 52 can be used for determining the partial information of data head;
Processing module 53 can be used for when the partial information of data head is consistent with the partial information of the data head to prestore, Determine that data volume is effective information.
Wherein, acquisition module 51 generally can be the input/output interface of corresponding information processing unit, such as can be USB (Universal Serial Bus, universal serial bus) interface, SPI (Serial Peripheral Interface, serially Peripheral Interface) and I2C (Inter Integrated Circuit, IC bus) etc., the embodiment of the present invention to this not It is limited in any way.
That is, in embodiments of the present invention, information processing unit may include the acquisition mould for obtaining data information Block, partial information for determining data head determining module and for when data head partial information and the data head that prestores Partial information it is consistent when, determine data volume be effective information processing module.Compared with the prior art, implement in the present invention In example, when getting one group of data information, without comparing the accuracy of entire data head, and the part of correction data head is only needed The accuracy of information, and, when the partial information for determining data head is correct, you can judge that the data volume after data head is Effective information reduces cost of implementation to improve the treatment effeciency of data information.
Optionally it is determined that module 52, can be used for determining N in data head;And by by N in data head to most Partial information of the information that latter position is formed as data head;Wherein, N is positive integer.
It should be noted that determining module 52 generally can be corresponding computer, terminal device, CPU, MCU, controller Either processor etc. can arbitrarily realize the hardware product or software program of data acquisition, not repeat this.
Optionally it is determined that module 52, can be used for determining M reciprocal in data head;And it will be by the inverse in data head Partial information of the M information formed to last as data head;Wherein, M is positive integer.
Further, information processing unit may also include:
Correction verification module 54, for determine data volume be effective information after, the authenticity of verification data body.
Similarly, in embodiments of the present invention, correction verification module 54 or corresponding computer, terminal device, CPU, Either processor etc. can arbitrarily realize the hardware product or software program of data check for MCU, controller, not go to live in the household of one's in-laws on getting married to this It states.
Specifically, processing module 53, it may also be used for when the partial information of the partial information and the data head to prestore of data head When inconsistent, determine that data volume is invalid information.
Similarly, in embodiments of the present invention, processing module 53 or corresponding computer, terminal device, CPU, Either processor etc. can arbitrarily realize the hardware product or software program of data processing for MCU, controller, not go to live in the household of one's in-laws on getting married to this It states.
Further, information processing unit may also include:
Sending module 55, can be used for after determining that data volume is invalid information, and reissue commands are sent to information transmitting terminal, To retransmit data information by information transmitting terminal.
It should be noted that sending module 55 usually can be similar with acquisition module 51, you can be input/output interface, such as USB interface, SPI and I2C etc., the embodiment of the present invention is not limited in any way this.
Optionally, information processing unit may also include the memory module (not marked in figure) communicated to connect with processing module, Wherein:
Memory module can be used for storing the partial information of the data head to prestore.
Optionally, memory module may include external memory unit.
Optionally, memory module may include internal storage unit.
Wherein, in embodiments of the present invention, storage unit can be RAM, ROM, Flash (flash memory), DRAM or DDR SDRAM etc. does not repeat this.
Correspondingly, the embodiment of the present invention additionally provides a kind of electronic equipment, as shown in fig. 6, it is in the embodiment of the present invention The structural schematic diagram of the electronic equipment of offer.Specifically, it will be appreciated from fig. 6 that electronic equipment may include the letter in the embodiment of the present invention Cease processing unit 61.
It should be noted that information processing unit 61 can be control unit or computing unit in corresponding electronic equipment, Concretely corresponding control circuit, control chip, counting circuit or computing chip etc., do not repeat this.
Further, when electronic equipment is that digital cash digs mine machine, digital cash digs mine machine and may also include corresponding machine Case, fan etc., the embodiment of the present invention does not repeat this.
It should be noted that when the electronic equipment in the embodiment of the present invention is that digital cash digs mine machine, information processing apparatus It sets and may further be embodied as the computing chip that digital cash is dug in mine machine, computing chip can be set up directly on digital cash and dig inside mine machine (or outside), may alternatively be integrated within it is corresponding calculate on power plate, and by calculate power plate be arranged dug in digital cash mine machine inside it is (or outer Side);Certainly, the information processing unit in the embodiment of the present invention may further be embodied as the control chip that digital cash is dug in mine machine, control Coremaking piece can be set up directly on digital cash and dig inside mine machine (or outside), may alternatively be integrated on corresponding control panel, and pass through The inside (or outside) that mine machine is dug in digital cash is arranged in control panel, and the embodiment of the present invention does not repeat this.
Second embodiment of the present invention provides a kind of information processing unit and electronic equipment, information processing unit may include using In obtaining the acquisition module of data information, the determining module of partial information for determining data head and for when data head When partial information is consistent with the partial information of the data head to prestore, determine that data volume is the processing module of effective information.It compares In the prior art, in embodiments of the present invention, when getting one group of data information, without comparing the accurate of entire data head Property, and the accuracy of the partial information of correction data head is only needed, and, when the partial information for determining data head is correct, you can sentence Surely the data volume after data head, which is effective information, reduces and is implemented as to improve the treatment effeciency of data information This.
Embodiment three:
The embodiment of the present invention three provides a kind of computer equipment, as shown in fig. 7, it is the calculating in the embodiment of the present invention The structural schematic diagram of machine equipment.The computer equipment is specifically as follows desktop computer, portable computer, smart mobile phone, puts down Plate computer, personal digital assistant (Personal Digital Assistant, PDA) etc..Specifically, as shown in Figure 7, this hair Computer equipment in bright embodiment may include central processing unit (Center Processing Unit, CPU) 701, storage Device 702, input equipment 703 and output equipment 704 etc., input equipment 703 may include keyboard, mouse, touch screen etc., defeated It may include display equipment to go out equipment 704, such as liquid crystal display (Liquid Crystal Display, LCD), cathode-ray tube (Cathode Ray Tube, CRT) etc..
Memory 702 may include read-only memory (ROM) and random access memory (RAM), and to central processing unit The program instruction and data stored in 701 offer memories 702.In embodiments of the present invention, memory 702 can be used for storing The program of information processing method.
Central processing unit 701 by call memory 702 store program instruction, central processing unit 701 can be used for according to The program instruction of acquisition executes:Obtain data information;Data information includes data head and data volume;Determine the part of data head Information;When the partial information of data head is consistent with the partial information of the data head to prestore, determine that data volume is effective information.
Example IV:
The embodiment of the present invention four provides a kind of computer storage media, for being stored as used in above computer equipment Computer program instructions, it includes the programs for executing above- mentioned information processing method.
Computer storage media can be any usable medium or data storage device that computer can access, including but Be not limited to magnetic storage (such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc.), optical memory (such as CD, DVD, BD, HVD etc.) and semiconductor memory (such as ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid-state Hard disk (SSD)) etc..
It will be understood by those skilled in the art that the embodiment of the present invention can be provided as method, apparatus (equipment) or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the present invention The form of embodiment.Moreover, the present invention can be used in one or more wherein include computer usable program code calculating The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow chart of device (equipment) and computer program product And/or block diagram describes.It should be understood that each flow in flowchart and/or the block diagram can be realized by computer program instructions And/or the combination of the flow and/or box in box and flowchart and/or the block diagram.These computer programs can be provided to refer to Enable the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate One machine so that by the instruction that computer or the processor of other programmable data processing devices execute generate for realizing The device for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (15)

1. a kind of information processing method, which is characterized in that including:
Obtain data information;The data information includes data head and data volume;
Determine the partial information of the data head;
When the partial information of the data head is consistent with the partial information of the data head to prestore, determine that the data volume is to have Imitate information.
2. information processing method as described in claim 1, which is characterized in that determine the partial information of the data head, including:
Determine N in the data head;Wherein, N is positive integer;
Using the information being made of to last N in the data head as the partial information of the data head.
3. information processing method as described in claim 1, which is characterized in that the partial information for determining the data head is also wrapped It includes:
It determines M reciprocal in the data head;Wherein, M is positive integer;
Believe by M reciprocal in the data head to last information formed as the part of the data head Breath.
4. information processing method as described in claim 1, which is characterized in that determine the data volume be effective information it Afterwards, described information processing method further includes:
Verify the authenticity of the data volume.
5. information processing method as described in claim 1, which is characterized in that described information processing method further includes:
When the partial information of the partial information of the data head and the data head to prestore is inconsistent, determine that the data volume is nothing Imitate information.
6. information processing method as claimed in claim 5, which is characterized in that determine the data volume be invalid information it Afterwards, described information processing method further includes:
Reissue commands are sent to information transmitting terminal, to retransmit the data information by described information transmitting terminal.
7. a kind of information processing unit, which is characterized in that including:
Acquisition module, for obtaining data information;The data information includes data head and data volume;
Determining module, the partial information for determining the data head;
Processing module, for when the partial information of the data head is consistent with the partial information of the data head to prestore, determining The data volume is effective information.
8. information processing unit as claimed in claim 7, which is characterized in that
The determining module, for determining N in the data head;And by by N in the data head to last Partial information of one information formed as the data head;Wherein, N is positive integer.
9. information processing unit as claimed in claim 7, which is characterized in that
The determining module, it is M reciprocal in the data head for determining;And it will be by the inverse M in the data head Partial information of the information that position is formed to last as the data head;Wherein, M is positive integer.
10. information processing unit as claimed in claim 7, which is characterized in that described information processing unit further includes:
Correction verification module, for after determining that the data volume is effective information, verifying the authenticity of the data volume.
11. information processing unit as claimed in claim 7, which is characterized in that
The processing module is additionally operable to when the partial information and the partial information of the data head to prestore of the data head are inconsistent When, determine that the data volume is invalid information.
12. information processing unit as claimed in claim 11, which is characterized in that described information processing unit further includes:
Sending module, for determine the data volume be invalid information after, to information transmitting terminal send reissue commands, with by Described information transmitting terminal retransmits the data information.
13. a kind of electronic equipment, which is characterized in that including claim 7~12 any one of them information processing unit.
14. a kind of computer equipment, which is characterized in that including:
Memory, for storing program instruction;
Processor requires 1~7 any one of them for calling the program instruction stored in the memory with perform claim Information processing method.
15. a kind of computer storage media, which is characterized in that the computer storage media is stored with the executable finger of computer It enables, the computer executable instructions are for making the computer perform claim require 1~7 any one of them information processing side Method.
CN201810734980.6A 2018-07-06 2018-07-06 Information processing method and device and electronic equipment Active CN108712236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810734980.6A CN108712236B (en) 2018-07-06 2018-07-06 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810734980.6A CN108712236B (en) 2018-07-06 2018-07-06 Information processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108712236A true CN108712236A (en) 2018-10-26
CN108712236B CN108712236B (en) 2023-08-22

Family

ID=63874867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810734980.6A Active CN108712236B (en) 2018-07-06 2018-07-06 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108712236B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073370A (en) * 2020-07-29 2020-12-11 国网浙江桐乡市供电有限公司 Client encryption communication method
CN112073369A (en) * 2020-07-29 2020-12-11 国网浙江桐乡市供电有限公司 Encrypted communication method based on application layer
CN115952515A (en) * 2022-12-05 2023-04-11 广州柏瀚信息科技有限公司 Data security processing method and device based on big data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080082862A1 (en) * 2006-10-02 2008-04-03 International Business Machines Corporation Method of Detecting a Corruption in a Data Block
US20080112011A1 (en) * 2006-11-14 2008-05-15 Matsushita Electric Industrial Co., Ltd. Output processing apparatus and data structure for executing its processing
CN102006265A (en) * 2009-09-03 2011-04-06 普天信息技术研究院有限公司 Check method for intensifying frame head of special channel frame protocol data frame
CN103645963A (en) * 2013-12-26 2014-03-19 深圳市迪菲特科技股份有限公司 Storage system and data consistency verification method thereof
CN106126367A (en) * 2016-06-28 2016-11-16 湖北锐世数字医学影像科技有限公司 A kind of self checking method and system of file

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080082862A1 (en) * 2006-10-02 2008-04-03 International Business Machines Corporation Method of Detecting a Corruption in a Data Block
US20080112011A1 (en) * 2006-11-14 2008-05-15 Matsushita Electric Industrial Co., Ltd. Output processing apparatus and data structure for executing its processing
CN102006265A (en) * 2009-09-03 2011-04-06 普天信息技术研究院有限公司 Check method for intensifying frame head of special channel frame protocol data frame
CN103645963A (en) * 2013-12-26 2014-03-19 深圳市迪菲特科技股份有限公司 Storage system and data consistency verification method thereof
CN106126367A (en) * 2016-06-28 2016-11-16 湖北锐世数字医学影像科技有限公司 A kind of self checking method and system of file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贾凤根;王伟明;丁丞;: "支持IPv4/IPv6的可重构路由器构件化建模技术研究" *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073370A (en) * 2020-07-29 2020-12-11 国网浙江桐乡市供电有限公司 Client encryption communication method
CN112073369A (en) * 2020-07-29 2020-12-11 国网浙江桐乡市供电有限公司 Encrypted communication method based on application layer
CN112073369B (en) * 2020-07-29 2022-06-17 国网浙江桐乡市供电有限公司 Encrypted communication method based on application layer
CN115952515A (en) * 2022-12-05 2023-04-11 广州柏瀚信息科技有限公司 Data security processing method and device based on big data
CN115952515B (en) * 2022-12-05 2023-09-26 广州柏瀚信息科技有限公司 Data security processing method and device based on big data

Also Published As

Publication number Publication date
CN108712236B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN106843942A (en) The firmware upgrade method and Wearable of Wearable
CN111277388B (en) HARQ-ACK codebook generating method, information sending method and equipment
CN108712236A (en) A kind of information processing method, device and electronic equipment
CN108353430A (en) The random access procedure of machine type communication
EP3206110A1 (en) Method of providing handwriting style correction function and electronic device adapted thereto
CN110167180A (en) A kind of transmission method and equipment
US10078541B2 (en) Validate written data
CN106845957A (en) A kind of method for processing resource and device
CN114020297A (en) Bluetooth-based intelligent water meter program upgrading method, device, equipment and medium
US7571374B2 (en) Method for transmitting and processing command and data
CN103279401A (en) Method and device for accessing storage unit
CN115116530A (en) Method, device and equipment for processing check pin of memory and storage medium
CN110347645B (en) Electronic file evidence storage method and device
US10439651B2 (en) Method and apparatus for reducing false decoding
US20220069946A1 (en) Data retransmission decoding method, apparatus and system, and communication device
CN106372026A (en) Link detection method and receiving device
CN103297970B (en) Method for authenticating, authentication terminal, mobile terminal and the right discriminating system of mobile terminal
CN109257141A (en) A kind of code block dividing method, terminal, base station and computer readable storage medium
CN110034879A (en) The transfer resource number of channel state information determines method and terminal device
CN111970691B (en) Equipment authentication access method, device, equipment and computer readable storage medium
KR102089629B1 (en) Method for processing data and an electronic device thereof
CN109766214A (en) A kind of optimal H-matrix generation method and device
CN109753639A (en) Front and back unifies method of calibration, device, storage medium and electronic equipment
CN109412999A (en) A kind of molding mapping method of probability and device
CN110324128A (en) Physical uplink control channel resource determines method and communication equipment

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