A method, storage medium, device and system for sampling key data of a point-reading machine
By allowing the point reader to enter data debugging mode and converting the touch data into audio signal output, the complexity and inaccuracy of the point reader's touch data is solved, and accurate touch data sampling is achieved.
Patent Information
- Application Number
- CN202411160386.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-08-22
AI Technical Summary
In the prior art, the method of collecting touch data of the point reader is complicated to operate and the sampled touch data is not accurate enough.
By allowing the point reader to enter data debugging mode, the instant touch data of the touch chip is converted into audio signals and output to the speaker, and data sampling and playback are realized.
It avoids interference with the touch chip by external detection tools, and does not require disassembly and install wireless devices to ensure the accuracy of the sampling data and simplify the sampling process.
Smart Images

Figure CN118677426B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of touch detection technology, and in particular to a sampling method, storage medium, device and system for key data of a point-reading machine. Background Art
[0002] The point-reading machine is an intelligent hardware product that combines artificial intelligence, big data and early education theory. It guides children to think, explore and create through games, interactions and other means, thereby exercising children's thinking ability, improving their sense of innovation and cultivating their problem-solving ability. By combining audio decoding, photoelectric sensing and sound output, it realizes the function of converting the coded information on books or cards into corresponding audio content. This enables users to easily obtain the corresponding audio information through the point-reading machine and provides a more convenient way of learning and entertainment. The touch chip of the point-reading machine is connected to a touch sensor through a circuit made of silver paste. Each touch sensor is correspondingly provided with a touch button. Generally, there are 25 to 35 touch buttons. The number of touch buttons is determined according to the size of the touch area of the point-reading machine.
[0003] When setting the threshold of the touch button, the sensitivity of each touch button must be tested first to ensure that the sensitivity of each button is consistent. The channel data of the touch chip needs to be sampled. The sampling method of the touch button channel data is generally to connect the touch chip to a dedicated test tool, and the test tool board converts the received touch data into USB interface data, inputs it to the computer, and then displays it with a dedicated computer debugging tool software.
[0004] Point reading machines are generally powered by small-sized rechargeable batteries. The size of the PCB board of its touch panel is also relatively small, and the self-capacitance to the ground is also very small. In actual use, it is similar to a suspended touch sensor, and the touch sensing sensitivity is low. When the touch chip is connected to a dedicated test tool, the coupling capacitance of the PCB board to the ground will increase, and the grounding environment of the touch chip will be changed, resulting in a significant increase in the sensing sensitivity of the touch chip. Usually, the touch data after connecting to the test tool is more than 1.5 times larger than the touch data without connecting to the tool board (during actual use). Therefore, this test method cannot obtain real touch data, which has a great impact on the setting of the touch button threshold in actual use.
[0005] In order to obtain real touch data and remove the influence of common ground on touch data, wireless data transmission methods can also be used, such as Bluetooth transmission, setting a Bluetooth transmitter module on the point-reading machine, setting a Bluetooth receiver module on the computer, and transmitting the touch data of the point-reading machine to the computer via Bluetooth, so as to sample the actual touch data and set the accurate touch button threshold. However, it is very inconvenient in actual use. The machine needs to be disassembled, and the wireless transmitter module needs to be installed and connected to the power and data cables of the point-reading machine. Therefore, it can only be modified and tested on a few machines, and cannot be implemented on batches of machines; secondly, after adding the wireless transmitter module, the power supply current of the battery of the point-reading machine will increase, and the capacitance parameters of the ground wire of the PCB board to the ground will be changed, which will also bring certain errors to the touch data, making the sampled touch data inaccurate.
[0006] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0007] The existing touch data collection of point-of-sale machines is complicated to operate in actual use, and the touch data obtained by sampling is not accurate enough. Summary of the invention
[0008] The purpose of the present invention is to provide a method, storage medium, device and system for sampling key data of a point-reading machine, so as to solve the technical problems in the prior art that the operation of collecting touch data of a point-reading machine is complicated in actual use and the touch data obtained by sampling is not accurate enough. The preferred technical solutions among the many technical solutions provided by the present invention can produce many technical effects as described below.
[0009] To achieve the above object, the present invention provides the following technical solutions:
[0010] The present invention provides a method for sampling key data of a point reader, comprising the following steps: when the point reader enters a data debugging mode, if an interrupt wake-up instruction sent by a touch chip of the point reader is received, the instant touch data in each data register is called: wherein each data register is allocated by the touch chip to each key of the point reader when the point reader enters the data debugging mode; the instant touch data is generated after the key is triggered by pressing, and the touch chip stores the instant touch data in the data register corresponding to the key; the instant touch data is converted into an audio signal and outputted to the point reader; The speaker of the reading machine is used to play the instant touch data in the form of audio; the sampling method of the key data of the reading machine also includes: when it is detected that the USB connection socket of the reading machine is connected to the USB cable, and the USB cable is connected to the PC end, the instruction to enter the data debugging mode sent by the PC end is received through the USB cable, so that the reading machine enters the data debugging mode; making the reading machine enter the data debugging mode includes: after successfully receiving the instruction to enter the data debugging mode, detecting whether the reading machine is disconnected from the PC end, and if so, determining that the reading machine enters the data debugging mode.
[0011] Optionally, calling the instant touch data in each data register includes: receiving the serial number of the key sent by the touch chip; and calling the corresponding instant touch data in the data storage according to the serial number of the key.
[0012] Optionally, the instant touch data is converted into an audio signal and output to the speaker of the reading machine, including: according to the audio digital voice set inside the reading machine, the instant touch data is converted into an audio signal, after being amplified by an audio amplifier inside the reading machine, the audio signal is output to the speaker of the reading machine; wherein the audio digital voice corresponds to the instant touch data.
[0013] Optionally, the method for sampling key data of the point-reading machine further includes: receiving an instruction for entering a data debugging mode triggered by a combination of keys preset by the point-reading machine, so that the point-reading machine enters a data debugging mode.
[0014] Optionally, after converting the instant touch data into an audio signal and outputting it to the speaker of the reading machine, the sampling method of the key data of the reading machine also includes: controlling the speaker of the reading machine to play out all the key numbers of the reading machine and the touch data corresponding to the keys in sequence, or controlling the speaker to only play the touch data and the corresponding key numbers that exceed the touch threshold.
[0015] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed, implements any of the above methods for sampling key data of a point-reading machine.
[0016] A data sampling device comprises: one or more processors; a memory for storing one or more computer programs, wherein the one or more processors are used to execute the one or more computer programs stored in the memory, so that the one or more processors execute a method for sampling key data of a point-reading machine as described in any one of the above items.
[0017] A data sampling system, comprising a PC and a sampling device as described above, wherein the sampling device plays instant touch data in audio form; the PC converts the instant touch data in audio form into text form through voice recognition software, and displays the instant touch data in text form.
[0018] Implementing one of the above technical solutions of the present invention has the following advantages or beneficial effects:
[0019] The present invention enables the reading machine to enter the data debugging mode and plays the key touch data obtained by the test in the form of audio. This not only avoids the interference caused by other detection tools connected to the reading machine, but also does not require the machine to be disassembled to add wireless devices to the reading machine, thereby avoiding changing the use environment of the reading machine and solving the problem of inaccurate touch data obtained by sampling. It can also simplify the sampling process, and can sample accurate touch data without increasing costs, which can ensure that the touch key threshold setting in actual use is reasonable. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. It is obvious that the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0021] Figure 1 is a flow chart of a method for sampling key data of a point reader according to an embodiment of the present invention;
[0022] Figure 2 It is a structural block diagram of the interior of a point reader according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The term "plurality" means two or more. The terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a communication connection, a direct connection, an indirect connection through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements.
[0024] In order to illustrate the technical solution of the present invention, a specific embodiment is used below for description, and only the parts related to the embodiment of the present invention are shown.
[0025] Embodiment 1:
[0026] like Figure 1 As shown, the present invention provides a method for sampling key data of a reading machine, comprising the following steps: S1, when the reading machine enters a data debugging mode, if an interrupt wake-up instruction sent by a touch chip of the reading machine is received, the instant touch data in each data register is called: wherein, each data register is allocated by the touch chip to each key of the reading machine when the reading machine enters the data debugging mode; the instant touch data is generated after the key is pressed and triggered, and the touch chip stores the instant touch data in the data register corresponding to the key; S2, converting the instant touch data into an audio signal and outputting it to the speaker of the reading machine, so that the speaker of the reading machine plays the instant touch data in the form of audio.
[0027] After the reading machine enters the data debugging mode, a corresponding data register is assigned to each key of the reading machine. The data register is set inside the touch chip of the reading machine and is used to store the touch data of each key; pressing the key obtains instant touch data, and the touch chip stores the instant touch data in the data register corresponding to the key, and simultaneously sends an interrupt wake-up instruction to the main control MCU of the reading machine; after receiving the instruction, the main control MCU calls the instant touch data in each data register, converts the instant touch data into an audio signal and outputs it to the speaker of the reading machine, and the instant touch data can be played through the speaker without the need for external dedicated testing tools, which can avoid the influence of external devices on the ground wire of the touch chip PCB board on the capacitor, thereby ensuring the accuracy of the played touch data.
[0028] The present invention enables the reading machine to enter the data debugging mode and plays the key touch data obtained by the test in the form of audio. This not only avoids the interference caused by other detection tools connected to the reading machine, but also does not require the machine to be disassembled to add wireless devices to the reading machine, thereby avoiding changing the use environment of the reading machine and solving the problem of inaccurate touch data obtained by sampling. It can also simplify the sampling process, and can sample accurate touch data without increasing costs, which can ensure that the touch key threshold setting in actual use is reasonable.
[0029] Next, combine Figure 1-Figure 2 The sampling method of the point reader key data provided in this embodiment is described in detail as follows:
[0030] First, step S1 is executed. When the point-reading machine enters the data debugging mode, if an interrupt wake-up instruction sent by the touch chip of the point-reading machine is received, the instant touch data in each data register is called.
[0031] As an optional implementation, when it is detected that the USB connector of the point reader is connected to a USB cable, and the USB cable is connected to the PC, the instruction to enter the data debugging mode sent by the PC is received through the USB cable, so that the point reader enters the data debugging mode. The point reader is connected to the PC via a USB cable, and the PC sends an instruction to enter the data debugging mode to the main control MCU of the point reader, and the point reader enters the data debugging mode according to the instruction. After successfully receiving the instruction to enter the data debugging mode, it is detected whether the point reader is disconnected from the PC. If so, it is determined that the point reader enters the data debugging mode; the USB cable can be disconnected to disconnect the point reader from the PC, or the PC can be set to automatically shield the connection with the point reader after the instruction is successfully sent, so as to ensure that the point reader remains suspended during data sampling and is not connected to any external device, thereby ensuring that the sampled touch data will not be interfered with by the external device.
[0032] Alternatively, the point reading machine may enter the data debugging mode by receiving an instruction to enter the data debugging mode triggered by a combination of buttons preset by the point reading machine. That is, a combination of buttons that trigger entering the data debugging mode is set in advance on the point reading machine, and when the combination of buttons is pressed, the point reading machine can enter the data debugging mode. For example, within 5 seconds, the point reading machine's buttons K1, K2, K3, K4, and K5 are pressed in sequence, and then the data debugging mode is entered.
[0033] When a button is pressed, the capacitive sensor connected to the button generates coupling capacitance, and the touch chip of the point reader stores this capacitance data (i.e., instant touch data) in the data register corresponding to each button, and sends an interrupt wake-up instruction to the main control MCU to stop the current operation and execute the operation of calling the instant touch data. The touch chip of the point reader sends an interrupt wake-up instruction to the main control MCU through the I2C interface.
[0034] After entering the data debugging mode, the touch data of each key will not be refreshed in real time. Only when a key is pressed will the instant touch data of all keys at that time be recorded and maintained. It will not be updated until the next time a key is pressed, and the instant touch data will be stored in the corresponding data storage.
[0035] In step S1, calling the instant touch data in each data register includes: receiving the serial number of the key sent by the touch chip; calling the instant touch data in the corresponding data storage according to the serial number of the key. The touch chip sends the serial number of the key and the interrupt wake-up instruction to the main control MCU through the I2C interface, and the main control MCU also calls the instant touch data in each data storage through the I2C interface.
[0036] Then, step S2 is executed to convert the instant touch data into an audio signal and output it to the speaker of the reading machine, so that the speaker of the reading machine plays the instant touch data in the form of audio.
[0037] like Figure 2 As shown, the point reading machine of this embodiment includes a touch chip, a main control MCU, a touch button array, an audio amplifier, a speaker, a storage chip, a charging chip, a battery and a USB connection socket; the point reading machine can be connected to a PC or a charger through a USB connection socket, and the touch button array includes a plurality of buttons and a capacitive sensor connected to each button. In the data debugging mode, if a button is pressed, the touch chip collects the instant touch data corresponding to the button and stores it in the internal data register, and at the same time sends an interrupt wake-up instruction to the main control MCU, the main control MCU calls the instant touch data in the register, and converts the instant touch data into an audio signal according to the audio digital voice stored in the storage chip and sends it to the audio amplifier, which is amplified by the audio amplifier and sent to the speaker, and the speaker plays the instant touch data in the form of audio.
[0038] As shown in Table 1, when the touch chip detects that a key is pressed, the touch chip only sends the key sequence number to the main control MCU, and the main control MCU can call the corresponding instant touch data according to the key sequence number. According to the audio digital voice set inside the point-reading machine, the instant touch data is converted into an audio signal, which is amplified by the audio amplifier inside the point-reading machine and output to the speaker of the point-reading machine; wherein, the audio digital voice corresponds to the instant touch data. A storage chip is set in the point-reading machine, such as a SPIFlash (Serial Peripheral Interface Flash, a serial peripheral interface non-volatile memory) chip, which stores pre-prepared audio digital voices, such as English letter voices, digital voices, and various related learning knowledge voices; in the data debugging mode, when the touch chip detects that a key is pressed, it sends an interrupt wake-up instruction to the main control MCU, and the main control MCU calls the touch data corresponding to the key through the I2C interface, and then converts the touch data into an audio signal according to the pre-prepared audio digital voice, which is finally played by the speaker.
[0039]
[0040] Table 1 Correspondence between key numbers and touch data
[0041] After step S2, the method further includes: controlling the speaker of the reading machine to play out all the key numbers of the reading machine and the touch data corresponding to the keys in sequence, or controlling the speaker to play only the touch data exceeding the touch threshold and the corresponding key numbers.
[0042] The content played can be pre-set in multiple ways, such as converting the instant touch data into an audio signal and outputting it to the speaker of the point reading machine, and then the speaker of the point reading machine plays out all the key numbers of the point reading machine and the touch data corresponding to the keys in sequence, or only plays the touch data and the corresponding key numbers that exceed the touch threshold. As shown in Table 1, if it is set to play out all the key numbers and the touch data corresponding to the keys, the speaker will play "K1, touch data 5; K2, touch data 13; K3, touch data 6; ......; K33, touch data 708"; if it is set to play out only the touch data and the corresponding key numbers that exceed the touch threshold, assuming that the touch threshold is set to 400, the speaker will play "K33, touch data 708"; if the touch data exceeds the touch threshold, it means that a finger touches or presses the key, and only the touch data and key numbers that exceed the threshold are played, so that the touched keys can be quickly known, which is convenient for sampling the touch data of the keys in a targeted manner.
[0043] The embodiment is only a specific example and does not represent only one implementation mode of the present invention.
[0044] Embodiment 2:
[0045] This embodiment also provides one or more computer-readable storage media. A person of ordinary skill in the art can understand that all or part of the features / steps of the above-mentioned method embodiments can be implemented by a method, a data processing system or a computer program. These features can be implemented without hardware, entirely by software, or by a combination of hardware and software. The aforementioned computer program can be stored in one or more computer-readable storage media. The storage medium stores a computer program. When the computer program is executed (such as by a processor), the steps of the above-mentioned method embodiment for sampling key data of a point reader are executed.
[0046] The aforementioned storage media that can store program codes include: static hard disks, solid-state hard disks, random access memories (SRAM), electrically erasable programmable read-only memories (EEPROM), erasable programmable read-only memories (EPROM), programmable read-only memories (PROM), read-only memories (ROM), optical storage devices, magnetic storage devices, flash memories, magnetic disks or optical disks and / or combinations of the above devices, that is, they can be implemented by any type of volatile or non-volatile storage devices or combinations thereof.
[0047] Embodiment three:
[0048] The present invention also provides a data sampling device, comprising one or more processors and a memory; wherein the memory is used to store one or more computer programs, and the one or more processors are used to execute one or more computer programs stored in the memory, so that the processor executes the features / steps of the above-mentioned sampling method for key data of a reading machine.
[0049] Embodiment 4:
[0050] The present invention also provides a data sampling system, which includes a PC and a sampling device as described in Example 3, wherein the sampling device plays the instant touch data in audio form; the PC converts the instant touch data in audio form into text form through voice recognition software, and displays the instant touch data in text form. Converting the collected touch data from audio form into text form is more conducive to storage and subsequent threshold setting of the key of the point reader.
[0051] The above description is only the preferred embodiment of the present invention. It is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application belong to the protection scope of the present invention.
Claims
1. A method for sampling key data of a point-reading machine, characterized in that: The following steps are involved: When the point reader enters the data debugging mode, if an interrupt wake-up instruction sent by the touch chip of the point reader is received, the instant touch data in each data register is called: wherein each data register is allocated by the touch chip to each key of the point reader when the point reader enters the data debugging mode; the instant touch data is generated by the touch chip after the key is triggered by pressing, and the instant touch data is stored in the data register corresponding to the key by the touch chip; Convert the instant touch data into an audio signal and output it to the speaker of the point-reading machine, so that the speaker of the point-reading machine plays the instant touch data in the form of audio; The sampling method of the point reading machine key data also includes: When it is detected that the USB connection socket of the point-reading machine is connected to a USB cable, and the USB cable is connected to a PC, an instruction to enter a data debugging mode sent by the PC is received through the USB cable, so that the point-reading machine enters the data debugging mode; The point-reading machine is made to enter the data debugging mode, comprising: after successfully receiving the instruction to enter the data debugging mode, detecting whether the point-reading machine is disconnected from the PC end, and if so, determining that the point-reading machine enters the data debugging mode.
2. A method for sampling key data of a point-reading machine according to claim 1, characterized in that: The calling of the instant touch data in each data register includes: Receiving the serial number of the key sent by the touch chip; The instant touch data in the corresponding data storage device is called according to the sequence number of the key.
3. The method for sampling key data of a point-reading machine according to claim 1, characterized in that: The instant touch data is converted into an audio signal and outputted to a speaker of the point reading machine, comprising: According to the audio digital voice set inside the point-reading machine, the instant touch data is converted into an audio signal, which is amplified by the audio amplifier inside the point-reading machine and then output to the speaker of the point-reading machine; Wherein, the audio digital voice corresponds to the instant touch data.
4. The method for sampling key data of a point-reading machine according to claim 1, characterized in that: The sampling method of the point reading machine key data also includes: The point-reading machine enters the data debugging mode by receiving an instruction for entering the data debugging mode triggered by a combination of buttons preset by the point-reading machine.
5. The method for sampling key data of a point-reading machine according to claim 1, characterized in that: After converting the instant touch data into an audio signal and outputting it to the speaker of the point-reading machine, the method for sampling the key data of the point-reading machine further includes: The speaker of the point-reading machine is controlled to play out all the key numbers of the point-reading machine and the touch data corresponding to the keys in sequence, or the speaker is controlled to play out only the touch data exceeding the touch threshold and the corresponding key number.
6. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which, when executed, implements the method for sampling key data of a point-reading machine as described in any one of claims 1-5.
7. A data sampling device, characterized in that: include: one or more processors; A memory is used to store one or more computer programs, and one or more processors are used to execute one or more computer programs stored in the memory, so that one or more processors execute a method for sampling key data of a point-reading machine as described in any one of claims 1-5.
8. A data sampling system, characterized in that: The data sampling system includes a PC and a sampling device as described in claim 7, wherein the sampling device plays the instant touch data in audio form; the PC converts the instant touch data in audio form into text form through voice recognition software, and displays the instant touch data in text form.
Citation Information
Patent Citations
Touch key testing system and method
CN104237773A
Self-key detection method of display product
CN117472667A