Interaction control method, terminal device, intelligent sound box and storage medium
By setting Hall sensors and magnets on smart terminal devices, real-time position parameters are obtained to determine the wearing status and realize the control mode, which solves the problem of the lack of interaction of decorative peripheral accessories, increases their functions and usage scenarios, and improves the user experience.
Patent Information
- Application Number
- CN202310010085.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-01-04
AI Technical Summary
The decorative peripheral accessories of existing smart terminal devices cannot interact with the terminal devices, which limits their functions and usage scenarios.
By setting Hall sensors on the device body and magnets on peripheral accessories, real-time position parameters are obtained, the wearing status is determined based on the position parameters, and different control modes are implemented according to preset correspondence.
It enables interaction between peripheral accessories and terminal devices, increasing their functionality and usage scenarios, and improving the user's interactive experience.
Smart Images

Figure CN116233691B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of terminal interaction, and in particular to an interaction control method, a terminal device, a smart sound box and a storage medium. BACKGROUND
[0002] With the development of smart terminal devices, many peripheral accessories of smart terminal devices have been spawned, such as hats, clothes and the like of smart sound boxes. At present, these various peripheral accessories on the market generally only serve as physical decorations for smart terminal devices. Due to the limitations of the volume and cost of the accessories, there is currently no decorative peripheral accessory that can interact with a smart terminal device. SUMMARY
[0003] The main purpose of the present application is to provide an interaction control method, a terminal device, a smart sound box and a storage medium, and to solve the technical problem that decorative peripheral accessories cannot interact with a smart terminal device in the prior art.
[0004] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:
[0005] In a first aspect, the present application provides an interaction control method,
[0006] Optionally, in the interaction control method, the method is applied to a terminal device, the terminal device comprises a device body and a peripheral accessory movably arranged on the device body, and the method comprises:
[0007] obtaining real-time position parameters of the device body and the peripheral accessory;
[0008] determining a real-time wearing state of the peripheral accessory according to the real-time position parameters;
[0009] obtaining a target control mode corresponding to the real-time wearing state according to a preset correspondence between different wearing states and different control modes;
[0010] controlling the terminal device according to the target control mode.
[0011] Optionally, in the interaction control method, a Hall sensor is arranged on the device body, a magnet is arranged on the peripheral accessory, and the Hall sensor corresponds to the magnet.
[0012] The step of obtaining the real-time position parameters of the device body and the peripheral accessory comprises:
[0013] sensing the magnet by the Hall sensor, and taking a real-time output voltage of the Hall sensor as the real-time position parameter.
[0014] Optionally, in the interaction control method, the step of determining the real-time wearing state of the peripheral accessory according to the real-time position parameter comprises:
[0015] determining a real-time position change amount corresponding to the real-time position parameter according to a correspondence relationship between the stored position change amount and the position parameter;
[0016] obtaining the real-time wearing state of the peripheral accessory according to a preset correspondence relationship between the position change amount and different wearing states and the real-time position change amount.
[0017] Optionally, in the interaction control method, the number of the Hall sensors is at least two, the number of the magnets is at least two, the Hall sensors correspond to the magnets one by one, and the real-time position parameter comprises at least two real-time output voltages.
[0018] The step of determining the real-time position change amount corresponding to the real-time position parameter according to the correspondence relationship between the stored position change amount and the position parameter comprises:
[0019] obtaining at least two position change amounts corresponding to the at least two real-time output voltages according to the correspondence relationship between the stored position change amount and the position parameter;
[0020] determining a rotation direction of the peripheral accessory and a position change amount of the peripheral accessory in the rotation direction according to the at least two position change amounts, and obtaining the real-time position change amount.
[0021] Optionally, in the interaction control method, the Hall sensors comprise a first sensor arranged on one side surface of the device body, a second sensor arranged on the top of the device body, and a third sensor arranged on the other side surface of the device body, the first sensor and the third sensor are located at different heights in the axial direction of the device body, and the magnets comprise a first magnet corresponding to the first sensor, a second magnet corresponding to the second sensor, and a third magnet corresponding to the third sensor.
[0022] The step of determining the rotation direction of the peripheral accessory and the position change amount of the peripheral accessory in the rotation direction according to the at least two position change amounts, and obtaining the real-time position change amount comprises:
[0023] determining a rotation direction of the peripheral accessory in the lateral direction and a corresponding position change amount according to the first position change amount and the third position change amount, wherein the first position change amount represents a position change of the first magnet relative to the first sensor, and the third position change amount represents a position change of the third magnet relative to the third sensor.
[0024] determining a rotation direction of the peripheral accessory in the longitudinal direction and a corresponding position change amount according to the second position change amount and the third position change amount, wherein the second position change amount represents a position change of the second magnet relative to the second sensor;
[0025] obtaining the real-time position change amount according to the rotation direction of the peripheral accessory in the transverse direction and the corresponding position change amount and the rotation direction of the peripheral accessory in the longitudinal direction and the corresponding position change amount.
[0026] Optionally, before the step of determining the real-time position change amount corresponding to the real-time position parameter according to the correspondence between the stored position change amount and the position parameter in the above-mentioned interaction control method, the method further comprises:
[0027] obtaining an output voltage of the Hall sensor when the magnet is completely aligned with the Hall sensor to obtain an initial position of the peripheral accessory and an initial position parameter of the initial position;
[0028] obtaining an output voltage of the Hall sensor when the magnet is offset by one or more unit distances relative to the Hall sensor to obtain one or more offset positions of the peripheral accessory and one or more offset position parameters corresponding to the one or more offset positions;
[0029] establishing a correspondence between a position change amount and a position parameter according to the initial position and the initial position parameter, the one or more offset positions and the one or more offset position parameters.
[0030] Optionally, before the step of determining the real-time position change amount corresponding to the real-time position parameter according to the correspondence between the stored position change amount and the position parameter in the above-mentioned interaction control method, the method further comprises:
[0031] obtaining a display control mode, a playing control mode, an interaction control mode and / or a prompt control mode corresponding to the real-time wearing state according to a preset correspondence between different wearing states and different control modes;
[0032] determining the display control mode, the playing control mode, the interaction control mode and / or the prompt control mode as the target control mode.
[0033] In a second aspect, the present application provides a terminal device, which comprises a processor and a memory, and the memory stores an interaction control program, and the interaction control program is executed by the processor to implement the above-mentioned interaction control method.
[0034] In a third aspect, the present application provides a smart sound, which comprises:
[0035] An audio body is provided with a Hall sensor;
[0036] A peripheral accessory is movably sleeved on the audio body, and the peripheral accessory is provided with a magnet, and the Hall sensor corresponds to the magnet;
[0037] and a main control board is arranged inside the audio body, and is used for realizing the interactive control method as described above.
[0038] Optionally, in the smart audio as described above, the number of Hall sensors is at least two, and the number of magnets is at least two, and the Hall sensors correspond to the magnets one by one.
[0039] Optionally, in the smart audio as described above, the Hall sensors include a first sensor arranged on one side surface of the audio body, a second sensor arranged on the top of the audio body, and a third sensor arranged on the other side surface of the audio body, and the first sensor and the third sensor are located at different heights in the axial direction of the audio body.
[0040] The magnets include a first magnet corresponding to the first sensor, a second magnet corresponding to the second sensor, and a third magnet corresponding to the third sensor.
[0041] In a fourth aspect, the present application provides a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by one or more processors to realize the interactive control method as described above.
[0042] The above one or more technical solutions provided by the present application can have the following advantages or at least achieve the following technical effects:
[0043] The interactive control method, the terminal device, the smart audio and the storage medium provided by the present application are sleeved with a peripheral accessory on the device body of the terminal device, the real-time wearing state of the peripheral accessory is determined by acquiring the real-time position parameters of the device body and the peripheral accessory, the target control mode is obtained according to the corresponding relationship between the preset different wearing states and different control modes, and finally the terminal device is controlled according to the target control mode, and different functions are realized by controlling the terminal device according to the different wearing states of the peripheral accessory; the present application realizes the technical effect that the user interacts with the terminal device through the peripheral accessory in a low-cost manner through human-computer interaction through the peripheral accessory, so that the peripheral accessory is no longer limited to decoration purposes, the functions and use scenarios of the peripheral accessory are increased, and the user's interaction experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0045] Figure 1 Flowchart of the first embodiment of the interactive control method of the present application;
[0046] Figure 2 Schematic diagram of the hardware structure of the terminal device involved in the present application;
[0047] Figure 3 Schematic diagram of the smart sound involved in the second embodiment of the interactive control method of the present application;
[0048] Figure 4 Correspondence graph of the position change amount and the position parameter in step S410 of the second embodiment of the interactive control method of the present application.
[0049] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the present application more clear, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0051] It should be noted that in the embodiments of the present application, all directional indications (such as up, down, left, right, front, back, etc.) are used only to explain the relative positional relationship, movement condition, etc. between components in a certain specific posture (as shown in the drawings), and if the specific posture changes, the directional indications will also change accordingly. In the present application, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or further includes elements inherent to such a process, method, article or system. Without more limitations, the elements defined by the statement "comprise" do not exclude the presence of other identical elements in the process, method, article or system including the element. In addition, the meaning of "and / or" appearing throughout the text includes three parallel solutions, for example, "A and / or B" includes A solution, or B solution, or A and B solution. In the present application, if there is a description of "first", "second", etc., the description of "first", "second", etc. is only for the purpose of description, and cannot be understood as indicating or implying the relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features. Therefore, the features limited by "first", "second" can explicitly or implicitly include at least one of the features. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances. In addition, the technical solutions of each embodiment can be combined with each other, but it is based on the fact that a person skilled in the art can realize it, when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, nor is it within the scope of protection claimed by the present application.
[0052] With the continuous improvement of people's living standards, intelligent terminal devices such as intelligent speakers have entered millions of households and are favored by consumers. The main reason is that they improve the user's experience of artificial intelligence. Users can directly interact with intelligent speakers through voice. Some intelligent speakers are also equipped with display functions to display user favorite pictures and news information. This way of direct interaction between users and intelligent terminal devices has become the current conventional and mainstream interaction method.
[0053] Through analysis of the prior art, it is found that with the development of intelligent terminal devices, many peripheral accessories of intelligent terminal devices have emerged, such as hats and clothes for intelligent speakers. At present, these various peripheral accessories on the market generally only serve as physical decorations for intelligent terminal devices. Due to the limitations of the size and cost of the accessories, there are currently no decorative peripheral accessories that can interact with intelligent terminal devices.
[0054] In view of the technical problem that the existing decorative peripheral accessories cannot interact with the intelligent terminal device, the application provides an interactive control method, and the general idea is as follows:
[0055] Real-time position parameters of the device body and the peripheral accessory are acquired; a real-time wearing state of the peripheral accessory is determined according to the real-time position parameters; a target control mode corresponding to the real-time wearing state is obtained according to a preset corresponding relationship between different wearing states and different control modes; and the terminal device is controlled according to the target control mode.
[0056] Through the above technical solution, the terminal device is controlled to realize different functions according to different wearing states of the peripheral accessory; the application realizes the technical effect that the user interacts with the terminal device through the peripheral accessory in a low-cost manner through human-computer interaction of the peripheral accessory, so that the peripheral accessory is no longer limited to decorative purposes, the function and use scenario of the peripheral accessory are increased, and the user's interactive experience is improved.
[0057] The interactive control method, the terminal device, the intelligent sound and the storage medium provided by the application will be described in detail below with reference to the accompanying drawings, specific embodiments and implementation manners.
[0058] Embodiment one
[0059] Referring to Figure 1 a flowchart, the first embodiment of the interactive control method of the application is proposed, and the interactive control method is applied to a terminal device. The terminal device refers to a terminal that can realize network connection, which can be a multifunctional terminal such as a mobile phone, a computer, a tablet computer, a portable computer, etc., or an independent intelligent terminal with human-computer interaction function, such as a smart microphone, a smart sound, etc.
[0060] Specifically, the terminal device includes a device body and a peripheral accessory that is movably arranged on the device body,
[0061] The peripheral accessory can be an accessory with high adhesion to the device body, such as a decorative accessory of a smart sound, clothes 5, etc., such as a protective accessory of a smart microphone, a dust cover, a drop-resistant shell, etc., which can be set according to the actual shape or structure of the device body. The user can manually adjust the position of the peripheral accessory arranged on the device body, such as lowering the brim of the hat on the smart sound, wearing it askew, etc., such as rotating the dust cover of the smart microphone by half a turn, etc.
[0062] As Figure 2 shown, it is a hardware structure schematic diagram of the terminal device. The terminal device can include a processor 1001, such as a CPU (Central Processing Unit, Central Processing Unit), a communication bus 1002,
[0063] The user interface 1003, the network interface 1004, the memory 1005.
[0064] Specifically, the communication bus 1002 is used to realize the connection communication between the components; the user interface 1003 is used to connect the client and communicate data with the client, and the user interface 1003 can include an output unit and an input unit; the network interface 1004 is used to connect the background server and communicate data with the background server, and the network interface 1004 can include an input / output interface; the memory 1005 is used to store various types of data, which can include, for example, instructions of any application program or method in the terminal device, and application-related data, and the memory 1005 can be an internal memory; optionally, the memory 1005 can also be a storage device independent of the processor 1001, and the memory 1005 can store the following programs: Figure 2
[0065] The memory 1005 can store the following programs: an operating system, a network communication module, a user interface module, and an interactive control program; the processor 10010 is used to call the interactive control program stored in the memory 1005 and perform the following operations:
[0066] Obtain real-time position parameters of the device body and the peripheral accessory;
[0067] Determine the real-time wearing state of the peripheral accessory according to the real-time position parameters;
[0068] According to the correspondence between the different wearing states and the different control modes, the target control mode corresponding to the real-time wearing state is obtained;
[0069] 5Control the terminal device according to the target control mode.
[0070] Based on the above terminal device, the interactive control method of the present embodiment will be described in detail in combination with the flowchart shown in Figure 1 The method can include the following steps:
[0071] Step S200: Obtain real-time position parameters of the device body and the peripheral accessory.
[0072] Specifically, the real-time position parameter can be the position of the device body relative to the peripheral accessory, or the position of the peripheral accessory relative to the device body. Taking the position of the device body relative to the peripheral accessory as an example, the real-time position parameter of the device body relative to the peripheral accessory can be obtained by embedding a device in the peripheral accessory, sensing the position of the peripheral accessory by a corresponding sensor in the device body, and outputting a sensing signal. For example, the real-time position parameter of the device body relative to the peripheral accessory can be obtained by embedding a magnet in the peripheral accessory, sensing the position of the peripheral accessory by a Hall sensor arranged on the device body, and outputting a voltage signal. The real-time position parameter of the device body relative to the peripheral accessory can also be obtained by using other existing position detection devices arranged on the device body to detect the position movement of the peripheral accessory when the peripheral accessory is arranged on the device body, and outputting position detection data.
[0073] Step S400: determining the real-time wearing state of the peripheral accessory according to the real-time position parameter.
[0074] Specifically, after obtaining the real-time position parameter, data analysis or matching is performed to determine the state of the peripheral accessory relative to the device body at this time, i.e., the real-time wearing state of the peripheral accessory, such as correct wearing, left rotation, right rotation, forward buckling, backward tilting, etc. The specific state type can be defined according to the actual shape or wearing relationship of the device body and the peripheral accessory. Alternatively, the real-time wearing state can be obtained by matching a pre-set correspondence table between the position parameter and different wearing states before the terminal device is shipped.
[0075] Step S600: obtaining the target control mode corresponding to the real-time wearing state according to the correspondence between different wearing states and different control modes.
[0076] Specifically, different control modes correspond to different wearing states, and the terminal device selects the control mode corresponding to the current wearing state for control after the user adjusts the wearing state of the peripheral accessory on the device body. Different control modes can include different types of control modes such as display control mode, playing control mode, and interaction control mode, and can also include different control methods under different types of control modes, which can be set according to actual needs. The correspondence between different wearing states and different control modes can be stored in the memory of the terminal device before it is shipped, in the form of a table, so that the target control mode can be obtained by directly looking up the table at that time; or the correspondence between different wearing states and different control modes can be stored in a background server, and the terminal device sends a request to the background server to obtain the target control mode by looking up the table, and then sends the related information of the target control mode to the terminal device, so as to obtain the target control mode. This way is convenient for updating the related parameter information of the control mode corresponding to different wearing states.
[0077] Step S800: controlling the terminal device according to the target control mode.
[0078] Specifically, the terminal device obtains the target control mode, analyzes the related control data or control instructions in the control mode, and controls different devices respectively to realize different functions or different states of the same function.
[0079] The interactive control method provided in the embodiment sets a peripheral accessory on the device body of the terminal device, determines the real-time wearing state of the peripheral accessory by acquiring real-time position parameters of the device body and the peripheral accessory, obtains a target control mode according to a preset corresponding relationship between different wearing states and different control modes, and finally controls the terminal device according to the target control mode. Different wearing states of the peripheral accessory correspond to the control of the terminal device to realize different functions. The present application realizes the technical effect that the user interacts with the terminal device through the peripheral accessory in a low-cost manner, so that the peripheral accessory is no longer limited to decorative purposes, the functions and use scenarios of the peripheral accessory are increased, and the user's interactive experience is improved.
[0080] Embodiment Two
[0081] Based on the same inventive concept, on the basis of Embodiment One, referring to Figures 3 to 4 , the second embodiment of the interactive control method of the present application is proposed, which is applied to a terminal device. In this embodiment, the terminal device is taken as an intelligent sound box as an example for description.
[0082] The interactive control method of the present embodiment will be described in detail below. The method can include the following steps:
[0083] Step S200: acquiring real-time position parameters of the device body and the peripheral accessory.
[0084] In this embodiment, the device body is provided with a Hall sensor, the peripheral accessory is provided with a magnet, and the Hall sensor corresponds to the magnet.
[0085] In this embodiment, the terminal device is an intelligent sound box, the device body is a sound box body, and the real-time position parameters of the device body and the peripheral accessory are the real-time position parameters of the sound box body and the peripheral accessory. They can be the position of the sound box body relative to the peripheral accessory, or the position of the peripheral accessory relative to the sound box body. In this embodiment, the position of the sound box body relative to the peripheral accessory is taken as an example for description. For example, Figure 3As shown is a smart sound box schematic view, the smart sound box includes a sound box body 10 and a peripheral accessory 20 movably sleeved on the sound box body 10, the sound box body 10 is provided with a Hall sensor 11, the surface of the sound box body 10 is further provided with a display screen 12, the peripheral accessory 20 is provided with a magnet 21, the Hall sensor 11 corresponds to the magnet 21, including position correspondence and quantity correspondence in the initial normal state. In the figure, the sound box body 10 is spherical, fixed on a base 13, the peripheral accessory 20 is similar to a hat, semi-wraps the sound box body 10, can be moved on the surface of the sound box body 10, or can be directly taken off.
[0086] It can be understood that the sound box body can also be other shapes, for example, a cube, a polyhedron, etc., correspondingly, the peripheral accessory can be correspondingly provided according to the shape of the sound box body, and is required to be movably attached to the surface of the sound box body as much as possible, so that the Hall sensor and the magnet can better act on each other, so as to accurately detect different wearing states of the peripheral accessory.
[0087] The magnet 21 is additionally provided on the peripheral accessory 20, the cost of the magnet 21 is low, the Hall sensor 11 is additionally provided in the terminal device, and other improvements can be realized by program improvement in the terminal device, and too many components will not be added on the hardware, so that the effect of improving the peripheral accessory and the interactive control function of the terminal device based on the peripheral accessory at low cost is achieved.
[0088] Specifically, step S200 can include:
[0089] Step S210: sensing the magnet by the Hall sensor, taking the real-time output voltage of the Hall sensor as the real-time position parameter.
[0090] In the embodiment, the smart sound box senses the magnet 21 by the Hall sensor 11, and utilizes the perception of the Hall sensor 11 to the magnetic flux. After the Hall sensor 11 senses the magnetic field, the output voltage signal, i.e., the real-time output voltage, is output, and the smart sound box obtains the real-time position parameter of the sound box body 10 relative to the peripheral accessory 20. The number of the Hall sensor 11 and the magnet 21 can be determined according to actual conditions and use scenarios, in order to improve the positioning accuracy of the peripheral accessory, a plurality of auxiliary Hall sensors and magnets can be introduced, and the number of the Hall sensor 11 and the magnet 21 can also be increased according to the accuracy requirement.
[0091] It can be understood that the Hall sensor can directly output the voltage signal to the processor of the terminal device as the real-time position parameter, or can identify and process the voltage signal and send other forms of signals to the processor of the terminal device, and the real-time position parameter at this time is other types of signals.
[0092] In an embodiment, the number of Hall sensors is at least two, the number of magnets is at least two, the Hall sensors correspond to the magnets one by one, and the real-time position parameter includes at least two real-time output voltages.
[0093] Increasing the number of Hall sensors requires a corresponding increase in the number of magnets, each Hall sensor acts on its corresponding magnet, when the user moves the peripheral accessory on the device body, each Hall sensor corresponds to a different magnetic field, and the output voltage signal may also be different, at this time, the real-time position parameter has multiple voltage signals. Correspondingly, when the real-time wearing state of the peripheral accessory is determined according to the real-time position parameter, the amount of data for data processing increases, which can increase the recognition accuracy of different wearing states.
[0094] In another embodiment, the Hall sensor includes a first sensor arranged on one side of the device body, a second sensor arranged on the top of the device body, and a third sensor arranged on the other side of the device body, the first sensor and the third sensor are located at different heights in the axial direction of the device body, and the magnet includes a first magnet corresponding to the first sensor, a second magnet corresponding to the second sensor, and a third magnet corresponding to the third sensor.
[0095] In this embodiment, as shown in the schematic diagram of the smart sound box, Figure 3 The Hall sensor 11 is provided with three, which are respectively located on the left side, the top and the right side of the sound box body 10, and are arranged on the inner surface of the sound box body 10, which is convenient for better action with the magnet. At the same time, the height of the Hall sensor 11 on the left side and the Hall sensor 11 on the right side in the vertical direction is inconsistent. The Hall sensor 11 on the left side corresponds to a magnet 21 on the left side in the peripheral accessory 20, the Hall sensor 11 on the top corresponds to a magnet 21 on the top in the peripheral accessory 20, and the Hall sensor 11 on the right side corresponds to a magnet 21 on the right side in the peripheral accessory 20. In the normal wearing state, each Hall sensor 11 is aligned with the corresponding magnet 21. The above-mentioned magnets 21 are located at the lower end of the peripheral accessory 20, close to the sound box body 10, which is convenient for the Hall sensor 11 to better sense the magnetic field and realize the position detection of the peripheral accessory 20.
[0096] Optionally, the first sensor, the second sensor and the third sensor can be asymmetrically designed to achieve higher position calculation accuracy with less settings. A plurality of Hall sensors can determine the position change of the peripheral accessory in multiple directions, such as longitudinal change, lateral change, etc.
[0097] Step S400: determining the real-time wearing state of the peripheral accessory according to the real-time position parameter.
[0098] Specifically, step S400 can include:
[0099] Step S410: determining a real-time position change amount corresponding to the real-time position parameter according to a stored corresponding relationship between position change amounts and position parameters.
[0100] Specifically, before the terminal device is shipped, some basic configurations can be stored for data processing of the real-time position parameter, such as a corresponding relationship table or a corresponding relationship curve between the position parameter and the position change amount. The position change amount can be an offset direction, an offset angle, and / or an offset distance. The corresponding relationship can be linear.
[0101] In the smart sound box of the embodiment, when the position parameter is the output voltage of the Hall sensor, the position change amount is the offset distance of the peripheral accessory based on the initial state, which can also be regarded as the offset distance relative to the Hall sensor. As shown in Figure 4 The corresponding relationship between the position change amount and the position parameter is shown in the figure. In the figure, the horizontal axis represents the position change amount, and the vertical axis represents the output voltage of the Hall sensor.
[0102] In an embodiment, step S410 can include:
[0103] Step S411: obtaining at least two position change amounts corresponding to the at least two real-time output voltages according to the stored corresponding relationship between the position change amounts and the position parameters.
[0104] In the case where the number of Hall sensors and the number of magnets defined in the embodiment corresponding to the foregoing step S210 are both at least two, at least two real-time output voltages can be obtained through step S210. Here, at least two position change amounts can be obtained in correspondence based on the stored corresponding relationship between the position change amounts and the position parameters.
[0105] Step S412: determining a rotation direction of the peripheral accessory and a position change amount of the peripheral accessory in the rotation direction according to the at least two position change amounts, to obtain the real-time position change amount.
[0106] In the specific implementation, after obtaining the at least two position change amounts, the actual position change situation of the peripheral accessory can be further determined. The actual position change situation can include the rotation direction of the peripheral accessory and the position change amount of the peripheral accessory in the rotation direction, and can be further refined, for example, to include the specific rotation angle of the peripheral accessory. The position change amount is a specific distance, and one unit of the position change amount can be a specified distance or a conventional distance unit.
[0107] In another embodiment, step S412 can include:
[0108] Step S412.1: determining the rotation direction and corresponding position change of the peripheral accessory in the lateral direction according to the first position change and the third position change; wherein the first position change represents the position change of the first magnet relative to the first sensor, and the third position change represents the position change of the third magnet relative to the third sensor;
[0109] Step S412.2: determining the rotation direction and corresponding position change of the peripheral accessory in the longitudinal direction according to the second position change and the third position change; wherein the second position change represents the position change of the second magnet relative to the second sensor.
[0110] Step S412.3: obtaining the real-time position change according to the rotation direction and corresponding position change of the peripheral accessory in the lateral direction and the rotation direction and corresponding position change of the peripheral accessory in the longitudinal direction.
[0111] In another embodiment corresponding to the case where the number of Hall sensors and magnets defined in the foregoing step S210 is three, three real-time output voltages can be obtained as real-time position parameters through step S210, and then three corresponding position changes, i.e., the first position change, the second position change and the third position change, can be obtained through step S411.
[0112] Continuing to refer to the smart speaker Figure 3 , when the user rotates the cap of the smart speaker only to the left, the position of the Hall sensor 11 on the top and the corresponding magnet 21 can remain unchanged, and the output voltage of the Hall sensor 11 will not change, while the output voltages of the Hall sensors 11 on the left and right sides will change. Correspondingly, when the user fastens the cap of the smart speaker only forward, the output voltage of the Hall sensor 11 on the top will change, while the output voltages of the Hall sensors 11 on the left and right sides may or may not change. If only the output voltage of the Hall sensor 11 on the top is taken as a reference, there may be errors. At this time, any one of the other two Hall sensors 11 can be taken together with the Hall sensor 11 on the top as a reference.
[0113] Since in practical applications, the peripheral accessory 20 is difficult to rotate only in one end direction of the sound body 10, and generally will exist some other direction offset, in the embodiment, the first position change amount and the third position change amount corresponding to the voltage signals output by the left Hall sensor 11 and the right Hall sensor 11 can be obtained, so as to determine the rotation direction of the peripheral accessory 20 in the horizontal direction and the position change amount in the rotation direction; and the second position change amount and the third position change amount corresponding to the voltage signals output by the top Hall sensor 11 and the right Hall sensor 11 can be obtained, so as to determine the rotation direction of the peripheral accessory 20 in the vertical direction and the position change amount in the rotation direction; finally, the rotation direction and the corresponding position change amount of the peripheral accessory in the horizontal direction and the rotation direction and the corresponding position change amount in the vertical direction are summarized as the real-time position change amount corresponding to the aforementioned real-time position parameter.
[0114] In the embodiment, the position change of the peripheral accessory relative to the device body is represented by different directions in the horizontal direction and the vertical direction and the corresponding position offset distance, and the position change of the peripheral accessory is determined in multiple directions, so that the accuracy is higher.
[0115] In another implementation, before step S410, the method can further include:
[0116] Step S401: When the magnet is completely aligned with the Hall sensor, the output voltage of the Hall sensor is obtained to obtain the initial position of the peripheral accessory and the initial position parameter thereof;
[0117] Step S402: When the magnet is offset by one or more unit distances relative to the Hall sensor, the output voltage of the Hall sensor is obtained to obtain one or more offset positions of the peripheral accessory and one or more offset position parameters corresponding thereto;
[0118] Step S403: According to the initial position and the initial position parameter thereof, the one or more offset positions and the one or more offset position parameters, a corresponding relationship between the position change amount and the position parameter is established.
[0119] Before the smart sound box is shipped, the smart sound box can be calibrated for the initial wearing position of the peripheral accessory. The peripheral accessory 20 is normally worn on the sound box body 10, so that each Hall sensor 11 is in a normal state of being opposite to the corresponding magnet 21. At this time, the magnet and the Hall sensor are completely aligned, the output voltage of the Hall sensor 11 is read, which is the output voltage in the initial wearing state, that is, the initial position of the peripheral accessory and the initial position parameter thereof are obtained. Then, the smart sound box is subjected to a reading operation of the output voltage of the Hall sensor in multiple different positions, and the output voltage in multiple different positions is obtained, that is, one or more offset positions of the peripheral accessory and one or more offset position parameters corresponding thereto are obtained. For example, the output voltage corresponding to one or more position change amounts from the first unit distance to the eleventh unit distance can be read, and the obtained initial position and initial position parameter and one or more offset positions and one or more offset position parameters corresponding thereto are summarized and curve fitting is performed, so that the curve shown in Figure 4 is obtained, that is, the corresponding relationship between the position change amount and the position parameter is obtained. Then, the curve can be stored in the smart sound box, so that in actual application, the corresponding relationship is called to determine the real-time position change amount corresponding to the real-time position parameter.
[0120] Based on the corresponding relationship diagram shown in Figure 4 , the obtained real-time position parameter, for example, the output voltage of 1V, is substituted directly to obtain the corresponding position change amount as the real-time position change amount corresponding to the real-time position parameter for subsequent use.
[0121] Step S420: obtaining the real-time wearing state of the peripheral accessory according to the preset corresponding relationship between the position change amount and different wearing states and the real-time position change amount.
[0122] Specifically, based on a specific position change amount, the preset corresponding relationship between the position change amount and different wearing states is called. The corresponding relationship can be that the position change amount in different ranges corresponds to a wearing state, so as to segment the relationship table corresponding to multiple different wearing states. For example, in the embodiment, the position change amount in a large range from 1 to 10 unit distances can be divided into three segments, for example, 1-4, 4-7 and 7-10, which respectively correspond to a first wearing state, a second wearing state and a third wearing state. The corresponding relationship between the position change amount and different wearing states can be set according to actual conditions. The real-time position change amount is determined to be in which range, so that the corresponding wearing state is obtained, that is, the real-time wearing state of the peripheral accessory is obtained.
[0123] In actual application, for the instance of multiple Hall sensors, after obtaining the real-time position change amount in step S410, for example, obtaining the specific rotation forward direction and position offset distance to correspond to match the real-time wearing state of the peripheral accessory. For example, when obtaining that the peripheral accessory has no offset, the wearing state is obtained as correct, when obtaining that the peripheral accessory rotates 3 unit distances to the left, the wearing state is obtained as rotating 30 degrees to the left, and when obtaining that the peripheral accessory rotates 5 unit distances to the front, which can also be said to rotate 5 unit distances to the front, the wearing state is obtained as rotating 50 degrees to the front.
[0124] Step S600: obtaining a target control mode corresponding to the real-time wearing state according to a preset corresponding relationship between different wearing states and different control modes.
[0125] Specifically, step S600 can include:
[0126] Step S610: obtaining a display control mode, a playing control mode, an interactive control mode and / or a prompt control mode corresponding to the real-time wearing state according to a preset corresponding relationship between different wearing states and different control modes;
[0127] Step S620: determining the display control mode, the voice interactive mode and / or the prompt control mode as the target control mode.
[0128] Specifically, based on the preset correspondence between different wearing states and different control modes, one or more different control modes corresponding to the obtained real-time wearing state are obtained, so as to obtain the target control mode. For example, when the wearing state is straight, the display control mode is a display of a smiling face; when the wearing state is rotated 30 degrees to the left, the display control mode is a display of a dazed expression. For example, when the wearing state is rotated 30 degrees to the left, the display control mode is a display of a dazed expression, and the playing control mode is a sentimental music playing mode; when the wearing state is rotated 50 degrees downward, the display control mode is a display of a sad expression, and the playing control mode is a funny video playing mode. For example, when the wearing state is rotated 30 degrees to the left, the display control mode is a display of a dazed expression, and the playing control mode is a sentimental music playing mode, the interactive control mode is a passive voice call mode; when the wearing state is rotated 50 degrees downward, the display control mode is a display of a sad expression, and the playing control mode is a funny video playing mode, the interactive control mode is an active conversation initiation mode, such as asking the user what is sad and can be said, etc. The specific combination of the display control mode, the playing control mode, the interactive control mode and / or the prompt control mode can be selected and set according to actual needs, so that the smart sounder can automatically adjust the control mode and realize automatic control of one or more functions after the user adjusts the surrounding accessories.
[0129] In the embodiment, the display control mode can adjust the display content of the display screen on the terminal device according to different moods or attitudes represented by different wearing states, the playing control mode can adjust the audio or video playing of the terminal device according to different wearing states, such as playing different music, different video, etc., the interactive control mode can adjust the interactive mode of the terminal device and the user according to different wearing states, such as the terminal device actively initiating a conversation or passively responding to the user's conversation, etc., and the prompt control mode can adjust the prompt content or prompt mode of the terminal device according to different wearing states, such as only voice prompt, audio-visual synchronous prompt, prompt weather and display dressing suggestion, etc. The specific content corresponding to the above different control modes can be set according to actual needs to meet more needs of the user.
[0130] Step S800: controlling the terminal device according to the target control mode.
[0131] Specifically, whether the target control mode obtained in step S600 is a control mode of one object or a control mode of multiple objects, a control instruction is generated and sent to the corresponding accessory, such as a display screen or a speaker, to control the accessory.
[0132] In general, taking the smart sounder of the embodiment as an example, when the user is in a bad mood, the peripheral accessory 20 in the shape of a duckbill cap can be pressed downward, at which time the smart sounder can automatically initiate a conversation to inquire whether a joke needs to be told, whether music needs to be played, or even directly automatically play a funny video. When the user is busy, the peripheral accessory 20 in the shape of a duckbill cap can be turned right, at which time the smart sounder can automatically display the words "working, do not disturb". For example, when the user wants to change clothes, the peripheral accessory 20 in the shape of a duckbill cap can be worn on the sounder body 10 in reverse, at which time the smart sounder can automatically prompt the weather condition, or even automatically remind the dressing suggestion. The above are specific examples, and in actual application, the settings can be made as needed.
[0133] More implementation details of the above method steps can be found in the description of the specific implementation of Embodiment One, which will not be repeated here for the sake of brevity of the description.
[0134] The interactive control method provided by the embodiment detects the wearing state of the peripheral accessory as a prerequisite trigger condition for the terminal device to adjust the control mode, so that the terminal device automatically has further actions after the user adjusts the position of the peripheral accessory, enriching the use scenarios of the terminal device and the interactive experience with the user. Compared with existing pure physical accessories, the peripheral accessory of the embodiment can interact with the terminal device, increasing the expansion of practical scenarios. Under the premise of controlling the cost, the embodiment realizes the interaction between the peripheral accessory and the device body of the smart sounder, so that the user can not only select the peripheral accessory he likes and freely adjust it, but also capture it in real time by the device body to execute corresponding operations through the original speaker or display screen of the device body to realize the interaction with the user.
[0135] Embodiment Three
[0136] Based on the same inventive concept, referring to the hardware structure diagram of Figure 2 The terminal device can include a processor and a memory, and the memory stores an interactive control program. When the interactive control program is executed by the processor, all or part of the steps of the interactive control method of each embodiment of the application are implemented.
[0137] Specifically, the terminal device refers to a terminal that can realize network connection, which can be a multifunctional terminal such as a mobile phone, a computer, a tablet computer, a portable computer, etc., or an independent intelligent terminal with human-computer interaction function, such as a smart microphone, a smart sounder, etc.
[0138] It can be understood that the terminal device can further include a communication bus, a user interface and a network interface. Among them, the communication bus is used to realize the connection communication between these components; the user interface is used to connect the client and communicate data with the client, and the user interface can include an output unit such as a display screen, a speaker, etc., and an input unit such as a keyboard, a microphone, etc.; the network interface is used to connect the background server and communicate data with the background server, and the network interface can include an input / output interface, such as a standard wired interface, a wireless interface such as a Wi-Fi interface; the memory is used to store various types of data, which can include, for example, instructions of any application program or method in the terminal device, and application-related data, and the memory can be realized by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), random access memory (RAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk, etc.; optionally, the memory can also be a storage device independent of the processor; the processor is used to call the interaction control program stored in the memory and execute the interaction control method as described above, and the processor can be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic elements, used to execute all or part of the steps of each embodiment of the interaction control method as described above.
[0139] It should be noted that Figure 2The hardware structure shown in the figure does not constitute a limitation on the terminal device of the present application, and can include more or fewer components, or combine certain components, or different component arrangements.
[0140] Embodiment Four
[0141] Based on the same inventive concept, referring to Figure 3 , the first embodiment of the intelligent sound device of the present application is proposed, and the intelligent sound device provided by the present embodiment will be described in detail below in combination with the schematic diagram shown in Figure 3 , which can include:
[0142] a sound body 10, a Hall sensor 11 being arranged on the sound body 10;
[0143] a peripheral accessory 20 movably sleeving the sound body 10, a magnet 21 being arranged on the peripheral accessory 20, the Hall sensor 11 corresponding to the magnet 21;
[0144] and a main control board, the main control board being arranged inside the sound body 10, Figure 3 not shown, for realizing all or part of the steps of each embodiment of the interactive control method of the present application.
[0145] Further, as shown in Figure 3 , the number of Hall sensors 11 is at least two, the number of magnets 21 is at least two, and the Hall sensors 11 correspond one-to-one to the magnets 21.
[0146] Further, as shown in Figure 3 Figure 3 , the Hall sensor 11 includes a first sensor arranged on one side of the sound body 10, a second sensor arranged on the top of the sound body 10, and a third sensor arranged on the other side of the sound body 10, the first sensor and the third sensor being located at different heights in the axial direction of the sound body 10.
[0147] The magnet 21 includes a first magnet corresponding to the first sensor, a second magnet corresponding to the second sensor, and a third magnet corresponding to the third sensor.
[0148] Further, the sound body 10 can also be provided with a display screen 12, a loudspeaker, etc., and the sound body 10 can be arranged on a base 13.
[0149] It should be noted that the functions that can be achieved by the intelligent sound device provided by the present embodiment and the technical effects achieved thereby can refer to the description of the specific embodiments in the second embodiment of the interactive control method of the present application, and for the sake of brevity of the description, will not be described here again.
[0150] Embodiment Five
[0151] Based on the same inventive concept, the embodiments provide a computer readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), 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 magnetic memory, a magnetic disk, an optical disk, a server, etc., which stores a computer program. The computer program can be executed by one or more processors. When the computer program is executed by the processor, all or part of the steps of the embodiments of the interactive control method of the present application can be implemented.
[0152] It should be noted that the above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments. The above embodiments are only optional embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent flow conversion, or direct or indirect application in other related technical fields, which is made under the inventive concept of the present application, using the contents of the specification and drawings of the present application, is included in the patent protection scope of the present application.
Claims
1. An interaction control method, characterized by, The method is applied to a terminal device including a device body and a peripheral accessory movably arranged on the device body, and the method includes: acquiring real-time position parameters of the device body and the peripheral accessory; determining a real-time wearing state of the peripheral accessory according to the real-time position parameters; obtaining a target control mode corresponding to the real-time wearing state according to a preset correspondence between different wearing states and different control modes; controlling the terminal device according to the target control mode; wherein at least two Hall sensors are arranged on the device body, and the number of magnets arranged on the peripheral accessory is equal to the number of the Hall sensors, the Hall sensors and the magnets correspond to each other, at least one Hall sensor is arranged on a side surface of the device body, and at least one Hall sensor is arranged on a top of the device body; the real-time position parameters are real-time output voltages output by the magnets sensed by the Hall sensors; the step of determining the real-time wearing state of the peripheral accessory according to the real-time position parameters includes: determining a real-time position change corresponding to the real-time position parameters according to a preset correspondence between stored position changes and position parameters; obtaining the real-time wearing state of the peripheral accessory according to a preset correspondence between the real-time position change and different wearing states; wherein the position change includes a change in a longitudinal direction and a change in a lateral direction.
2. The interaction control method of claim 1, wherein, the step of determining the real-time position change corresponding to the real-time position parameters according to the preset correspondence between the stored position changes and the position parameters includes: obtaining at least two position changes corresponding to the at least two real-time output voltages according to the preset correspondence between the stored position changes and the position parameters; determining a rotation direction of the peripheral accessory and a position change of the peripheral accessory in the rotation direction according to the at least two position changes, and obtaining the real-time position change.
3. The interaction control method of claim 2, wherein, the Hall sensors include a first sensor arranged on a side surface of the device body, a second sensor arranged on a top of the device body, and a third sensor arranged on another side surface of the device body, the first sensor and the third sensor are located at different heights in an axial direction of the device body, and the magnets include a first magnet corresponding to the first sensor, a second magnet corresponding to the second sensor, and a third magnet corresponding to the third sensor; the step of determining the rotation direction of the peripheral accessory and the position change of the peripheral accessory in the rotation direction according to the at least two position changes, and obtaining the real-time position change includes: determining a rotation direction of the peripheral accessory in a lateral direction and a corresponding position change according to a first position change and a third position change; wherein the first position change represents a position change of the first magnet relative to the first sensor, and the third position change represents a position change of the third magnet relative to the third sensor. determining a rotation direction of the peripheral accessory in the longitudinal direction and a corresponding position change amount according to the second position change amount and the third position change amount, wherein the second position change amount represents a position change of the second magnet relative to the second sensor; obtaining the real-time position change amount according to the rotation direction of the peripheral accessory in the transverse direction and the corresponding position change amount and the rotation direction of the peripheral accessory in the longitudinal direction and the corresponding position change amount.
4. The interaction control method of claim 1, wherein, Before the step of determining the real-time position change amount corresponding to the real-time position parameter according to the correspondence between the stored position change amount and the position parameter, the method further comprises: obtaining an output voltage of the Hall sensor when the magnet is completely aligned with the Hall sensor to obtain an initial position of the peripheral accessory and an initial position parameter of the initial position; obtaining an output voltage of the Hall sensor when the magnet is offset by one or more unit distances relative to the Hall sensor to obtain one or more offset positions of the peripheral accessory and one or more offset position parameters corresponding to the one or more offset positions; establishing a correspondence between a position change amount and a position parameter according to the initial position and the initial position parameter, the one or more offset positions and the one or more offset position parameters.
5. The interaction control method of claim 1, wherein, The step of obtaining the target control mode corresponding to the real-time wearing state according to the correspondence between the different wearing states and the different control modes comprises: obtaining a display control mode, a playing control mode, an interactive control mode and / or a prompt control mode corresponding to the real-time wearing state according to the correspondence between the different wearing states and the different control modes; determining the display control mode, the playing control mode, the interactive control mode and / or the prompt control mode as the target control mode.
6. A terminal device, characterized by comprising: The terminal device comprises a processor and a memory, and the memory stores an interactive control program, which is executed by the processor to implement the interactive control method according to any one of claims 1 to 5.
7. A smart sound box, characterized in that, The smart sound box comprises: a sound box body, wherein a Hall sensor is arranged on the sound box body; a peripheral accessory, wherein a magnet is arranged on the peripheral accessory, the Hall sensor corresponds to the magnet, and the peripheral accessory is movably arranged on the sound box body; and a main control board, wherein the main control board is arranged inside the sound box body and is used to implement the interactive control method according to any one of claims 1 to 5. 8.The smart sound box of claim 7, wherein, The number of Hall sensors is at least two, and the number of magnets is at least two, and the Hall sensors correspond to the magnets one by one. 9.The smart sound box of claim 8, wherein, The Hall sensor comprises a first sensor arranged on one side surface of the sound box body, a second sensor arranged on the top of the sound box body and a third sensor arranged on the other side surface of the sound box body, and the first sensor and the third sensor are located at different heights in the axial direction of the sound box body. The magnet comprises a first magnet corresponding to the first sensor, a second magnet corresponding to the second sensor and a third magnet corresponding to the third sensor.
10. A computer-readable storage medium, characterized in that, The storage medium has stored thereon a computer program which, when executed by one or more processors, implements the interaction control method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Rotation angle detecting device
CN108120456A
Wearable device controlling method and equipment and computer-readable storage medium
CN108594935A