Embodiment
The main idea of the present application lies in that interacting the transmission of information based on optical signal, the sender received is set
The luminous intensity of the standby light sent is converted into character, to obtain the information to be interacted of described sender equipment.
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out all other embodiments obtained under the premise of creative work, shall fall in the protection scope of this application.
According to an embodiment of the present application, there is provided a kind of method of information exchange.The present processes can be applied to line
Under transmission interactive information between devices, the interactive information can include:Identity information, account information, card information etc..
For example, in face-to-face process of exchange, information interacting method that the application can be applied to provide is near between both devices under line
Distance interacts identity information to carry out the Transaction Information such as the identification of user identity or transmission transaction amount, number of transaction.It is described to set
It is standby to include:The portable sets such as mobile phone, tablet computer.
With reference to figure 1, Fig. 1 is a kind of overview flow chart of the method for information exchange of the embodiment of the present application.
As shown in Figure 1, at step S101, receive and send the light that method, apparatus is sent, and identify the biography included in the light
Defeated commencing signal.
Specifically, using the receiver equipment of the present processes, receive and send the light that method, apparatus is sent, and identify institute
The transmission commencing signal included in the light received.Wherein, the receiver equipment can be with light sensor or shooting
The equipment of head.It can be the equipment with luminous component to send method, apparatus, for example, the mobile terminal with display screen(Mobile phone, put down
Plate computer etc.), the application not limited to this.Biography that the transmission commencing signal sends for transmission method, apparatus, representing interactive information
The signal of defeated beginning, the transmission commencing signal can be the luminous intensity that sends of described sender equipment in the first predetermined light intensity model
The light enclosed.First predetermined light intensity scope can be set according to particularly relevant condition, can be set as with the luminous intensity of ambient light,
The luminous intensity for the light that common lighting apparatus is sent is in different scopes.Luminous intensity can first be continuously sent out first by sending method, apparatus
Light in the range of predetermined light intensity is as commencing signal is transmitted, to prompt the transmission of receiver equipment interactive information to start,
And send the respective light intensities scope that range of light intensities is converted into the interactive information to be transmitted again after being kept for the scheduled time
Interior light, and receiver equipment is identified in the light received comprising transmission commencing signal, can learn the transmission of interactive information
It will start.Wherein, sender begins to send out the light comprising the interactive information, recipient starts to receive the light, can
On the basis of the end for transmitting commencing signal, therefore, the scheduled time can be set as arbitrary time span, but need to ensure
Receiver equipment can receive and identify.
For example, in face-to-face transaction, paying party needs beneficiary first to carry out identification, is carrying out identity information knowledge
When other, the light sensor of paying party mobile phone or camera can be directed to the data transfer area of beneficiary mobile phone screen display,
The light that the data transfer area is sent is received, and identifies transmission commencing signal therein.
At step S102, the luminous intensity of the light received after recording the transmission commencing signal.
At the end of the transmission commencing signal, i.e. change takes place in the luminous intensity for the light that recipient receives, no longer
For first predetermined light intensity, at this time, the light that sender can send is with pair being converted into according to the interactive information
Answer the light of luminous intensity), the luminous intensity of the receiver equipment then light that start recording receives, wherein, luminous intensity is refers to, degree of a representation
The module of light is measured, can be that can arbitrarily measure the module of light, such as luminous intensity(Light intensity), luminous flux, light
Degree, luminous power etc..The interactive information pair that sender be able to will transmit according to range of light intensities and the mapping relations of book character
Range of light intensities should be converted into, and sends light of the luminous intensity in the range of light intensities, receiver equipment is received with the light
The light of intensity, and record the luminous intensity of the light received.
According to an embodiment of the present application, receiver equipment can be recorded in each using scheduled duration as a reception fragment
Receive the luminous intensity that received light is inscribed in fragment.
Specifically, after the transmission commencing signal that method, apparatus is sent is sent, sending method, apparatus can be with pre- timing
It is long(For example, 100ms)Fragment is sent for one, and according to the order of character in interactive information, is continued in each transmission fragment
Send the light in the corresponding range of light intensities of character of the luminous intensity in interactive information.More specifically, sending method, apparatus can be with
According to range of light intensities and the mapping relations of book character, character corresponding conversion in the information that will be interacted is into luminous intensity model
Enclose, put in order according still further to character in interactive information, luminous intensity is sent in each transmission fragment to send fragment corresponding
The light in range of light intensities corresponding to character.And after transmission commencing signal, receiver equipment is at the same time also with described pre-
Timing is long(100ms)For a reception fragment(Fragment is received with sending the equal length of fragment in time), start to receive hair
The light that method, apparatus is sent is sent, and is recorded in the luminous intensity that received light is inscribed in each reception fragment.
For example, in face-to-face transaction, beneficiary mobile phone can according to range of light intensities and the mapping relations of book character,
By the character corresponding conversion in identity information into range of light intensities, then the putting in order in the identity information by character, every
A fragment that sends sends light of the luminous intensity in corresponding range of light intensities, the light intensity for the light that paying party mobile phone record receives
Degree.
Wherein, a luminous intensity for sending the light that fragment is sent can correspond to a character, can also correspond to multiple characters,
According to the type of interactive information, the correspondence of range of light intensities and book character can be configured.For example, when interactive information is use
During the name phonetic of family, the mapping relations between range of light intensities and 26 letters of A~Z can be configured, and configure each light intensity
Spend scope and all correspond to a character.In another example when interactive information is user account, due to user account be probably by numeral,
The characters such as letter, underscore form, then, range of light intensities and the character such as numeral 0~9, letter A~Z, underscore can be configured
Mapping relations, and configure each range of light intensities correspond to a character.For another example interactive information is some specific words
When, such as " yes ", " no ", " pass ", then all words that range of light intensities and interactive information may include can also be configured
Mapping relations, i.e. each range of light intensities corresponds to a word for including multiple characters.Wherein, the range of light intensities is with making a reservation for
The mapping relations of character can be configured as range of light intensities and the mapping table of book character.
According to an embodiment of the present application, the range of light intensities and the mapping relations of book character, can be according to reserved word
The number of symbol, predetermined total light intensity degree scope are configured.Wherein, the book character can be that the interactive information may include
All characters, for example, when interactive information is name spelling, interactive information may include any one in 26 English alphabets
It is or multiple, then book character is exactly 26 letters of A-Z.The predetermined total light intensity degree scope can be set according to actual conditions
It is fixed, such as luminous intensity of light for sending of the intensity of ambient light, common lighting apparatus etc., it is preferable that can will predetermined total light
Strength range be set as it is different from the range of light intensities of light common in daily life, to strengthen discrimination.For example, life in compared with
The luminous flux of common fluorescent lamp is generally 900lm~1500lm, then can be by total light intensity degree scope(Herein, luminous intensity is with light
Flux is measured)It is set to the scope of more than 1500lm.
Specifically, number, predetermined total light intensity degree scope that can be according to book character(All book characters are corresponding total
Range of light intensities)Range of light intensities step-length is calculated according to default range of light intensities stepsize formula, further according to the light intensity
Spend range step and configure the range of light intensities and the mapping relations of book character.The mapping relations can be stored in the reception
In method, apparatus and described sender equipment, range of light intensities and the mapping table of book character are configurable to.
Wherein, range of light intensities stepsize formula can be:
Step=(Max-Base)/(table size×2)(1)
Wherein, Base represents the initial value of total light intensity degree scope, and Max represents the maximum of total light intensity degree scope, table_
Size represents the number of book character.
For example, book character is 26 letters of A~Z, and we think total light intensity degree scope to be used(Predetermined total light intensity
Spend scope)For 1600lm~4200lm, wherein, luminous intensity is measured with luminous flux, and unit is lumen(lm), then the number of character
It is 1600lm for 26, Base values, Max values are 4200lm, according to above-mentioned formula(1)Range of light intensities step-length can be calculated
Step is 50lm.
When table 1 is 26 letters that book character is A~Z, the range of light intensities that is configured according to above-mentioned each parameter value
With alphabetical A~Z mapping tables.It should be noted that the unit of luminous intensity is not limited in the embodiment of the present application, in table 1
Listed numerical value be the embodiment of the present application for convenience of description assumption value, do not represent the actual value in practical application, herein not
Form the improper restriction to the application.And the luminous intensity in the application can be luminous intensity(Light intensity), luminous flux, light
Brightness etc., the luminous intensity in range of light intensities is measured with luminous flux in table 1, unit is lumen(lm).
Table 1
It should also be noted that, the mapping relations of the range of light intensities and book character shown in table 1 are that interactive information is
During the address name spelling represented with letter, each range of light intensities corresponds to the mapping table of a character, but the application is not
It is limited to this, interactive information is also some specific words, such as " yes ", " no ", " pass ", then, each range of light intensities corresponds to
One word for including multiple characters.Range of light intensities and the mapping relations of each predetermined word, at this time, the light intensity can then be configured
Spend the mapping relations of scope and predetermined word, then can be according to the number of predetermined word, predetermined total light intensity degree scope according to default light
Strength range stepsize formula calculates range of light intensities step-length, and the luminous intensity model is configured further according to the range of light intensities step-length
Enclose the mapping relations with each predetermined word.
At step S103, the luminous intensity of the light received is converted into corresponding character, to obtain the transmission
The interactive information of method, apparatus.Specifically, receiver equipment, which receives, sends the light that method, apparatus is sent, and records the light received
The luminous intensity of received light, can be converted into pair by luminous intensity further according to range of light intensities and the mapping relations of book character
The character answered, so as to obtain sending the interactive information of method, apparatus.As described in step S102, receiver equipment can be with pre- timing
A length of reception fragment, receives and sends method, apparatus using the scheduled duration as the light for sending fragment and sending, record and each connect
The luminous intensity for the section that takes up, and the light for being received each reception fragment according to range of light intensities and the mapping relations of book character
Luminous intensity is converted into corresponding character, so as to obtain the interactive information to be transmitted of described sender equipment.Wherein, due to equipment
Can or external environment influence, the luminous intensity for the light that luminous intensity and the sender of the light that recipient receives send is not necessarily stringent
It is identical.
For example, in face-to-face transaction, beneficiary address name is " Goethe ", and phonetic is " gede ", beneficiary mobile phone root
According to the range of light intensities shown in table 1 with letter mapping table, by the name phonetic " g ", " e ", " d ", " e " order,
Sent at four in fragment and send light of the luminous intensity in the range of light intensities corresponding to " g ", " e ", " d ", " e ", paying party hand
Machine is received in fragment at four, the light that luminous intensity is 2223lm, 2026lm, 1929lm, 2030lm is respectively received, according to four
Receiving the identity information that range of light intensities and the mapping relations of letter obtain beneficiary user in the luminous intensity inquiry table 1 of fragment is
“gede”。
According to an embodiment of the present application, can also first basis the luminous intensity arrived, calculate the luminous intensity in the luminous intensity
The sequence number of position corresponding with the mapping table of book character, in fast positioning to the corresponding character of the sequence number, so that soon
Speed navigates to the corresponding character of luminous intensity, specifically, can pass through formula(2)The luminous intensity being calculated corresponds to position in table
The sequence number put, so that the character corresponding to fast positioning to the luminous intensity.
N=(L-Base)/step (2)
Wherein, N represents the position number in table, and L represents luminous intensity, and Base represents the initial value of total light intensity degree scope,
Step represents range of light intensities step-length.
For example, it is 1737lm that some, which receives the luminous intensity that fragment receives, then, still carried out using the parameter in table 1
Calculate, and luminous intensity substituted into formula, obtain N=(1737-1600)/ 50=2.74, according to the setting of table 1, the value obtained here
Can a rounding numerical digit, i.e. 2.74 round numbers are 2, and it is 2 to obtain luminous intensity 1737lm corresponding position numbers in table 1, into
And it is B that can obtain the corresponding character of the luminous intensity.
According to an embodiment of the present application, can also include when identify there is end of transmission signal in the light received when,
Stop receiving the step of the light.That is, sender, which is sent when the light comprising interactive information is sent, can send biography
Defeated end signal, to prompt the receiver equipment end of transmission, the end of transmission signal can be described sender equipment send,
Represent the signal of the end of transmission of interactive information, which can be luminous intensity in the second predetermined light intensity model
Enclose interior light.Receiver equipment receives the light, and it is end of transmission signal to identify it, can stop reception described sender and send
Light.Wherein, each luminous intensity for receiving fragment of recipient's record can be the average value of the luminous intensity in the recorded segment.
For example, in above-mentioned face-to-face transaction identity information identification, paying party mobile phone is received in fragment at 5 respectively,
It is respectively received the light that the luminous intensity that beneficiary mobile phone is sent is 1570lm, 2220lm, 2023lm, 1927lm, 2029lm, and root
The corresponding characters of luminous intensity that preceding four receptions fragment is obtained according to table 1 are respectively " g ", " e ", " d ", " e ", and the 5th receiving sheet
The luminous intensity of section is end of transmission signal, therefore, learns beneficiary in second predetermined light intensity scope 1550lm~1590lm
The identity information end of transmission, then stop receive.
According to an embodiment of the present application, to strengthen the discrimination of character, higher information exchange success rate, Ke Yi are ensured
Blind zone is set in total light intensity degree scope, is that the range of light intensities of blank is the shielding set as shown in table 1, at corresponding character
Area, the range of light intensities step-length of blind zone can be identical with effective district, can not also be same.When the light intensity that receiver equipment receives
When degree is in blind zone, character not corresponding with the luminous intensity, then can represent that the luminous intensity is invalid.Fig. 2 is real for the application
Effective district and blind zone schematic diagram in a table 1 are applied, the corresponding effective district of part range of light intensities in table 1 is merely illustrated in Fig. 2
Or blind zone.As shown in Fig. 2, wherein, 201 range of light intensities of region is 1650lm~1700lm, it is that blind zone is not corresponding
Character, 202 range of light intensities of region are that the corresponding characters of 1900lm~1950lm are D.
According to an embodiment of the present application, can also include:When the luminous intensity of the light received can not match corresponding word
Stop receiving the step of the light during symbol.That is, if the luminous intensity for the light that receiver equipment receives is matched less than corresponding word
Symbol, then just stop receiving the light that transmission method, apparatus is sent, i.e. information exchange stops.For example, the luminous intensity of the light received is
1766lm, according to table 1 and Fig. 2, which falls in blind zone range of light intensities, therefore the luminous intensity can not be matched word
Symbol.In another example the luminous intensity received is 1457lm not in the range of total light intensity degree, and also not in first, second predetermined light
In strength range(It is not transmission commencing signal or end of transmission signal), then also can not be according to range of light intensities and book character
Mapping relations obtain the corresponding character of the luminous intensity, when the luminous intensity of the light received can not match character, information hand over
Mutual process terminates, and sender resends.
According to an embodiment of the present application, after the completion of the information exchange under the top-stitching of two above-mentioned equipment, the reception
Side and sender, for example, in aspectant transaction, can also be led to by the further interaction of completion other information on grid line
Cross above-mentioned step, the paying party identity information of beneficiary user, account information etc. by handset identity can be into one
Step carries out the operation such as transfer accounts of payment on line, and then is finally completed transaction.
Present invention also provides a kind of equipment of information exchange.
Fig. 3 schematically shows the structure diagram of the information interaction device according to the application one embodiment.According to this
One embodiment of application, the equipment 300 can include:Receiving module 301, identification module 302, logging modle 303 and turn
Change the mold block 304.
Receiving module 301, can be used for receiving the light that transmission method, apparatus is sent.
Identification module 302, can be used for identifying the transmission commencing signal included in the light.
Logging modle 303, can be used for the luminous intensity of light received after recording the transmission commencing signal.
Modular converter 304, can be used for the luminous intensity of the light received being converted into corresponding character, to obtain
State the interactive information for sending method, apparatus.
According to an embodiment of the present application, receiver equipment 300 is received by receiving module 301 sends what method, apparatus was sent
Light, and identify the transmission commencing signal included in received light.Wherein, receiving module can be light sensor or shooting
Head, can receive the light in the external world.It can be the equipment with luminous component to send method, apparatus, for example, the movement with display screen
Terminal(Mobile phone, tablet computer etc.).One data transfer area of screen display can be shown at it by sending method, apparatus, and in the data
Transmission range is shown with the light that respective light intensities are converted into according to the interactive information to be transmitted of the transmission method, apparatus, receives the hair
The light that method, apparatus is sent is sent, light of the luminous intensity in the range of the first predetermined light intensity in the light is identified by identification module.Wherein,
For the transmission commencing signal to send the signal that transmission that method, apparatus is sent, representing interactive information starts, which starts letter
Number can be light of the luminous intensity that sends of described sender equipment in the range of the first predetermined light intensity.First predetermined light intensity model
Enclosing can set according to particularly relevant condition, the light that can be set as sending with the luminous intensity of ambient light, common lighting apparatus
Luminous intensity is in different scopes.
After the transmission commencing signal, the luminous intensity for the light that 303 start recording of logging modle receives.Sender
Light of the luminous intensity in the range of the first predetermined light intensity is sent as transmission commencing signal, to prompt the transmission of interactive information will
Start, after the transmission commencing signal, i.e. the luminous intensity for the light that recipient receives changes, and luminous intensity does not exist
In the range of first predetermined light intensity, sender starts to send the light for including the interactive information at this time, and receiver equipment starts
The luminous intensity of the light received is recorded, starts to receive with recipient since sender begins to send out the light comprising the interactive information
It is described that therefore, the scheduled time can be set as random time length just on the basis of the end for transmitting commencing signal,
But ensure that receiver equipment can receive.Wherein, the luminous intensity represents the module of measurement light to refer to, can be with
Can arbitrarily to measure the module of light, for example, luminous intensity(Light intensity), luminous flux, brightness, luminous power etc..Sender
Can according to the interactive information corresponding conversion that range of light intensities and the mapping relations of book character will be transmitted into range of light intensities,
Send light of the luminous intensity in the range of light intensities again afterwards, recipient receives the light that sender sends, and recording light intensity.
According to an embodiment of the present application, receiving module 301 can be recorded in each using scheduled duration as a reception fragment
Receive the luminous intensity that received light is inscribed in fragment.Specifically, after the transmission commencing signal that method, apparatus is sent is sent, hair
Method, apparatus is sent to send fragment using scheduled duration as one, and according to the order of character in interactive information, in each transmission piece
The light in the corresponding range of light intensities of character of the luminous intensity in interactive information is continuously sent out in section.Sending method, apparatus can basis
Character corresponding conversion in the information that range of light intensities will be interacted with the mapping relations of book character is into range of light intensities, then presses
Put in order according to character in interactive information, luminous intensity is sent in the corresponding character institute of the transmission fragment in each transmission fragment
Light in corresponding range of light intensities, and after transmission commencing signal, receiving module 301 is at the same time also with the scheduled duration
For a reception fragment(Fragment is received with sending the equal length of fragment in time), receive and send the light that method, apparatus is sent.
Wherein, a luminous intensity for sending the light that fragment is sent can correspond to a character, can also correspond to multiple characters, can be directed to
Different types of interactive information configures the correspondence of different range of light intensities and book character, range of light intensities and reserved word
The mapping relations of symbol can be additionally configured to range of light intensities and the mapping table of book character.Modular converter 304 can root
The luminous intensity of the light received by each reception fragment is converted into according to the range of light intensities and the mapping relations of book character
Corresponding character, so as to obtain the interactive information to be transmitted of described sender equipment.
According to an embodiment of the present application, the range of light intensities and the mapping relations of book character, can be according to reserved word
The number of symbol, predetermined total light intensity degree scope are configured.The predetermined total light intensity degree scope can be set according to actual conditions, example
The luminous intensity for the light that the intensity of such as ambient light, common lighting apparatus are sent, it is preferable that can be by the predetermined total light intensity degree model
Enclose be set as it is different from the range of light intensities of light common in daily life, to strengthen discrimination.Specifically, can be according to pre-
Determine the number of character, predetermined total light intensity degree scope(The corresponding total range of light intensities of all book characters)According to default light intensity
Degree range step formula calculates range of light intensities step-length, and the range of light intensities is configured further according to the range of light intensities step-length
With the mapping relations of book character.The mapping relations are configurable to range of light intensities and the mapping table of book character.
Configure the detail of the range of light intensities and the mapping relations of book character, and how the light intensity that will be obtained
Degree is converted to character, refers to the description in embodiment of the method, therefore not to repeat here.
According to an embodiment of the present application, identification module 302 can be also used for the transmission knot included in the light that identification receives
Beam signal.Receiving module 301, is further used for when including the end of transmission signal in the light received, stops receiving institute
State light.
That is, sender, which is sent when the light comprising interactive information is sent, can send end of transmission signal, with
The receiver equipment end of transmission is prompted, the end of transmission signal can be that described sender equipment sends, represents interactive information
The end of transmission signal, which can be light of the luminous intensity in the range of second predetermined light intensity.Know
Other module 302 identifies the luminous intensity of the light received in the range of the second predetermined light intensity, then identifies that it believes for the end of transmission
Number, receiving module 301 then stops receiving the light that described sender is sent.
According to an embodiment of the present application, receiving module 301 can be also used for when the luminous intensity of the light received can not match
During to corresponding character, stop receiving the light.That is, if the luminous intensity of the light received is matched less than corresponding character, that
Just stop receiving and send the light that method, apparatus is sent, information interactive process terminates, and sender resends.
Since the function that the equipment of the present embodiment is realized essentially corresponds to the embodiment of the method shown in 1~Fig. 2 of earlier figures,
Therefore not detailed part in the description of the present embodiment, the related description in previous embodiment is may refer to, this will not be repeated here.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment it is intrinsic will
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there are other identical element in the process of element, method, commodity or equipment.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation
The form of product.
The foregoing is merely embodiments herein, is not limited to the application, for those skilled in the art
For member, the application can have various modifications and variations.All any modifications within spirit herein and principle, made,
Equivalent substitution, improvement etc., should be included within the scope of claims hereof.