CN102983884A - A method for transmitting data via a magnetic channel - Google Patents

A method for transmitting data via a magnetic channel Download PDF

Info

Publication number
CN102983884A
CN102983884A CN2011102603955A CN201110260395A CN102983884A CN 102983884 A CN102983884 A CN 102983884A CN 2011102603955 A CN2011102603955 A CN 2011102603955A CN 201110260395 A CN201110260395 A CN 201110260395A CN 102983884 A CN102983884 A CN 102983884A
Authority
CN
China
Prior art keywords
data
frame
magnetic channel
information
sending terminal
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
CN2011102603955A
Other languages
Chinese (zh)
Other versions
CN102983884B (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

Images

Abstract

The present invention relates to a method for transmitting data via a magnetic channel. The method comprises the following steps: according to the length of the data to be transmitted, a data transmitting end splits, sorts and codes the data, and sends the data to a data receiving end in a manner of data frames via the magnetic channel; and the data receiving side receives the data frames via the magnetic channel in sorted order, and decodes and combines the received data frames to restore the data. According to the method provided by the present invention, when the length of the data to be transmitted is greater than the maximum length the magnetic channel transmitting a data frame can accommodate, via splitting the data into a plurality of data frames for transmission in the magnetic channel, so the integrity of the data transmission is achieved and overall communication quality is ensured.

Description

A kind of method by the magnetic channel transmission data
Technical field
The present invention relates to the communications field, be specifically related to a kind of method by the magnetic channel transmission data.
Background technology
Development along with mobile communication technology, for example use the portable terminal of mobile communication technology, become the necessary article of people life, and the new application demands such as the stored value card of movement-based terminal, mobile phone gate inhibition are current, mobile phone transit riding, mobile phone vip card also become more and more urgent.
Because therefore the characteristics such as the success rate of technology for radio frequency transfer of data in short distance is high, speed is fast, cost is low, device volume is little are applied to above portable terminal tool with technology for radio frequency and have an enormous advantage.But because the communication distance of radio-frequency technique is too far away, the efficient communication scope is excessive, therefore not too be fit to the application of short-range communication again; Time decay is very fast and utilize the magnetic channel communication, and to the consistency of all kinds of portable terminals better (range difference that can communicate by letter is few), so its communication distance is controlled when utilizing the magnetic channel communication; The safety in order to guarantee to communicate by letter generally, the communication mode that mostly adopts magnetic to combine with radio frequency, such as going to set up radio-frequency channel by the magnetic channel, whether detect in real time radio communication carries out in safe distance, these all need to be in the larger data volume of magnetic channel, and be to carry out transfer of data in the mode of Frame at the magnetic channel, physical characteristic based on the magnetic channel, length to the Frame that transmits limits to some extent, if during the maximum length that the length of the transmission of data of wanting can be held greater than a Frame, then can affect the quality of magnetic channel communication, cause the drawbacks such as transfer of data is imperfect.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method by the magnetic channel transmission data, transmits to reach the integrality of transfer of data and guarantees communication quality at the magnetic channel by Data Division being become multiframe.
The present invention provides a kind of method by the magnetic channel transmission data in order to solve the problems of the technologies described above, and described method comprises the steps:
Data sending terminal splits, sorts, encodes data according to the length that will send data, and sends data to data receiver in the mode of Frame by the magnetic channel;
Data receiver is pressed the clooating sequence receiving data frames by the magnetic channel, and the Frame that receives is decoded, merged with restoring data.
Further, described Frame comprises frame head unit for data of description Frame Properties information, is used for depositing the data cell of data content and the postamble unit that is used for storing check code.
Further, whether 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, sorts, encodes data according to the length that will send data, and comprises the steps: by the method that the magnetic channel sends data to data receiver in the mode of Frame
Described data sending terminal can hold data according to the data cell of a Frame of magnetic transmission maximum length is a plurality of with the Data Division that will send, and the deposit data after will splitting is in the data cell of each Frame;
Described data sending terminal sorts to each Frame according to the order of Data Division, and with the frame number information recording/of each Frame in the frame head unit of this Frame, simultaneously in the data unit length information of this Frame of frame head unit record and whether be the flag information of last frame;
Described data sending terminal generates corresponding check code to each Frame that splits, and is kept at respectively in the postamble unit of Frame separately;
Described data sending terminal is sent to data receiver with Frame successively by the magnetic channel, sends to the Frame that flag information is last frame, then finishes process of transmitting.
Further, described data receiver is pressed the clooating sequence receiving data frames by the magnetic channel, and the method that the Frame that receives is decoded, merged with restoring data comprises the steps:
Described data receiver is pressed successively receiving data frames of clooating sequence by the magnetic channel, if the frame number information of certain Frame that receives is not the value of expectation, then terminating reception if receive the Frame that flag information is last frame, is then finished reception;
Described data receiver is separated respectively code check to each Frame that receives, to obtain the data content of depositing in the data cell;
Described data receiver merges the data content that obtains successively according to the frame number information of Frame, to be reduced to initial data;
Behind the described data receiver success restoring data, reply confirmation to data sending terminal by the communication channel beyond the magnetic channel.
Adopt the beneficial effect of the invention described above technical scheme to be: when maximum length that the length of want the transmission of data can be held greater than Frame of magnetic transmission, by Data Division being become multiframe transmit to reach the integrality of transfer of data at the magnetic channel, and guaranteed on the whole communication quality.
Description of drawings
Fig. 1 is the method flow diagram that passes through the magnetic channel transmission data in the embodiment of the invention;
Fig. 2 is the method flow diagram that data sending terminal sends data in the embodiment of the invention;
Fig. 3 is the method flow diagram of data receiver receive data in the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing principle of the present invention and feature are described, institute gives an actual example and only is used for explaining the present invention, is not be used to limiting scope of the present invention.
One embodiment of the invention discloses a kind of method by the magnetic channel transmission data, and Fig. 1 is the method flow diagram that passes through the magnetic channel transmission data in the embodiment of the invention, and as shown in Figure 1, described method comprises the steps:
Step 101: data sending terminal splits, sorts, encodes data according to the length that will send data, and sends data to data receiver in the mode of Frame by the magnetic channel;
Wherein, described Frame refers to the protocol Data Unit of data link layer generally include three parts: frame head part, data division and postamble part; Wherein, frame head and postamble comprise some necessary control informations, and such as synchronizing information, address information, error control information etc., data division then comprises the data that network layer hands down.At transmitting terminal, then data link layer sends to the data sealing framing that network layer hands down link and gets on; And at receiving terminal, data link layer is taken out the data in the frame of receiving.Whether in embodiments of the present invention, described frame head partly is used for depositing the attribute information of data of description frame, comprise frame number information, data unit length information and be the flag information of last frame; Described data division is used for depositing the content of the transmission of data of wanting; Described postamble partly is used for storing check code.
In this execution mode, the method that described data sending terminal sends data comprises the steps that also Fig. 2 is the method flow diagram that data sending terminal sends data in the embodiment of the invention, as shown in Figure 2:
Step S111: described data sending terminal can hold data according to the data cell of a Frame of magnetic transmission maximum length is a plurality of with the Data Division that will send, and the deposit data after will splitting is 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 with the frame number information recording/of each Frame in the frame head unit of this Frame, simultaneously in the data unit length information of this Frame of frame head unit record and whether be the flag information of last frame;
Step S113: described data sending terminal generates corresponding check code to each Frame that splits, and is kept at respectively in the postamble unit of Frame separately;
Step S114: described data sending terminal is sent to data receiver with Frame successively by the magnetic channel, is that the Frame of last frame is just finished process of transmitting until send flag information.
In order to help those skilled in the art better to understand method of the present invention, below by a specific embodiment method of the present invention is described, institute gives an actual example and only is used for explanation the present invention, is not be used to limiting scope of the present invention.
In a specific embodiment, the maximum length that the data cell of supposing a Frame of described magnetic transmission can be held data is the N byte, and the length of this required the transmission of data is the B byte, as B during greater than N, because being subject to the restriction of magnetic channel transmission data length, if directly the data of B byte are transmitted, it is imperfect then can transfer of data to occur, cause data distortion, therefore, need to the data of B byte be split transmission by method of the present invention.Among 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 this frame is set is non-last frame, at this moment, 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; The check code 1 that will generate in the Data Division process simultaneously, leaves in the postamble unit of this Frame.Then continue the data of remaining (B-N) byte are judged, if (B-N) be less than or equal to N, then with all remaining deposit data in the data cell of second Frame, and this frame is set is last frame, and frame number information is that upper frame number adds 1; If (B-N) greater than N, then return above-mentioned steps and continue the data of remaining (B-N) byte are split.
Step 102: data receiver is pressed the clooating sequence receiving data frames by the magnetic channel, and the Frame that receives is decoded, merged with restoring data.
In this step, the method for described data receiver receive data comprises the steps that also Fig. 3 is the method flow diagram of data receiver receive data in the embodiment of the invention, as shown in Figure 3:
Step S121: described data receiver is pressed successively receiving data frames of clooating sequence by the magnetic channel, if the frame number information of certain Frame that receives is not the value of expectation, then terminating reception if receive the Frame that flag information is last frame, is then finished reception;
In the present embodiment, described data receiver is according to the information receiving data frames of frame head unit, is that the Frame of last frame illustrates that just whole data receiver finishes until receive flag information; But, do not add 1 if the frame number information of the frame head unit of certain Frame that data receiver receives is not the frame number of last Frame, represent that then mistake can appear in data transmission procedure, this moment data receiver terminating reception Frame.
Step S122: described data receiver is separated respectively code check to each Frame that receives, to obtain the data content of depositing in the data cell;
Step S123: described data receiver merges the data content that obtains successively according to the frame number information of Frame, to be reduced to initial data;
Step S124: behind the described data receiver success restoring data, reply confirmation to data sending terminal by the communication channel beyond the magnetic channel.
In this execution mode, the communication channel beyond the described magnetic channel can be radio frequency communications channels or other any communication channel.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. the method by the magnetic channel transmission data is characterized in that described method comprises the steps:
Data sending terminal splits, sorts, encodes data according to the length that will send data, and sends data to data receiver in the mode of Frame by the magnetic channel;
Data receiver is pressed the clooating sequence receiving data frames by the magnetic channel, and the Frame that receives is decoded, merged with restoring data.
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, be used for depositing the data cell of data content and the postamble unit that is used for storing check code.
3. method according to claim 2 is characterized in that, whether 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, sorts, encodes data according to the length that will send data, and comprises the steps: by the method that the magnetic channel sends data to data receiver in the mode of Frame
Described data sending terminal can hold data according to the data cell of a Frame of magnetic transmission maximum length is a plurality of with the Data Division that will send, and the deposit data after will splitting is in the data cell of each Frame;
Described data sending terminal sorts to each Frame according to the order of Data Division, and with the frame number information recording/of each Frame in the frame head unit of this Frame, simultaneously in the data unit length information of this Frame of frame head unit record and whether be the flag information of last frame;
Described data sending terminal generates corresponding check code to each Frame that splits, and is kept at respectively in the postamble unit of Frame separately;
Described data sending terminal is sent to data receiver with Frame successively by the magnetic channel, sends to the Frame that flag information is last frame, then finishes process of transmitting.
5. method according to claim 3 is characterized in that, described data receiver is pressed the clooating sequence receiving data frames by the magnetic channel, and the method that the Frame that receives is decoded, merged with restoring data comprises the steps:
Described data receiver is pressed successively receiving data frames of clooating sequence by the magnetic channel, if the frame number information of certain Frame that receives is not the value of expectation, then terminating reception if receive the Frame that flag information is last frame, is then finished reception;
Described data receiver is separated respectively code check to each Frame that receives, to obtain the data content of depositing in the data cell;
Described data receiver merges the data content that obtains successively according to the frame number information of Frame, to be reduced to initial data;
Behind the described data receiver success restoring data, reply confirmation to data sending terminal by the communication channel beyond the 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 true CN102983884A (en) 2013-03-20
CN102983884B 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)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN104426634A (en) * 2013-08-20 2015-03-18 大同股份有限公司 Data transmission system and method
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
CN106559186A (en) * 2016-03-21 2017-04-05 天地融科技股份有限公司 Data transmission method and system, main communication apparatus and from communication apparatus
CN106561014A (en) * 2015-11-18 2017-04-12 天地融科技股份有限公司 Data transmission method and system, main communication equipment, and slave communication equipment
CN107835040A (en) * 2017-11-30 2018-03-23 深圳市文鼎创数据科技有限公司 A kind of method, equipment and the storage medium of the data communication based on bluetooth
WO2018210231A1 (en) * 2017-05-16 2018-11-22 青岛海尔股份有限公司 Data transmitting method and receiving method, and data transmitting device and receiving device
CN109889232A (en) * 2019-03-19 2019-06-14 南京维智感网络科技有限公司 Android intelligent low bit- rate short distance 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
CN110990044A (en) * 2019-11-12 2020-04-10 中国航发南方工业有限公司 Application programming method and computer readable storage medium
WO2022001416A1 (en) * 2020-06-30 2022-01-06 京东方科技集团股份有限公司 Data transmission method, data transmission apparatus, and data transmission device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090147803A1 (en) * 2005-01-31 2009-06-11 Sony Corporation Communication apparatus, communication method, and program
CN102055498A (en) * 2009-11-11 2011-05-11 英业达股份有限公司 Remote control method of mobile communication device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090147803A1 (en) * 2005-01-31 2009-06-11 Sony Corporation Communication apparatus, communication method, and program
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的高性能通信接口的设计与实现", 《计算机应用与软件》, vol. 26, no. 7, 31 July 2009 (2009-07-31) *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426634A (en) * 2013-08-20 2015-03-18 大同股份有限公司 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
WO2018210231A1 (en) * 2017-05-16 2018-11-22 青岛海尔股份有限公司 Data transmitting method and receiving method, and data transmitting device and receiving device
CN107835040A (en) * 2017-11-30 2018-03-23 深圳市文鼎创数据科技有限公司 A kind of method, equipment and the storage medium of the data communication based on bluetooth
CN109889232A (en) * 2019-03-19 2019-06-14 南京维智感网络科技有限公司 Android intelligent low bit- rate short distance 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
CN110990044A (en) * 2019-11-12 2020-04-10 中国航发南方工业有限公司 Application programming method and computer readable storage medium
CN110990044B (en) * 2019-11-12 2023-06-30 中国航发南方工业有限公司 Method for programming in application and computer-readable storage medium
WO2022001416A1 (en) * 2020-06-30 2022-01-06 京东方科技集团股份有限公司 Data transmission method, data transmission apparatus, and data transmission device
US11770212B2 (en) 2020-06-30 2023-09-26 Boe Technology Group Co., Ltd. Data transmission methods, data transmission device, and data transmission apparatuses

Also Published As

Publication number Publication date
CN102983884B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN102983884A (en) A method for transmitting data via a magnetic channel
CN101523934B (en) Mobile station, wireless base station, mobile communication system and notification information transmitting/receiving method
CN111225414B (en) Multimode communication device, communication method thereof and multimode communication system
US10721724B2 (en) Wireless communication system and communication method
CN105450289A (en) Multichannel Beidou satellite communication method
KR20090084320A (en) Apparatus and method for transmitting and receiving mac pdu in mobile communication system
CN110635867B (en) Communication method, network equipment and terminal
CN107623955A (en) Big Dipper base station and the message information exchange method based on Big Dipper base station
CN110831010A (en) Multichannel data sending and receiving method and device and data transmission system
CN102904673A (en) Method and apparatus for packet transmission using crc and equal length packets
CN104393958A (en) Data frame transmitting method and receiving method based on pipelining
CN102790926B (en) A kind of voice transmission method and system
EP3567826A1 (en) Data transmission method and device, transmitting terminal, receiving terminal, and system
CN101426189B (en) Method and system for additional information transmission
US20100214971A1 (en) Methods and systems for wireless multicast and broadcast services
WO2004105330A3 (en) Access control method and system
CN106100804B (en) A kind of digital fountain decoding transmission method based on Sr-ARQ
US11012484B2 (en) Audio data communication system
CN101650872B (en) System and method for collecting power utilization information
CN110545556B (en) MAC CE, information sending method, information receiving method and communication equipment
CN114286457B (en) Shipborne terminal multi-mode communication method integrating VDES, beidou No. three and 4G/5G networks
CN113301051A (en) Data transmission method and device, computer storage medium and processor
CN109005011B (en) Data transmission method and system for underwater acoustic network and readable storage medium
CN106888121B (en) A kind of 1553B bus protocol emulation mode based on transmission of data blocks
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