CN111124187A - Message sending method and device, touch control equipment, vehicle-mounted terminal and electronic equipment - Google Patents

Message sending method and device, touch control equipment, vehicle-mounted terminal and electronic equipment Download PDF

Info

Publication number
CN111124187A
CN111124187A CN201911399677.6A CN201911399677A CN111124187A CN 111124187 A CN111124187 A CN 111124187A CN 201911399677 A CN201911399677 A CN 201911399677A CN 111124187 A CN111124187 A CN 111124187A
Authority
CN
China
Prior art keywords
touch
message
touch operation
position information
application processor
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
CN201911399677.6A
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.)
Baoneng Automobile Co Ltd
Original Assignee
Baoneng Automobile 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 Baoneng Automobile Co Ltd filed Critical Baoneng Automobile Co Ltd
Priority to CN201911399677.6A priority Critical patent/CN111124187A/en
Publication of CN111124187A publication Critical patent/CN111124187A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a message sending method and device, touch equipment, a vehicle-mounted terminal and electronic equipment. The sending method comprises the following steps: detecting touch operation on a touch pad, and acquiring first position information of a currently detected first touch operation; acquiring second position information of a second touch operation for forming the touch message last time; identifying whether to send a touch message to the application processor according to the first position information and the second position information; wherein the touch message carries the first location information. According to the sending method provided by the embodiment of the invention, whether the touch message is sent to the application processor can be identified according to the magnitude relation between the distance between the currently detected first touch operation and the second touch operation forming the touch message last time and the preset distance threshold value, the accuracy of the touch message can be ensured, and meanwhile, the quantity of the touch messages sent to the application processor can be reduced, so that the load pressure of a communication bus is reduced.

Description

Message sending method and device, touch control equipment, vehicle-mounted terminal and electronic equipment
Technical Field
The present invention relates to the field of information transmission technologies, and in particular, to a message sending method and apparatus, a touch device, a vehicle-mounted terminal, an electronic device, and a computer-readable storage medium.
Background
Currently, touch technology is widely used. In order to ensure accuracy, the sampling frequency of the touch equipment for touch operation is high, and can mostly reach 100Hz, and with the development of touch technologies such as multi-point touch and gesture operation technologies, the content of touch data is greatly increased, and the load pressure on a communication bus is large.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, an object of the present invention is to provide a message sending method, which can identify whether to send a touch message to an application processor according to a magnitude relationship between a distance between a currently detected first touch operation and a second touch operation forming the touch message last time and a preset distance threshold, can ensure accuracy of the touch message, and can reduce the number of touch messages sent to the application processor to reduce load pressure of a communication bus.
A second object of the present invention is to provide a message transmitting apparatus.
The third objective of the present invention is to provide a touch device.
The fourth purpose of the invention is to provide a vehicle-mounted terminal.
A fifth object of the invention is to propose an electronic device.
A sixth object of the present invention is to propose a computer-readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a message sending method, including the following steps: detecting touch operation on a touch pad, and acquiring first position information of a currently detected first touch operation; acquiring second position information of a second touch operation for forming the touch message last time; identifying whether to send a touch message to the application processor according to the first position information and the second position information; wherein the touch message carries the first location information.
According to the message sending method provided by the embodiment of the invention, whether the touch message is sent to the application processor can be identified according to the magnitude relation between the distance between the currently detected first touch operation and the second touch operation forming the touch message last time and the preset distance threshold, the accuracy of the touch message can be ensured, and meanwhile, the number of the touch messages sent to the application processor can be reduced, so that the load pressure of a communication bus is reduced.
In addition, the message sending method proposed according to the above embodiment of the present invention may further have the following additional technical features:
in an embodiment of the present invention, the identifying whether to send the touch message according to the first position information and the second position information includes: and acquiring the distance between the first touch operation and the second touch operation according to the first position information and the second position information, and if the distance is greater than or equal to a preset distance threshold, sending the touch message to the application processor.
In an embodiment of the present invention, the message sending method further includes: if the distance is smaller than a preset distance threshold, acquiring a time interval between the first touch operation and the second touch operation; and identifying whether the time interval is greater than or equal to a first preset time, and if the time interval is greater than or equal to the first preset time, sending the touch message to the application processor.
In an embodiment of the present invention, the message sending method further includes: identifying whether the first touch operation is a first operation within a second preset time; and if the first touch operation is the first operation within the second preset time, directly sending the touch message to the application processor.
In an embodiment of the present invention, after sending the touch message to the application processor, the method further includes: and detecting the touch operation on the touch panel again at intervals of a third preset time.
In an embodiment of the present invention, the message sending method further includes: and detecting the state of the touch pad, and sending a prompt message of touch pad release to the application processor when detecting that the touch pad is in a release state.
In order to achieve the above object, a second embodiment of the present invention provides a message sending apparatus, including: the detection module is used for detecting the touch operation on the touch pad and acquiring first position information of the currently detected first touch operation; the acquisition module is used for acquiring second position information of a second touch operation for forming the touch message last time; the identification module is used for identifying whether to send a touch message to the application processor according to the first position information and the second position information; wherein the touch message carries the first location information.
The message sending device provided by the embodiment of the invention can identify whether to send the touch message to the application processor according to the magnitude relation between the distance between the currently detected first touch operation and the second touch operation forming the touch message last time and the preset distance threshold, so that the accuracy of the touch message can be ensured, and meanwhile, the number of the touch messages sent to the application processor can be reduced, so that the load pressure of a communication bus is reduced.
In addition, the message sending apparatus proposed according to the above embodiment of the present invention may further have the following additional technical features:
in an embodiment of the present invention, the identification module is specifically configured to: and acquiring the distance between the first touch operation and the second touch operation according to the first position information and the second position information, and if the distance is greater than or equal to a preset distance threshold, sending the touch message to the application processor.
In an embodiment of the present invention, the identification module is further configured to: if the distance is smaller than a preset distance threshold, acquiring a time interval between the first touch operation and the second touch operation; and identifying whether the time interval is greater than or equal to a first preset time, and if the time interval is greater than or equal to the first preset time, sending the touch message to the application processor.
In an embodiment of the present invention, the identification module is further configured to: identifying whether the first touch operation is a first operation within a second preset time; and if the first touch operation is the first operation within the second preset time, directly sending the touch message to the application processor.
In an embodiment of the present invention, the detection module is further configured to: and after sending the touch message to the application processor, detecting the touch operation on the touch panel again at an interval of third preset time.
In an embodiment of the present invention, the detection module is further configured to: and detecting the state of the touch pad, and sending a prompt message of touch pad release to the application processor when detecting that the touch pad is in a release state.
In order to achieve the above object, a third aspect of the present invention provides a touch device, including the message sending apparatus according to the second aspect of the present invention.
The touch device of the embodiment of the invention can identify whether to send the touch message to the application processor according to the magnitude relation between the distance between the currently detected first touch operation and the second touch operation forming the touch message last time and the preset distance threshold, can ensure the accuracy of the touch message, and can reduce the quantity of the touch messages sent to the application processor so as to reduce the load pressure of a communication bus.
In order to achieve the above object, a fourth aspect of the present invention provides an in-vehicle terminal, including the touch device according to the third aspect of the present invention.
According to the vehicle-mounted terminal provided by the embodiment of the invention, whether the touch message is sent to the application processor can be identified according to the magnitude relation between the distance between the currently detected first touch operation and the second touch operation forming the touch message last time and the preset distance threshold, the accuracy of the touch message can be ensured, and meanwhile, the quantity of the touch messages sent to the application processor can be reduced, so that the load pressure of a communication bus is reduced.
In order to achieve the above object, a fifth embodiment of the present invention provides an electronic device, including a memory, a processor; the processor reads the executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the message sending method according to the embodiment of the first aspect of the present invention.
According to the electronic equipment provided by the embodiment of the invention, the processor executes the computer program stored on the memory, whether the touch message is sent to the application processor can be identified according to the size relation between the distance between the currently detected first touch operation and the second touch operation for forming the touch message last time and the preset distance threshold, the accuracy of the touch message can be ensured, and meanwhile, the number of the touch messages sent to the application processor can be reduced, so that the load pressure of a communication bus is reduced.
To achieve the above object, a sixth aspect of the present invention provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the message sending method according to the first aspect of the present invention.
The computer-readable storage medium of the embodiment of the invention stores a computer program and is executed by a processor, and can identify whether to send a touch message to an application processor according to the magnitude relation between the distance between the currently detected first touch operation and the second touch operation which forms the touch message last time and a preset distance threshold, so that the accuracy of the touch message can be ensured, and the number of the touch messages sent to the application processor can be reduced to reduce the load pressure of a communication bus.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a message sending method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a message sending method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a message sending method according to an embodiment of the present invention;
fig. 4 is a diagram illustrating a message transmission method according to another embodiment of the present invention;
fig. 5 is a flowchart of a message transmission method according to another embodiment of the present invention;
fig. 6 is a flowchart of a message transmission method according to a specific example of the present invention;
FIG. 7 is a block diagram of a messaging device according to one embodiment of the present invention;
FIG. 8 is a block diagram of a touch device according to an embodiment of the invention
FIG. 9 is a block diagram of a vehicle mounted terminal according to one embodiment of the present invention; and
FIG. 10 is a block diagram of an electronic device according to one embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A message sending method, a message sending apparatus, a touch device, a vehicle-mounted terminal, an electronic device, and a computer-readable storage medium according to embodiments of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a message transmission method according to an embodiment of the present invention. In an embodiment of the present invention, as shown in fig. 2, the sending of the message may be implemented by a touch panel, a microprocessor, a communication bus, an application processor. The touch control device can send the touch message corresponding to the touch control operation to the application processor through the communication bus, and the application processor is used for receiving and identifying the touch message to send out a corresponding instruction and control the running of related applications, so that the response to the touch control operation of the user is realized.
As shown in fig. 1, a message sending method according to an embodiment of the present invention includes the following steps:
s101, touch operation on the touch pad is detected, and first position information of the first touch operation detected currently is acquired.
It should be noted that, a user may perform a touch operation on the touch panel, detect the touch operation through the touch detection device, and acquire position information of the touch operation.
Optionally, the touch operation may include single-finger touch, multi-touch, gesture operation, and the like.
Optionally, the touch detection device may include a touch chip, a pressure sensor, and the like. For example, when a touch operation is detected by a touch chip, the touch chip may output a driving signal to a driving line of the touch panel, scan the driving line, receive a sensing signal from a corresponding sensing line, determine whether there is a touch operation by determining a value of the sensing signal, and generate an interrupt signal if there is a touch operation. The sensing signal may include a capacitance value, a resistance value, and the like.
Taking the sensing signal as an example of the capacitance value, when a user performs a touch operation on the touch panel, the capacitance value of the position of the touch operation on the touch panel changes, and the touch chip can detect the capacitance value on the touch panel, determine whether the touch operation exists according to the capacitance value, and acquire the position of the touch operation on the touch panel.
In an embodiment of the present invention, acquiring the position information of the touch operation may include establishing a coordinate system on the touch panel in advance, and using a coordinate corresponding to the touch operation as the position information of the touch operation. Taking the touch panel as a plane, a two-dimensional rectangular coordinate system may be established on the touch panel in advance, optionally, a two-dimensional rectangular coordinate system may be established with one corner of the touch panel as an origin, and a two-dimensional coordinate corresponding to the touch operation is used as the position information of the touch operation.
As shown in fig. 3, the touch panel is a rectangular planar touch panel, and a two-dimensional rectangular coordinate system may be established with the lower left corner of the touch panel as the origin, the lower frame of the touch panel as the X axis, and the left frame as the Y axis, so that the position information of the touch operation a may be obtained as coordinates (3, 3).
S102, second position information of a second touch operation of the last touch message is obtained.
And S103, identifying whether to send the touch message to the application processor according to the first position information and the second position information. Wherein the touch message carries first position information.
It should be noted that, each time it is determined to send a touch message to the application processor, the position information of the touch operation forming the touch message may be stored in a storage space of the touch detection device, for example, in a storage space of the touch chip.
For example, after acquiring the position information of the currently detected first touch operation, the touch detection device may call out, from its own storage space, second position information of a second touch operation that has formed a touch message last time, and identify whether to send the touch message to the application processor according to the first position information and the second position information.
In an embodiment of the present invention, identifying whether to send the touch message to the application processor according to the first location information and the second location information may include obtaining a distance between the first touch operation and the second touch operation, and identifying whether to send the touch message to the application processor according to a magnitude relationship between the distance and a preset distance threshold.
If the distance is greater than or equal to the preset distance threshold, it is indicated that the distance between the first touch operation and the second touch operation is relatively long, the difference between the first position information and the second position information is relatively large, because the touch message carries the position information, the touch message corresponding to the first touch operation and the touch message corresponding to the second touch operation are relatively large, in order to ensure the accuracy of the touch message, the touch message corresponding to the first touch operation needs to be sent to the application processor, and the touch message carries the first position information, so that the application processor can receive and identify the operation intention of the user according to the first position information, generate a corresponding control instruction, and control the operation of the related application. The preset distance threshold may be calibrated according to an actual situation, and may be preset in a storage space of the touch detection device, for example, may be preset in a storage space of the touch chip.
Optionally, a mapping relation or a mapping table between the position information of the touch operation and the instruction may be pre-established in a storage space of the application processor, and after the position information is obtained, the mapping relation or the mapping table is queried, so that a control instruction required under the current position information can be determined, and a corresponding control instruction is generated to control the operation of the relevant application.
If the distance is smaller than the preset distance threshold, it is indicated that the distance between the first touch operation and the second touch operation is short, the difference between the first position information and the second position information is not large, and because the touch message carries the position information, the difference between the touch message corresponding to the first touch operation and the touch message corresponding to the second touch operation is not large, in order to reduce the number of the touch messages sent to the application processor and reduce the load pressure of the communication bus, the touch message corresponding to the first touch operation may not be sent to the application processor at this time.
Therefore, according to the method, whether the touch message is sent to the application processor or not can be identified according to the size relation between the distance between the first touch operation and the second touch operation and the preset distance threshold, the accuracy of the touch message can be guaranteed, and meanwhile, the quantity of the touch message can be reduced, so that the load pressure of a communication bus is relieved.
For example, as shown in fig. 4, if the position information of the first touch operation is the coordinate a (5, 3), the position information of the second touch operation is the coordinate B (3,3), and the preset distance threshold is 1, the distance between the first touch operation and the second touch operation is 2 and is greater than the preset distance threshold, and in order to ensure the accuracy of the touch message, the touch message corresponding to the first touch operation may be sent to the application processor.
Or if the position information of the first touch operation is the coordinate C (3.5, 3), the position information of the second touch operation is still the coordinate B (3,3), and the preset distance threshold is 1, the distance between the first touch operation and the second touch operation is 0.5 and is smaller than the preset distance threshold, and in order to reduce the number of touch messages sent to the application processor and reduce the load pressure of the communication bus, the touch message corresponding to the first touch operation may not be sent to the application processor at this time.
Further, after sending the touch message to the application processor, in order to continue to detect whether there is a touch operation, the touch operation on the touch panel may be re-detected at an interval of a third preset time. The third preset time may be calibrated according to an actual situation, for example, may be calibrated to be 10 milliseconds, and the third preset time may be preset in the storage space of the touch detection device, for example, may be preset in the storage space of the touch chip.
Optionally, after sending the touch message to the application processor, in order to detect whether the touch operation disappears, the state of the touch panel may be detected, and when it is detected that the touch panel is in the release state, which indicates that the touch operation disappears, a prompt message released by the touch panel is sent to the application processor, so that the application processor can generate a corresponding control instruction according to the prompt message, and control the running of the related application.
Optionally, the state of the touch panel may be detected by a touch detection device. For example, when the state of the touch panel is detected by the touch chip, the touch chip may output a driving signal to a driving line of the touch panel, scan the driving line, receive a sensing signal from a corresponding sensing line, determine whether there is a touch operation and whether the touch operation disappears according to a value of the sensing signal and a change of the value, generate an interrupt signal if there is the touch operation, and stop generating the interrupt signal if the touch operation disappears, that is, the touch panel is in a release state.
In summary, according to the message sending method of the embodiment of the present invention, whether to send a touch message to an application processor can be identified according to the magnitude relationship between the distance between the currently detected first touch operation and the second touch operation that forms the touch message last time and the preset distance threshold, so that the accuracy of the touch message can be ensured, and the number of the touch messages sent to the application processor can be reduced to reduce the load pressure of a communication bus.
A message transmission method according to another embodiment of the present invention is described below with reference to fig. 5.
As shown in fig. 5, the message sending method according to the embodiment of the present invention includes the following steps:
s201, touch operation on the touch pad is detected, and first position information and time information of the first touch operation detected currently are acquired.
S202, second position information and time information of a second touch operation of the last touch message are acquired.
It should be noted that, time information corresponding to the touch operation may be acquired by installing a timer in the touch detection device, and optionally, after determining to send the touch message to the application processor, the time information of the touch operation forming the touch message may be stored in a storage space of the touch detection device, for example, in a storage space of a touch chip.
S203, acquiring the distance between the first touch operation and the second touch operation according to the first position information and the second position information.
And S204, identifying whether the distance is smaller than a preset distance threshold value.
If yes, step S205 is performed, and if no, step S207 is performed.
S205, a time interval between the first touch operation and the second touch operation is obtained. In an embodiment of the present invention, if it is recognized that the distance between the first touch operation and the second touch operation is smaller than the preset distance threshold, the time interval between the first touch operation and the second touch operation may be further obtained according to the time information of the first touch operation and the time information of the second touch operation that is called out from the storage space of the first touch operation and forms the touch message last time, and whether to send the touch message to the application processor is recognized according to a size relationship between the time interval and the first preset time. The first preset time may be calibrated according to an actual situation, and may be preset in a storage space of the touch detection device, for example, the first preset time may be preset in a storage space of the touch chip.
S206, whether the time interval is larger than or equal to a first preset time is identified.
If yes, step S207 is performed, and if no, step S209 is performed.
S207, sending the touch message to the application processor.
If the time interval is greater than or equal to the first preset time, it is indicated that the time interval between the first touch operation and the second touch operation is long, in order to avoid missing a touch message due to a recognition error, even if the touch message corresponding to the first touch operation is not much different from the touch message corresponding to the second touch operation, in order to ensure the accuracy of the touch message, the touch message corresponding to the first touch operation needs to be sent to the application processor, and the touch message carries the first position information, so that the application processor can receive and recognize the operation intention of the user according to the first position information, generate a corresponding control instruction, and control the operation of the related application.
And S208, storing the first position information and the time information of the first touch operation as the second position information and the time information of the second touch operation, and returning to execute the detection and subsequent steps of the touch operation on the touch panel.
In an embodiment of the present invention, after sending the touch message to the application processor, the touch detection device may further delete the second position information and the time information of the second touch operation from the storage space, and use the first position information and the time information of the first touch operation as the second position information and the time information of the second touch operation, and store the second position information and the time information in its own storage space, so that the storage space stores the position information and the time information of at most one touch operation at the same time, which is beneficial to saving the storage space of the touch detection device.
And S209, not sending a touch message to the application processor, and returning to execute the detection of the touch operation on the touch pad and the subsequent steps.
If the time interval is less than the first preset time, which indicates that the time interval between the first touch operation and the second touch operation is short, repeated operations may occur to the user, and at this time, the touch message corresponding to the first touch operation should be slightly different from the touch message corresponding to the second touch operation.
Therefore, after the method identifies that the distance between the first touch operation and the second touch operation is smaller than the preset distance threshold, whether a touch message is sent to the application processor or not can be identified according to the size relation between the time interval of the first touch operation and the second touch operation and the first preset time, the accuracy of the touch message can be ensured, and meanwhile, the number of the touch messages sent to the application processor can be reduced, so that the load pressure of a communication bus is reduced.
For example, after recognizing that the distance between the first touch operation and the second touch operation is smaller than the preset distance threshold, if the time corresponding to the first touch operation is 3 seconds, the time corresponding to the second touch operation is 1 second, and the first preset time is 1 second, the time interval between the first touch operation and the second touch operation is 2 seconds and is greater than the first preset time, and in order to ensure the accuracy of the touch message, the touch message corresponding to the first touch operation may be sent to the application processor at this time.
Or if the time corresponding to the first touch operation is 1.2 seconds, the time corresponding to the second touch operation is still 1 second, and the first preset time is 1 second, the time interval between the first touch operation and the second touch operation is 0.2 seconds and is less than the first preset time, in order to reduce the number of touch messages sent to the application processor and reduce the load pressure of the communication bus, the touch message corresponding to the first touch operation may not be sent to the application processor at this time.
In summary, according to the message sending method in the embodiment of the present invention, after it is identified that the distance between the first touch operation and the second touch operation is smaller than the preset distance threshold, whether to send the touch message to the application processor can be identified according to the magnitude relationship between the time interval between the first touch operation and the second touch operation and the first preset time, so that the accuracy of the touch message can be ensured, and the number of the touch messages sent to the application processor can be reduced, so as to reduce the load pressure of the communication bus.
As another possible implementation manner, the touch operation on the touch panel is detected, after the first position information of the currently detected first touch operation is acquired, whether the first touch operation is the first operation within the second preset time may be identified, if so, it indicates that the time interval between the first touch operation and the second touch operation forming the touch message last time is longer, and in order to ensure the accuracy of the touch message, the distance between the first touch operation and the second touch operation may not be determined at this time, and the touch message is directly sent to the application processor, so that the message sending efficiency is improved. The second preset time may be calibrated according to an actual situation, and may be preset in a storage space of the touch detection device, for example, the second preset time may be preset in a storage space of the touch chip.
If not, it is indicated that the time interval between the first touch operation and the second touch operation is short, and in order to reduce the number of touch messages sent to the application processor and reduce the load pressure of the communication bus, it is necessary to continue to acquire the second position information of the second touch operation which formed the touch message last time and subsequent steps thereof.
To make the present invention more clear to those skilled in the art, fig. 6 is a flowchart of a message sending method according to a specific example of the present invention, and as shown in fig. 6, the message sending method may include the following steps:
s301, detecting the touch operation on the touch pad, and acquiring first position information of the currently detected first touch operation.
S302, whether the first touch operation is the first operation within a second preset time is identified. If yes, step S303 is performed, and if no, step S306 is performed.
S303, sending the touch message to the application processor.
S304, saving the first position information and the time information of the first touch operation as the second position information and the time information of the second touch operation.
And S305, delaying for a third preset time, and returning to continue to execute the detection and subsequent steps of the touch operation on the touch panel.
S306, second position information of a second touch operation of the last touch message is obtained.
S307, acquiring the distance between the first touch operation and the second touch operation according to the first position information and the second position information.
S308, whether the distance is smaller than a preset distance threshold value or not is identified. If yes, step S309 is performed, and if no, step S303 is performed.
S309, acquiring a time interval between the first touch operation and the second touch operation.
And S310, identifying whether the time interval is greater than or equal to a first preset time, if so, executing the step S303, and if not, returning to continuously execute the steps of detecting the touch operation on the touch pad and the subsequent steps.
For the specific description of the steps, reference is made to the descriptions of the related contents in the above embodiments, which are not described herein again.
Fig. 7 is a block diagram of a messaging device according to an embodiment of the invention.
As shown in fig. 7, the message sending apparatus 100 according to the embodiment of the present invention includes a detection module 11, an acquisition module 12, and an identification module 13.
The detection module 11 is configured to detect a touch operation on the touch panel, and acquire first position information of a currently detected first touch operation.
The obtaining module 12 is configured to obtain second position information of a second touch operation of a last touch message.
The identification module 13 is configured to identify whether to send a touch message to the application processor according to the first location information and the second location information; wherein the touch message carries the first location information.
In an embodiment of the present invention, the identification module 13 is specifically configured to obtain a distance between the first touch operation and the second touch operation according to the first position information and the second position information, and send the touch message to the application processor if the distance is greater than or equal to a preset distance threshold.
In an embodiment of the present invention, the identification module 13 is further configured to obtain a time interval between the first touch operation and the second touch operation if the distance is smaller than a preset distance threshold; and identifying whether the time interval is greater than or equal to a first preset time, and if the time interval is greater than or equal to the first preset time, sending the touch message to the application processor.
In an embodiment of the present invention, the identifying module 13 is further configured to identify whether the first touch operation is a first operation within a second preset time; and if the first touch operation is the first operation within the second preset time, directly sending the touch message to the application processor.
In an embodiment of the present invention, the detection module 11 is further configured to detect the touch operation on the touch panel again at an interval of a third preset time after sending the touch message to the application processor.
In an embodiment of the present invention, the detecting module 11 is further configured to detect a state of the touch panel, and send a prompt message of releasing the touch panel to the application processor when detecting that the touch panel is in a released state.
To sum up, the message sending apparatus according to the embodiment of the present invention can identify whether to send a touch message to the application processor according to the magnitude relationship between the distance between the currently detected first touch operation and the second touch operation that forms the touch message last time and the preset distance threshold, so as to ensure the accuracy of the touch message, and reduce the number of touch messages sent to the application processor, so as to reduce the load pressure of the communication bus.
In order to implement the above embodiment, the present invention further provides a touch device 200, as shown in fig. 8, which includes the above message sending apparatus 100.
The touch device of the embodiment of the invention can identify whether to send the touch message to the application processor according to the magnitude relation between the distance between the currently detected first touch operation and the second touch operation forming the touch message last time and the preset distance threshold, can ensure the accuracy of the touch message, and can reduce the quantity of the touch messages sent to the application processor so as to reduce the load pressure of a communication bus.
In order to implement the above embodiment, the invention further provides an in-vehicle terminal 300, as shown in fig. 9, which includes the touch device 200.
According to the vehicle-mounted terminal provided by the embodiment of the invention, whether the touch message is sent to the application processor can be identified according to the magnitude relation between the distance between the currently detected first touch operation and the second touch operation forming the touch message last time and the preset distance threshold, the accuracy of the touch message can be ensured, and meanwhile, the quantity of the touch messages sent to the application processor can be reduced, so that the load pressure of a communication bus is reduced.
In order to implement the above embodiments, the present invention further provides an electronic device 400, as shown in fig. 10, the electronic device 300 includes a memory 41 and a processor 42. Wherein the processor 42 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 31 for implementing the above-mentioned message transmitting method.
According to the electronic equipment provided by the embodiment of the invention, the processor executes the computer program stored on the memory, whether the touch message is sent to the application processor can be identified according to the size relation between the distance between the currently detected first touch operation and the second touch operation for forming the touch message last time and the preset distance threshold, the accuracy of the touch message can be ensured, and meanwhile, the number of the touch messages sent to the application processor can be reduced, so that the load pressure of a communication bus is reduced.
In order to implement the above embodiments, the present invention also proposes a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described message sending method.
The computer-readable storage medium of the embodiment of the invention stores a computer program and is executed by a processor, and can identify whether to send a touch message to an application processor according to the magnitude relation between the distance between the currently detected first touch operation and the second touch operation which forms the touch message last time and a preset distance threshold, so that the accuracy of the touch message can be ensured, and the number of the touch messages sent to the application processor can be reduced to reduce the load pressure of a communication bus.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and are not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method for sending a message, comprising the steps of:
detecting touch operation on a touch pad, and acquiring first position information of a currently detected first touch operation;
acquiring second position information of a second touch operation for forming the touch message last time;
identifying whether to send a touch message to the application processor according to the first position information and the second position information; wherein the touch message carries the first location information.
2. The method of claim 1, wherein the identifying whether to send the touch message according to the first position information and the second position information comprises:
and acquiring the distance between the first touch operation and the second touch operation according to the first position information and the second position information, and if the distance is greater than or equal to a preset distance threshold, sending the touch message to the application processor.
3. The method of claim 2, further comprising:
if the distance is smaller than a preset distance threshold, acquiring a time interval between the first touch operation and the second touch operation;
and identifying whether the time interval is greater than or equal to a first preset time, and if the time interval is greater than or equal to the first preset time, sending the touch message to the application processor.
4. The method according to any one of claims 1-3, further comprising:
identifying whether the first touch operation is a first operation within a second preset time;
and if the first touch operation is the first operation within the second preset time, directly sending the touch message to the application processor.
5. The method of claim 4, wherein after sending the touch message to the application processor, further comprising:
and detecting the touch operation on the touch panel again at intervals of a third preset time.
6. The method according to any one of claims 1-3, further comprising:
and detecting the state of the touch pad, and sending a prompt message of touch pad release to the application processor when detecting that the touch pad is in a release state.
7. A message transmission apparatus, comprising:
the detection module is used for detecting the touch operation on the touch pad and acquiring first position information of the currently detected first touch operation;
the acquisition module is used for acquiring second position information of a second touch operation for forming the touch message last time;
the identification module is used for identifying whether to send a touch message to the application processor according to the first position information and the second position information; wherein the touch message carries the first location information.
8. A touch device, comprising: the message transmitting apparatus according to claim 7.
9. A vehicle-mounted terminal characterized by comprising: the touch device of claim 8.
10. An electronic device comprising a memory, a processor;
wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the message transmitting method according to any one of claims 1 to 6.
CN201911399677.6A 2019-12-30 2019-12-30 Message sending method and device, touch control equipment, vehicle-mounted terminal and electronic equipment Pending CN111124187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911399677.6A CN111124187A (en) 2019-12-30 2019-12-30 Message sending method and device, touch control equipment, vehicle-mounted terminal and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911399677.6A CN111124187A (en) 2019-12-30 2019-12-30 Message sending method and device, touch control equipment, vehicle-mounted terminal and electronic equipment

Publications (1)

Publication Number Publication Date
CN111124187A true CN111124187A (en) 2020-05-08

Family

ID=70505595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911399677.6A Pending CN111124187A (en) 2019-12-30 2019-12-30 Message sending method and device, touch control equipment, vehicle-mounted terminal and electronic equipment

Country Status (1)

Country Link
CN (1) CN111124187A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731498A (en) * 2015-01-30 2015-06-24 深圳市中兴移动通信有限公司 Mobile terminal mistaken-touch prevention method and device
CN104731502A (en) * 2015-03-27 2015-06-24 努比亚技术有限公司 Double-click recognition method and device based on virtual partition touch screen and mobile terminal
JP2015118424A (en) * 2013-12-17 2015-06-25 株式会社東海理化電機製作所 Information processing device
CN106406621A (en) * 2016-10-10 2017-02-15 努比亚技术有限公司 Mobile terminal and method of processing touch control operation for mobile terminal
CN106855782A (en) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 A kind of method for preventing false touch, device and terminal
CN107135660A (en) * 2015-12-11 2017-09-05 华为技术有限公司 A kind of false-touch prevention method, device and electronic equipment
CN110058780A (en) * 2019-04-23 2019-07-26 深圳达闼科技控股有限公司 A kind of operating method of terminal, terminal and readable storage medium storing program for executing
CN110083266A (en) * 2019-04-02 2019-08-02 上海墨案智能科技有限公司 Information processing method, device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015118424A (en) * 2013-12-17 2015-06-25 株式会社東海理化電機製作所 Information processing device
CN104731498A (en) * 2015-01-30 2015-06-24 深圳市中兴移动通信有限公司 Mobile terminal mistaken-touch prevention method and device
CN104731502A (en) * 2015-03-27 2015-06-24 努比亚技术有限公司 Double-click recognition method and device based on virtual partition touch screen and mobile terminal
CN107135660A (en) * 2015-12-11 2017-09-05 华为技术有限公司 A kind of false-touch prevention method, device and electronic equipment
CN106406621A (en) * 2016-10-10 2017-02-15 努比亚技术有限公司 Mobile terminal and method of processing touch control operation for mobile terminal
CN106855782A (en) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 A kind of method for preventing false touch, device and terminal
CN110083266A (en) * 2019-04-02 2019-08-02 上海墨案智能科技有限公司 Information processing method, device and storage medium
CN110058780A (en) * 2019-04-23 2019-07-26 深圳达闼科技控股有限公司 A kind of operating method of terminal, terminal and readable storage medium storing program for executing

Similar Documents

Publication Publication Date Title
CN108279408B (en) Proximity sensor calibration method and device, mobile terminal and computer readable medium
RU2012144773A (en) METHOD AND DEVICE FOR DETERMINING THE INTERACTION MODE
EP3410285A1 (en) Electronic device and detection method
CN105388992A (en) Fingerprint recognition method and apparatus and terminal
EP3435211B1 (en) Method and appartus for responding to touch operation, storage medium and terminal
EP3001290A1 (en) Data reporting method, apparatus and terminal device
US11470222B2 (en) Communication apparatus and control method for communication apparatus
CN108958764B (en) Application program updating method and device of household appliance and household appliance
CN104598032A (en) Screen control method and device
CN111124187A (en) Message sending method and device, touch control equipment, vehicle-mounted terminal and electronic equipment
CN104615345B (en) Method and device for automatically adjusting position of virtual keyboard
CN103885697A (en) Page operating system and method
CN111226203B (en) Interrupt processing method, master chip, slave chip and multi-chip system
US20130241848A1 (en) Input control device, computer-readable recording medium, and input control method
CN108988413B (en) Mobile terminal charging method and mobile terminal
JP6150712B2 (en) Information processing apparatus and program
US8443332B2 (en) Program calling system and method
CN111417908A (en) ECU (electronic control Unit) recognizer, and recognition method, system, equipment and medium thereof
CN115904103A (en) Control method of terminal touch screen, terminal equipment and storage medium
CN109151160B (en) Communication method, communication device, mobile terminal and storage medium
CN114537848A (en) Distribution box, distribution object positioning method, distribution object information display method, distribution object binding method and distribution object information display device
US20210014038A1 (en) Data transmission method, data transmission device, and computer readable storage medium
CN105094349B (en) Dynamic keyboard matrix functions switching method and system
CN108833660B (en) Parking space information processing method and device and mobile terminal
CN108594705B (en) State detection method and device of mobile terminal, storage medium and mobile terminal

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
CB02 Change of applicant information

Address after: 1008, Shenye logistics building, No. 2088, Baoan North Road, Sungang street, Luohu District, Shenzhen City, Guangdong Province

Applicant after: Baoneng Automobile Group Co.,Ltd.

Address before: 518000 Shenye Logistics Building 1088, 2088 Baoan North Road, Shaanggang Street, Luohu District, Shenzhen City, Guangdong Province

Applicant before: BAONENG AUTOMOBILE Co.,Ltd.

WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200508