CN112598842A - Ticket counting device, ticket counting method and computer readable storage medium - Google Patents

Ticket counting device, ticket counting method and computer readable storage medium Download PDF

Info

Publication number
CN112598842A
CN112598842A CN202011386515.1A CN202011386515A CN112598842A CN 112598842 A CN112598842 A CN 112598842A CN 202011386515 A CN202011386515 A CN 202011386515A CN 112598842 A CN112598842 A CN 112598842A
Authority
CN
China
Prior art keywords
sound
detection module
sound detection
determining
sound signal
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.)
Pending
Application number
CN202011386515.1A
Other languages
Chinese (zh)
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.)
Suzhou Touchair Technology Co ltd
Original Assignee
Suzhou Touchair 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 Suzhou Touchair Technology Co ltd filed Critical Suzhou Touchair Technology Co ltd
Priority to CN202011386515.1A priority Critical patent/CN112598842A/en
Publication of CN112598842A publication Critical patent/CN112598842A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C13/00Voting apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

The invention provides a ticket counting device, a ticket counting method and a computer readable storage medium. The first sound detection module is used for detecting a first sound signal which is directly transmitted from the intelligent equipment to the first sound detection module; the second sound detection module is used for detecting a second sound signal which is directly transmitted from the intelligent equipment to the second sound detection module; wherein the first sound signal and the second sound signal are emitted by the smart device simultaneously; an angle determining module, configured to determine a time difference between a receiving time of the first sound signal and a receiving time of the second sound signal; determining a relative angle between the ticket counting device and the intelligent device based on the distance between the first sound detection module and the second sound detection module and the time difference; and the vote counting module is used for determining the preset angle range to which the relative angle belongs and determining the voting result corresponding to the preset angle range to which the relative angle belongs. Realize low-cost tally, and reduced the operation complexity moreover.

Description

Ticket counting device, ticket counting method and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of voting, in particular to a ticket counting device, a ticket counting method and a computer readable storage medium.
Background
The voter is a client in the voting system, and is a voting device representing voting or holding a vote. When voting, the participated persons press the buttons of 'approval', 'disapproval' and 'abandon' on their respective voters, and the voting results are displayed on the screens. Voters can be divided into two broad categories, wired voters and wireless voters.
At present, the voting result is generally input on a voter through a button, and then the voter sends the voting result to an upper computer through a wireless network to carry out the vote counting work.
However, the upper computer needs to receive the voting result from the voter through the wireless network to perform the vote counting. The introduction of wireless networks and voters leads to cost issues, and wireless networks also have security issues, such as the voting results may be tampered with in transit. In addition, the user needs to press a button on the voter, which is cumbersome to operate.
Disclosure of Invention
The embodiment of the invention provides a ticket counting device, a ticket counting method and a computer readable storage medium.
The technical scheme of the embodiment of the invention is as follows:
a ticket counting device comprising:
the first sound detection module is used for detecting a first sound signal which is directly transmitted from the intelligent equipment to the first sound detection module;
the second sound detection module is used for detecting a second sound signal which is directly transmitted from the intelligent equipment to the second sound detection module; wherein the first sound signal and the second sound signal are emitted by the smart device simultaneously;
an angle determining module, configured to determine a time difference between a receiving time of the first sound signal and a receiving time of the second sound signal; determining a relative angle between the ticket counting device and the intelligent device based on the distance between the first sound detection module and the second sound detection module and the time difference;
and the vote counting module is used for determining the preset angle range to which the relative angle belongs and determining the voting result corresponding to the preset angle range to which the relative angle belongs.
In one embodiment, the angle determination module is configured to determine the angle based on
Figure BDA0002811143190000021
Determining theta; wherein arcsin is an arcsine function, D is t × c, t is the time difference, c is the propagation speed of sound, and D is the distance between the first sound detection module and the second sound detection module; determining a relative angle between the ticket counting apparatus and the smart device based on θ
Figure BDA0002811143190000022
Wherein
Figure BDA0002811143190000023
In one embodiment, the first and second sound detection modules each comprise a microphone or an array of microphones.
In one embodiment, the first sound signal and the second sound signal contain an identification of the smart device;
the vote counting module is used for sending the voting result and the relative angle to the intelligent equipment; and when the relative angle is not changed within the preset time, the voting result is associated and stored with the identification of the intelligent device.
A ticket counting method is suitable for a ticket counting device comprising a first sound detection module and a second sound detection module, and comprises the following steps:
detecting a first sound signal which is directly transmitted from the intelligent equipment to the first sound detection module; detecting a second sound signal which is directly transmitted from the intelligent equipment to a second sound detection module; wherein the first sound signal and the second sound signal are emitted by the smart device simultaneously;
determining a time difference between a reception time of the first sound signal and a reception time of the second sound signal; determining a relative angle between the ticket counting device and the intelligent device based on the distance between the first sound detection module and the second sound detection module and the time difference;
determining a preset angle range to which the relative angle belongs;
voting results corresponding to a predetermined angle range to which the relative angle belongs are determined.
In one embodiment, said determining the relative angle between the ticket counting device and the smart device comprises:
based on
Figure BDA0002811143190000031
Determining theta; wherein arcsin is an arcsine function, D is t × c, t is the time difference, c is the propagation speed of sound, and D is the distance between the first sound detection module and the second sound detection module; determining a relative angle between the ticket counting apparatus and the smart device based on θ
Figure BDA0002811143190000032
Wherein
Figure BDA0002811143190000033
In one embodiment, the predetermined angle ranges are N, and each predetermined angle range corresponds to a respective voting result, where N is a positive integer of at least 2.
In one embodiment, the first sound signal and the second sound signal contain an identification of the smart device; the method further comprises the following steps:
sending the voting results and the relative angles to the smart device;
and when the relative angle is not changed within the preset time, the voting result is associated and stored with the identification of the intelligent device.
A ticket counting device comprising a processor and a memory;
the memory has stored therein an application executable by the processor for causing the processor to perform a method of counting tickets as in any one of the above.
A computer readable storage medium having computer readable instructions stored therein for performing a method of tallying tickets as in any one of the above.
According to the technical scheme, the voting result is not transmitted through the wireless network, but the voting result is determined based on the relative angle between the vote counting device and the intelligent equipment, so that the cost problem and the safety problem of transmitting the voting result through the wireless network are avoided.
In addition, the user can determine the voting result through the positioning intelligent equipment without pressing a button, and the operation complexity is reduced.
Drawings
Fig. 1 is an exemplary flowchart of a method for determining a relative angle between smart devices according to the present invention.
Fig. 2 is a schematic diagram illustrating the principle of relative angle determination between smart devices according to the present invention.
FIG. 3 is a schematic diagram of the calculation of relative angles between smart devices according to the present invention.
Fig. 4 is a first exemplary diagram of determining a pair of direct signals according to the present invention.
Fig. 5 is a second exemplary diagram illustrating the determination of a pair of direct signals according to the present invention.
Fig. 6 is a schematic diagram of a first exemplary arrangement of a first sound detection module and a second sound detection module in a smart device according to the present invention.
Fig. 7 is a schematic diagram of a second exemplary arrangement of a first sound detection module and a second sound detection module in a smart device according to the present invention.
Fig. 8 is a schematic diagram of the relative positioning of a first smart device and a second smart device in accordance with the present invention.
FIG. 9 is a schematic diagram showing relative angles in a smart device interface according to the present invention.
FIG. 10 is a flowchart illustrating an exemplary process for relative positioning between smart devices according to the present invention.
Fig. 11 is a structural view of the ticket counter of the present invention.
FIG. 12 is a schematic illustration of a tally process of the present invention.
FIG. 13 is a flow chart of a method of counting tickets in accordance with the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the accompanying drawings.
In order to realize the relative direction positioning between the intelligent devices by using software without additionally adding hardware, so that the relative positioning has universality, the devices of different manufacturers can realize interoperation and mutual compatibility, and the innovative application of the intelligent devices is explored on the basis of the interoperation and the compatibility, the embodiment of the invention provides a sound (preferably ultrasonic) based relative direction identification scheme between the intelligent devices, the hardware is not required to be additionally added, the software can be used for realizing the relative direction identification between the two intelligent devices, and the positioning result is accurate and reliable. First, an intelligent device (intelligent device) refers to any device, apparatus or machine having computing processing capabilities.
Fig. 1 is an exemplary flowchart of a method for determining a relative angle between smart devices according to the present invention. The method is applicable to a first intelligent device which comprises a first sound detection module and a second sound detection module. The first sound detection module and the second sound detection module are fixedly installed in the first intelligent device. For example, the first sound detection module may be implemented as one microphone or a set of microphone arrays arranged in the first smart device. Likewise, the second sound detection module may be implemented as one microphone or a set of microphone arrays arranged in the first smart device different from the first sound detection module.
As shown in fig. 1, the method includes:
step 101: enabling the first sound detection module to detect a first sound signal sent by the second intelligent device and directly reaching the first sound detection module, and enabling the second sound detection module to detect a second sound signal sent by the second intelligent device and directly reaching the second sound detection module, wherein the first sound signal and the second sound signal are sent by the second intelligent device at the same time.
Here, the second smart device may emit one sound signal or emit a plurality of sound signals at the same time.
Such as: when the second intelligent device sends out a sound signal, the first sound detection module and the second sound detection module in the first intelligent device respectively detect the sound signal. Wherein: the detection signal, which is detected by the first sound detection module and is directly transmitted to the first sound detection module, is determined as a first sound signal; the detection signal detected by the second sound detection module, which is the sound signal that reaches the first sound detection module, is determined as the second sound signal.
For another example, when the second smart device emits multiple sound signals simultaneously, such as an ultrasonic signal and an audible sound signal. A first sound detection module in the first smart device is adapted to detect ultrasonic signals and a second sound detection module is adapted to detect audible sound signals. The first sound detection module detects the ultrasonic signal, and the second sound detection module detects the audible sound signal. Wherein: the detection signal, which is detected by the first sound detection module and through which the ultrasonic signal reaches the first sound detection module, is determined as a first sound signal; the detection signal detected by the second sound detection module, at which the audible sound signal reaches the second sound detection module, is determined to be a second sound signal.
In other words, the first sound signal and the second sound signal may be respective detection signals of the first sound detection module and the second sound detection module for the same sound signal emitted by the second smart device. Or, the first sound signal and the second sound signal may be respective detection signals of different sound signals emitted by the first sound detection module and the second sound detection module simultaneously for the second smart device.
Step 102: a time difference between the moment of reception of the first sound signal and the moment of reception of the second sound signal is determined.
Here, the first smart device (e.g., a CPU in the first smart device) may record the reception timing of the first sound signal and the reception timing of the second sound signal, and calculate a time difference between the two.
Step 103: and determining a relative angle between the first intelligent device and the second intelligent device based on the distance between the first sound detection module and the second sound detection module and the time difference.
For example, step 103 may be performed by the CPU of the first smart device.
In one embodimentDetermining the relative angle between the first smart device and the second smart device in step 103 includes: based on
Figure BDA0002811143190000061
Determining theta; wherein arcsin is an arcsine function, D is t × c, t is the time difference, c is the propagation speed of sound, and D is the distance between the first sound detection module and the second sound detection module; determining a relative angle between a first smart device and a second smart device based on θ
Figure BDA0002811143190000062
Wherein
Figure BDA0002811143190000063
The value of the time difference determined in step 102 may be a positive number or a negative number. When the value of the time difference is positive, the receiving time of the second sound signal is earlier than the receiving time of the first sound signal, so that the relative angle phi between the first intelligent device and the second intelligent device is generally an acute angle; when the value of the time difference is negative, the receiving time of the first sound signal is earlier than the receiving time of the second sound signal, so the relative angle phi between the first smart device and the second smart device is generally obtuse.
In an embodiment of the present invention, the first sound signal is a signal that is directly transmitted to the first sound detection module from the second smart device, and the second sound signal is a signal that is directly transmitted to the second sound detection module from the second smart device. In fact, either the first sound detection module or the second sound detection module may receive a signal that is emitted from the second smart device and is not direct (e.g., a reflection or multiple emissions past an obstacle). Therefore, how to determine the direct signal from the received multiple signals has a significant meaning.
The applicant found that: typically, the received signal stream (steam) of each sound detection module comprises a direct channel and a reflected channel. The direct channel can be determined simply and conveniently according to the following principle: the signal strength of the direct channel is typically strongest among all the signals detected by the sound detection module. Thus, in one embodiment, the method further comprises: the method comprises the steps that a first sound detection module receives sound signals with the intensity larger than a preset threshold value in a preset time window in sound signal streams of second intelligent equipment, and the sound signals are determined to be the first sound signals; and determining that the sound signal with the intensity larger than the preset threshold value in the preset time window in the sound signal stream of the second intelligent device is received by the second sound detection module as the second sound signal.
Fig. 4 is a first exemplary diagram of determining a pair of direct signals according to the present invention. In fig. 4, the sound signal stream detected by the first sound detection module is steam1, the steam1 contains a plurality of pulse signals varying along time (T), and the threshold value of the predetermined signal strength is T. It can be seen that the signal strength of the pulse signal 50 in steam1 is greater than the threshold value T over the range of time window 90. The sound signal stream detected by the second sound detection module is steam2, the steam2 contains a plurality of pulse signals varying along time (T), and the threshold value of the predetermined signal strength is also T. It can be seen that the signal strength of the pulse signal 60 in steam2 is greater than the threshold value T over the range of time window 90. Thus, the pulse signal 50 is determined to be the first sound signal; the pulse signal 60 is a second sound signal.
In addition, the applicant has also found that: the direct channel can be accurately determined by comprehensively considering the following two principles: principle (1), among all signals detected by the sound detection module, the signal strength of the direct channel is generally strongest; principle (2), joint discrimination: the distance difference d converted from the arrival time difference of two direct channel signals (the first sound signal and the second sound signal) should not be larger than the distance between the first sound detection module and the second sound detection module.
Thus, in one embodiment, the method further comprises: determining sound signals with the intensity larger than a preset threshold value in a sound signal stream of second intelligent equipment detected by a first sound detection module to form a first candidate signal set; determining sound signals with the intensity larger than the preset threshold value in the sound signal flow of the second intelligent device detected by the second sound detection module to form a second candidate signal set; determining a respective time difference between a time of receipt of each sound signal in the first candidate signal set and a time of receipt of each sound signal in the second candidate signal set; and determining a pair of sound signals with the time difference smaller than M as the first sound signal and the second sound signal, wherein M is (D/c), D is the distance between the first sound detection module and the second sound detection module, and c is the propagation speed of sound.
Fig. 5 is a second exemplary diagram illustrating the determination of a pair of direct signals according to the present invention. In fig. 5, the sound signal stream detected by the first sound detection module is steam1, the steam1 contains a plurality of pulse signals varying along time (T), and the threshold value of the predetermined signal strength is T. It can be seen that in steam1, the signal strength of the pulse signal 50 is greater than the threshold value T, and therefore the first set of candidate signals contains the pulse signal 50. The sound signal stream detected by the second sound detection module is steam2, the steam1 contains a plurality of pulse signals varying along time (T), and the threshold value of the predetermined signal strength is also T. It can be seen that in steam2, the signal strength of both pulse signal 60 and pulse signal 70 is greater than the threshold value T, and therefore the second set of candidate signals includes pulse signal 60 and pulse signal 70. Furthermore, a time difference d1 between the reception instants of the pulse signal 50 in the first candidate signal set and the pulse signal 60 in the second candidate signal set is determined, and a time difference d2 between the reception instants of the pulse signal 50 in the first candidate signal set and the pulse signal 70 in the second candidate signal set is determined. Assuming that D1 is smaller than M and D2 is larger than M, where M ═ D/c, D is the distance between the first and second sound detection modules, and c is the propagation speed of sound. Therefore, the pulse signal 50 of the pair of sound signals related to d1 is determined as the first sound signal, and the pulse signal 60 of the pair of sound signals is determined as the second sound signal.
Preferably, the first and second sound signals are ultrasonic waves having a code division multiple access format and contain a media access control address (MAC) of the second smart device. Accordingly, the first smart device can accurately identify the source of the sound signal based on the MAC address of the second smart device contained in the sound signal. When a plurality of sound sources emitting sound signals exist in the environment, the first intelligent device can accurately determine the relative angle with the sound source by using two direct signals from the same sound source without being interfered by other sound sources based on the extraction of the MAC address in the sound signals.
The embodiment of the invention also provides a relative angle determination method between the intelligent devices. The method is applicable to a first intelligent device, wherein the first intelligent device comprises a first sound detection module and a second sound detection module, and the method comprises the following steps: determining a first moment when an ultrasonic signal sent by second intelligent equipment directly reaches a first sound detection module; determining a second moment when the ultrasonic signal directly reaches the second sound detection module; determining a time difference between the first time and the second time; and determining a relative angle between the first intelligent device and the second intelligent device based on the distance between the first sound detection module and the second sound detection module and the time difference.
In one embodiment, the determining the relative angle between the first smart device and the second smart device comprises: based on
Figure BDA0002811143190000091
Determining theta; wherein arcsin is an arcsine function, D is t × c, t is the time difference, c is the propagation speed of sound, and D is the distance between the first sound detection module and the second sound detection module; determining a relative angle between a first smart device and a second smart device based on θ
Figure BDA0002811143190000092
Wherein
Figure BDA0002811143190000093
In one embodiment, the method further comprises at least one of the following processes:
(1) determining the ultrasonic signal with the intensity larger than a preset threshold value in a preset time window in the ultrasonic signal stream of the second intelligent device received by the first sound detection module as the ultrasonic signal directly reaching the first sound detection module, and determining the time of receiving the ultrasonic signal directly reaching the first sound detection module as the first time; and determining the ultrasonic signal with the intensity larger than the preset threshold value in the preset time window in the ultrasonic signal flow of the second intelligent device received by the second sound detection module as the ultrasonic signal of the direct second sound detection module, and determining the time of receiving the ultrasonic signal of the direct second sound detection module as the second time.
(2) Determining ultrasonic signals with the intensity larger than a preset threshold value in ultrasonic signal streams of the second intelligent device detected by the first sound detection module to form a first candidate signal set; determining the ultrasonic signals with the intensity larger than the preset threshold value in the ultrasonic signal flow of the second intelligent device detected by the second sound detection module to form a second candidate signal set; determining a respective time difference between the time of receipt of each ultrasonic signal in the first candidate signal set and the time of receipt of each ultrasonic signal in the second candidate signal set; and determining the receiving time of the pair of ultrasonic signals with the time difference smaller than M as the first time and the second time, wherein M is (D/c), D is the distance between the first sound detection module and the second sound detection module, and c is the propagation speed of sound.
The principle and calculation process of the relative positioning of the present invention are exemplarily explained as follows. Fig. 2 is a schematic diagram illustrating the principle of relative angle determination between smart devices according to the present invention. FIG. 3 is a schematic diagram of the calculation of relative angles between smart devices according to the present invention.
As shown in fig. 2, a microphone a1 disposed at the bottom of smart device a emits an ultrasonic signal containing the MAC address of smart device a, and smart device B (not shown in fig. 2) has two microphones, microphone B1 and microphone B2, respectively, disposed at a distance. Wherein: the microphone b1 receives the direct signal L1 of the ultrasonic signal, and the microphone b2 receives the direct signal L2 of the ultrasonic signal. The ultrasonic signals reach the indirect signals of the microphone b1 and the microphone b2 after being transmitted by the obstacles, and do not participate in the subsequent relative angle calculation.
Due to intelligenceThe energy equipment is small, especially when two intelligent equipments are far away, so the direct signal L1、L2Can be considered as parallel lines. As shown in FIG. 3, L1、L2Direct signals (not signals reflected by obstacles) received by the microphone B1 and the microphone B2 of the smart device B, respectively; d is the distance between microphone b1 and microphone b 2. For example, if the microphone B1 and the microphone B2 are respectively disposed at the upper and lower ends of the smart device B, D may be the length of the smart device B; d is L1And L2Using a correlation algorithm of the signals, the direct signal L can be determined1Relative to the direct signal L2D may be calculated based on the delay time difference t, where d is t × c, and c is the propagation speed of sound in a medium (such as air); theta is an auxiliary angle, wherein
Figure BDA0002811143190000101
Therefore, the relative angle of the intelligent device A and the intelligent device B can be calculated
Figure BDA0002811143190000102
Wherein
Figure BDA0002811143190000103
Preferably, smart device a and smart device B may be implemented as at least one of: a smart phone; a tablet computer; a smart watch; a smart bracelet; an intelligent sound box; a smart television; an intelligent earphone; smart robots, and the like. The first sound detection module and the second sound detection module may be arranged at a plurality of locations of the smart device.
Fig. 6 is a schematic diagram of a first exemplary arrangement of a first sound detection module and a second sound detection module in a smart device according to the present invention. In fig. 6, the first sound detection module 18 and the second sound detection module 19 are respectively disposed at both ends of the smart device in the length direction, and thus the length D of the smart device can be directly determined as the distance between the first sound detection module 18 and the second sound detection module 19. Fig. 7 is a schematic diagram of a second exemplary arrangement of a first sound detection module and a second sound detection module in a smart device according to the present invention. In fig. 7, the first sound detection module 18 and the second sound detection module 19 are respectively disposed at both ends of the smart device in the width direction, and thus the width D of the smart device can be directly determined as the distance between the first sound detection module 18 and the second sound detection module 19.
The above exemplary descriptions have been provided for the arrangement of the first sound detection module and the second sound detection module in the smart device, and those skilled in the art will appreciate that such descriptions are merely exemplary and are not intended to limit the scope of the embodiments of the present invention.
In fact, currently, a smart device usually has two sets of microphones, and the two sets of microphones can be applied to the embodiment of the present invention as the first sound detection module and the second sound detection module without changing the smart device in terms of hardware. The following describes a typical example of calculating a relative angle between smart devices using ultrasound based on an embodiment of the present invention.
Fig. 8 is a schematic diagram of the relative positioning of a first smart device and a second smart device in accordance with the present invention. FIG. 10 is a flowchart illustrating an exemplary process for relative positioning between smart devices according to the present invention. In fig. 7, respective processing paths of two combined microphones detecting sound signals are illustrated, in which an Analog-to-Digital Converter (ADC) is a device converting an Analog signal of a continuous variable into a discrete Digital signal; a band-pass filter (BPF) is a device that allows waves of a particular frequency band to pass while shielding other frequency bands. The ultrasonic-based relative direction identification step between two intelligent devices comprises the following steps:
the first step is as follows: the first smart device transmits a location signal in ultrasound format containing the Mac address of the smart device 1. The second step is that: and the two groups of microphones of the second intelligent device respectively detect the positioning signals, resolve the Mac address from the respective detected positioning signals, and confirm that the respective detected positioning signals originate from the same sound source based on the Mac address. The third step: the second intelligent device detects two positioning signals respectively based on two groups of microphones contained in the second intelligent deviceThe time difference between the two direct signals calculates the distance difference d between the two direct signals. The fourth step: second smart device computing
Figure BDA0002811143190000111
The incident angle of the signal
Figure BDA0002811143190000112
Figure BDA0002811143190000113
I.e. the relative angle of the first smart device and the second smart device, where D is the distance between the two sets of microphones in the second smart device. The fifth step: the second intelligent device displays the relative angle on the display interface of the second intelligent device
Figure BDA0002811143190000114
Thereby prompting the user for the relative orientation of the first smart device. For example, fig. 9 is a schematic diagram showing relative angles in an interface of a smart device according to the present invention.
For example, assume that in the environment shown in fig. 8, the first smart device is embodied as a smart speaker and the first smart device is embodied as a smart phone. The method comprises the following steps: the intelligent sound box transmits an ultrasonic signal, wherein the ultrasonic signal comprises a Mac address of the intelligent sound box and is a signal based on a CDMA (code division multiple access) technical framework. Step two: the two sets of microphone arrays of the smart phone receive the ultrasonic signals and solve a Mac address of the smart sound box, and meanwhile, the smart phone solves a distance difference d between two direct signals of the two sets of microphone arrays. Wherein: suppose that in the respective received signal streams stream1 and stream2 of the two groups of microphone arrays, there are direct signals whose signal intensity peaks are greater than the threshold value T, respectively, and thus the principle 1 is satisfied; further assume the arrival time difference of the two direct signals
Figure BDA0002811143190000121
Calculating d corresponding to the Δ t, wherein
Figure BDA0002811143190000122
The two sets of microphone distances D are known (i.e. the handset length), assuming 0.145m, and D < D is visible, thus satisfying principle 2. Therefore, the two direct signals can be selected to calculate the relative angle, where d is 0.014 (m). Step three: smartphone computing
Figure BDA0002811143190000123
Then the angle of incidence of the signal
Figure BDA0002811143190000124
The smart phone displays an angle of 84.4 degrees on a display screen of the smart phone, namely the smart sound box is in the direction of 84.4 degrees of the smart phone.
By using the identification method of the relative direction between the two intelligent devices, the relative distance between the two intelligent devices can be further obtained. The following scenario is envisaged: the system comprises at least two intelligent devices, wherein at least one intelligent device a is used for transmitting an ultrasonic positioning signal, and the ultrasonic positioning signal contains the MAC address of the intelligent device a; and the intelligent equipment b is used for receiving the ultrasonic positioning signal, resolving the incident angle of the signal and calculating the relative distance between the intelligent equipment b and the intelligent equipment a after further movement.
In order to meet the requirements of controlling cost, quickly arranging and using a mobile terminal to realize accurate positioning of indoor personnel in a small-space application scene, the invention also provides an indoor positioning method and system with simple small-space arrangement. The indoor positioning system includes a plurality of smart devices arranged indoors as a sound source and a positioned mobile terminal for receiving the sound. Each sound source has a respective deployment location for transmitting a sound-formatted (preferably ultrasonic) location signal containing the MAC address of the smart device.
And the positioned mobile terminal receives and calculates the incident angle of each direct positioning signal so as to obtain the relative position of the positioning request user, and the relative position is corresponding to the cloud indoor map, so that the position sharing of each positioning request user in an indoor environment is realized.
Based on the above description, the embodiment of the present invention further provides a technical solution for implementing intelligent ticket counting based on the above relative angle calculation manner.
Fig. 11 is a structural view of the ticket counter of the present invention. Preferably, the deployment position of the vote counting device is fixed, so that a user can conveniently position the intelligent equipment to realize voting.
As shown in fig. 11, the ticket counting apparatus includes:
the first sound detection module is used for detecting a first sound signal which is directly transmitted from the intelligent equipment to the first sound detection module;
the second sound detection module is used for detecting a second sound signal which is directly transmitted from the intelligent equipment to the second sound detection module; wherein the first sound signal and the second sound signal are emitted by the smart device simultaneously;
an angle determining module, configured to determine a time difference between a receiving time of the first sound signal and a receiving time of the second sound signal; determining a relative angle between the ticket counting device and the intelligent device based on the distance between the first sound detection module and the second sound detection module and the time difference;
and the vote counting module is used for determining the preset angle range to which the relative angle belongs and determining the voting result corresponding to the preset angle range to which the relative angle belongs.
The intelligent device is a voting device of the user. The smart device may emit a sound signal (preferably an ultrasound signal) as a sound source. For example, the smart device may be implemented as a sound generating device such as a smart phone, a personal digital assistant, a tablet computer, a smart speaker, or a smart television. More preferably, the smart device is implemented as a smartphone, personal digital assistant, tablet computer, or other mobile-suitable device.
And informing the voting users of the association relationship between the preset angle range and the voting result in advance. For example, the vote counting device may send a notification message to all the voting users' smart devices in a group (e.g., via wireless communication, WI-FI communication, bluetooth communication, infrared communication, etc.) in advance, where the notification message includes an association relationship between the predetermined angle range and the voting result.
For example, assume that there are 3 predetermined angular ranges, respectively [0 degrees, 45 degrees ], (45 degrees, 90 degrees ], and (90 degrees, 180 degrees ]. where, the voting result corresponding to [0 degree, 45 degrees ] is "approved", "the voting result corresponding to (45 degrees, 90 degrees) is" disclaimed ", and the voting result corresponding to (90 degrees, 180 degrees) is" objected ". "Please note: voting result "approve" corresponding to [0 degree, 45 degrees ]; (45 degrees, 90 degrees.) the corresponding voting result is "disclaimer"; (90 degrees, 180 degrees.) the corresponding voting results are "against". accordingly, after each voting user views the notification message, then, the voting users can express the voting results of themselves by fiddling with the direction of the intelligent equipment to meet the corresponding angle range.
In one embodiment, N predetermined angle ranges are preset in the vote counting module, and each predetermined angle range corresponds to a respective voting result, where N is a positive integer of at least 2.
For example, it is assumed that 3 predetermined angle ranges are provided, which are [0 degrees, 45 degrees ], (45 degrees, 90 degrees ], and (90 degrees, 180 degrees ], respectively, where the voting result corresponding to [0 degrees, 45 degrees ] is "approved", "the voting result corresponding to (45 degrees, 90 degrees)" is "revoked", and the voting result corresponding to (90 degrees, 180 degrees) "is" rejected ".
For another example, assuming that there are 4 candidates, 4 predetermined angle ranges corresponding to the 4 candidates one by one may be set, which are (-180 degrees, 0 degrees), [0 degrees, 45 degrees ], (45 degrees, 90 degrees ], and (90 degrees, 180 degrees ], respectively, where the voting result corresponding to (-180 degrees, 0 degrees) is "three-bloc", [0 degrees, 45 degrees ] is "four-bloc", (45 degrees, 90 degrees ] is "five-bloc"), and the voting result corresponding to (90 degrees, 180 degrees) is "six-Zhao".
Accordingly, the vote counting module may determine a voting result corresponding to a predetermined angle range to which the relative angle belongs, based on the relative angle determined by the angle determining module.
In one embodiment, the angle determination module is configured to determine the angle based on
Figure BDA0002811143190000141
Determining theta; wherein arcsin is an arcsine function, D is t × c, t is the time difference, c is the propagation speed of sound, and D is the distance between the first sound detection module and the second sound detection module; determining a relative angle between the ticket counting apparatus and the smart device based on θ
Figure BDA0002811143190000142
Wherein
Figure BDA0002811143190000143
In one embodiment, the first and second sound detection modules each comprise a microphone or an array of microphones.
In one embodiment, the first sound signal and the second sound signal contain an identification of the smart device; the vote counting module is used for sending the voting result and the relative angle to the intelligent equipment; and when the relative angle is not changed within the preset time, the voting result is associated and stored with the identification of the intelligent device.
In one embodiment, when the smart device is voted for the user to start setting (changing the orientation of the smart device), the smart device periodically (e.g., 10 ms apart) emits a first sound signal and a second sound signal (the first sound signal and the second sound signal each contain an identification of the smart device), and the ticket counter periodically detects the relative angle between the ticket counter and the smart device accordingly. When the vote counting device finds that the relative angle does not change (corresponding to the user stopping the positioning) within a preset first time (such as two seconds), the vote counting module determines a voting result based on the relative angle, and sends the voting result and the final relative angle to the intelligent device through communication modes such as infrared communication, wireless communication, Bluetooth communication, ultrasonic communication, Zigbee communication or wired communication. And displaying the voting result and the final relative angle on the intelligent equipment. When the user confirms that the voting result is correct, the intelligent device is kept still for a predetermined second time (such as five seconds). And the vote counting module determines that the voting result is correct when the angle is not changed in the second time, so that the voting result and the identification of the intelligent device are stored in an associated mode to serve as a final voting result. When the user finds that the voting result is wrong, the mobile intelligent device is started within a preset second time (such as five seconds), the intelligent device continues to send out the first sound signal and the second sound signal periodically (such as 10 milliseconds at intervals), the ticket counting device correspondingly detects the relative angle between the ticket counting device and the intelligent device again periodically, after the voting result is determined again through the relative angle, the voting result and the relative angle are sent to the intelligent device again through communication modes such as infrared communication, wireless communication, Bluetooth communication, ultrasonic communication, Zigbee communication or wired communication to perform confirmation again, and the process is repeated until the user confirms that the voting result is correct.
In one embodiment, when the smart device is voted for the user to stop setting, the smart device sends out the first sound signal and the second sound signal at one time (the first sound signal and the second sound signal respectively comprise the identification of the smart device), and the ticket counting device correspondingly detects the relative angle between the ticket counting device and the smart device. After determining the voting result based on the relative angle, the vote counting module sends the voting result and the relative angle to the intelligent device through communication modes such as infrared communication, wireless communication, Bluetooth communication, ultrasonic communication, Zigbee communication or wired communication. And displaying the voting result and the relative angle on the intelligent equipment. When the user confirms that the voting result is correct, the intelligent device is kept still within a preset first time (such as five seconds), and the vote counting module finds that the voting result is correct when the sound signal is not received from the intelligent device again within the first time, so that the voting result and the identification of the intelligent device are stored in an associated mode to serve as a final voting result. When the user finds that the voting result is wrong, the intelligent device is moved again within the preset first time (such as five seconds), after the intelligent device is voted by the voting user to stop the positioning again, the intelligent device emits the first sound signal and the second sound signal once again, and the ticket counting device detects the relative angle between the ticket counting device and the intelligent device again correspondingly. And after determining the voting result again based on the relative angle, the vote counting module sends the voting result and the relative angle to the intelligent equipment again to perform confirmation again through communication modes such as infrared communication, wireless communication, Bluetooth communication, ultrasonic communication, Zigbee communication or wired communication and the like, and the process is repeated until the user confirms that the voting result is correct.
FIG. 12 is an exemplary schematic diagram of a tally process of the present invention.
The ticket counting device 70 is fixedly disposed at a predetermined position. The ticket counting device 70 includes a first sound detection module 71, a second sound detection module 72, an angle determination module 73, and a ticket counting module 74.
A communication module (not shown in fig. 12) in the vote counting device 70 sends a notification message to all voting users' intelligent devices in a group in advance, wherein the notification message contains the association relationship between the voting result and the predetermined angle range to which the relative angle of the vote counting device and the intelligent devices belongs. Assume that the relationship is: the voting results corresponding to [0 degrees, 45 degrees ] are "approved", "the voting results corresponding to (45 degrees, 90 degrees) are" disclaimed ", and the voting results corresponding to (90 degrees, 180 degrees) are" objected ".
The mobile phone A and the mobile phone B are used as handheld terminals of voting users, respectively receive the notification messages, and respectively display the notification messages on own display interfaces.
After browsing the notification message, the voting user 1 of the handheld mobile phone a can grasp the angle range corresponding to the desired voting result. After browsing the notification message, the voting user 2 of the handheld handset B can grasp the angle range corresponding to the desired voting result. Then, the voting users 1 and 2 can cast their voting results by fiddling with the directions of the mobile phones a and B, respectively. Suppose that voting user 1 desires opposition and voting user 2 desires abstain.
Voting users 2 are based on (45 degrees, 90 degrees)]After the expected value of the sound signal is located in the mobile phone B, the direct sound signal (including the identifier of the mobile phone B) sent by the mobile phone B is received by the first sound detection module 71 and the second sound detection module 72, respectively. The angle determination module 73 is based on the firstThe distance between the sound detection module 71 and the second sound detection module 72 and the time difference between the first sound detection module 71 and the second sound detection module 72 receiving the respective direct sound signals calculate the relative angle between the ticket counting device 70 and the mobile phone B as
Figure BDA0002811143190000171
Ticket counting module 74 determines
Figure BDA0002811143190000172
In the interval (45 degrees, 90 degrees)]Then, the identifier of the mobile phone B is stored in association with the "abandon right", that is, the voting result of the voting user 2 of the mobile phone B is confirmed to be the abandon right.
Voting users 1 are based on (90 degrees, 180 degrees)]After the expected value of the signal is located in the mobile phone a, the direct sound signal (including the identifier of the mobile phone a) sent by the mobile phone a is received by the first sound detection module 71 and the second sound detection module 72, respectively. The angle determining module 73 calculates the relative angle between the ticket counting device 70 and the mobile phone a as
Figure BDA0002811143190000173
Ticket counting module 74 determines
Figure BDA0002811143190000174
In the interval (90 degrees, 180 degrees)]Then the identity of handset a is stored in association with "objection", i.e. the voting result of voting user 1 of handset a is confirmed as objection.
FIG. 13 is a flow chart of a method of counting tickets in accordance with the present invention. The method is suitable for the ticket counting device comprising a first sound detection module and a second sound detection module.
As shown in fig. 13, the method includes:
step 1301: detecting a first sound signal which is directly transmitted from the intelligent equipment to the first sound detection module; detecting a second sound signal which is directly transmitted from the intelligent equipment to a second sound detection module; wherein the first sound signal and the second sound signal are emitted by the smart device simultaneously.
Step 1302: determining a time difference between a reception time of the first sound signal and a reception time of the second sound signal; and determining the relative angle between the ticket counting device and the intelligent equipment based on the distance between the first sound detection module and the second sound detection module and the time difference.
Step 1303: a predetermined angle range to which the relative angle belongs is determined.
Step 1304: voting results corresponding to a predetermined angle range to which the relative angle belongs are determined.
In one embodiment, said determining the relative angle between the ticket counting device and the smart device comprises: based on
Figure BDA0002811143190000175
Determining theta; wherein arcsin is an arcsine function, D is t × c, t is the time difference, c is the propagation speed of sound, and D is the distance between the first sound detection module and the second sound detection module; determining a relative angle between the ticket counting apparatus and the smart device based on θ
Figure BDA0002811143190000181
Wherein
Figure BDA0002811143190000182
In one embodiment, the predetermined angle ranges are N, and each predetermined angle range corresponds to a respective voting result, where N is a positive integer of at least 2.
In one embodiment, the first sound signal and the second sound signal contain an identification of the smart device; the method further comprises the following steps: sending the voting results and the relative angles to the smart device; and when the relative angle is not changed within the preset time, the voting result is associated and stored with the identification of the intelligent device.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process implemented in the above embodiments of the present invention, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk. Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A ticket counting device, comprising:
the first sound detection module is used for detecting a first sound signal which is directly transmitted from the intelligent equipment to the first sound detection module;
the second sound detection module is used for detecting a second sound signal which is directly transmitted from the intelligent equipment to the second sound detection module; wherein the first sound signal and the second sound signal are emitted by the smart device simultaneously;
an angle determining module, configured to determine a time difference between a receiving time of the first sound signal and a receiving time of the second sound signal; determining a relative angle between the ticket counting device and the intelligent device based on the distance between the first sound detection module and the second sound detection module and the time difference;
and the vote counting module is used for determining the preset angle range to which the relative angle belongs and determining the voting result corresponding to the preset angle range to which the relative angle belongs.
2. A ticket counting device according to claim 1,
the angle determination module is used for determining the angle based on
Figure FDA0002811143180000011
Determining theta; wherein arcsin is an arcsine function, D is t × c, t is the time difference, c is the propagation speed of sound, and D is the distance between the first sound detection module and the second sound detection module; determining a relative angle between the ticket counting apparatus and the smart device based on θ
Figure FDA0002811143180000012
Wherein
Figure FDA0002811143180000013
3. The ticket counting apparatus of claim 1 wherein the first and second sound detection modules comprise a microphone or an array of microphones, respectively.
4. The ticket counting apparatus of claim 1 wherein the first and second sound signals contain an identification of the smart device;
the vote counting module is used for sending the voting result and the relative angle to the intelligent equipment; and when the relative angle is not changed within the preset time, the voting result is associated and stored with the identification of the intelligent device.
5. A ticket counting method is applicable to a ticket counting device comprising a first sound detection module and a second sound detection module, and comprises the following steps:
detecting a first sound signal which is directly transmitted from the intelligent equipment to the first sound detection module; detecting a second sound signal which is directly transmitted from the intelligent equipment to a second sound detection module; wherein the first sound signal and the second sound signal are emitted by the smart device simultaneously;
determining a time difference between a reception time of the first sound signal and a reception time of the second sound signal; determining a relative angle between the ticket counting device and the intelligent device based on the distance between the first sound detection module and the second sound detection module and the time difference;
determining a preset angle range to which the relative angle belongs;
voting results corresponding to a predetermined angle range to which the relative angle belongs are determined.
6. A method of tallying tickets according to claim 5,
the determining the relative angle between the ticket counting device and the intelligent device comprises:
based on
Figure FDA0002811143180000021
Determining theta; wherein arcsin is an arcsine function, D is t × c, t is the time difference, c is the propagation speed of sound, and D is the distance between the first sound detection module and the second sound detection module; determining a relative angle between the ticket counting apparatus and the smart device based on θ
Figure FDA0002811143180000022
Wherein
Figure FDA0002811143180000023
7. A method according to claim 5, wherein the predetermined angular ranges are N and each predetermined angular range corresponds to a respective voting result, where N is a positive integer of at least 2.
8. The ticket counting method of claim 5, wherein the first sound signal and the second sound signal contain an identification of the smart device; the method further comprises the following steps:
sending the voting results and the relative angles to the smart device;
and when the relative angle is not changed within the preset time, the voting result is associated and stored with the identification of the intelligent device.
9. A ticket counting device comprising a processor and a memory;
an application program executable by the processor is stored in the memory for causing the processor to perform the method of any of claims 5 to 8.
10. A computer readable storage medium having computer readable instructions stored thereon for performing the method of any of claims 5 to 8.
CN202011386515.1A 2020-12-01 2020-12-01 Ticket counting device, ticket counting method and computer readable storage medium Pending CN112598842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011386515.1A CN112598842A (en) 2020-12-01 2020-12-01 Ticket counting device, ticket counting method and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011386515.1A CN112598842A (en) 2020-12-01 2020-12-01 Ticket counting device, ticket counting method and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112598842A true CN112598842A (en) 2021-04-02

Family

ID=75187520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011386515.1A Pending CN112598842A (en) 2020-12-01 2020-12-01 Ticket counting device, ticket counting method and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112598842A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000033615A (en) * 1998-11-25 2000-06-15 전주범 Device for controlling angular degrees of speaker and volume of television
CN101201399A (en) * 2007-12-18 2008-06-18 北京中星微电子有限公司 Sound localization method and system
CN105205906A (en) * 2014-06-25 2015-12-30 阿里巴巴集团控股有限公司 Method and device for processing voting tasks and distributing voting tasks
CN105938497A (en) * 2016-06-14 2016-09-14 无锡天脉聚源传媒科技有限公司 Voting animation effect generation method and device
CN106488034A (en) * 2016-11-24 2017-03-08 努比亚技术有限公司 A kind of method realizing unlocking and mobile terminal
CN109766046A (en) * 2017-11-09 2019-05-17 腾讯科技(深圳)有限公司 The execution method and apparatus of interactive operation, storage medium, electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000033615A (en) * 1998-11-25 2000-06-15 전주범 Device for controlling angular degrees of speaker and volume of television
CN101201399A (en) * 2007-12-18 2008-06-18 北京中星微电子有限公司 Sound localization method and system
CN105205906A (en) * 2014-06-25 2015-12-30 阿里巴巴集团控股有限公司 Method and device for processing voting tasks and distributing voting tasks
CN105938497A (en) * 2016-06-14 2016-09-14 无锡天脉聚源传媒科技有限公司 Voting animation effect generation method and device
CN106488034A (en) * 2016-11-24 2017-03-08 努比亚技术有限公司 A kind of method realizing unlocking and mobile terminal
CN109766046A (en) * 2017-11-09 2019-05-17 腾讯科技(深圳)有限公司 The execution method and apparatus of interactive operation, storage medium, electronic device

Similar Documents

Publication Publication Date Title
EP1906707B1 (en) Audio transmission system and communication conference device
CN112098942B (en) Positioning method of intelligent equipment and intelligent equipment
US11496384B2 (en) System and method for phase shift based time of arrival (TOA) reporting in passive location ranging
US20160309258A1 (en) Speaker location determining system
CN112098943A (en) Positioning method of wearable device and intelligent device
CN112596028A (en) Voting device, voting method and computer readable storage medium
CN112098936A (en) Method for positioning intelligent equipment and intelligent equipment
CN112598842A (en) Ticket counting device, ticket counting method and computer readable storage medium
US10735933B2 (en) Communication management and communicating between a mobile communication device and another device
CN112098935A (en) Method for searching intelligent equipment and intelligent equipment
CN112098948A (en) Indoor positioning method and intelligent equipment
CN112098930A (en) Method for searching vehicle and intelligent equipment
CN112102536A (en) Access controller, access control method, and computer-readable storage medium
CN112099754A (en) Method for obtaining introduction information and intelligent equipment
CN111289947B (en) Information processing method, device and equipment
CN112098949B (en) Method and device for positioning intelligent equipment
CN112098950B (en) Method and device for positioning intelligent equipment
CN112105129A (en) Intelligent lamp, intelligent light-emitting method and computer readable storage medium
CN112102552A (en) Number-taking machine, number-taking method, and computer-readable storage medium
CN112102540B (en) Entrance guard controller, entrance guard control method and computer readable storage medium
CN112100527B (en) Method and device for displaying intelligent equipment
CN110869793A (en) Determining position/orientation of audio device
EP3698491A1 (en) Communication management and communicating between a communication device and another device
CN112098941A (en) Intelligent equipment positioning method and device and intelligent equipment
CN112098946A (en) Method for searching vehicle and intelligent 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
CB02 Change of applicant information

Address after: 215000 room 2104, block a, Suzhou Central Plaza, No. 58, Suxiu Road, Suzhou Industrial Park, Jiangsu Province

Applicant after: SUZHOU TOUCHAIR TECHNOLOGY Co.,Ltd.

Address before: Room 801, building 6, creative industry park, 328 Xinghu street, Suzhou Industrial Park, Jiangsu Province 215000

Applicant before: SUZHOU TOUCHAIR TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information