CN105760134B - A kind of data processing method and electronic equipment - Google Patents

A kind of data processing method and electronic equipment Download PDF

Info

Publication number
CN105760134B
CN105760134B CN201610076133.6A CN201610076133A CN105760134B CN 105760134 B CN105760134 B CN 105760134B CN 201610076133 A CN201610076133 A CN 201610076133A CN 105760134 B CN105760134 B CN 105760134B
Authority
CN
China
Prior art keywords
data
identifier
frame
round
robin queue
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.)
Active
Application number
CN201610076133.6A
Other languages
Chinese (zh)
Other versions
CN105760134A (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.)
Sichuan Jiuzhou Electric Group Co Ltd
Original Assignee
Sichuan Jiuzhou Electric Group 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 Sichuan Jiuzhou Electric Group Co Ltd filed Critical Sichuan Jiuzhou Electric Group Co Ltd
Priority to CN201610076133.6A priority Critical patent/CN105760134B/en
Publication of CN105760134A publication Critical patent/CN105760134A/en
Application granted granted Critical
Publication of CN105760134B publication Critical patent/CN105760134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • G06F5/08Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor having a sequence of storage locations, the intermediate ones not being accessible for either enqueue or dequeue operations, e.g. using a shift register
    • G06F5/085Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor having a sequence of storage locations, the intermediate ones not being accessible for either enqueue or dequeue operations, e.g. using a shift register in which the data is recirculated
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • G06F5/10Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor having a sequence of storage locations each being individually accessible for both enqueue and dequeue operations, e.g. using random access memory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/622Queue service order
    • H04L47/6225Fixed service order, e.g. Round Robin

Abstract

A kind of data processing method of present invention offer and electronic equipment, the electronic equipment include mobile communication module, the method includes:The data that another electronic equipment is sent are received by the mobile communication module, and the data received are stored in round-robin queue;It determines and whether there is complete data frame in the round-robin queue, the complete data frame includes frame head, postamble and the data portion between the frame head and the postamble;If there are complete data frames in the round-robin queue, frame head and data portion in the complete data frame are read, and the postamble in the complete data frame is retained in the round-robin queue.The technical issues of method provided by the present application is existing in the prior art for solving, and the microprocessor of receiving terminal cannot completely extract short message content.

Description

A kind of data processing method and electronic equipment
Technical field
The present invention relates to field of communication technology more particularly to a kind of data processing method and electronic equipments.
Background technology
Mobile communications network is by continuous upgrading and development, and technology is highly developed, and the covering of mobile network Also very comprehensively.Cellphone information is applied not only to periodic traffic, and is more and more used for engineering, and remote control is exactly mobile phone letter Cease a kind of application in engineering.
When carrying out point-to-point communication between equipment or module for two, data are as stream in receiving terminal and transmitting terminal Between be transmitted, these data are by the cognizable frame information of ingredient.Frame is divided into frame head, data portion and postamble three parts.When It, can be the multiframe data in data flow by finding frame head and postamble when receiving terminal receives the data flow that transmitting terminal sends over It extracts, to realize that the data between receiving terminal and transmitting terminal communicate.
Now in the art, it is among frame head and postamble when the message for receiving receiving terminal carries out sub-frame processing Data extract as a frame data.But the GSM of receiving terminal (Global System for Mobile Communication;Global system for mobile communications) when communicated between module and microprocessor, gsm module is sent to micro- In the short message of processor, other than in data there is frame head and postamble to identify end to end, also there is postamble, example among data Such as:Short message is divided by first half and latter half using postamble in short message, first half is time content, latter half For short message content.
If microprocessor is still using frame head and postamble as the mark of one frame data of extraction, microprocessor may It is extracted the first part of short message as a frame data, and the latter part of short message is not due to having frame head, it can It can be considered hash by microprocessor and be dropped, leading to short message content in this way, can completely does not extract, nothing Method achievees the purpose that carry out remote control with short message.
Invention content
A kind of data processing method of offer of the embodiment of the present invention and electronic equipment, it is existing in the prior art to solve, The technical issues of microprocessor of receiving terminal cannot completely extract short message content.
In a first aspect, the embodiment of the present application provides a kind of data processing method, it is applied in electronic equipment, the electronics is set Standby includes mobile communication module, the method includes:
The data that another electronic equipment is sent are received by the mobile communication module, and the data received deposit is followed In ring queue;
It determines and whether there is complete data frame in the round-robin queue, the complete data frame includes frame head, postamble And the data portion between the frame head and the postamble;
If there are complete data frame in the round-robin queue, the frame head and data in the complete data frame are read Part, and the postamble in the complete data frame is retained in the round-robin queue.
Optionally, it determines and whether there is complete data frame in the round-robin queue, including:
Determine in the round-robin queue whether include frame head;
If the round-robin queue includes the frame head, determine in the round-robin queue include whether successively data portion and Postamble;
If in the round-robin queue including successively data portion and postamble, it is determined that exist in the round-robin queue complete Data frame.
Optionally, the frame head includes first identifier and second identifier, and the postamble includes the first identifier and described Second identifier determines in the round-robin queue whether include frame head, including:
Judge whether first in the round-robin queue data is the first identifier, and whether second data is described Second identifier;
If first data are the first identifier, second data are the second identifier, it is determined that First data and the frame head that second data are the complete data frame.
Optionally, the frame head includes first identifier and second identifier, and the postamble includes the first identifier and described Second identifier determines in the round-robin queue whether include frame head, including:
Judge whether first in the round-robin queue data is the first identifier, and whether second data is described Whether second identifier, third data are the first identifier, and whether fourth data is the second identifier;
If first data are the first identifier, second data are the second identifier, described the Three data are the first identifier, and the fourth data is the second identifier, it is determined that first data, described Second data, the third data and the fourth data are the frame head of the complete data frame.
Optionally, if first data are not the first identifiers, second data are not described second Mark abandons first data and second data.
Second aspect, the embodiment of the present application also provide a kind of electronic equipment, including:
Mobile communication module, the data sent for receiving another electronic equipment;
Processor, for the data received to be stored in round-robin queue;And it determines and whether there is in the round-robin queue Complete data frame, the complete data frame include frame head, postamble and the data between the frame head and the postamble Part;If there are complete data frame in the round-robin queue, the frame head and data portion in the complete data frame are read Point, and the postamble in the complete data frame is retained in the round-robin queue.
Optionally, the processor is specifically used for:
Determine in the round-robin queue whether include frame head;
If the round-robin queue includes the frame head, determine in the round-robin queue include whether successively data portion and Postamble;
If in the round-robin queue including successively data portion and postamble, it is determined that exist in the round-robin queue complete Data frame.
Optionally, the frame head includes first identifier and second identifier, and the postamble includes the first identifier and described Second identifier, the processor are specifically used for:
Judge whether first in the round-robin queue data is the first identifier, and whether second data is described Second identifier;
If first data are the first identifier, second data are the second identifier, it is determined that First data and the frame head that second data are the complete data frame.
Optionally, the frame head includes first identifier and second identifier, and the postamble includes the first identifier and described Second identifier, the processor are specifically used for:
Judge whether first in the round-robin queue data is the first identifier, and whether second data is described Whether second identifier, third data are the first identifier, and whether fourth data is the second identifier;
If first data are the first identifier, second data are the second identifier, described the Three data are the first identifier, and the fourth data is the second identifier, it is determined that first data, described Second data, the third data and the fourth data are the frame head of the complete data frame.
Optionally, the processor is additionally operable to:
If first data are not the first identifiers, second data are not the second identifiers, are lost Abandon first data and second data.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
In the scheme of the embodiment of the present application, the data that another electronic equipment is sent are received by the mobile communication module, And the data received are stored in round-robin queue;It determines and whether there is complete data frame in the round-robin queue;If institute It states in round-robin queue there are complete data frame, reads the frame head and data portion in the complete data frame, and will be described Postamble in complete data frame is retained in the round-robin queue.In next frame data in reading round-robin queue, if Next frame data do not have frame head, then using the postamble of previous frame data as the frame head of next frame data.Then in short message reading information Latter half when, using the postamble between first half and latter half as the frame head of latter half, and then by short message Latter half read out.
As it can be seen that the microprocessor that said program solves receiving terminal existing in the prior art cannot be complete by short message content The technical issues of extracting, gsm module can be sent to the short message of microprocessor by realizing the microprocessor of receiving terminal The technique effect of content intact read out, and then achieve the purpose that carry out remote control with SMS.
Description of the drawings
Fig. 1 is the flow diagram of data processing method provided by the embodiments of the present application;
Fig. 2 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific implementation mode
A kind of data processing method of offer of the embodiment of the present invention and electronic equipment, it is existing in the prior art to solve, The technical issues of microprocessor of receiving terminal cannot completely extract short message content.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The terms "and/or", only a kind of incidence relation of description affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle character "/", it is a kind of relationship of "or" to typically represent forward-backward correlation object.
Data processing method in the embodiment of the present application is applied in electronic equipment, and the electronic equipment includes mobile logical Believe module (gsm module) and microprocessor.Electronic equipment is connected the serial ports of the serial ports of microprocessor and gsm module using Serial Port Line It is connected together.Then, the serial ports of microprocessor is initialized, microprocessor is enable to send data to GSM moulds by serial ports Block, or receive the data that gsm module is sent out.Wherein, electronic equipment is the controlled device in remote control.
When carrying out remote control using SMS, mobile phone is transmitting terminal, and controlled device is receiving terminal, in mobile phone Gsm module in gsm module and controlled device is communicated, and the gsm module in controlled device is for receiving mobile phone transmission Short message, and short message is sent to the microprocessor in controlled device.Then, microprocessor is to receiving The data that gsm module is sent are handled.
As shown in Figure 1, being a kind of flow diagram of data processing method provided by the embodiments of the present application.This method includes The following contents:
Step 101:The data that another electronic equipment is sent, and the number that will be received are received by the mobile communication module According in deposit round-robin queue.
Step 102:It determines and whether there is complete data frame in the round-robin queue, the complete data frame includes frame Head, postamble and the data portion between the frame head and the postamble.
Step 103:If there are complete data frames in the round-robin queue, the frame in the complete data frame is read Head and data portion, and the postamble in the complete data frame is retained in the round-robin queue.
In a step 101, another electronic equipment can be the equipment that smart mobile phone etc. can send short message.Electronic equipment is logical It crosses gsm module and receives the data that smart mobile phone is sent, after gsm module receives data, send data in electronic equipment Microprocessor.After microprocessor receives data by serial ports, data are sequentially stored into round-robin queue.Round-robin queue can be The pre-defined round-robin queue of microprocessor.
Wherein, the data that gsm module is sent out are to enter a new line with carriage return as frame head, using line feed and carriage return as postamble.But Gsm module is sent in the short message of microprocessor, other than having line feed and carriage return to identify respectively in frame head and postamble, in number Data are divided by two parts using line feed and carriage return according to centre, such as:Short message is divided into using line feed and carriage return in short message First half and latter half, first half are time content, and latter half is short message content.
Microprocessor first determines whether round-robin queue is empty, if round-robin queue is sky, is indicated micro- when reading data Processor is not received by the short message of gsm module.If round-robin queue is not sky, indicate that microprocessor has been received The short message of gsm module.
Since the complete data of a frame include at least frame head, data portion and postamble, the data that gsm module is sent out are to enter a new line With carriage return as frame head, using line feed and carriage return as postamble, so the complete data of a frame at least should include four data.Cause This further judges whether the data amount check in round-robin queue is more than or equal to four if round-robin queue is not sky, if cycle Data amount check in queue is less than four, indicates do not have the complete data of a frame in round-robin queue.It is followed at this point, microprocessor is not handled Data in ring queue.
If the data amount check in round-robin queue is more than four, electronic equipment executes step 102, and determining in round-robin queue is No includes frame head.Wherein, frame head includes first identifier and second identifier, and postamble also includes first identifier and second identifier, this Shen Please be in embodiment, first identifier is line feed, and second identifier is carriage return.In practical applications, other different frames can also be used Head and postamble.
Specifically, when whether determining in round-robin queue including frame head, first determine whether that first in round-robin queue data is No is line feed, and whether second data is carriage return;If it is judged that being true, i.e., first data is line feed, second data For carriage return, it is determined that first data and the frame head that second data is data frame.Next, it is judged that not whether third data It is line feed, whether fourth data is not carriage return;If it is judged that being true, then it represents that a new frame data start, that is, It says, round-robin queue includes data portion, then judges whether the 5th data are line feed, if not line feed, indicates the 5th Data also belong to data portion, and so on, until adjacent two data is line feed and carriage return successively, then it represents that a frame data knot Beam.If including frame head, data portion and postamble successively in round-robin queue, microprocessor can determine whether that there are complete in round-robin queue Whole data frame.
Then, electronic equipment executes step 103, and microprocessor reads out frame head (line feed and carriage return) from round-robin queue Come, the data portion before postamble (line feed and carriage return) is also read out into preservation, postamble (line feed and carriage return) is not read out.
Postamble is retained in round-robin queue by microprocessor, when next frame data do not have frame head, the frame of previous frame data Frame head of the tail as lower frame data, then the frame head of data frame is line feed and carriage return;When next frame data have frame head, previous frame number According to some of the postamble as lower frame data frame head, i.e., the frame head of next frame data is line feed, carriage return, line feed, carriage return.
If until the last one data in the data stored in round-robin queue, all do not find adjacent two data according to Secondary is line feed and carriage return, then illustrates that the serial ports of microprocessor receives the complete data of a frame not yet, at this point, microprocessor is not Data are read from round-robin queue, when serial ports receives a frame complete data, then are gone out digital independent from round-robin queue Come.
When whether including frame head in determining round-robin queue, it can be determined that whether the first two data are followed successively by line feed, carriage return, If it is judged that being true, the beginning of a new frame data is also illustrated that, and the frame head of the data frame is line feed, carriage return.It is followed in determination When whether including frame head in ring queue, it can also judge whether first four data are followed successively by line feed, carriage return, line feed, carriage return.If Judging result is true, also illustrates that the beginning of a new frame data, and the frame head of the data frame is line feed, carriage return enters a new line, carriage return, so Afterwards, it is determined according to the data processing method in the embodiment of the present application and whether there is complete data frame in round-robin queue, and deposited In complete data frame, a whole frame data are taken out from round-robin queue.
If first data in round-robin queue are not line feed, second data is not carriage return, then abandons first number According to second data.Then, next data in round-robin queue are continued with, are changed until two adjacent data are followed successively by Row, carriage return or four adjacent data are followed successively by line feed, carriage return, line feed, carriage return, it is determined that are written in round-robin queue new A frame data.
Based on same inventive concept, the embodiment of the present application also provides a kind of electronic equipment, as shown in Fig. 2, including:
Mobile communication module 20, the data sent for receiving another electronic equipment;
Processor 21, for the data received to be stored in round-robin queue;And it determines and whether is deposited in the round-robin queue In complete data frame, the complete data frame includes frame head, postamble and the number between the frame head and the postamble According to part;If there are complete data frame in the round-robin queue, the frame head and data in the complete data frame are read Part, and the postamble in the complete data frame is retained in the round-robin queue.
Optionally, the processor 21 is specifically used for:
Determine in the round-robin queue whether include frame head;
If the round-robin queue includes the frame head, determine in the round-robin queue include whether successively data portion and Postamble;
If in the round-robin queue including successively data portion and postamble, it is determined that exist in the round-robin queue complete Data frame.
Optionally, the frame head includes first identifier and second identifier, and the postamble includes the first identifier and described Second identifier, the processor 21 are specifically used for:
Judge whether first in the round-robin queue data is the first identifier, and whether second data is described Second identifier;
If first data are the first identifier, second data are the second identifier, it is determined that First data and the frame head that second data are the complete data frame.
Optionally, the frame head includes first identifier and second identifier, and the postamble includes the first identifier and described Second identifier, the processor 21 are specifically used for:
Judge whether first in the round-robin queue data is the first identifier, and whether second data is described Whether second identifier, third data are the first identifier, and whether fourth data is the second identifier;
If first data are the first identifier, second data are the second identifier, described the Three data are the first identifier, and the fourth data is the second identifier, it is determined that first data, described Second data, the third data and the fourth data are the frame head of the complete data frame.
Optionally, the processor 21 is additionally operable to:
If first data are not the first identifiers, second data are not the second identifiers, are lost Abandon first data and second data.
By one or more of the embodiment of the present application technical solution, following one or more technology effects may be implemented Fruit:
In the scheme of the embodiment of the present application, the data that another electronic equipment is sent are received by the mobile communication module, And the data received are stored in round-robin queue;It determines and whether there is complete data frame in the round-robin queue;If institute It states in round-robin queue there are complete data frame, reads the frame head and data portion in the complete data frame, and will be described Postamble in complete data frame is retained in the round-robin queue.In next frame data in reading round-robin queue, if Next frame data do not have frame head, then using the postamble of previous frame data as the frame head of next frame data.Then in short message reading information Latter half when, using the postamble between first half and latter half as the frame head of latter half, and then by short message Latter half read out.
As it can be seen that the microprocessor that said program solves receiving terminal existing in the prior art cannot be complete by short message content The technical issues of extracting, gsm module can be sent to the short message of microprocessor by realizing the microprocessor of receiving terminal The technique effect of content intact read out, and then achieve the purpose that carry out remote control with SMS.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or 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.
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 (8)

1. a kind of data processing method is applied in electronic equipment, the electronic equipment includes mobile communication module, and feature exists In, the method includes:
The data that another electronic equipment is sent are received by the mobile communication module, and the data received are stored in cycle team In row;
It determines and whether there is complete data frame in the round-robin queue, the complete data frame includes frame head, postamble and position Data portion between the frame head and the postamble;
If there are complete data frame in the round-robin queue, the frame head and data portion in the complete data frame are read Point, and the postamble in the complete data frame is retained in the round-robin queue;
Wherein, the frame head includes first identifier and second identifier, and the postamble includes the first identifier and second mark Know, which is characterized in that determine in the round-robin queue whether include frame head, including:
Judge whether first in the round-robin queue data is the first identifier, and whether second data is described second Mark;
If first data are the first identifier, second data are the second identifier, it is determined that described First data and the frame head that second data are the complete data frame.
2. the method as described in claim 1, which is characterized in that determine and whether there is complete data in the round-robin queue Frame, including:
Determine in the round-robin queue whether include frame head;
If the round-robin queue includes the frame head, determine in the round-robin queue whether include data portion and frame successively Tail;
If in the round-robin queue including successively data portion and postamble, it is determined that there are complete data in the round-robin queue Frame.
3. method as claimed in claim 2, the frame head includes first identifier and second identifier, and the postamble includes described One mark and the second identifier, which is characterized in that determine in the round-robin queue whether include frame head, including:
Judge whether first in the round-robin queue data is the first identifier, and whether second data is described second Mark, whether third data are the first identifier, and whether fourth data is the second identifier;
If first data are the first identifier, second data are the second identifier, the third Data are the first identifier, and the fourth data is the second identifier, it is determined that first data, described second A data, the third data and the fourth data are the frame head of the complete data frame.
4. method as claimed in claim 2 or claim 3, which is characterized in that if first data are not the first identifiers, Second data are not the second identifiers, abandon first data and second data.
5. a kind of electronic equipment, which is characterized in that including:
Mobile communication module, the data sent for receiving another electronic equipment;
Processor, for the data received to be stored in round-robin queue;And it determines in the round-robin queue with the presence or absence of complete Data frame, the complete data frame includes frame head, postamble and the data portion between the frame head and the postamble; If there are complete data frames in the round-robin queue, frame head and data portion in the complete data frame are read, and Postamble in the complete data frame is retained in the round-robin queue;
Wherein, the frame head includes first identifier and second identifier, and the postamble includes the first identifier and second mark Know, which is characterized in that the processor is specifically used for:
Judge whether first in the round-robin queue data is the first identifier, and whether second data is described second Mark;
If first data are the first identifier, second data are the second identifier, it is determined that described First data and the frame head that second data are the complete data frame.
6. electronic equipment as claimed in claim 5, which is characterized in that the processor is specifically used for:
Determine in the round-robin queue whether include frame head;
If the round-robin queue includes the frame head, determine in the round-robin queue whether include data portion and frame successively Tail;
If in the round-robin queue including successively data portion and postamble, it is determined that there are complete data in the round-robin queue Frame.
7. electronic equipment as claimed in claim 6, the frame head includes first identifier and second identifier, and the postamble includes institute State first identifier and the second identifier, which is characterized in that the processor is specifically used for:
Judge whether first in the round-robin queue data is the first identifier, and whether second data is described second Mark, whether third data are the first identifier, and whether fourth data is the second identifier;
If first data are the first identifier, second data are the second identifier, the third Data are the first identifier, and the fourth data is the second identifier, it is determined that first data, described second A data, the third data and the fourth data are the frame head of the complete data frame.
8. electronic equipment as claimed in claims 6 or 7, which is characterized in that the processor is additionally operable to:
If first data are not the first identifiers, second data are not the second identifiers, abandon institute State first data and second data.
CN201610076133.6A 2016-02-03 2016-02-03 A kind of data processing method and electronic equipment Active CN105760134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610076133.6A CN105760134B (en) 2016-02-03 2016-02-03 A kind of data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610076133.6A CN105760134B (en) 2016-02-03 2016-02-03 A kind of data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105760134A CN105760134A (en) 2016-07-13
CN105760134B true CN105760134B (en) 2018-11-13

Family

ID=56329921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610076133.6A Active CN105760134B (en) 2016-02-03 2016-02-03 A kind of data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105760134B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049003A (en) * 2019-03-01 2019-07-23 上海数创医疗科技有限公司 The method and device that AT instruction is divided by frame
CN112152753A (en) * 2019-06-28 2020-12-29 北京京东尚科信息技术有限公司 Method and device for transmitting data with lower computer
CN110908949A (en) * 2019-09-29 2020-03-24 中国人民解放军陆军工程大学 Receiving method of complete data frame based on SLIP protocol
CN111181819B (en) * 2019-12-25 2022-03-08 交控科技股份有限公司 Serial port communication method for receiving multi-byte data frame based on linked list structure
CN112995066B (en) * 2021-02-05 2023-10-24 新天科技股份有限公司 Frame data processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932142A (en) * 2009-06-19 2010-12-29 中兴通讯股份有限公司 User interface data uplink/downlink transmission methods of time division BTS (Base Transceiver Station) for IP access
CN102510323A (en) * 2011-09-22 2012-06-20 航天科工惯性技术有限公司 Frame identifying method for serial data
CN103957198A (en) * 2014-04-15 2014-07-30 深圳市玖坤信息技术有限公司 Sensor data receiving and converting method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8135015B2 (en) * 2009-03-27 2012-03-13 Qualcomm Incorporated System and method of transmitting and receiving data frames

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932142A (en) * 2009-06-19 2010-12-29 中兴通讯股份有限公司 User interface data uplink/downlink transmission methods of time division BTS (Base Transceiver Station) for IP access
CN102510323A (en) * 2011-09-22 2012-06-20 航天科工惯性技术有限公司 Frame identifying method for serial data
CN103957198A (en) * 2014-04-15 2014-07-30 深圳市玖坤信息技术有限公司 Sensor data receiving and converting method and system

Also Published As

Publication number Publication date
CN105760134A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN105760134B (en) A kind of data processing method and electronic equipment
US8087053B2 (en) System and method for transmitting an animated figure
CN105684382A (en) Packet control method, switch and controller
EP3242494B1 (en) Nfc-based communication device and method
CN106878164A (en) A kind of message transmitting method and device
CN103228058A (en) Method of managing connectivity status within a mobile radio communications device
CN106027379A (en) Push message receiving processing method
CN104734983A (en) Scheduling system, method and device for service data request
CN105610730A (en) Method and system for message interaction between CPU and network equipment
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN113791792B (en) Method, device and storage medium for acquiring application call information
CN105635000A (en) Message storing and forwarding method, circuit and device
CN106708761A (en) Service message processing method and device
CN105406989B (en) Handle method, network interface card and system, the method and host of more new information of message
CN113949728B (en) Method for synchronizing different platform devices, first platform and second platform
CN106028292B (en) A kind of channel distribution method and system sending short message
CN105939242B (en) Realize the method and device of virtual system
CN114221883A (en) Message testing method, device, server and storage medium
CN206024025U (en) A kind of home gateway
CN110572487B (en) Method and system for virtualizing any port of switch
CN104348711A (en) Apparatus and method for receiving messages
CN101014023B (en) Session identification matching method and apparatus and communication system
CN113824724A (en) Method and device for judging tampering of sensor data of intelligent substation and storage medium
CN104363184B (en) A kind of JSON message processing methods and system based on tuxedo communication patterns
CN103237359B (en) A kind of method and device connecting terminal

Legal Events

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