CN102983884B - A kind of method by magnetic channel transmission data - Google Patents

A kind of method by magnetic channel transmission data Download PDF

Info

Publication number
CN102983884B
CN102983884B CN201110260395.5A CN201110260395A CN102983884B CN 102983884 B CN102983884 B CN 102983884B CN 201110260395 A CN201110260395 A CN 201110260395A CN 102983884 B CN102983884 B CN 102983884B
Authority
CN
China
Prior art keywords
data
frame
magnetic channel
sending terminal
receiver
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
CN201110260395.5A
Other languages
Chinese (zh)
Other versions
CN102983884A (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.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
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 Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201110260395.5A priority Critical patent/CN102983884B/en
Publication of CN102983884A publication Critical patent/CN102983884A/en
Application granted granted Critical
Publication of CN102983884B publication Critical patent/CN102983884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The present invention relates to a kind of method by magnetic channel transmission data, comprise the steps: that data sending terminal splits data according to the length that will send data, sort, encodes, and send data to data receiver in the mode of Frame by magnetic channel; Data receiver presses clooating sequence receiving data frames by magnetic channel, and decodes to the Frame received, merge with restoring data.According to method provided by the invention, when the length will transmitting data is greater than the maximum length that magnetic transmission Frame can hold, on magnetic channel, carry out the integrality transmitting to reach transfer of data by Data Division being become multiple Frame, and ensure that communication quality on the whole.

Description

A kind of method by magnetic channel transmission data
Technical field
The present invention relates to the communications field, be specifically related to a kind of method by magnetic channel transmission data.
Background technology
Along with the development of mobile communication technology, such as apply the mobile terminal of mobile communication technology, become the necessary article of people's life, and pass through based on the stored value card of mobile terminal, mobile phone gate inhibition, the new application demand such as mobile phone transit riding, mobile phone vip card also becomes more and more urgent.
Due to the technology for radio frequency features such as the success rate of transfer of data is high in short distance, speed is fast, cost is low, device volume is little, therefore technology for radio frequency is applied to above mobile terminal tool and has an enormous advantage.But again because the communication distance of radio-frequency technique is too far away, efficient communication scope is excessive, is therefore not too applicable to the application of short-range communication, and decay is very fast when utilizing magnetic channel communication, and to the consistency of all kinds of mobile terminal better (range difference that can communicate is few), so its communication distance is controlled when utilizing magnetic channel communication, under normal circumstances in order to ensure the safety communicated, the communication mode that most employing magnetic combines with radio frequency, go to set up radio-frequency channel as by magnetic channel, whether real-time detection radio communication is carried out in safe distance, these all need in the larger data volume of magnetic channel, and be carry out transfer of data in the mode of Frame on magnetic channel, based on the physical characteristic of magnetic channel, the length of transmitted Frame is limited to some extent, if when the length transmitting data is greater than the maximum length that a Frame can hold, then can affect the quality of magnetic channel communication, the drawback such as cause transfer of data imperfect.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method by magnetic channel transmission data, carries out transmitting to reach the integrality of transfer of data and ensure communication quality by Data Division being become multiframe on magnetic channel.
The present invention, in order to solve the problems of the technologies described above, provides a kind of method by magnetic channel transmission data, and described method comprises the steps:
Data sending terminal splits data according to the length that will send data, sort, encodes, and sends data to data receiver in the mode of Frame by magnetic channel;
Data receiver presses clooating sequence receiving data frames by magnetic channel, and decodes to the Frame received, merge with restoring data;
After described data receiver success restoring data, reply confirmation to data sending terminal by the communication channel beyond magnetic channel.
Further, described Frame comprises for the frame head unit of data of description Frame Properties information, for depositing the data cell of data content and the postamble unit for storing check code.
Further, whether the described frame head for data of description Frame Properties information comprises frame number information, data unit length information and is the flag information of last frame.
Further, described data sending terminal splits data according to the length that will send data, sort, encodes, and comprises the steps: with the method that the mode of Frame sends data to data receiver by magnetic channel
The Data Division that will send is multiple by described data sending terminal can hold data maximum length according to the data cell of a magnetic transmission Frame, and by the deposit data after fractionation in the data cell of each Frame;
Described data sending terminal sorts to each Frame according to the order of Data Division, and the frame number information of each Frame is recorded in the frame head unit of this Frame, simultaneously this Frame of frame head unit record data unit length information and be whether the flag information of last frame;
Described data sending terminal generates corresponding check code to each Frame split, and is kept in the postamble unit of respective Frame respectively;
Described data sending terminal by magnetic channel successively by dataframe to data receiver, be sent to the Frame that flag information is last frame, then complete process of transmitting.
Further, described data receiver press clooating sequence receiving data frames by magnetic channel, and decodes to the Frame of reception, merges and comprise the steps: with the method for restoring data
Described data receiver presses clooating sequence receiving data frames successively by magnetic channel, if the frame number information of certain Frame received is not the value expected, then terminating reception, if the Frame receiving that flag information is last frame, then completes reception;
Described data receiver carries out solution code check, to obtain the data content that data element memory is put respectively to each Frame received;
The data content of acquisition merges according to the frame number information of Frame, to be reduced to initial data by described data receiver successively;
After described data receiver success restoring data, reply confirmation to data sending terminal by the communication channel beyond magnetic channel.
The beneficial effect of the invention described above technical scheme is adopted to be: when the length will transmitting data is greater than the maximum length that magnetic transmission Frame can hold, on magnetic channel, carry out the integrality transmitting to reach transfer of data by Data Division being become multiframe, and ensure that communication quality on the whole.
Accompanying drawing explanation
Fig. 1 is the method flow diagram by magnetic channel transmission data in the embodiment of the present invention;
Fig. 2 is the method flow diagram that in the embodiment of the present invention, data sending terminal sends data;
Fig. 3 is the method flow diagram that in the embodiment of the present invention, data receiver receives data.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
One embodiment of the invention discloses a kind of method by magnetic channel transmission data, and Fig. 1 is the method flow diagram by magnetic channel transmission data in the embodiment of the present invention, and as shown in Figure 1, described method comprises the steps:
Step 101: data sending terminal splits data according to the length that will send data, sort, encodes, and send data to data receiver in the mode of Frame by magnetic channel;
Wherein, described Frame, refers to the protocol Data Unit of data link layer, generally includes three parts: frame head part, data division and trailer sections; Wherein, frame head and postamble comprise the control information of some necessity, such as synchronizing information, address information, error control information etc., and data division then comprises the data that network layer hands down.At transmitting terminal, data link layer closes framing the data that network layer hands down, and is then sent to link and gets on; And at receiving terminal, data link layer takes out the data in the frame received.In embodiments of the present invention, whether described frame head part, for depositing the attribute information of data of description frame, comprises frame number information, data unit length information and is the flag information of last frame; Described data division will transmit the content of data for depositing; Described trailer sections is used for storing check code.
In this execution mode, the method that described data sending terminal sends data also comprises the steps, Fig. 2 is the method flow diagram that in the embodiment of the present invention, data sending terminal sends data, as shown in Figure 2:
Step S111: the Data Division that send is multiple by described data sending terminal can hold data maximum length according to the data cell of a magnetic transmission Frame, and by the deposit data after fractionation in the data cell of each Frame;
Step S112: described data sending terminal sorts to each Frame according to the order of Data Division, and the frame number information of each Frame is recorded in the frame head unit of this Frame, simultaneously this Frame of frame head unit record data unit length information and be whether the flag information of last frame;
Step S113: described data sending terminal generates corresponding check code to each Frame split, and is kept in the postamble unit of respective Frame respectively;
Step S114: described data sending terminal by magnetic channel successively by dataframe to data receiver, until sending flag information is that the Frame of last frame just completes process of transmitting.
In order to help those skilled in the art better to understand method of the present invention, be described method of the present invention below by way of a specific embodiment, example, only for explaining the present invention, is not intended to limit scope of the present invention.
In a specific embodiment, suppose that the maximum length that the data cell of a described magnetic transmission Frame can hold data is N byte, and the length of these required transmission data is B byte, when B is greater than N, because being subject to the restriction of magnetic channel transmission data length, if directly transmitted the data of B byte, then there will be transfer of data imperfect, cause data distortion, therefore, need, by method of the present invention, the data of B byte are carried out fractionation transmission.In this embodiment, the split process of described data is: the data of N byte before taking out from the data of B byte, leave in the data cell of first Frame, and to arrange this frame be non-last frame, now, the attribute information of frame head unit record is followed successively by: frame number information is 1, data unit length information is N, non-last flag of frame information; Meanwhile, the check code 1 generated in Data Division process is left in the postamble unit of this Frame.Then continue to judge the data of remaining (B-N) byte, if (B-N) be less than or equal to N, then by all remaining deposit data in the data cell of second Frame, and to arrange this frame be last frame, and frame number information is upper frame number adds 1; If (B-N) be greater than N, then return above-mentioned steps and continue to split the data of remaining (B-N) byte.
Step 102: data receiver presses clooating sequence receiving data frames by magnetic channel, and the Frame received is decoded, merged with restoring data.
In this step, the method that described data receiver receives data also comprises the steps, Fig. 3 is the method flow diagram that in the embodiment of the present invention, data receiver receives data, as shown in Figure 3:
Step S121: described data receiver presses clooating sequence receiving data frames successively by magnetic channel, if the frame number information of certain Frame received is not the value expected, then terminating reception, if the Frame receiving that flag information is last frame, then completes reception;
In present embodiment, described data receiver is according to the receives information Frame of frame head unit, until receiving flag information is that the Frame of last frame just illustrates that whole data receiver completes; But, if the frame number that the frame number information of the frame head unit of certain Frame of data receiver reception is not last Frame adds 1, then represent that now data receiver terminating reception Frame can appear mistake, in data transmission procedure.
Step S122: described data receiver carries out solution code check, to obtain the data content that data element memory is put respectively to each Frame received;
Step S123: the data content of acquisition merges according to the frame number information of Frame, to be reduced to initial data by described data receiver successively;
Step S124: after described data receiver success restoring data, reply confirmation to data sending terminal by the communication channel beyond magnetic channel.
In this execution mode, the communication channel beyond described magnetic channel can be radio frequency communications channels or other any communication channel.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1., by a method for magnetic channel transmission data, it is characterized in that, described method comprises the steps:
Data sending terminal splits data according to the length that will send data, sort, encodes, and sends data to data receiver in the mode of Frame by magnetic channel;
Data receiver presses clooating sequence receiving data frames by magnetic channel, and decodes to the Frame received, merge with restoring data; After described data receiver success restoring data, reply confirmation to data sending terminal by the communication channel beyond magnetic channel.
2. method according to claim 1, is characterized in that, described Frame comprises for the frame head unit of data of description Frame Properties information, for depositing the data cell of data content and the postamble unit for storing check code.
3. method according to claim 2, is characterized in that, whether the described frame head unit for data of description Frame Properties information comprises frame number information, data unit length information and be the flag information of last frame.
4. method according to claim 3, it is characterized in that, described data sending terminal splits data according to the length that will send data, sort, encodes, and comprises the steps: with the method that the mode of Frame sends data to data receiver by magnetic channel
The Data Division that will send is multiple by described data sending terminal can hold data maximum length according to the data cell of a magnetic transmission Frame, and by the deposit data after fractionation in the data cell of each Frame;
Described data sending terminal sorts to each Frame according to the order of Data Division, and the frame number information of each Frame is recorded in the frame head unit of this Frame, simultaneously this Frame of frame head unit record data unit length information and be whether the flag information of last frame;
Described data sending terminal generates corresponding check code to each Frame split, and is kept in the postamble unit of respective Frame respectively;
Described data sending terminal by magnetic channel successively by dataframe to data receiver, be sent to the Frame that flag information is last frame, then complete process of transmitting.
5. method according to claim 3, is characterized in that, described data receiver press clooating sequence receiving data frames by magnetic channel, and decodes to the Frame of reception, merges and comprise the steps: with the method for restoring data
Described data receiver presses clooating sequence receiving data frames successively by magnetic channel, if the frame number information of certain Frame received is not the value expected, then terminating reception, if the Frame receiving that flag information is last frame, then completes reception;
Described data receiver carries out solution code check, to obtain the data content that data element memory is put respectively to each Frame received;
The data content of acquisition merges according to the frame number information of Frame, to be reduced to initial data by described data receiver successively;
After described data receiver success restoring data, reply confirmation to data sending terminal by the communication channel beyond magnetic channel.
CN201110260395.5A 2011-09-05 2011-09-05 A kind of method by magnetic channel transmission data Active CN102983884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110260395.5A CN102983884B (en) 2011-09-05 2011-09-05 A kind of method by magnetic channel transmission data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110260395.5A CN102983884B (en) 2011-09-05 2011-09-05 A kind of method by magnetic channel transmission data

Publications (2)

Publication Number Publication Date
CN102983884A CN102983884A (en) 2013-03-20
CN102983884B true CN102983884B (en) 2016-03-30

Family

ID=47857667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110260395.5A Active CN102983884B (en) 2011-09-05 2011-09-05 A kind of method by magnetic channel transmission data

Country Status (1)

Country Link
CN (1) CN102983884B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI504215B (en) * 2013-08-20 2015-10-11 Tatung Co Data transmission system and method
CN103441937A (en) * 2013-08-21 2013-12-11 曙光信息产业(北京)有限公司 Sending method and receiving method of multicast data
CN103957048A (en) * 2014-05-07 2014-07-30 李正文 Method for preventing wireless batch received and transmitted data loss through frame structure
CN106561014A (en) * 2015-11-18 2017-04-12 天地融科技股份有限公司 Data transmission method and system, main communication equipment, and slave communication equipment
CN106559186A (en) * 2016-03-21 2017-04-05 天地融科技股份有限公司 Data transmission method and system, main communication apparatus and from communication apparatus
CN105827367A (en) * 2016-05-06 2016-08-03 深圳市国华光电研究院 Wireless data transmission method and system
CN106385305A (en) * 2016-09-12 2017-02-08 四川海博智能科技有限责任公司 Power line carrier communication method
CN107346981A (en) * 2017-05-16 2017-11-14 北京数科技有限公司 Data transmission method for uplink, method of reseptance and data sending device, reception device
CN107835040B (en) * 2017-11-30 2020-11-13 深圳市文鼎创数据科技有限公司 Data communication method, equipment and storage medium based on Bluetooth
CN109889232B (en) * 2019-03-19 2022-01-07 无锡中科维智数据科技有限公司 Android smart phone low-code-rate close-range magnetic communication system and method
CN110933024A (en) * 2019-10-18 2020-03-27 苏州浪潮智能科技有限公司 Method, system, receiving end and sending end applied to data transmission of switch
CN110990044B (en) * 2019-11-12 2023-06-30 中国航发南方工业有限公司 Method for programming in application and computer-readable storage medium
CN113872735B (en) 2020-06-30 2023-10-24 京东方科技集团股份有限公司 Data transmission method, device and equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055498A (en) * 2009-11-11 2011-05-11 英业达股份有限公司 Remote control method of mobile communication device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4367349B2 (en) * 2005-01-31 2009-11-18 ソニー株式会社 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055498A (en) * 2009-11-11 2011-05-11 英业达股份有限公司 Remote control method of mobile communication device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于RapidIO的高性能通信接口的设计与实现;梁基,金享科,徐炜民,郑衍衡,沈文枫;《计算机应用与软件》;20090731;第26卷(第7期);第44页左栏第2段-第45页左栏第2段 *

Also Published As

Publication number Publication date
CN102983884A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
CN102983884B (en) A kind of method by magnetic channel transmission data
CN101523934B (en) Mobile station, wireless base station, mobile communication system and notification information transmitting/receiving method
CN102694855B (en) Meteorological disaster early warning information publishing system and method on basis of Beidou satellite
CN101325461B (en) Method for establishing and maintaining cognition radio communication link based on non-speed code
CN103051928B (en) wireless audio and video data transmission method and device
PL369980A1 (en) Method for the transmission of data packets in a mobile radio system and corresponding mobile radio system
CN103369593B (en) A kind of method compressing reconciliation compressed ethernet message and network element device
AU2002226009A1 (en) Method and apparatus for adaptive transmission control in a high data rate communication system
CN103281143A (en) Selecting type cooperation spectrum sensing method based on double-threshold energy detection
CN102790926B (en) A kind of voice transmission method and system
WO2009054656A3 (en) Method of effectively transmitting identification information of terminal during the generation of data block
CN104393958A (en) Data frame transmitting method and receiving method based on pipelining
CN101650872B (en) System and method for collecting power utilization information
CN101394197A (en) Baseband data transmission method and device for CDMA distributed base station system
CN101426189B (en) Method and system for additional information transmission
WO2004105330A3 (en) Access control method and system
CN103209394B (en) Group's voice data processing method, system and terminating unit
US20200213377A1 (en) Audio Data Communication System
CN101925036B (en) Transmitting method, system and device of terminal high-level signaling
CN103701715A (en) Method and device for sending and receiving Ethernet data packet based on multiple E1 channels
CN102916718B (en) Station network communication method
WO2011041124A3 (en) Method and apparatus for providing application service between a first protocol and a second protocol
CN102164114B (en) Processing method for medium access control layer protocol data unit and machine terminal
CN101160849B (en) A communication device, a method of operating a communication device, and a communication system
CN102026247A (en) Establishment and maintenance method of cognitive radio communication link based on non-rate code

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant