CN109728859B - Transaction information transmission method and device, transaction information receiving method and device, and communication system - Google Patents

Transaction information transmission method and device, transaction information receiving method and device, and communication system Download PDF

Info

Publication number
CN109728859B
CN109728859B CN201910209074.9A CN201910209074A CN109728859B CN 109728859 B CN109728859 B CN 109728859B CN 201910209074 A CN201910209074 A CN 201910209074A CN 109728859 B CN109728859 B CN 109728859B
Authority
CN
China
Prior art keywords
value
information
transaction information
waveform parameter
pulse width
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910209074.9A
Other languages
Chinese (zh)
Other versions
CN109728859A (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.)
BOE Technology Group Co Ltd
Chengdu BOE Optoelectronics Technology Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Chengdu BOE Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd, Chengdu BOE Optoelectronics Technology Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN201910209074.9A priority Critical patent/CN109728859B/en
Publication of CN109728859A publication Critical patent/CN109728859A/en
Application granted granted Critical
Publication of CN109728859B publication Critical patent/CN109728859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Liquid Crystal Display Device Control (AREA)
  • Optical Communication System (AREA)

Abstract

The invention provides a transaction information transmission method, wherein the transaction information is transmitted through a display module, the display module comprises a light-emitting element, the light-emitting element is controlled by a pulse width modulation signal, and the transaction information transmission method comprises the following steps: acquiring transaction information to be transmitted, wherein at least one part of the transaction information to be transmitted is first information; converting the first information into values of waveform parameters; the waveform parameters include: any one of a duty ratio of the pulse width modulation signal, a pulse width, and a number of pulses of the pulse width modulation signal in a display period; and adjusting the waveform parameters of the pulse width modulation signals of the display module according to the values of the waveform parameters converted from the first signals so as to transmit first information through the brightness change of the display module. Correspondingly, the invention also provides a transaction information transmitting device, a transaction information receiving method and device and a communication system. The invention can enhance the safety and convenience of transaction.

Description

Transaction information transmission method and device, transaction information receiving method and device, and communication system
Technical Field
The invention relates to the technical field of communication, in particular to a transaction information transmitting method and device, a transaction information receiving method and device and a communication system.
Background
Currently, mobile payments (e.g., bar code/two-dimensional code payments, etc.) have grown in popularity around the world. In one of the transaction modes, the electronic equipment of one party of the transaction is connected with the network and presents the bar code/two-dimensional code containing the payment (or collection) account through the electronic terminal, after the bar code/two-dimensional code is collected by the other party of the transaction, the information is verified to a third party payment platform through the network, and the information of the two parties is verified to complete the transaction.
However, in the above transaction method, there is a possibility that information is captured and information theft occurs; moreover, the above transaction mode has a certain requirement on the display quality of the electronic device, and once the screen of the electronic device is stained, cracked, displayed incompletely and the like, the barcode/two-dimensional code scanning fails.
Disclosure of Invention
The invention aims to at least solve one technical problem in the prior art, and provides a transaction information transmission method and device, a transaction information receiving method and device and a communication system.
In order to achieve the above object, the present invention provides a method for transmitting transaction information, wherein the transaction information is transmitted through a display module, the display module includes a light emitting element, the light emitting element is controlled by a pulse width modulation signal, and the method for transmitting transaction information includes:
acquiring transaction information to be transmitted, wherein at least one part of the transaction information to be transmitted is first information;
converting the first information into values of waveform parameters; the waveform parameters include: any one of a duty ratio of the pulse width modulation signal, a pulse width, and a number of pulses of the pulse width modulation signal in a display period;
and adjusting the waveform parameters of the pulse width modulation signals of the display module according to the values of the waveform parameters converted from the first signals so as to transmit first information through the brightness change of the display module.
Optionally, one part of the transaction information to be transmitted is the first information, and the other part is the second information;
the transaction information delivery method further includes:
and controlling a display module to display a corresponding two-dimensional code image or a corresponding bar code image according to the second information.
Optionally, the first information comprises a plurality of bits of encoded data, each bit of encoded data being selected from a predetermined set of data;
the step of converting the first information into values of waveform parameters comprises:
acquiring the value of the waveform parameter of the pulse width modulation signal in the current display period;
setting a waveform parameter value range, wherein the maximum value of the waveform parameter value range is the value of the waveform parameter of the pulse width modulation signal in the current display period;
dividing the value range of the waveform parameter into a plurality of value intervals, wherein each value interval corresponds to one coded data in the preset data set;
acquiring coded data corresponding to the first information, and acquiring a value range corresponding to each coded data;
the step of adjusting the waveform of the pulse width modulation signal of the display module according to the value of the waveform parameter converted from the first signal comprises:
controlling the display module to display at least one frame of reference picture, wherein the value of the waveform parameter of the pulse width modulation signal corresponding to the reference picture is the maximum value of the value range of the waveform parameter;
and respectively adjusting the waveform parameters of the pulse width modulation signals corresponding to each frame of picture after the reference picture according to the value-taking interval corresponding to each bit of coded data of the first information.
Correspondingly, the invention also provides a transaction information receiving method, which is used for receiving the transaction information transmitted by the display module through the transaction information transmitting method, and the transaction information receiving method comprises the following steps:
acquiring the value of the waveform parameter of the pulse width modulation signal of the display module;
and determining first information in the transaction information according to the value of the waveform parameter of the pulse width modulation signal.
Optionally, the step of determining the first information in the transaction information according to the value of the waveform parameter of the pulse width modulation signal includes:
determining the maximum value of the value range of the waveform parameter according to the value of the waveform parameter of the pulse width modulation signal corresponding to the reference picture;
determining the value range of the waveform parameter according to the maximum value of the value range of the waveform parameter;
dividing the value range of the waveform parameter into a plurality of value intervals, and determining the value interval corresponding to each coded data in the preset data set;
determining coded data corresponding to each frame of picture according to a value interval in which the value of the waveform parameter corresponding to each frame of picture behind the reference picture is located;
and determining the first information according to the coded data corresponding to each frame of picture.
Correspondingly, the invention also provides a transaction information transmission device, which comprises a display module and also comprises:
the system comprises a transaction information acquisition module, a transaction information transmission module and a transaction information transmission module, wherein the transaction information acquisition module is used for acquiring transaction information to be transmitted, and at least one part of the transaction information to be transmitted is first information;
the information conversion module is used for converting the first information into values of waveform parameters; the waveform parameters include: any one of a duty ratio of the pulse width modulation signal, a pulse width, and a number of pulses of the pulse width modulation signal in a display period;
and the first control module is used for adjusting the waveform of the pulse width modulation signal of the display module according to the value of the waveform parameter converted from the first signal so as to transmit the first information through the brightness change of the display module.
Optionally, one part of the transaction information to be transmitted is the first information, and the other part is the second information; the transaction information delivery apparatus further includes:
and the second control module is used for controlling the display module to display the corresponding two-dimensional code image or the corresponding bar code image according to the second information.
Optionally, the first information comprises a plurality of bits of encoded data, each bit of encoded data being selected from a predetermined set of data;
the information conversion module includes:
the current information acquisition unit is used for acquiring the value of the waveform parameter of the pulse width modulation signal in the current display period;
the range setting unit is used for setting a waveform parameter value range, and the maximum value of the waveform parameter value range is the value of the waveform parameter of the pulse width modulation signal in the current display period;
the interval dividing unit is used for dividing the value range of the waveform parameter into a plurality of value intervals, and each value interval corresponds to one coded data in the preset data set;
the searching unit is used for acquiring the coded data corresponding to the first information and acquiring a value range corresponding to each coded data;
the first control module is used for controlling the display module to display at least one frame of reference picture and respectively adjusting the waveform of the pulse width modulation signal corresponding to each frame of picture behind the reference picture according to the value taking interval corresponding to each bit of coded data of the first information; and the value of the waveform parameter of the pulse width modulation signal corresponding to the reference picture is the maximum value of the value range of the waveform parameter.
Correspondingly, the invention also provides a transaction information receiving device, which comprises:
the waveform parameter acquisition module is used for acquiring the value of the waveform parameter of the pulse width modulation signal of the display module of the transaction information transmission device;
and the processing module is used for determining first information in the transaction information according to the value of the waveform parameter of the pulse width modulation signal.
Optionally, the processing module includes:
the maximum value determining unit is used for determining the maximum value of the value range of the waveform parameter according to the value of the waveform parameter of the pulse width modulation signal corresponding to the reference picture;
the range determining unit is used for determining the value range of the waveform parameter according to the maximum value of the value range of the waveform parameter;
the interval determining unit is used for dividing the value range of the waveform parameter into a plurality of value intervals and determining the value interval corresponding to each coded data in the preset data set;
the data acquisition unit is used for determining the coded data corresponding to each frame of picture according to the value interval of the waveform parameter value corresponding to each frame of picture behind the reference picture;
and the analysis unit is used for determining the first information according to the coded data corresponding to each frame of picture.
Correspondingly, the invention also provides a communication system which comprises the transaction information transmitting device and the transaction information receiving device provided by the invention.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a timing diagram of a plurality of different PWM signals during a display period;
FIG. 2 is a flowchart of a transaction information delivery method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a transaction information delivery method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram illustrating incomplete display of a two-dimensional code image due to breakage of a touch screen;
fig. 5 is a flowchart of a transaction information receiving method according to a fourth embodiment of the present invention;
fig. 6 is a transaction information transmission device according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a driving portion of the transaction information transfer device.
Fig. 8 is a schematic structural diagram of a transaction information receiving device according to a sixth embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
The embodiment of the invention provides a transaction information transmission method, wherein the transaction information is transmitted through a display module, the display module comprises a light-emitting element, and the light-emitting element is controlled by a pulse width modulation signal (PWM signal for short).
The display module can be a liquid crystal display module or an organic electroluminescent (OLED) display module. For the liquid crystal display module, the backlight source provides light for the liquid crystal panel, the gray scale of each pixel is adjusted through the deflection of the liquid crystal, and when a user needs to obtain a display level with lower overall brightness, the overall brightness of the display module can be adjusted through adjusting the brightness of the backlight. For the organic electroluminescent display module, the pixel is provided with the organic light-emitting unit, the organic light-emitting unit has self-luminous characteristics, and when the gray scale of the pixel is adjusted, the current flowing through the organic light-emitting unit can be controlled through the voltage signal of the data line, so that the brightness of the organic light-emitting unit is adjusted, and the gray scale of the pixel is adjusted. When the user needs to adjust the whole display brightness of the screen, the on-time of the whole screen in unit time can be adjusted through the PWM signal output by the driving chip, so that the light quantity entering human eyes is adjusted.
Wherein the light emitting element is turned on when the light emitting element receives a pulse in the PWM signal (i.e., when the PWM signal is in an active level state); when the PWM signal received by the light emitting element is at an inactive level, the light emitting element is turned off. In the current display module, the refresh frequency is generally 60Hz or even higher. Taking a common 60Hz example, the duration of each display period (each frame) is about 16.67ms, and the PWM signal can reach multiple pulses in one display period. That is, in each display period, the display module does not continuously display the image, but inserts a black image for a certain period of time. Since the time of each display period is short, the human eye does not feel the appearance of the black picture. Fig. 1 is a timing diagram of a plurality of different PWM signals in a display period, and as shown in fig. 1, four PWM signals each include four pulses in each display period, and duty ratios of the four PWM signals are different, so that when the four PWM signals are used to control light emitting elements respectively, human eyes feel that the overall brightness of the display module is different.
Fig. 2 is a flowchart of a transaction information delivery method according to an embodiment of the present invention, and as shown in fig. 2, the transaction information delivery method includes:
and S11, acquiring the transaction information to be transmitted. At least one part of the transaction information to be transmitted is first information. Optionally, the transaction information includes information of a transaction account, a transaction amount, and the like; when the first information is part of the transaction information to be transferred, it may be part of the account number of the transaction account, part of the transaction amount.
And S12, converting the first information into the values of the waveform parameters. The waveform parameters include: the duty ratio of the PWM signal, the pulse width of the PWM signal, and the number of pulses of the PWM signal in the display period.
And S13, adjusting the waveform of the PWM signal of the display module according to the value of the waveform parameter converted from the first information, so as to transmit the first information through the brightness change of the display module.
Alternatively, the first information may be encoded data, and each set of encoded data may correspond to a set of target values. For example, the waveform parameter is a duty ratio, and the first information is "012", where a value of the duty ratio corresponding to "0" is 5%; the duty ratio value for "1" is 10%, and the duty ratio value for "2" is 20%.
In the communication process, one party of transaction can adjust the value of the waveform parameter of the PWM signal of the display module through the transaction information transmission method, namely, the waveform of the PWM signal is controlled, and the other party of transaction acquires the value of the waveform parameter of the PWM signal of the display module by capturing the brightness change of the display module in each display period; and acquiring the coded data corresponding to each display period according to the waveform parameters of the PWM signals in each display period, and further determining first information according to the coded data. When the PWM signal is in the invalid level state, the display module does not emit light. When the brightness change of the display module is captured, the photodiode with higher resolution ratio can be used for detecting, so that whether the display module displays a black picture or not can be accurately identified.
Compared with the mode of directly carrying out transaction by displaying the two-dimensional code in the prior art, the invention transfers at least one part of the transaction message by adjusting the waveform of the PWM signal of the display module, can prevent the transaction information from being candid of secretly and enhances the security of the transaction; and even if the screen of the display module is damaged or dirty, the value of the waveform parameter of the PWM signal can be determined through the display brightness of other positions of the screen, and then the transaction information is determined, so that more convenient payment experience is provided for a user.
However, a part of the transaction information (i.e., a part of the transaction information is the first information) may be transmitted in the manner of steps S11 to S13, or the whole transaction information may be transmitted in the manner of steps S11 to S13. Optionally, in the first embodiment of the present invention, a part of the transaction information to be transmitted is used as the first information, and another part is used as the second information. The transaction information delivery method further includes: and converting the second information into image information, and controlling a display module to display a corresponding two-dimensional code image or a corresponding bar code image according to the image information. In this way, the transaction information may be conveyed in conjunction with the two-dimensional code image or barcode image and the waveform of the PWM signal.
Fig. 3 is a flowchart of a transaction information delivery method according to a second embodiment of the present invention, and as shown in fig. 3, the transaction information delivery method includes:
and S21, acquiring the transaction information to be transmitted. The transaction information may include information such as a transaction account and a transaction amount. One part of the transaction information is first information, and the other part of the transaction information is second information.
In particular, the transaction information takes the form of a digital code, which may in particular correspond to a plurality of bits of encoded data, each bit of encoded data being selected from a predetermined set of data. For example, the transaction information is coded decimal, and the predetermined data set includes ten coded data from 0 to 9.
And S22, controlling the display module to display the corresponding two-dimensional code image or the corresponding bar code image according to the second information in the transaction information.
And S23, converting the first information into a value of a waveform parameter, wherein the waveform parameter comprises any one of the duty ratio of the PWM signal, the pulse width and the pulse number of the PWM signal in the display period.
Specifically, the step S23 includes:
and S231, acquiring the value of the waveform parameter of the PWM signal in the current display period. The waveform parameters are: before the effective display duration of the picture of the display module is adjusted, the duty ratio or the pulse width of the PWM signal or the pulse number of the PWM signal in the current display period.
The transaction information transmission method is executed by the transaction information transmission device, the transaction information transmission device can be mobile equipment such as a mobile phone, and the duty ratio of the PWM signal of the mobile equipment can be set by a user at will, so that the values of the waveform parameters of the PWM signal in the current display period are not necessarily the same for the mobile equipment with different models or the transaction process at different time.
And S232, setting a value range of the waveform parameter, wherein the maximum value of the value range of the waveform parameter is the value of the waveform parameter acquired in the step S231.
The minimum value of the value range of the waveform parameter can be the product of the maximum value and a preset proportion, and can also be a preset fixed value. For example, the waveform parameter is a duty ratio, and the minimum value of the waveform parameter value range is 20% of the maximum value, or the duty ratio of 10% is used as the minimum value of the waveform parameter value range.
And S233, dividing the value range of the waveform parameter into a plurality of value intervals, wherein each value interval corresponds to one coded data in the preset data set.
Optionally, the plurality of value intervals into which the value range of the waveform parameter is divided are equal. For example, the waveform parameter is a duty ratio, the maximum value of a waveform parameter value range (i.e., a duty ratio value range) is 90%, the minimum value is 10%, the transaction information is coded in a decimal manner, and a predetermined data set comprises ten coded data from 0 to 9; in this case, the range of 10% to 90% is divided into 10 value intervals, and the ten value intervals correspond to ten encoded data of 0 to 9, respectively.
It should be noted that the value-taking interval may only include one value, for example, the predetermined data set includes ten encoded data from 0 to 9, the waveform parameter is the pulse number of the PWM signal in the display period, the value-taking range of the pulse number is 1 to 10, and the value-taking interval corresponding to each encoded data includes only one value; specifically, the number of pulses corresponding to encoded data 0 is 1; the number of pulses corresponding to the coded data 1 is 2; the number of pulses for encoded data 2 is 3, and so on.
And S234, acquiring the coded data corresponding to the first information, and acquiring a value range corresponding to each coded data.
And S24, adjusting the waveform of the PWM signal of the display module according to the value of the waveform parameter converted from the first signal, so as to transmit the first information through the brightness change of the display module. Step S24 specifically includes:
and S241, controlling the display module to display at least one frame of reference picture, wherein the value of the waveform parameter of the PWM signal corresponding to the reference picture is the maximum value of the value range of the waveform parameter. The purpose of controlling the display module to display the reference picture is to enable the transaction information receiving device to judge the maximum value of the transaction information value range, so that a plurality of value intervals are determined.
The display content of the reference picture may be: the two-dimensional code image or the barcode image displayed based on the second information in step S22 described above. In this case, S22 and step S241 may be combined into one step, that is, step S23 is directly performed after step S21 ends; in step 241, the value of the waveform parameter of the PWM signal corresponding to the reference picture is the maximum value of the value range of the waveform parameter, and the content of the reference picture is a two-dimensional code image or a barcode image generated according to the second information.
And S242, respectively adjusting the waveform parameters of the PWM signals corresponding to each frame of picture after the reference picture according to the value interval corresponding to each bit of coded data of the first information.
Alternatively, each bit of encoded data corresponds to one frame of picture, for example, the multi-bit encoded data of the first information is "123", and the intervals of the duty ratios corresponding to the three-bit encoded data are [ 11%, 20% ], (20%, 30% ], (30%, 40% ]), respectively, then step S242 includes controlling the duty ratios of the PWM signals corresponding to three frames of pictures after the reference picture to be within three intervals of [ 11%, 20% ], (20%, 30% ], and (30%, 40% ]), respectively.
Another transaction information delivery method provided in the third embodiment of the present invention is similar to the method in the second embodiment, and the difference is that in the transaction information delivery method in the third embodiment, the first information is all the transaction information, that is, step S22 is omitted; the content of the reference picture in step S241 is not limited, and may be a two-dimensional code/barcode image or another image.
In practical applications, whether a part of the transaction information is the first information or all of the transaction information is the first information may be determined by receiving a control instruction of a user, that is, whether the transaction information delivery method of the second embodiment or the transaction information delivery method of the third embodiment is adopted may be determined by receiving a control instruction of a user.
As described above, the transaction information delivery device may be a mobile device such as a mobile phone, and most of the current mobile devices are touch display devices, and the touch layer is more easily damaged than the display layer under external impact, and the control command may be a command sent by an entity shortcut key on the mobile device when the touch layer is damaged. For example, as shown in fig. 4, when the mobile device displays the two-dimensional code image 1, the user finds that the two-dimensional code image 1 is incompletely displayed due to the touch screen being damaged, and at this time, the entity shortcut key 2 may be pressed to generate a control instruction, and under the control of the control instruction, the transaction information transmission method of the third embodiment is adopted to perform information transmission.
The fourth embodiment of the invention provides a transaction information receiving method, which is used for receiving the transaction information transmitted by the display module through the transaction information transmitting method of the fourth embodiment. Fig. 5 is a flowchart of a transaction information receiving method according to a fourth embodiment of the present invention, and as shown in fig. 5, the transaction information receiving method includes the steps of;
and S31, acquiring the value of the waveform parameter of the PWM signal of the display module. As described above, the waveform parameters include: any one of a duty ratio of the PWM signal, a pulse width, and a number of pulses of the PWM signal within a display period. It should be understood that the waveform parameters obtained in step S31 should be the same as the waveform parameters converted in step S12, e.g., both are duty cycles.
The value of the waveform parameter of the PWM signal of the display module can be obtained by acquiring the brightness of the display module and then according to the brightness change of the display module. The brightness of the display module can be obtained by the photosensitive diode with higher resolution, so that the brightness change of the display module in one display period can be distinguished.
And S32, determining first information in the transaction information according to the value of the waveform parameter of the PWM signal.
Through the third transaction information receiving method of the embodiment, even if the screen of the display module is damaged or dirty, the value of the waveform parameter of the PWM signal can be determined through the display brightness at other positions of the screen, so as to determine the transaction information.
When the display module displays the transaction information transmitted by the transaction information transmission method of the second or third embodiment, step S32 includes:
s321, determining the maximum value of the value range of the waveform parameter according to the value of the waveform parameter of the PWM signal corresponding to the reference picture; and the minimum value of the value range of the waveform parameter can be preset.
And S322, determining the value range of the waveform parameter according to the maximum value of the value range of the waveform parameter.
And S323, dividing the value range of the waveform parameter into a plurality of value intervals, and determining the value interval corresponding to each coded data in the preset data set.
For example, the waveform parameter is a duty ratio, the value range of the waveform parameter is 1% -90%, the code comprises 0-9 ten coded data, and then the value range of the waveform parameter is divided into ten value intervals. It should be noted that the corresponding rule between the value range and the encoded data should be consistent with the corresponding rule in the transaction information delivery method. For example, in the transaction information delivery method, the correspondence rule between the value-taking interval and the encoded data is as follows: arranging the value intervals in a sequence from small to large, arranging the coded data in a sequence from small to large, wherein the coded data with the same serial number correspond to the value intervals; at this time, in the transaction information receiving method, the value range of the waveform parameter may be divided into a plurality of value intervals according to the number of the encoded data, and the value intervals are sorted from small to large, and the encoded data with the same serial number corresponds to the value intervals.
And S324, determining the coded data corresponding to each frame according to the value interval of the waveform parameter of the pulse modulation signal corresponding to each frame after the reference frame.
S325, determining the first information according to the coded data corresponding to each frame of picture.
Specific examples of the transaction information transmission method and the transaction information receiving method are described below with the waveform parameter as the duty ratio as an example.
The transaction information transmission method comprises the following steps:
step one, obtaining transaction information to be transmitted, wherein one part of the transaction information to be transmitted is first information, and the other part of the transaction information to be transmitted is second information. The first information adopts decimal coding, and the coded data corresponding to the first information is 2356.
And step two, acquiring the duty ratio of the PWM signal of the display module in the current display period. Wherein the duty cycle is 85%.
And step three, setting a duty ratio value range. And C, determining the maximum value of the duty ratio value range as the value of the duty ratio obtained in the step II, and determining the minimum value of the duty ratio value range as 5%.
And step four, dividing the duty ratio value range into ten value intervals, wherein each value interval corresponds to one coded data. The value range corresponding to the coded data "0" is [ 5%, 13%), the value range corresponding to the coded data "1" is [ 13%, 21%), the value range corresponding to the coded data "2" is [ 21%, 29%), the value range corresponding to the coded data "3" is [ 29%, 37%), the value range corresponding to the coded data "4" is [ 37%, 45%), the value range corresponding to the coded data "5" is [ 45%, 53%), the value range corresponding to the coded data "6" is [ 53%, 61%, 69%), the value range corresponding to the coded data "8" is [ 69%, 77%), and the value range corresponding to the coded data "9" is [ 77%, 85%).
And step five, acquiring the coded data corresponding to the first information, and acquiring a value range corresponding to each coded data. As described in the first step, the encoded data corresponding to the first information is "2356", and at this time, according to the correspondence, the value-taking interval corresponding to the encoded data "2" is [ 21%, 29%), the value-taking interval corresponding to the encoded data "3" is [ 29%, 37%), the value-taking interval corresponding to the encoded data "5" is [ 45%, 53%), and the value-taking interval corresponding to the encoded data "6" is [ 53%, 61%).
And step six, controlling the display module to display at least one frame of reference picture, wherein the duty ratio of the PWM signal corresponding to the reference picture is the duty ratio in the step two, namely 85%. In addition, the content of the reference screen is a two-dimensional code image or a barcode image corresponding to the second information.
And seventhly, respectively adjusting the waveform of the PWM signal corresponding to each frame of picture after the reference picture according to the value interval corresponding to each bit of coded data (namely '2356') of the first information. Specifically, the duty ratios of the PWM signals corresponding to three frames of pictures after the reference picture are respectively adjusted to a1, a2, a3, a 4; wherein a1 is in the range of [ 21%, 29%), a2 is in the range of [ 29%, 37%), a3 is in the range of [ 45%, 53%), a4 is in the range of [ 53%, 61%).
The transaction information receiving method comprises the following steps:
step one, collecting the brightness of the display module, and determining the duty ratio of the PWM signal in each display period according to the brightness change in each display period. Wherein, at least one display period is a display period corresponding to the reference picture; and the rest display periods are the display periods corresponding to the frames of images after the reference picture. It can be understood that when the collected brightness of the display module is enough to determine the transaction information, the brightness collection is not performed any more.
Specifically, it is detected that the duty ratio of the PWM signal in the display period in which the reference picture is located is 85%, and the duty ratios in the subsequent display periods are 25%, 30%, 50%, and 58%, respectively.
And step two, acquiring the duty ratio of the PWM signal corresponding to the reference picture and the minimum value (namely, the 5%) of the duty ratio range to determine that the duty ratio range is [ 5%, 85% ].
Step three, dividing the duty ratio range of [ 5%, 85% ] into ten value intervals: [ 5%, 13%), [ 13%, 21%), [ 21%, 29%, [ 29%, 37%), [ 37%, 45%), [ 45%, 53%, 61%), [ 61%, 69%, [ 69%, 77%), [ 77%, 85%); the ten value intervals sequentially correspond to 0-9 coded data.
And step four, determining the value intervals where the duty ratios (namely 25%, 30%, 50% and 58%) of the PWM signals corresponding to each frame of picture after the reference picture are respectively [ 21%, 29%, [ 29%, 37%, [ 45%, 53%, [ 53%, 61%), thereby determining the coded data corresponding to each frame of picture to be "2356".
And step five, determining the first information according to the coded data '2356'.
And step six, determining second information according to the two-dimensional code/bar code in the reference picture, and determining transaction information according to the first information and the second information.
The fifth embodiment of the invention provides a transaction information transmission device. The method is used for executing any transaction information transmission method in the first to the third embodiments. Fig. 6 is a transaction information transmission device according to a fifth embodiment of the present invention, and as shown in fig. 6, the transaction information transmission device includes: the system comprises a display module 10, a transaction information acquisition module 11, an information conversion module 12 and a first control module 13.
The transaction information obtaining module 11 is configured to obtain transaction information to be transmitted, where at least a part of the transaction information to be transmitted is first information.
The information conversion module 12 is used for converting the first information into values of waveform parameters; the waveform parameters include: the duty ratio of the PWM signal, the pulse width of the PWM signal, and the number of pulses of the PWM signal in the display period.
The first control module 13 is configured to adjust a waveform of the PWM signal of the display module according to a value of the waveform parameter converted from the first signal, so as to transmit the first information through a brightness change of the display module.
In some embodiments, one part of the transaction information to be transmitted is the first information, and the other part is the second information. At this time, the transaction information delivery apparatus further includes: and the second control module 14 is used for controlling the display module to display the corresponding two-dimensional code image or the corresponding bar code image according to the second information.
Optionally, the first information comprises a plurality of bits of encoded data, each bit of encoded data being selected from a predetermined set of data. The information conversion module 12 includes: a current information acquisition unit 121, a range setting unit 122, an interval division unit 123, and a search unit 124.
The current information acquiring unit 121 is configured to acquire a value of a waveform parameter of the PWM signal in a current display period.
The range setting unit 122 is configured to set a waveform parameter value range, where a maximum value of the waveform parameter value range is a value of a waveform parameter of the PWM signal in a current display period.
The interval dividing unit 123 is configured to divide the value range of the waveform parameter into a plurality of value intervals, where each value interval corresponds to one encoded data in a predetermined data set.
The searching unit 124 is configured to obtain encoded data corresponding to the first information, and obtain a value range corresponding to each bit of the encoded data.
The first control unit 13 is specifically configured to control the display module to display at least one reference frame, and respectively adjust waveforms of PWM signals corresponding to frames after the reference frame according to a value interval corresponding to each bit of encoded data of the first information. The value of the waveform parameter of the PWM signal corresponding to the reference picture is the maximum value of the value range of the waveform parameter.
Fig. 7 is a schematic structural diagram of a driving portion of the transaction information transmission device, and as shown in fig. 7, the first control module 13 may specifically include: the display Driver IC is capable of generating a PWM signal that controls the turning on and off of the light emitting elements, using the processor AP. The parameters of the PWM signal such as pulse width, pulse number, duty ratio and the like are determined by the application processor AP according to the first information; the application processor AP may also provide video data (MIPI signals) to the display Driver IC. In addition, the driving part of the transaction information transfer device further includes: the Power conversion chip Power IC is used for converting external Power information into an electric signal required by a Driver IC.
The transaction information transfer device of this embodiment may specifically be a mobile device such as a mobile phone, and the principle of transferring transaction information is described above and is not described herein again.
Fig. 8 is a schematic structural diagram of a transaction information receiving device according to a sixth embodiment of the present invention, and as shown in fig. 8, the transaction information receiving device includes: a waveform parameter acquisition module 21 and a processing module 22.
The waveform parameter obtaining module 21 is configured to obtain a value of a waveform parameter of the PWM signal of the display module 10 of the transaction information transferring apparatus according to the fifth embodiment. The waveform parameter acquiring module 21 may include a photodiode, and is configured to acquire display brightness of the display module; the waveform parameter obtaining module 21 determines the waveform parameter of the PWM signal according to the brightness change of the display module in each display period.
The processing module 22 is configured to determine first information in the transaction information according to a value of a waveform parameter of the PWM signal.
Specifically, the processing module 22 includes: a maximum value determining unit 221, a range determining unit 222, an interval determining unit 223, a data acquiring unit 224, and an analyzing unit 225.
The maximum value determining unit 221 is configured to determine a maximum value of the value range of the waveform parameter according to the value of the waveform parameter of the PWM signal corresponding to the reference picture.
The range determining unit 222 is configured to determine the waveform parameter value range according to a maximum value of the waveform parameter value range.
The section determining unit 223 is configured to divide the value range of the waveform parameter into a plurality of value sections, and determine a value section corresponding to each encoded data in the predetermined data set.
The data obtaining unit 224 is configured to determine, according to a value interval where a value of a waveform parameter of a pulse modulation signal corresponding to each frame of picture after the reference picture is located, encoded data corresponding to each frame of picture.
The analyzing unit 225 is configured to determine the first information according to the encoded data corresponding to each frame of picture.
When the transaction information further includes second information, the analysis unit 225 is further configured to obtain the second information according to the two-dimensional code/barcode image displayed by the display module 10, and further determine the transaction information transmitted by the transaction information transmitting device according to the first information and the second information.
The seventh embodiment of the present invention provides a communication system, which includes the transaction information transmitting device provided in the fifth embodiment and the transaction information receiving device provided in the sixth embodiment.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (7)

1. A transaction information transmission method is characterized in that the transaction information is transmitted through a display module, the display module comprises a light-emitting element, and the light-emitting element is controlled by a pulse width modulation signal, and the transaction information transmission method comprises the following steps:
acquiring transaction information to be transmitted, wherein at least one part of the transaction information to be transmitted is first information; the first information comprises multi-bit encoded data, each bit encoded data being selected from a predetermined set of data;
converting the first information into values of waveform parameters; the waveform parameters include: any one of a duty ratio of the pulse width modulation signal, a pulse width, and a number of pulses of the pulse width modulation signal in a display period;
according to the value of the waveform parameter converted from the first information, the waveform parameter of the pulse width modulation signal of the display module is adjusted so as to transmit the first information through the brightness change of the display module;
the step of converting the first information into values of waveform parameters comprises:
acquiring the value of the waveform parameter of the pulse width modulation signal in the current display period;
setting a waveform parameter value range, wherein the maximum value of the waveform parameter value range is the value of the waveform parameter of the pulse width modulation signal in the current display period;
dividing the value range of the waveform parameter into a plurality of value intervals, wherein each value interval corresponds to one coded data in the preset data set;
acquiring coded data corresponding to the first information, and acquiring a value range corresponding to each coded data;
the step of adjusting the waveform of the pulse width modulation signal of the display module according to the value of the waveform parameter converted from the first information comprises the following steps:
controlling the display module to display at least one frame of reference picture, wherein the value of the waveform parameter of the pulse width modulation signal corresponding to the reference picture is the maximum value of the value range of the waveform parameter;
and respectively adjusting the waveform parameters of the pulse width modulation signals corresponding to each frame of picture after the reference picture according to the value-taking interval corresponding to each bit of coded data of the first information.
2. The transaction information transmission method according to claim 1, wherein one part of the transaction information to be transmitted is the first information, and the other part is second information;
the transaction information delivery method further includes:
and controlling a display module to display a corresponding two-dimensional code image or a corresponding bar code image according to the second information.
3. A transaction information receiving method for receiving transaction information transmitted by a display module through the transaction information transmitting method according to any one of claims 1 to 2, the transaction information receiving method comprising:
acquiring the value of the waveform parameter of the pulse width modulation signal of the display module;
determining first information in the transaction information according to the value of the waveform parameter of the pulse width modulation signal;
the step of determining the first information in the transaction information according to the value of the waveform parameter of the pulse width modulation signal comprises the following steps:
determining the maximum value of the value range of the waveform parameter according to the value of the waveform parameter of the pulse width modulation signal corresponding to the reference picture;
determining the value range of the waveform parameter according to the maximum value of the value range of the waveform parameter;
dividing the value range of the waveform parameter into a plurality of value intervals, and determining the value interval corresponding to each coded data in the preset data set;
determining coded data corresponding to each frame of picture according to a value interval in which the value of the waveform parameter corresponding to each frame of picture behind the reference picture is located;
and determining the first information according to the coded data corresponding to each frame of picture.
4. The utility model provides a transaction information transfer device, includes the display module assembly, the display module assembly includes light emitting component, light emitting component is controlled by the pulse width modulation signal, its characterized in that still includes:
the system comprises a transaction information acquisition module, a transaction information transmission module and a transaction information transmission module, wherein the transaction information acquisition module is used for acquiring transaction information to be transmitted, and at least one part of the transaction information to be transmitted is first information; the first information comprises multi-bit encoded data, each bit encoded data being selected from a predetermined set of data;
the information conversion module is used for converting the first information into values of waveform parameters; the waveform parameters include: any one of a duty ratio of the pulse width modulation signal, a pulse width, and a number of pulses of the pulse width modulation signal in a display period;
the first control module is used for adjusting the waveform of the pulse width modulation signal of the display module according to the value of the waveform parameter converted from the first information so as to transmit the first information through the brightness change of the display module;
the information conversion module includes:
the current information acquisition unit is used for acquiring the value of the waveform parameter of the pulse width modulation signal in the current display period;
the range setting unit is used for setting a waveform parameter value range, and the maximum value of the waveform parameter value range is the value of the waveform parameter of the pulse width modulation signal in the current display period;
the interval dividing unit is used for dividing the value range of the waveform parameter into a plurality of value intervals, and each value interval corresponds to one coded data in the preset data set;
the searching unit is used for acquiring the coded data corresponding to the first information and acquiring a value range corresponding to each coded data;
the first control module is used for controlling the display module to display at least one frame of reference picture and respectively adjusting the waveform of the pulse width modulation signal corresponding to each frame of picture behind the reference picture according to the value taking interval corresponding to each bit of coded data of the first information; and the value of the waveform parameter of the pulse width modulation signal corresponding to the reference picture is the maximum value of the value range of the waveform parameter.
5. The transaction information transmission device according to claim 4, wherein one part of the transaction information to be transmitted is the first information, and the other part is the second information; the transaction information delivery apparatus further includes:
and the second control module is used for controlling the display module to display the corresponding two-dimensional code image or the corresponding bar code image according to the second information.
6. A transaction information receiving apparatus, comprising:
a waveform parameter acquiring module, configured to acquire a value of a waveform parameter of a pulse width modulation signal of a display module of the transaction information delivery apparatus according to any one of claims 4 to 5;
the processing module is used for determining first information in the transaction information according to the value of the waveform parameter of the pulse width modulation signal;
the processing module comprises:
the maximum value determining unit is used for determining the maximum value of the value range of the waveform parameter according to the value of the waveform parameter of the pulse width modulation signal corresponding to the reference picture;
the range determining unit is used for determining the value range of the waveform parameter according to the maximum value of the value range of the waveform parameter;
the interval determining unit is used for dividing the value range of the waveform parameter into a plurality of value intervals and determining the value interval corresponding to each coded data in the preset data set;
the data acquisition unit is used for determining the coded data corresponding to each frame of picture according to the value interval of the waveform parameter value corresponding to each frame of picture behind the reference picture;
and the analysis unit is used for determining the first information according to the coded data corresponding to each frame of picture.
7. A communication system comprising the transaction information delivery apparatus of any one of claims 4 to 5 and the transaction information receiving apparatus of claim 6.
CN201910209074.9A 2019-03-19 2019-03-19 Transaction information transmission method and device, transaction information receiving method and device, and communication system Active CN109728859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910209074.9A CN109728859B (en) 2019-03-19 2019-03-19 Transaction information transmission method and device, transaction information receiving method and device, and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910209074.9A CN109728859B (en) 2019-03-19 2019-03-19 Transaction information transmission method and device, transaction information receiving method and device, and communication system

Publications (2)

Publication Number Publication Date
CN109728859A CN109728859A (en) 2019-05-07
CN109728859B true CN109728859B (en) 2021-08-27

Family

ID=66302584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910209074.9A Active CN109728859B (en) 2019-03-19 2019-03-19 Transaction information transmission method and device, transaction information receiving method and device, and communication system

Country Status (1)

Country Link
CN (1) CN109728859B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102422573A (en) * 2009-04-28 2012-04-18 西门子公司 Method and apparatus for the optical transmission of data
WO2015115717A1 (en) * 2014-01-28 2015-08-06 ㈜유양디앤유 Device and method for providing service by using visible light communication and terminal therefor
US9239979B1 (en) * 2015-01-15 2016-01-19 Randy McGill Synthetic barcode payment system and method
CN106204020A (en) * 2016-06-30 2016-12-07 捷开通讯(深圳)有限公司 Method of mobile payment and intelligent terminal
CN106489244A (en) * 2014-07-11 2017-03-08 株式会社Mrs控股公司 Trochotron, inversion electronic transducer, program and information communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102422573A (en) * 2009-04-28 2012-04-18 西门子公司 Method and apparatus for the optical transmission of data
WO2015115717A1 (en) * 2014-01-28 2015-08-06 ㈜유양디앤유 Device and method for providing service by using visible light communication and terminal therefor
CN106489244A (en) * 2014-07-11 2017-03-08 株式会社Mrs控股公司 Trochotron, inversion electronic transducer, program and information communication system
US9239979B1 (en) * 2015-01-15 2016-01-19 Randy McGill Synthetic barcode payment system and method
CN106204020A (en) * 2016-06-30 2016-12-07 捷开通讯(深圳)有限公司 Method of mobile payment and intelligent terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于可见光通信的移动支付信息交互***;赵晓萌等;《电脑与电信》;20171010(第10期);第10-13页 *
基于智能手机的可见光支付***;高健等;《无线通信技术》;20180915(第03期);第15-19页 *

Also Published As

Publication number Publication date
CN109728859A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN102929460B (en) Touch display device and display driving method
JP6053822B2 (en) Flicker-free color visible light communication system
CN104575413A (en) Display Device and Method for Driving Same
CN105847479B (en) display driver, display screen and mobile terminal
CN104951117B (en) Image processing system and related method for generating corresponding information by utilizing image identification
US20210118351A1 (en) Driving device, driving method and display system
CN113691816A (en) Image display method, image display device, display equipment and storage medium
CN109728859B (en) Transaction information transmission method and device, transaction information receiving method and device, and communication system
CN101382838B (en) Mouse pointer function execution apparatus and method in portable terminal equipped with camera
CN103152593A (en) Three-dimensional (3D) synchronizing signal transmission method, 3D synchronizing signal transmission device and 3D television
CN109859715B (en) Display driving method and liquid crystal display device
CN113992268B (en) Low-speed communication method and system based on screen light modulation
CN111262628A (en) Optical communication transmitting device, receiving device, method and system
JP2005094247A (en) Communication apparatus and method, program, and communication system
CN212816753U (en) Non-implanted virtual visual display instrument for blind people
CN214225994U (en) ESP 32-S-based household security intelligent door lock system
CN105472451A (en) Method and device for data transmission between terminals
CN111741093B (en) Screen-based data transmitting method, receiving device, setting system and readable storage medium
CN106650544A (en) Data transmission device, data reading device, data coding and decoding system and method thereof
KR102286130B1 (en) Method and system for providing video
CN115188326A (en) Display driving method, device, equipment and medium for display screen
CN111341280B (en) Driving method, driving board and display device
CN203910232U (en) Gray scale display control device for field emission display
CN100474380C (en) Apparatus and method for driving liquid crystal display
CN113489867A (en) Shooting method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 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