CN106375020B - Data transmission method, data sending device and data sink - Google Patents
Data transmission method, data sending device and data sink Download PDFInfo
- Publication number
- CN106375020B CN106375020B CN201610798984.1A CN201610798984A CN106375020B CN 106375020 B CN106375020 B CN 106375020B CN 201610798984 A CN201610798984 A CN 201610798984A CN 106375020 B CN106375020 B CN 106375020B
- Authority
- CN
- China
- Prior art keywords
- data
- transmission
- sent
- grid
- slot
- 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.)
- Expired - Fee Related
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 140
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000015654 memory Effects 0.000 claims description 13
- 229910002056 binary alloy Inorganic materials 0.000 claims description 5
- 230000008859 change Effects 0.000 claims description 5
- 239000003086 colorant Substances 0.000 claims description 4
- 238000003491 array Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 claims description 2
- 230000002045 lasting effect Effects 0.000 claims 1
- 230000005055 memory storage Effects 0.000 claims 1
- 238000001514 detection method Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 10
- 238000012512 characterization method Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 239000012634 fragment Substances 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 210000001367 artery Anatomy 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000035800 maturation Effects 0.000 description 1
- 238000004080 punching Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 210000003462 vein Anatomy 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/50—Transmitters
- H04B10/516—Details of coding or modulation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/60—Receivers
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Optical Communication System (AREA)
Abstract
A kind of data transmission method, data sending device and data sink provided by the invention, data sending device include display screen, and display screen shows the data bit grid and a flag bit grid of preset quantity.Data sink includes having to extinguish/light situation and flag bit grid extinguishes/for detection data position grid and light the receiving terminal of the photoelectric sensor of situation, receiving terminal includes multiple data bit receiving terminals for receiving the data bit signal sent by data bit grid, and the flag bit receiving terminal for receiving the transmission state signal sent by flag bit grid.Data sending device is extinguished by flag bit grid/extinguishing for lighting situation and data bit grid/lights situation combination transmission data segment, and data sink passes through flag bit receiving terminal and data bit receiving terminal acquisition data slot equipped with photoelectric sensor.In this way, by the small software program of the hardware configuration and calculation amount of simple low cost, a kind of simple data transmission method that reliability is high is realized.
Description
Technical field
The present invention relates to field of data transmission, are carried out data transmission by mobile terminal screen in particular to one kind
Data transmission method, mobile terminal and reception device.
Background technology
It is widely used with the increasingly maturation, mobile terminal of intelligent mobile terminal (for example, smart mobile phone) technology, it is mobile
The function of terminal is also more and more, including by mobile terminal by simple data transmission to other data sinks,
Such as account or encrypted message are transmitted to other data sinks.
It is transmitted in traditional transmission mode, or using network, bluetooth, needs complicated interactive system and certification
Program, information are easy exposure or are kidnapped;Or barcode scanning is carried out using Quick Response Code, bar code and reads information, Structure of need is complicated
Barcode scanning equipment, while it is complicated to generate Quick Response Code, the program of bar code, is not easy to implement.
How a kind of simple data transmission side that the simple and reliable property of the sequential operation based on existing hardware equipment is high is provided
Formula becomes those skilled in the art's technical problem urgently to be resolved hurrily.
Invention content
In order to overcome above-mentioned deficiency in the prior art, technical problem to be solved by the invention is to provide one kind based on existing
Information transmitting methods, mobile terminal and the reception device for having the simple and reliable property of the sequential operation of hardware device high.
The present invention provides a kind of data transmission method, and the method is applied to the data sending device and data of communication connection
Reception device.
The data sending device includes a display screen, and the display screen shows the data bit grid and one of preset quantity
Flag bit grid, the data slot that the data sending device is sent by flag bit and multiple set of data bits at.Multiple numbers
According to position grid extinguishing or light situation combination indicate send data slot in each data bit signal 0 or 1 combination.It is described
Lighting or extinguishing for flag bit grid indicates the different value of flag bit, to characterize different transmission state signals, the transmission shape
State signal includes transmission useful signal or transmission invalid signals.
The data sink includes multiple receiving terminals for receiving the signal that the data sending device is sent out, institute
It states receiving terminal and/OFF state is lighted by photoelectric sensor detection grid.The receiving terminal includes for receiving by the data
The multiple data bit receiving terminals for the data bit signal that position grid is sent, and for receiving the transmission sent by the flag bit grid
The flag bit receiving terminal of status signal.
The method includes:
Data to be transmitted is split into multiple data slots by the data sending device, the data slot be include multiple
The binary system array of position, the digit of the data slot are equal with the preset quantity of data bit grid.
The data sending device sends transmission useful signal by the flag bit grid, while passing through the data bit
Grid sends multiple data slots successively.
The data sink detects the transmission state letter that the flag bit grid of the data sending device is sent out
Number.
The data sink reads number from the data bit grid successively when detecting the transmission useful signal
According to segment.
The data sending device sends the biography after the data slot is sent completely, by the flag bit grid
Defeated invalid signals, and the transmission invalid signals is made to keep one first preset time.
The data sink stops when detecting that the transmission invalid signals duration is more than the first preset time
The data slot is only received, and the data slot received is synthesized into partial data.
The present invention also provides a kind of data sending device, the data sending device include display screen, first memory and
First processor, the display screen show the data bit grid and a flag bit grid of preset quantity, and the data send dress
Set the data slot of transmission by flag bit and multiple set of data bits at.Situation is lighted in the extinguishing of multiple data bit grids
Combination indicates 0 or 1 combination of each data bit signal in the data slot sent.Expression is lighted or extinguished to the flag bit grid
The different value of flag bit, to characterize different transmission state signals, the transmission state signal includes transmission useful signal or biography
Defeated invalid signals.The first memory store instruction, the data are made when described instruction is executed by the first processor
Sending device executes following operation:
Data to be transmitted is split into multiple data slots, the data slot be include multiple binary system arrays,
The digit of the data slot is equal with the preset quantity of data bit grid.
Transmission useful signal is sent by the flag bit grid, while being sent successively by the data bit grid multiple
The data slot.
After the data slot is sent completely, the transmission invalid signals are sent by the flag bit grid, and make
The transmission invalid signals keep one first preset time.
The present invention also provides a kind of data sink, the data sink is provided by the invention described for receiving
The data that data sending device is sent out.The data sink includes second memory, second processor and multiple for connecing
The receiving terminal for the signal that the data sending device is sent out is received, the receiving terminal detects grid by photoelectric sensor and lights/put out
It goes out state.The receiving terminal includes being received for receiving multiple data bit of the data bit signal sent by the data bit grid
End, and the flag bit receiving terminal for receiving the transmission state signal sent by the flag bit grid.The second memory
Store instruction makes the data sink execute following operation when described instruction is executed by the second processor:
Detect the transmission state signal that the flag bit grid of the data sending device is sent out.
When detecting the transmission useful signal, data slot is read from the data bit grid successively.
When detecting that the transmission invalid signals duration is more than the first preset time, stop receiving the data slice
Section, and the data slot received is synthesized into partial data.
In terms of existing technologies, the invention has the advantages that:
A kind of data transmission method, data sending device and data sink provided by the invention, pass through the data
Combination transmission data segment is lighted/extinguished to the flag bit grid of sending device and data bit grid, passes through the data
Reception device is equipped with the flag bit receiving terminal of photoelectric sensor and data bit receiving terminal obtains data slot.Pass through simple low cost
Hardware configuration and the small software program of calculation amount, realize a kind of high simple data transmission method of reliability.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is that data sending device provided in an embodiment of the present invention interacts schematic diagram with data sink;
Fig. 2 is data sending device provided in an embodiment of the present invention and data sink structure diagram;
Fig. 3 is data sending device structural schematic diagram provided in an embodiment of the present invention;
Fig. 4 is data sink structural schematic diagram provided in an embodiment of the present invention;
Fig. 5 is data transmission method flow diagram provided in an embodiment of the present invention;
Fig. 6 is that the first specific implementation mode data provided in an embodiment of the present invention judge transmission flow schematic diagram;
Fig. 7 is that the second specific implementation mode data provided in an embodiment of the present invention judge transmission flow schematic diagram;
Fig. 8 is data slot transmission timing figure provided in an embodiment of the present invention;
Fig. 9 is data receiver flow diagram provided in an embodiment of the present invention.
Icon:100- data sending devices;110- display screens;111- data bit grids;112- flag bit grids;120-
One memory;130- first processors;200- data sinks;210- receiving terminals;211- data bit receiving terminals;212- indicates
Position receiving terminal;220- second memories;230- second processors.
Specific implementation mode
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.The present invention being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiments of the present invention, this field is common
The every other embodiment that technical staff is obtained without creative efforts belongs to the model that the present invention protects
It encloses.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.
In the description of the present invention, it should be noted that term " first ", " second ", " third " etc. are only used for distinguishing and retouch
It states, is not understood to indicate or imply relative importance.
In addition, the terms such as term "horizontal", "vertical", " pendency " are not offered as requiring component abswolute level or pendency, and
It is that can be slightly tilted.It is not to indicate the structure if "horizontal" refers to only that its direction is more horizontal with respect to for "vertical"
It has to fully horizontally, but can be slightly tilted.
In the description of the present invention, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one
Connect to body;It can be mechanical connection, can also be electrical connection;It can be directly connected, it can also be indirect by intermediary
It is connected, can is the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition
State the concrete meaning of term in the present invention.
As shown in Figure 1, being that the data sending device 100 that present pre-ferred embodiments provide leads to data sink 200
The data transmission of letter interacts schematic diagram.
The data sending device 100 may be, but not limited to, smart mobile phone, PC (personal
Computer, PC), tablet computer, personal digital assistant (personal digital assistant, PDA), mobile Internet access set
Standby (mobile Internet device, MID) etc..The data sink 200 is connected with host computer, the number that will be received
According to issuing host computer.
Fig. 2 is please referred to, the data sending device 100 includes display screen 110, first memory 120 and first processor
130.The display screen 110 is respectively coupled to the first processor 130 with the first memory 120.First storage
Device 120 is stored with the instruction of the data sending device 100, and described instruction makes described when being executed by the first processor 130
Data sending device 100 executes the step in data transmission method provided in this embodiment.
Fig. 3 is please referred to, the display screen 110 shows the data bit grid 111 and a flag bit grid of preset quantity
112, the data slot that the data sending device 100 is sent by flag bit and multiple set of data bits at.In the present embodiment, fixed
The justice preset quantity is n, and the n data bit grids 111 correspond to the bit for sending position respectively0To bitn-1Position.
It is worth noting that the data bit grid 111 and flag bit grid 112 of the display of data sending device 100 shown in Fig. 3
Layout type be only an embodiment of the present embodiment, be used to help understand the technical solution of the present embodiment, not constitute
The limitation of layout type can also use in the other embodiment of the present embodiment to be shown to the data sending device 100
Different layout type.
Specifically, the extinguishing of multiple data bit grids 111 or light situation combination indicate send data slot
In each data bit signal 0 or 1 combination.In the present embodiment, corresponding data position is indicated when the data bit grid 111 extinguishes
Value is 1, indicates that the value of corresponding data position is 0 when the data bit grid 111 is lighted.Such as, when n is 4, and in data slot
bit3To bit0The state of the corresponding data bit grid 111 is followed successively by extinguishing, extinguishes, lights, extinguishing, then it represents that the data
Segment is 1101.
Specifically, the flag bit grid 112 is lighted or is extinguished and indicates the different value of flag bit, to characterize different biographies
Defeated status signal, the transmission state signal include transmission useful signal or transmission invalid signals.In the present embodiment, the mark
Indicate that the value of flag bit is 1 when will position grid 112 extinguishes, characterization transmission invalid signals, table when the flag bit grid 112 is lighted
Show that the value of flag bit is 0, characterization transmission useful signal.
It is worth noting that the extinguishing of above-mentioned data bit grid 111 or flag bit grid 112, lighting relationship and it is indicated
The correspondence of value be only that a kind of preferred embodiment of the present embodiment also may be used in the other embodiment of the present embodiment
To indicate 0 by extinguishing, by lighting expression 1.
Referring once again to Fig. 2, the data sink 200 includes second memory 220, second processor 230 and more
A receiving terminal 210 for receiving the signal that the data sending device 100 is sent out, the receiving terminal 210 pass through photoelectric sensing
Device detection grid lights/OFF state.
The receiving terminal 210 and second memory 220 are respectively coupled to the second processor 230.Second storage
Device 220 is stored with the instruction of the data sink 200, and described instruction makes described when being executed by the second processor 230
Data sink 200 executes the step in data transmission method provided in this embodiment.
Fig. 4 is please referred to, the receiving terminal 210 includes for receiving the data bit letter sent by the data bit grid 111
Number multiple data bit receiving terminals 211, and the mark for receiving the transmission state signal sent by the flag bit grid 112
Position receiving terminal 212.The data bit receiving terminal 211 is sent out with the quantity of the flag bit receiving terminal 212 and position with the data
Send the data bit grid 111 of device 100 corresponding with the quantity of flag bit grid 112 and position.The receiving terminal 210 passes through detection
The lighting of the data bit grid 111 and flag bit grid 112/OFF state obtains the 0 of the transmission of the data sending device 100
Or 1 numerical value.
Fig. 5 is please referred to, Fig. 5 is the flow diagram of the data transmission method applied to the interactive environment described in Fig. 1, described
Method includes the following steps.
Data to be transmitted is split into multiple data slots, the data slice by step S110, the data sending device 100
Section be include multiple binary system arrays, the preset quantity phase of the digit of the data slot and the data bit grid 111
Deng.
Specifically, in the present embodiment, when 111 quantity of data bit grid is n, the data to be transmitted is split
For multiple n of data slots.
In first specific implementation mode of the present embodiment, the value of n is 8, i.e. the quantity of the data bit grid 111 is
8, and the digit of the data slot is 8, then each byte (byte) of the data to be transmitted is a data slot.
In second specific implementation mode of the present embodiment, the value of n is 4, i.e. the quantity of the data bit grid 111 is
4, and the digit of the data slot is 4, each nibble (nibble) of the data to be transmitted is a data slot.
It is worth noting that 111 quantity of data bit grid and the digit value of the data slot, only this implementation
The value of example preferred embodiment can also use other values in the other embodiment of the present embodiment.
Step S120, the data sending device 100 send transmission useful signal by the flag bit grid 112, together
When multiple data slots are sent by the data bit grid 111 successively.
Specifically, the logic of 100 transmission data segment of the data sending device is as follows.
In this implementation column, the data to be transmitted is the array as unit of byte, and the data to be transmitted is denoted as number
The array pointer of group data, numeration group data are i, and data [i] indicates i-th of byte of the data to be transmitted, numeration group
The length of data is len.
Fig. 6 is please referred to, in first specific implementation mode of the present embodiment, when signal sends beginning, initializes i=0,
Start to send data [0], it is that i execution adds 1 certainly to be sent completely rear array pointer, i.e. i=i+1.
In i<In the case of len, cycle executes forwarding step, until having sent all data slots.
Fig. 7 is please referred to, in second specific implementation mode of the present embodiment, remembers that currently transmitted data slice hop count is p,
When signal sends beginning, i=0, p=0 are initialized.Start to be transmitted data [0], judge the parity of p, when p is even number
When, the 4 high of data [0] is sent, p=p+1 is executed after being sent completely.
When p is odd number, low 4 of data [0] are sent, i=i+1 are executed after being sent completely, and execute p=p+1.
In p<In the case of 2*len, forwarding step is repeated, until sending all data slots.
Further, Fig. 8 is please referred to, data sending device 100 described in Fig. 8 sends the sequential signal of the data slot
Figure.The data sending device 100 is in t1By the mark position 0 when the moment, that is, the flag bit grid 112 is lighted, characterized
Useful signal is transmitted, data transmission is started.Meanwhile the data sending device 100 is opened by the data bit grid 111 with this
It originates and send the data slot.
In the present embodiment, before transmission data segment, the data sending device 100 judges the data slot and upper one
Whether the data slot sent is identical, including following two situations.
Situation one passes through the number in the data slot difference that the data slot to be sent and upper one have been sent
The data slot to be sent is sent according to position grid 111, and data slot transmission is kept to continue the second preset time.In this reality
It applies in example, second preset time could be provided as 30ms-50ms.
Referring once again to Fig. 8, with t1And t2For moment, the data sending device 100 is in t2Moment judgement will be sent
Data slot and t1Whether transmission data segment is identical when the moment.t1The data slot that moment has sent is 1101, t2Moment will
The data slot to be sent is 0010.The data slot that two moment send is different, then the data sending device 100 is in t2When
It carves and sends 0010, and the signal is persistently sent to t3Moment.
Situation two, when the data slot that will be sent is identical as the data slot that upper one has sent, by described
Flag bit grid 112 sends a transmission idler Pulse signal, and the transmission idler Pulse signal is sent completely subsequent supervention and send institute
Transmission useful signal is stated, while the data slot that will be sent is sent by the flag bit grid 112, and keeps the data
Segment transmission continues the second preset time.Wherein, the transmission idler Pulse signal is the arteries and veins of the transmission invalid signals
Punching, in the present embodiment, the transmission idler Pulse signal set 1 pulse for the flag bit one, i.e., the described flag bit grid
One blanking pulse of lattice 112.
Referring once again to Fig. 8, with t7And t8For moment, the data sending device 100t8When judge will transmission data
Segment and t7Whether transmission data segment is identical when the moment.t7The data slot that moment has sent is 1101, t8Moment will be sent out
The data slot sent is 1101.The data slot that two moment send is identical, then the data sending device 100 passes through the mark
Will position grid 112 sends a transmission idler Pulse signal.The transmission idler Pulse signal be sent completely subsequent supervention send it is described
Useful signal is transmitted, while transmission 1101 is continued by the data bit grid 111, and the signal is persistently sent to t9When
It carves.
Step S130, the flag bit grid 112 that the data sink 200 detects the data sending device 100 are sent out
The transmission state signal gone out.
Specifically, the data sink 200 detects the transmission state by the flag bit receiving terminal 212 and believes
Number.
Step S140, the data sink 200 is when detecting the transmission useful signal, successively from the data
Position grid 111 reads data slot.
Specifically, when the data sink 200 detects the transmission useful signal, start to receive the data
The data slot that position grid 111 is sent.After receiving the data slot every time, storage has connect the data sink 200
The data slot received, and scan the flag bit receiving terminal 212 and whether the data bit receiving terminal 211 changes.At this
In embodiment, Fig. 9 is please referred to, following two situations are corresponding with step S120.
Situation one, when detecting the data slot variation that the data bit receiving terminal 211 receives, after variation
Data slot as new data slot and storage.
The data sink 200 scans the data that the data bit receiving terminal 211 receives at interval of certain time
Whether segment changes.When detecting that the data slot of reception changes, the data sink 200 thinks the data
Sending device 100 have sent with upper data slot difference new data fragment, the data sink 200 store the variation after
Data slot.
In the present embodiment, when data sink 200 detects that the data slot changes, to prevent data
Shaking interference is designed with the step of removal is interfered, is as follows.
When detecting the data slot variation that the data bit receiving terminal 211 receives, start a timer, described
When timer timing time is equal to a third preset time, the data slice that the data bit receiving terminal 211 receives is detected again
Section, judges whether the data slot changes again.In the present embodiment, the third preset time could be provided as 3ms-
10ms。
When the data slot does not change again, then it is assumed that the data slot after variation is one and stable just firmly believes
Number, the data sink 200 stores the data slot.
When the data slot changes again, then it is assumed that the variation of the data slot may be that a data are trembled
Dynamic, the data sink 200 re-reads the data slot that the data bit receiving terminal 211 receives, while resetting simultaneously
Start the timer.
Situation two will be current after detecting that the flag bit receiving terminal 212 receives the transmission idler Pulse signal
The data slot that the data bit receiving terminal 211 receives is as new data slot and storage.
The flag bit receiving terminal 212 is when detecting the transmission idler Pulse signal, the data sink 200
Think that the data sending device 100 has sent new data fragment identical with a upper data slot, the data sink
200 using the data slot being currently received as new data slot and storage.
Step S150, the data sending device 100 pass through the flag bit grid after the data slot is sent completely
Lattice 112 send the transmission invalid signals, and the transmission invalid signals is made to keep one first preset time.
Referring once again to Fig. 8, in tendMoment, the data sending device 100 complete the transmission of all data slots, will
The mark position 1, characterization transmission invalid signals, and the transmission invalid signals are kept into first preset time, terminate
This data transmission.In the present embodiment, first preset time is more than the third preset time and the transmission is invalid
Pulse signal duration, first preset time could be provided as being more than 250ms.
Step S160, the data sink 200 are detecting that the transmission invalid signals duration is more than first
When preset time, stop receiving the data slot, and the data slot received is synthesized partial data.
The data sink 200 is when receiving the transmission invalid signals duration and being more than described first default
Between when, it is believed that data transmission is completed in the data sending device 100, then stops receiving data slot, and will have received
Data slot synthesizes complete data according to the sequence of reception.
Further, in the another embodiment in this implementation column, the data sending device 100 can also pass through
The data bit grid 111 shows that different colors, the data bit grid 111 show different colors to characterize when lighting
The different value of the data bit.Lighting or extinguishing for the flag bit grid 112 indicates the different value of flag bit, different to characterize
Transmission state signal, the transmission state signal include transmission useful signal or transmission invalid signals.
Specifically, for there is red, yellow and blue three-color when lighting by the data bit grid 111, in the number
When according to the quantity of position grid 111 being 4, as shown in table 1, wherein bit the case where the value that the data bit grid 111 characterizes3To bit0
Identify different data bit grids 111.
Table 1
As shown in table 1, each data bit grid 111 characterizes two, works as bit3To bit0Dispaly state respectively is
When red (11), yellow (10), blue (01), extinguishing (00), the value of characterization transmission data segment is 11100100.
The data sink 200 can detect 111 points of the data bit grid by the data bit receiving terminal 210
The color combination that bright/OFF state and while lighting show, obtains the data slot of the transmission of the data sending device 100.
In the present embodiment, the transmission of the data bit and the flag bit or receive logic please refer to the present embodiment step
The first embodiment that rapid S110 rises, as shown in fig. 6, details are not described herein.
It is worth noting that the value of the corresponding characterization of 111 display color of data bit grid described above is only the present embodiment
A kind of embodiment, in the other embodiment of the present embodiment can also use other different colors and characterization numerical value
Correspondence, or more color combination.
In conclusion a kind of data transmission method, data sending device 100 and data receiver that invention provides
Device 200 passes through the flag bit grid 112 of the data sending device 100 and lighting/extinguishing for data bit grid 111
Transmission data segment is combined, the flag bit receiving terminal 212 and data of photoelectric sensor are equipped with by the data sink 200
Position receiving terminal 211 obtains data slot.By the small software program of the hardware configuration and calculation amount of simple low cost, one is realized
The kind high simple data transmission method of reliability.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (8)
1. a kind of data transmission method, which is characterized in that the method is applied to the data sending device and data of communication connection
Reception device;
The data sending device includes a display screen, and the display screen shows the data bit grid and a mark of preset quantity
Position grid, the data slot that the data sending device is sent by flag bit and multiple set of data bits at;Multiple data bit
The extinguishing of grid or the combination for lighting situation indicate 0 or 1 combination of each data bit signal in the data slot sent;The mark
The value for indicating that flag bit is different is lighted or extinguished to position grid, to characterize different transmission state signals, the transmission state letter
Number include transmission useful signal or transmission invalid signals;
The data sink includes multiple receiving terminals for receiving the signal that the data sending device is sent out, described to connect
Receiving end detects grid by photoelectric sensor and lights/OFF state;The receiving terminal includes for receiving by the data bit grid
The multiple data bit receiving terminals for the data bit signal that lattice are sent, and for receiving the transmission state sent by the flag bit grid
The flag bit receiving terminal of signal;
The method includes:
Data to be transmitted is split into multiple data slots by the data sending device, the data slot be include multiple
Binary system array, the digit of the data slot are equal with the preset quantity of data bit grid;
The data sending device sends transmission useful signal by the flag bit grid, while judging the data that will be sent
Whether the data slot that segment has been sent with upper one is identical;In the data slot that will be sent and upper one data sent
When segment difference, which is sent by the data bit grid, and data slot transmission is kept to hold
Continuous second preset time;When the data slot that will be sent is identical as the data slot that upper one has sent, by described
Flag bit grid sends a transmission idler Pulse signal, and the transmission idler Pulse signal is sent completely subsequent supervention and send the biography
Defeated useful signal, while the data slot that will be sent is sent by the data bit grid, and the data slot is kept to send out
Send lasting second preset time, wherein the transmission idler Pulse signal is the transmission for the duration being less than the first preset time
Invalid signals;
The data sink detects the transmission state signal that the flag bit grid of the data sending device is sent out;
The data sink scans the flag bit receiving terminal and the data when detecting the transmission useful signal
Whether position receiving terminal changes;When detecting the data slot variation that the data bit receiving terminal receives, after variation
Data slot as new data slot and storage;Or detecting that it is invalid that the flag bit receiving terminal receives the transmission
After pulse signal, the data slot that presently described data bit receiving terminal is received is as new data slot and storage;
The data sending device sends the transmission nothing after the data slot is sent completely, by the flag bit grid
Signal is imitated, and the transmission invalid signals is made to keep one first preset time;
The data sink stops connecing when detecting that the transmission invalid signals duration is more than the first preset time
The data slot is received, and the data slot received is synthesized into partial data.
2. according to the method described in claim 1, it is characterized in that, described detecting what the data bit receiving terminal received
When the data slot variation, include using the data slot after variation as the step of new data slot and storage:
When detecting the data slot variation that the data bit receiving terminal receives, start a timer, in the timer
When timing is equal to a third preset time, the data slot that the data bit receiving terminal receives is detected again, judges the number
Whether change again according to segment;
When the data slot does not change again, the data slot is stored;
When the data slot changes again, the data slot that the data bit receiving terminal receives is re-read, together
When reset and start the timer.
3. according to the method described in claim 1, it is characterized in that:
It indicates that the value of corresponding data position is 1 when the data bit grid extinguishes, corresponding number is indicated when the data bit grid is lighted
Value according to position is 0;
The flag bit grid when lighting the transmission state signal be the transmission useful signal, the flag bit grid extinguishes
Shi Suoshu transmission state signals are the transmission invalid signals.
4. according to the method described in claim 1, it is characterized in that,
The data to be transmitted is the array as unit of byte, and the digit of the data slot is 8, the data to be transmitted
Each byte is a data slot;The data sending device sends the data slice successively by the data bit grid
Section mode be,
Each byte of the data to be transmitted is sent successively.
5. according to the method described in claim 1, it is characterized in that:
The data to be transmitted is the array as unit of byte, and the digit of the data slot is 4, the data to be transmitted
Each nibble is a data slot;The data sending device sends the data successively by the data bit grid
The mode of segment is,
High 4 of each byte data of the data to be transmitted and 4 low are sent successively.
6. according to the method described in claim 1, it is characterized in that:
The data bit grid shows different colors when lighting, and each data bit is by lighting or extinguishing and show different
The combination table of color, which is levyd, send different values;
The data receiver detect the data bit grid light/the color combination that shows of OFF state and while lighting obtains institute
State the data slot of data sending device transmission;
The flag bit grid when lighting the transmission state signal be the transmission useful signal, the flag bit grid extinguishes
Shi Suoshu transmission state signals are the transmission invalid signals.
7. a kind of data sending device, which is characterized in that the data sending device includes display screen, first memory and first
Processor, the display screen show the data bit grid and a flag bit grid of preset quantity, the data sending device hair
The data slot sent by flag bit and multiple set of data bits at;The extinguishing of multiple data bit grids or the combination for lighting situation
Indicate 0 or 1 combination of each data bit signal in the data slot sent;Expression mark is lighted or extinguished to the flag bit grid
The different value in position, to characterize different transmission state signals, the transmission state signal includes transmission useful signal or transmission nothing
Imitate signal;The first memory store instruction sends the data when described instruction is executed by the first processor
Device executes following operation:
Data to be transmitted is split into multiple data slots, the data slot be include multiple binary system arrays, it is described
The digit of data slot is equal with the preset quantity of data bit grid;
Transmission useful signal is sent by the flag bit grid, while judging that the data slot that will be sent has been sent with upper one
Data slot it is whether identical;In the data slot difference that the data slot that will be sent and upper one have been sent, pass through
The data bit grid sends the data slot that will be sent, and data slot transmission is kept to continue the second preset time;
When the data slot that will be sent is identical as the data slot that upper one has sent, one is sent by the flag bit grid
Idler Pulse signal is transmitted, the transmission idler Pulse signal is sent completely subsequent supervention and send the transmission useful signal, simultaneously
Send the data slot that will be sent by the data bit grid, and keep the data slot transmission continue second it is default when
Between, wherein the transmission idler Pulse signal is the transmission invalid signals for the duration being less than the first preset time;
After the data slot is sent completely, the transmission invalid signals are sent by the flag bit grid, and are made described
It transmits invalid signals and keeps one first preset time.
8. a kind of data sink, which is characterized in that the data sink is sent out for receiving data described in claim 7
Send the data that device is sent out;The data sink includes second memory, second processor and multiple described for receiving
The receiving terminal for the signal that data sending device is sent out, the receiving terminal detect grid by photoelectric sensor and light/OFF state;
The receiving terminal includes multiple data bit receiving terminals for receiving the data bit signal sent by the data bit grid, and is used
In the flag bit receiving terminal for receiving the transmission state signal sent by the flag bit grid;The second memory storage refers to
It enables, the data sink is made to execute following operation when described instruction is executed by the second processor:
Detect the transmission state signal that the flag bit grid of the data sending device is sent out;
When detecting the transmission useful signal, scans the flag bit receiving terminal and whether the data bit receiving terminal becomes
Change;When detecting the variation of the data slot that the data bit receiving terminal receives, using the data slot after variation as
New data slot and storage;It, will or after detecting that the flag bit receiving terminal receives the transmission idler Pulse signal
The data slot that presently described data bit receiving terminal receives is as new data slot and storage;
When detecting that the transmission invalid signals duration is more than the first preset time, stop receiving the data slot,
And the data slot received is synthesized into partial data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610798984.1A CN106375020B (en) | 2016-08-31 | 2016-08-31 | Data transmission method, data sending device and data sink |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610798984.1A CN106375020B (en) | 2016-08-31 | 2016-08-31 | Data transmission method, data sending device and data sink |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106375020A CN106375020A (en) | 2017-02-01 |
CN106375020B true CN106375020B (en) | 2018-08-17 |
Family
ID=57900413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610798984.1A Expired - Fee Related CN106375020B (en) | 2016-08-31 | 2016-08-31 | Data transmission method, data sending device and data sink |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106375020B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109147304A (en) * | 2017-06-15 | 2019-01-04 | 中兴通讯股份有限公司 | A kind of equipment remote-control method and remote control device |
CN114265494A (en) * | 2021-12-10 | 2022-04-01 | 展讯通信(上海)有限公司 | Working mode switching method and device, and data transmission method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101252415A (en) * | 2008-04-18 | 2008-08-27 | 中国人民解放军信息工程大学 | Complete package data transmission method and transmission system |
CN101547215A (en) * | 2008-03-27 | 2009-09-30 | 新奥特(北京)视频技术有限公司 | File dumping method and system in process of real-time data acquisition |
CN102983908A (en) * | 2012-12-06 | 2013-03-20 | 哈尔滨工业大学 | Visible light communication based data transmission method between computer and visible light transceiver |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8135881B1 (en) * | 2010-09-27 | 2012-03-13 | Skyworks Solutions, Inc. | Dynamically configurable serial data communication interface |
-
2016
- 2016-08-31 CN CN201610798984.1A patent/CN106375020B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101547215A (en) * | 2008-03-27 | 2009-09-30 | 新奥特(北京)视频技术有限公司 | File dumping method and system in process of real-time data acquisition |
CN101252415A (en) * | 2008-04-18 | 2008-08-27 | 中国人民解放军信息工程大学 | Complete package data transmission method and transmission system |
CN102983908A (en) * | 2012-12-06 | 2013-03-20 | 哈尔滨工业大学 | Visible light communication based data transmission method between computer and visible light transceiver |
Also Published As
Publication number | Publication date |
---|---|
CN106375020A (en) | 2017-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3641354B2 (en) | Distributed computer system | |
US20020091850A1 (en) | System and method for remote monitoring and operation of personal computers | |
CN106375020B (en) | Data transmission method, data sending device and data sink | |
JPH10105486A (en) | Distributed computer system | |
CA2455043A1 (en) | Method and apparatus for facilitating control of a target computer by a remote computer | |
JP2013240049A (en) | Transmitter and transmission method sharing screen shot, and computer readable medium | |
CN1952906A (en) | Test system and method of serial port of host computer | |
CN107749879A (en) | Control method, control device and the internet of things equipment of internet of things equipment | |
CN109257549B (en) | Device and method for displaying OTP state in real time on liquid crystal module | |
CN110088827A (en) | Image display, the connection method of image display and multidisplay system | |
CN104639830B (en) | A kind of method and device resetting rotating camera | |
CN114237999A (en) | Display equipment compatibility improving method and device, electronic equipment and storage medium | |
CN105975299B (en) | Channel switching device, burning data detection method and system, and data burning method and system | |
US10068105B2 (en) | User authentication method and terminal | |
CN111258704A (en) | Application screen display method and device, storage medium and electronic device | |
CN112235407B (en) | Education system based on Internet and gateway data transmission method thereof | |
CN111867177B (en) | LED driving apparatus and method, and readable storage medium | |
KR20020000832A (en) | Method of information transfer using optical zones | |
Bianchi et al. | Using mobile device screens for authentication | |
CN105323142A (en) | Information transmission method and system based on image recognition and mobile terminal | |
US20190045255A1 (en) | Image transmission equipment and image transmission method | |
CN113365322B (en) | Network switching method and device, security flat panel and readable storage medium | |
CN105550589B (en) | A kind of wireless methods of exhibiting and user terminal | |
CN111597007B (en) | Information processing method, system, equipment and computer readable storage medium | |
CN114077413B (en) | Display module control system, display device and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180817 |
|
CF01 | Termination of patent right due to non-payment of annual fee |