CN110312038B - Information prompting method and device, electronic equipment and computer readable storage medium - Google Patents

Information prompting method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN110312038B
CN110312038B CN201910579225.XA CN201910579225A CN110312038B CN 110312038 B CN110312038 B CN 110312038B CN 201910579225 A CN201910579225 A CN 201910579225A CN 110312038 B CN110312038 B CN 110312038B
Authority
CN
China
Prior art keywords
information
vibration
mode
motor
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910579225.XA
Other languages
Chinese (zh)
Other versions
CN110312038A (en
Inventor
景子龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910579225.XA priority Critical patent/CN110312038B/en
Publication of CN110312038A publication Critical patent/CN110312038A/en
Application granted granted Critical
Publication of CN110312038B publication Critical patent/CN110312038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The embodiment of the application provides an information prompting method and device, electronic equipment and a computer readable storage medium, which are applied to the electronic equipment, wherein the method comprises the following steps: acquiring placement state information and an information prompt mode of the electronic equipment; the placement state information represents the position of the space where the electronic equipment is located; receiving an information prompt instruction of the electronic equipment; if the placement state information is in a horizontal state and the information prompt mode is in a vibration mode, responding to an information prompt instruction, acquiring preset vibration audio data, playing the preset vibration audio data, and synchronously vibrating through a motor, so that synchronous prompt of information combining audio and vibration is realized; and the preset vibration audio data represent that the frequency of the vibration sound is consistent with the preset vibration frequency of the motor. The information prompting method provided by the embodiment of the application can improve the vibration prompting effect.

Description

Information prompting method and device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to an electronic application technology, and relates to an information prompting method and device, electronic equipment and a computer readable storage medium.
Background
The realization of functions such as vibration prompt of information in the electronic equipment can not leave a vibration motor, and the vibration motor mainly plays a role in touch screen vibration reminding in the 3rd-Generation (3G) era and the 4th-Generation (4G) era of the third-Generation mobile communication technology; in the fifth Generation mobile communication technology (5th-Generation, 5G) era, a vibration motor needs to complete simulation of different scenes, such as games like a roughneck with a big fire at a mobile phone end, and a chicken gunfight game, so that a user requires that a mobile phone can provide more real game experience and real-time vibration feedback in the game experience process; in addition, with the extreme development of the full-face screen, the entity keys gradually disappear, and the requirement on the vibration feedback experience during touch is higher and higher.
Currently, the trend of vibration motors in electronic devices will be towards linear motors. However, the existing vibration sound fed back by the vibration motor is weak, the information prompt requirement cannot be met, and the prompt effect is poor.
Disclosure of Invention
The embodiment of the application provides an information prompting method and device, electronic equipment and a computer readable storage medium, which can improve the information prompting effect.
The technical scheme of the application is realized as follows:
the embodiment of the application provides an information prompting method, which comprises the following steps:
acquiring the placement state information and the information prompt mode of the electronic equipment; wherein the placement state information represents a position of a space where the electronic device is located;
receiving an information prompt instruction of the electronic equipment;
if the placement state information is in a horizontal state and the information prompt mode is in a vibration mode, responding to the information prompt instruction, acquiring preset vibration audio data, playing the preset vibration audio data, and synchronously vibrating through a motor, so that synchronous prompt of information combining audio and vibration is realized; and the preset vibration audio data represent that the frequency of vibration sound is consistent with the preset vibration frequency of the motor.
In the above scheme, the playing the preset vibration audio data includes:
triggering a control module of an audio power amplifier through an I2S bus, starting the audio power amplifier, calling preset vibration audio data through the audio power amplifier, and playing the preset vibration audio data through a loudspeaker.
In the above aspect, the synchronizing vibrating by a motor includes:
the control module of I2C bus trigger motor drive is passed through in step, starts motor drive calls the wave form of predetermineeing vibration frequency, and passes through motor drive control X axle linear motor produces electromagnetic induction, makes the oscillator produce the effort, and the effort makes the spring that sets up along the X axle produce predetermine vibration frequency's deformation, the realization is along the left and right sides vibration of X axle direction.
In the above scheme, the acquiring the placement state information and the information prompt mode of the electronic device includes:
detecting placement state information of the electronic device through a sensor;
detecting a value of a register storing an information prompt mode; and acquiring an information prompt mode of the electronic equipment based on the corresponding relation between the register value and the mode.
In the above solution, when the sensor is an acceleration sensor, the detecting the placement state information of the electronic device by the sensor includes:
and when the Z-axis component of the acceleration sensor is a preset threshold value and the X-axis component and the Y-axis component are null, representing that the placement state information of the electronic equipment is in a horizontal state.
In the above solution, when the sensor is an angular velocity sensor, the detecting, by the sensor, the placement state information of the electronic device includes:
and when the angle of the angular velocity sensor rotating around the X is 0-360 degrees, representing that the placement state information of the electronic equipment is in a horizontal state.
An embodiment of the present application provides an information prompt device, including:
the acquisition unit is used for acquiring the placement state information and the information prompt mode of the electronic equipment; wherein the placement state information represents a position of a space in which the electronic device is located;
the receiving unit is used for receiving an information prompt instruction of the electronic equipment;
the obtaining unit is further configured to respond to the information prompting instruction to obtain preset vibration audio data if the placement state information is in a horizontal state and the information prompting mode is a vibration mode,
a playing unit for playing the preset vibration audio data,
the vibration unit is used for synchronously vibrating through the motor so as to realize synchronous information prompt of audio and vibration combination; and the preset vibration audio data represent that the frequency of vibration sound is consistent with the preset vibration frequency of the motor.
In the above device, the playing unit is further configured to trigger a control module of an audio power amplifier through an I2S bus, start the audio power amplifier, call preset vibration audio data through the audio power amplifier, and play the preset vibration audio data through a speaker.
In the device, the vibration unit is further used for synchronously triggering a control module of the motor drive through an I2C bus, starting the motor drive, calling a waveform of a preset vibration frequency, and controlling an X-axis linear motor to generate electromagnetic induction through the motor drive, so that the vibrator generates an acting force, and the acting force enables a spring arranged along an X axis to generate the deformation of the preset vibration frequency, thereby realizing the left-right vibration along the X axis direction.
In the above apparatus, the obtaining unit is further configured to detect placement state information of the electronic device through a sensor; and detecting a value of a register storing the information prompt mode; and acquiring an information prompt mode of the electronic equipment based on the corresponding relation between the register value and the mode.
In the above apparatus, when the sensor is an acceleration sensor, the obtaining unit is further configured to represent that the placement state information of the electronic device is in a horizontal state when a Z-axis component of the acceleration sensor is a preset threshold and an X-axis component and a Y-axis component are empty.
In the above apparatus, when the sensor is an angular velocity sensor, the obtaining unit is further configured to represent that the placement state information of the electronic device is in a horizontal state when an angle of rotation of the angular velocity sensor around X is 0 degree to 360 degrees.
An embodiment of the present application provides an electronic device, including:
a memory for storing executable instructions;
and the processor is used for realizing the information prompting method provided by the embodiment of the application when the executable instructions stored in the memory are executed.
The embodiment of the application provides a computer-readable storage medium, which stores executable instructions and is used for causing a processor to execute the executable instructions so as to realize the information prompting method provided by the embodiment of the application.
The embodiment of the application provides an information prompting method and device, electronic equipment and a computer readable storage medium, wherein the information prompting device can be in a horizontal state when the placement state information is placed, the information prompting mode is a vibration mode, and when the three conditions of receiving an information prompting instruction are met, the information prompting function is realized through playing preset vibration audio data and vibrating through a motor, so that the problem that the prompt is overlooked due to weak vibration of the motor in working is solved, and the information prompting effect is improved.
Drawings
FIG. 1 is a schematic diagram of an exemplary X-axis linear motor vibration principle provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of an exemplary Z-axis linear motor vibration principle provided by an embodiment of the present application;
fig. 3 is a top view of an X-axis linear motor when the information presentation device provided by the embodiment of the present application is horizontally placed;
FIG. 4 is a top view of a Z-axis linear motor with a horizontal placement of an information-prompting device provided by an embodiment of the present application;
fig. 5 is a flowchart of an information prompting method provided in the embodiment of the present application;
FIG. 6 is a cross-sectional view of an X-axis linear motor taken along line A-A when the information prompt device provided by the embodiment of the present application is placed horizontally;
FIG. 7 is a side view of an X-axis linear motor with the information prompt device according to an embodiment of the present application positioned horizontally;
FIG. 8 is a side view of a Z-axis linear motor with the information prompt device according to an embodiment of the present application positioned horizontally;
fig. 9 is a flowchart illustrating an example of an information prompting method according to an embodiment of the present application;
FIG. 10 is a graph comparing an exemplary motor vibration waveform with a simulated vibration sound waveform of a loudspeaker provided in an embodiment of the present application;
fig. 11 is a schematic structural diagram of an information prompt apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, specific technical solutions of the present application will be described in further detail below with reference to the accompanying drawings in the embodiments of the present application. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the present application is for the purpose of describing the embodiments of the present application only and is not intended to be limiting of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Vibration motors are mainly classified into two types, a rotor motor and a linear motor; wherein, the theory of operation of rotor motor does: the electromagnetic induction principle is utilized, the rotation of the motor shaft center is driven by electromagnetic force, so that the eccentric iron is driven to rotate, and the generated centrifugal force enables the motor to rotate quickly to vibrate. The rotor motor has the advantages of mature technology, low cost, simple structure and the like. However, the rotor motor has the defects of slow response speed, slow brake, no crisp vibration, no complex vibration, large power consumption and the like. The motor employed in the embodiments of the present application may be a linear motor. The linear motor is a new type of motor which moves in a linear form with a sprung mass, and converts electrical energy directly into linear motion mechanical energy without any intermediate conversion device. The linear motor is generally classified into an X-axis linear motor (i.e., a lateral linear motor) and a Z-axis linear motor according to a vibration direction. Assuming that the horizontal direction is the X-axis direction, as shown in fig. 1, the vibrator of the X-axis linear motor vibrates left and right in the X-axis direction through the mass block under the action of the spring; as shown in fig. 2, the vibrator of the Z-axis linear motor vibrates up and down in the Z-axis direction by the mass under the action of the spring.
For the mobile phone, the thickness is thinner, so that the vibrator vibration displacement of the Z-axis linear motor is smaller, and the driving waveform adjusting space is smaller; the length of the X-axis linear motor capable of vibrating in the X direction is long, the displacement of the vibrator is large, the vibration space for driving waveform adjustment is large, the vibration sense is strong, and the vibration is more crisp and more attractive. Therefore, when a user holds the mobile phone, the vibration of the X-axis linear motor can drive the mobile phone to vibrate left and right, and the vibration is sensed to the fingers and the palm of the user. Table 1 below is a comparison table of a rotor motor and a linear motor. As can be seen from the table, the X-axis linear motor can generate a large vibration amount in the vibration direction, and the development trend of the vibration motor in the mobile phone will be toward the X-axis linear motor.
TABLE 1
Figure BDA0002112711790000061
The vibration experience from the X-axis linear motor is best from the data and from the vibration experience of a hand-held handset. However, the X-axis linear motor has a greatest experience disadvantage, taking a mobile phone equipped with the X-axis linear motor as an example, as shown in fig. 3, that is, when the mobile phone equipped with the X-axis linear motor is laid flat (for example, placed on a desktop), because the mobile phone vibrates left and right (in the X direction), when the X-axis linear motor vibrates left and right, the machine does not directly collide with the desktop in the Z direction, so that the vibration sound of the machine when the desktop is placed on the desktop is small, and therefore when a user sets the incoming call mute vibration, the poor experience of missed call often occurs because the sound is small. At present, machines adopting X-axis linear motors, such as various hot-pin mobile phones, have the market feedback problem of missed calls due to the fact that the silent vibration sound of incoming calls is weak. Further, taking a mobile phone equipped with a Z-axis linear motor as an example, as shown in fig. 4, when the mobile phone equipped with the Z-axis linear motor is laid flat (for example, placed on a table), since the mobile phone vibrates up and down (in the Z direction), when the Z-axis linear motor vibrates up and down, the machine directly collides with the table top in the up and down direction, but the space in which the motor can vibrate up and down is very small due to the thickness of the mobile phone, which also causes a problem that the machine vibrates less when placed on the table top, and there is no vibration in the left and right directions, which causes very weak vibration feeling felt by fingers when a user holds the mobile phone by hand.
According to the comparison result of the test data of the vibration quantity of the X-axis linear motor in the X-axis direction and the Z-axis direction, the machine provided with the X-axis linear motor has small vibration quantity in the Z-axis direction, the vibration quantity of the X-axis is 1.3G, and the vibration quantity of the Z-axis is 0.1G.
Based on the requirements of the 5G era on simulated vibration and virtual experience, the X-axis linear motor is an application trend, and the embodiment of the application solves the problem that the most basic X-axis linear motor has a weak vibration component in the Z axis (a typical application scene is that a mobile phone is horizontally placed on a desktop, and the electricity is muted, the vibration sound is weak, so that the call is missed) through motor inclined assembly.
The X-axis linear motor is the application trend of a mobile phone motor in the future, with the arrival of the 5G era, the number of devices in the mobile phone is increased, the requirement of people on endurance power consumption is higher and higher, and the internal space of the mobile phone is small in size. Basically, mobile phone manufacturers do not choose a very large-sized X-axis linear motor to be assembled in the mobile phone, but use a small-sized X-axis linear motor, so that the problem of weak electric shock on the horizontal desktop is encountered, and the problem of weak electric shock on the horizontal desktop is more serious due to the fact that the small-sized X-axis linear motor has a weaker vibration component in the Z-axis, which becomes a core pain point problem.
Based on this, fig. 5 is a schematic flow chart of a detection method provided in an embodiment of the present application, where the information prompting method in the embodiment of the present application is applied to an electronic device, and the following embodiments adopt a virtual device in the electronic device, that is, an information providing device is explained as an execution subject, and as shown in fig. 5, the method includes:
s101, obtaining placement state information and an information prompt mode of the electronic equipment; wherein the placement state information represents a position of a space where the electronic device is located.
The information prompting method provided by the embodiment of the application is to provide a method for prompting a user in a vibration mode or a user using an information prompting device.
The information presentation apparatus herein is provided with a sensor, so that the information presentation apparatus can detect the placement state information by the sensor, and acquire the information presentation mode by detecting the setting state of the information presentation mode.
In the embodiment of the present application, the placement state information represents the position of the space where the information prompting device is located, and may also be understood as the situation of placement. Such as a horizontal state, a vertical state, an inclined state, etc., and the embodiments of the present application are not limited. The information prompting device can acquire the placing state information of the information prompting state at the moment through different types of sensors.
The information prompting mode represents a prompting mode adopted once the information prompting device receives the information to be prompted. The information prompting mode may include a ring mode, a vibration mode, an indicator light mode, a flight mode, a mute mode, and the like, and the embodiment of the present application does not limit the form of the information prompting mode, as long as the purpose of prompting the user is achieved.
It should be noted that, in the embodiment of the present application, the information prompting mode in the information prompting device is set or switched by the user according to actual needs or scenes. The actual setting process is to receive the information prompt setting instruction and set the mode indicated by the information prompt setting instruction as the information prompt mode. Since the user can switch the information presentation mode at any time, the information presentation mode acquired by the information presentation apparatus here is the mode set when the information presentation setting was last performed.
In some embodiments of the present application, the information alert setting detects a value of a register storing the information alert mode; and acquiring an information prompt mode of the electronic equipment based on the corresponding relation between the register value and the mode.
It should be noted that the modes corresponding to the values of the registers storing different information presentation modes are different, so that the information presentation setting mode at this time can be found by detecting the value of the register.
In the embodiment of the present application, the sensor may be an acceleration sensor, a gyroscope, or the like, as long as the period of the placement state information of the information presentation device can be determined, and the embodiment of the present application is not limited.
Illustratively, in some embodiments of the present application, the sensor is an acceleration sensor, and when a Z-axis component of the acceleration sensor is a preset threshold and the X-axis component and the Y-axis component are null, the placement state information representing the electronic device is in a horizontal state.
It should be noted that, in the embodiment of the present application, an acceleration sensor is disposed in the information prompting device, and when both an X-axis component and a Y-axis component of the acceleration sensor are empty and only a Z-axis component is not empty, it is characterized that the acceleration sensor detects that the information prompting device is placed in a full horizontal state, that is, the placement state information is in a horizontal state.
The preset threshold represents the gravity component, and may be 1g, and the specific value of the preset threshold may be determined by actual design, which is not limited in the embodiment of the present application. The X-axis component and the Y-axis component are both null, and null may be represented by 0.
In some embodiments of the present application, the sensor is an angular velocity sensor, and the placement state information representing the electronic device is a horizontal state when an angle of rotation of the angular velocity sensor around X is 0 to 360 degrees.
The information prompting device may be a variety of electronic devices with a vibration function, such as a mobile phone (e.g., a mobile phone), a tablet computer, and a wearable device (e.g., a smart band, a watch, etc.), and the embodiments of the present application are not limited thereto.
S102, receiving an information prompt instruction of the electronic equipment.
The information prompting device is a device capable of prompting information, such as a mobile phone, and the realization of the information prompting function needs the information prompting device to execute when receiving an information prompting instruction.
In the embodiment of the present application, the information prompting device receives an information prompting instruction of the electronic device, and the information prompting method provided in the embodiment of the present application is implemented only when the information prompting instruction is received.
It should be noted that, in the embodiment of the present application, since the information prompting function performs prompting when information comes, the information prompting device receives an information prompting instruction when information comes. The information may refer to a notification message, a communication message, or a custom prompt message, and the like, and the embodiment of the present application is not limited. The notification message may be a system notification message, an application system notification message, or the like, the communication message may be a social contact message notification of a social contact application, or may be a communication message such as an incoming call, a short message, or the like, and the user-defined prompt information may be a user-defined alarm or memo, which is not limited in the embodiment of the present application. When receiving the information, the information prompting device generates an information prompting instruction, and displays the information based on the information prompting instruction, such as an incoming call prompt, a short message prompt, a chat prompt or an alarm clock prompt.
S103, if the placement state information is in a horizontal state and the information prompt mode is in a vibration mode, responding to an information prompt instruction, acquiring preset vibration audio data, playing the preset vibration audio data, and synchronously vibrating through a motor, so that synchronous prompt of information combining audio and vibration is realized; and the preset vibration audio data represent that the frequency of the vibration sound is consistent with the preset vibration frequency of the motor.
When the information prompting device receives the information prompting instruction, whether the self-placing state information and the information prompting mode accord with the preset condition or not can be judged, and whether the information prompting function is carried out or not can be realized.
In the embodiment of the present application, the preset condition is that the placement state information is a horizontal state, and the information prompt mode is a vibration mode. When the information prompting device judges that the placing state information is in a horizontal state and the information prompting mode is in a vibration mode, the information prompting device can respond to the information prompting instruction and perform an information prompting function. Here, the information presentation means performs information presentation by combining audio and vibration. On one hand, playing preset vibration audio data to prompt information; on the other hand, because in the vibration mode, the information synchronous prompting can be carried out by adopting a vibration mode. The two aspects are implemented synchronously. And the preset vibration audio data represent that the frequency of the vibration sound is consistent with the preset vibration frequency of the motor.
In the embodiment of the application, the audio frequency of the preset audio data in the information prompting device is consistent with the preset vibration frequency of the motor during working, and the sound of the preset audio data is noise similar to the vibration sound, so that the playing assistance vibration prompting of the preset audio data is realized in the information prompting mode, the vibration sound effect is more obvious, and a user can notice the vibration sound effect more easily.
It should be noted that the preset audio data may be acquired and stored in advance as a noise that is similar to the vibration sound. Still be provided with audio power amplifier, speaker, motor drive and motor among the information prompt device, wherein, audio power amplifier and speaker can be used when playing preset audio data, and motor drive and motor use when being used for the vibration.
In some embodiments of the present application, the information prompting device responds to the information prompting instruction when meeting the preset condition, starts the audio power amplifier, controls the speaker to play the preset vibration audio data through the audio power amplifier, and synchronously starts the motor drive, and controls the motor to work through the motor drive, so as to generate vibration at the preset vibration frequency.
It should be noted that, when the information prompting device meets the preset condition, the information prompting device responds to the information prompting instruction, triggers the control module of the audio power amplifier through the I2S bus, starts the audio power amplifier, calls the preset vibration audio data through the audio power amplifier, and plays the preset vibration audio data through the speaker. And synchronously triggering a control module of the motor drive through an I2C bus, starting the motor drive, calling a waveform of a preset vibration frequency, controlling an X-axis linear motor to generate electromagnetic induction through the motor drive, enabling the vibrator to generate an acting force, and enabling a spring arranged along the X axis to generate deformation of the preset vibration frequency through the acting force, so as to realize left-right vibration along the X axis direction.
The preset vibration frequency is determined by the design of the motor, and the embodiment of the present application is not limited. The information prompt instruction can trigger the audio power amplifier to start through an I2S bus, so that the audio power amplifier controls the loudspeaker to play preset vibration audio data; and the information prompt command can trigger the motor drive to start through the I2C bus, and the motor drive is adopted to drive the motor to start working according to the preset vibration frequency.
It is understood that if the linear motor is obliquely disposed on the surface of the middle frame body, since the linear motor vibrates in an oblique direction or a direction perpendicular to the oblique direction when vibrating, it is possible to generate vibration components in at least two mutually perpendicular directions. If the linear motor is placed horizontally on a table, no vibration component is generated in at least two directions perpendicular to each other. For example, suppose the information prompting device is a smart phone, as shown in fig. 3, the screen of the smart phone is placed on a desktop in a downward manner, and a three-dimensional coordinate system is established with the lower left corner of the smart phone as an origin, wherein a short frame of the smart phone is an X axis, a long frame of the smart phone is a Y axis, and a vertical direction of the desktop is a Z axis; for example, the X-axis linear motor 201 is horizontally disposed on the middle plate of the middle frame body, and the X direction is the moving direction of the X-axis linear motor, so that when the X-axis linear motor vibrates back and forth in the X direction, a vibration component is generated on the X axis. This is the motor operating principle.
Based on this, an information presentation device will be described taking an X-axis motor as an example. The information presentation device in the embodiment of the present application is horizontally placed on a table top as shown in fig. 3, and an a-a sectional view taken from a linear motor of the information presentation device as a sectional plane may be as shown in fig. 6, including: a linear motor 201 and a middle frame body 202; wherein, a card slot 203 for installing the linear motor 201 is arranged on the middle frame main body 202, and the bottom of the card slot 203 is in a structure parallel to the X axis; the linear motor 201 is fitted in the card slot 203, so that when the linear motor 201 vibrates, the motor can generate a vibration component in the X-axis direction to vibrate the message presentation device left and right in the X-axis direction, as can be seen from the side view shown in fig. 7.
Take a Z-axis motor as an example, an information presentation device is described. As shown in fig. 4, when the information prompting device in the embodiment of the present application is horizontally placed on a desktop, as can be seen from the side view shown in fig. 8, when the linear motor vibrates, a vibration component can be generated in the Z-axis direction to drive the information prompting device to vibrate up and down in the Z-axis direction.
Based on this, in the embodiment of the application, in the process of realizing information prompt by adopting the linear motor to vibrate, preset audio data are adopted to synchronously simulate the sound of vibration to be emitted, so that the vibration perception is improved, the problem of poor feedback experience due to weak vibration is solved, a typical application scene is that a desktop is horizontally placed on a mobile phone, and the incoming call mute vibration sound is weak, so that the call is missed.
For example, as shown in fig. 9, when the mobile phone (information prompting device) detects that the mobile phone is horizontally placed through the acceleration sensor and is set to the incoming call vibration mode, and when an incoming call is received, the representation meets the trigger preset condition, the audio power amplifier is started through the IIS bus to control the speaker to play the audio file synchronized with the vibration frequency of the motor, the audio file is built in the AP of the mobile phone, and the motor drive is started through the IIC bus to control the motor to vibrate according to the preset vibration frequency. Here, as shown in fig. 10, the sound waveform of the speaker pseudo vibration is identical to the motor vibration waveform.
It can be understood that the information prompting device can be in a horizontal state when the state information is placed, the information prompting mode is a vibration mode, when the three conditions of receiving the information prompting instruction are met, the vibration audio data are preset through playing and the motor vibrates, and the function of information prompting is achieved together, so that the problem that the vibration of the motor is weak when the motor works and the prompting is neglected is solved, and the effect of information prompting is improved.
In some embodiments of the present application, after S103, the method may further include S104. The following were used:
and S104, when receiving the end information prompt instruction, stopping playing the preset vibration audio data, ending the motor to work, and stopping vibration.
After the information presentation device implements the information presentation in the vibration mode by combining audio and vibration, an end information presentation instruction for ending the information presentation function may be received.
In the embodiment of the application, the information prompting function of the notification message can be finished by presetting the preset time, and then when the preset time is up, the end information prompting instruction is generated by representation, namely the end information prompting instruction is received; the communication message may be a message processing message that receives an end message prompt instruction, or a message processing message that a user has responded to a message prompt. For example, the communication message is checked, the communication message is triggered, and the details may be to connect the incoming call, hang up the incoming call, and the like.
The preset time is determined by actual design, the preset time of a general notification message or a text communication message and the like is short and may be 2 seconds and the like, and the preset time of a communication message such as voice or video and the like may be longer, for example, 30 seconds and the like, which is not limited in the embodiment of the present application.
In the embodiment of the application, when receiving the end information prompting instruction, the information prompting device stops playing the preset vibration audio data, ends the work of the motor, and stops vibrating, thereby ending the information prompting function.
It can be understood that the information prompting device can stop the playing of the preset audio data and the ending of the vibration simultaneously when receiving the ending information prompting instruction, synchronously realize the stopping of the prompting, realize the synchronization of the simulated vibration and the actual vibration effect, and also perform the accurate matching of two realization modes of the starting and ending of the vibration, thereby further improving the vibration effect.
FIG. 11 is a schematic flow chart diagram illustrating an alternative information prompting device provided by the embodiment of the present disclosure; the embodiment of the present application provides an information prompt device 1, including:
an obtaining unit 10, configured to obtain placement state information and an information prompting mode of an electronic device; wherein the placement state information represents a position of a space where the electronic device is located;
the receiving unit 11 is configured to receive an information prompt instruction of the electronic device;
the obtaining unit 10 is further configured to, if the placement status information is in a horizontal status and the information prompt mode is a vibration mode, obtain preset vibration audio data in response to the information prompt instruction,
a playing unit 12 for playing the preset vibration audio data,
the vibration unit 13 is used for synchronously vibrating through a motor, so that synchronous information prompt of audio and vibration combination is realized; and the preset vibration audio data represent that the frequency of vibration sound is consistent with the preset vibration frequency of the motor.
In some embodiments of the present application, the playing unit 12 is further configured to trigger a control module of an audio power amplifier through an I2S bus, start the audio power amplifier, call preset vibration audio data through the audio power amplifier, and play the preset vibration audio data through a speaker.
In some embodiments of the present application, vibration unit 13 is also used for triggering motor drive's control module through the I2C bus in step, starts motor drive calls the wave form of predetermineeing the vibration frequency, and passes through motor drive control X axis linear motor produces electromagnetic induction, makes the oscillator produce the effort, and the effort makes the spring that sets up along the X axle produce predetermine the deformation of vibration frequency, realize the vibration about along the X axle direction.
In some embodiments of the present application, the obtaining unit 10 is further configured to detect placement state information of the electronic device through a sensor; and detecting a value of a register storing the information prompt mode; and acquiring an information prompt mode of the electronic equipment based on the corresponding relation between the register value and the mode.
In some embodiments of the present application, when the sensor is an acceleration sensor, the obtaining unit 10 is further configured to characterize that the placement state information is in a horizontal state when a Z-axis component of the acceleration sensor is a preset threshold and an X-axis component and a Y-axis component are null.
In some embodiments of the present application, when the sensor is an acceleration sensor, the obtaining unit 10 is further configured to characterize the placement state information of the electronic device as a horizontal state when a Z-axis component of the acceleration sensor is a preset threshold and an X-axis component and a Y-axis component are null.
In practical applications, the obtaining unit 10 may be implemented by a processor, the playing unit 12 may be implemented by a player disposed on an electronic device, such as an audio power amplifier and a speaker, the vibrating unit 13 may be implemented by a motor device disposed on the electronic device, and the receiving unit 11 may be implemented by a communication interface disposed on the electronic device, which is not limited in the embodiment of the present application.
Based on this, as shown in fig. 12, an embodiment of the present application provides an electronic device, including:
a memory 20 for storing executable instructions;
the processor 21 is configured to implement the information prompting method provided in the embodiment of the present application when the processor executes the executable instructions stored in the memory.
It should be noted that, in practical applications, in the embodiment of the present application, an audio power amplifier, a speaker, a motor driver, and a motor (the motor driver and the motor may form a motor device) are further disposed in the electronic device, and these devices cooperate with the processor to implement the information prompting method provided in the embodiment of the present application.
It is noted that the electronic device may comprise a communication interface. Each component in the electronic equipment realizes information interaction with operation or equipment outside the electronic equipment through the communication interface. The electronic device may also include a bus system by which various components in the electronic device are coupled together. It will be appreciated that a bus system is used to enable communications among the components. The bus system includes a power bus, a control bus, and a status signal bus in addition to a data bus.
The processor may be implemented by software, hardware, firmware or a combination thereof, and may use a circuit, a single or multiple Application Specific Integrated Circuits (ASICs), a single or multiple general purpose integrated circuits, a single or multiple microprocessors, a single or multiple programmable logic devices, or a combination of the foregoing circuits or devices, or other suitable circuits or devices, so as to enable the processor 21 to execute the corresponding steps of the data processing method in the foregoing embodiments of the measurement platform.
The components in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash Memory (FlashMemory), a magnetic surface Memory, an optical Disc, or a Read Only Disc (CD-ROM), are not limited in the embodiments of the present application.
Therefore, the embodiment of the present application provides a computer-readable storage medium, which stores executable instructions for causing a processor to execute, so as to implement the information prompting method provided by the embodiment of the present application.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (10)

1. An information prompting method is applied to electronic equipment, and is characterized by comprising the following steps:
acquiring the placement state information and the information prompt mode of the electronic equipment; wherein the placement state information represents a position of a space where the electronic device is located;
receiving an information prompt instruction of the electronic equipment;
if the placement state information is in a horizontal state and the information prompt mode is in a vibration mode, responding to the information prompt instruction, acquiring preset vibration audio data, playing the preset vibration audio data, and synchronously vibrating through a motor, so that synchronous prompt of information combining audio and vibration is realized; and the preset vibration audio data represent that the frequency of vibration sound is consistent with the preset vibration frequency of the motor.
2. The method of claim 1, wherein the playing the preset vibration audio data comprises:
triggering a control module of an audio power amplifier through an I2S bus, starting the audio power amplifier, calling preset vibration audio data through the audio power amplifier, and playing the preset vibration audio data through a loudspeaker.
3. The method of claim 1 or 2, wherein the synchronizing is by a motor for vibration, comprising:
the control module of I2C bus trigger motor drive is passed through in step, starts motor drive calls the wave form of predetermineeing vibration frequency, and passes through motor drive control X axle linear motor produces electromagnetic induction, makes the oscillator produce the effort, and the effort makes the spring that sets up along the X axle produce predetermine vibration frequency's deformation, the realization is along the left and right sides vibration of X axle direction.
4. The method according to claim 1 or 2, wherein the acquiring of the placement state information and the information prompt mode of the electronic device comprises:
detecting placement state information of the electronic device through a sensor;
detecting a value of a register storing an information prompt mode; and acquiring an information prompt mode of the electronic equipment based on the corresponding relation between the register value and the mode.
5. The method according to claim 4, wherein when the sensor is an acceleration sensor, the detecting the placement state information of the electronic device by the sensor includes:
and when the Z-axis component of the acceleration sensor is a preset threshold value and the X-axis component and the Y-axis component are null, representing that the placement state information of the electronic equipment is in a horizontal state.
6. The method according to claim 4, wherein when the sensor is an angular velocity sensor, the detecting placement state information of the electronic device by the sensor includes:
and when the angle of the angular velocity sensor rotating around the X is 0-360 degrees, representing that the placement state information of the electronic equipment is in a horizontal state.
7. An information presentation device, comprising:
the acquisition unit is used for acquiring the placement state information and the information prompt mode of the electronic equipment; wherein the placement state information represents a position of a space in which the electronic device is located;
the receiving unit is used for receiving an information prompt instruction of the electronic equipment;
the obtaining unit is further configured to respond to the information prompting instruction to obtain preset vibration audio data if the placement state information is in a horizontal state and the information prompting mode is a vibration mode,
a playing unit for playing the preset vibration audio data,
the vibration unit is used for synchronously vibrating through the motor so as to realize synchronous information prompt of audio and vibration combination; and the preset vibration audio data represent that the frequency of vibration sound is consistent with the preset vibration frequency of the motor.
8. The apparatus of claim 7,
the acquisition unit is also used for detecting the placement state information of the electronic equipment through a sensor;
detecting a value of a register storing an information prompt mode; and acquiring an information prompt mode of the electronic equipment based on the corresponding relation between the register value and the mode.
9. An electronic device, comprising:
a memory for storing executable instructions;
a processor, configured to execute the executable instructions stored in the memory, to implement the method of claims 1-6.
10. A computer-readable storage medium having stored thereon executable instructions for causing a processor, when executed, to implement the method of claims 1-6.
CN201910579225.XA 2019-06-28 2019-06-28 Information prompting method and device, electronic equipment and computer readable storage medium Active CN110312038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910579225.XA CN110312038B (en) 2019-06-28 2019-06-28 Information prompting method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910579225.XA CN110312038B (en) 2019-06-28 2019-06-28 Information prompting method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110312038A CN110312038A (en) 2019-10-08
CN110312038B true CN110312038B (en) 2020-10-02

Family

ID=68079506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579225.XA Active CN110312038B (en) 2019-06-28 2019-06-28 Information prompting method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110312038B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112865612B (en) * 2019-11-27 2023-05-16 北京小米移动软件有限公司 Electronic device, control method and device thereof, and readable storage medium
CN111193457B (en) * 2019-12-16 2023-11-10 Oppo广东移动通信有限公司 Vibration device, control method thereof, electronic apparatus, and storage medium
CN111263008A (en) * 2020-04-01 2020-06-09 惠州Tcl移动通信有限公司 Incoming call reminding method and device, storage medium and mobile terminal
CN111443815A (en) * 2020-04-22 2020-07-24 维沃移动通信有限公司 Vibration reminding method and electronic equipment
CN114979349B (en) * 2021-02-22 2023-05-02 腾讯科技(深圳)有限公司 Parameter adjustment method, device, computer readable storage medium and electronic equipment
WO2022242300A1 (en) * 2021-05-20 2022-11-24 荣耀终端有限公司 Method and device for adjusting vibration waveform of linear motor
CN114500847B (en) * 2022-02-12 2023-12-26 北京蜂巢世纪科技有限公司 Focusing prompt method based on vibration motor, intelligent head-mounted display device and medium
CN114613376A (en) * 2022-03-25 2022-06-10 歌尔股份有限公司 Vibration processing method and device of wearable device, wearable device and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585431A (en) * 2003-08-18 2005-02-23 Sk电信技术有限公司 Call announce method and mobile communication terminal for using it
EP1669893A2 (en) * 2004-12-08 2006-06-14 NTT DoCoMo, Inc. Information notification system and information notification method
CN102572118A (en) * 2012-03-01 2012-07-11 惠州Tcl移动通信有限公司 Situational pattern automatic switching method based on a mobile phone and the mobile phone
CN103167168A (en) * 2013-02-04 2013-06-19 江苏大学 Method and device of switching contextual model of cell phone automatically
JP2013150201A (en) * 2012-01-20 2013-08-01 Nec Access Technica Ltd Terminal device, notification control method, and program
CN103782253A (en) * 2011-09-09 2014-05-07 高通股份有限公司 Transmission of emotions as haptic feedback
CN105204542A (en) * 2015-09-11 2015-12-30 小米科技有限责任公司 Motor vibration control method and device
CN106375607A (en) * 2016-11-23 2017-02-01 广州艾想电子科技有限公司 Intelligent prompt mode switching method and mobile device
CN107346173A (en) * 2016-05-06 2017-11-14 中兴通讯股份有限公司 A kind of terminal based reminding method and device, terminal
CN108347525A (en) * 2018-01-12 2018-07-31 广东欧珀移动通信有限公司 Electronic equipment shake control method, apparatus and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8793094B2 (en) * 2010-06-04 2014-07-29 Apple Inc. Vibrator motor speed determination in a mobile communications device
US9891714B2 (en) * 2014-12-24 2018-02-13 Immersion Corporation Audio enhanced simulation of high bandwidth haptic effects

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585431A (en) * 2003-08-18 2005-02-23 Sk电信技术有限公司 Call announce method and mobile communication terminal for using it
EP1669893A2 (en) * 2004-12-08 2006-06-14 NTT DoCoMo, Inc. Information notification system and information notification method
CN103782253A (en) * 2011-09-09 2014-05-07 高通股份有限公司 Transmission of emotions as haptic feedback
JP2013150201A (en) * 2012-01-20 2013-08-01 Nec Access Technica Ltd Terminal device, notification control method, and program
CN102572118A (en) * 2012-03-01 2012-07-11 惠州Tcl移动通信有限公司 Situational pattern automatic switching method based on a mobile phone and the mobile phone
CN103167168A (en) * 2013-02-04 2013-06-19 江苏大学 Method and device of switching contextual model of cell phone automatically
CN105204542A (en) * 2015-09-11 2015-12-30 小米科技有限责任公司 Motor vibration control method and device
CN107346173A (en) * 2016-05-06 2017-11-14 中兴通讯股份有限公司 A kind of terminal based reminding method and device, terminal
CN106375607A (en) * 2016-11-23 2017-02-01 广州艾想电子科技有限公司 Intelligent prompt mode switching method and mobile device
CN108347525A (en) * 2018-01-12 2018-07-31 广东欧珀移动通信有限公司 Electronic equipment shake control method, apparatus and electronic equipment

Also Published As

Publication number Publication date
CN110312038A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110312038B (en) Information prompting method and device, electronic equipment and computer readable storage medium
CN111212209B (en) Camera module and electronic equipment
CN109379485B (en) Application feedback method, device, terminal and storage medium
CN107982918B (en) Game game result display method and device and terminal
US10471346B2 (en) Information processing system, non-transitory storage medium having stored therein information processing program, information processing apparatus, and information processing method
CN110112984A (en) A kind of vibration control method and mobile terminal of linear motor
JP2012080533A (en) Haptically enhanced interactivity with interactive content
KR20110074333A (en) Method and apparatus for generating vibration in potable terminal
CN109742998A (en) Vibration component, motor control method and terminal
CN112261202B (en) Electronic equipment and control method and control device thereof
CN113509720B (en) Virtual fight playback method, device, terminal, server and storage medium
JP6653293B2 (en) Information processing system, information processing program, information processing apparatus, and information processing method
WO2021104161A1 (en) Exciter, and electronic device and control method and apparatus therefor
CN108008858A (en) A kind of terminal control method and mobile terminal
CN109388234B (en) Haptic effect encoding and rendering system
CN109407832A (en) A kind of control method and terminal device of terminal device
CN108153419B (en) Electronic equipment and control method
EP3757722B1 (en) Information processing device, information processing method, and computer program
KR20190058979A (en) Method for providing vibration and electronic device for supporting the same
CN108509127B (en) Method and device for starting screen recording task and computer equipment
CN103458092A (en) Mobile terminal touch player and touch play method
US10661163B2 (en) Video game with haptic signal that is disabled based on losing contact with a surface
CN113835518A (en) Vibration control method and device, vibration device, terminal and storage medium
CN112261203A (en) Electronic equipment and control method and control device thereof
CN110225197B (en) Connection processing method, terminal and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant