CN112954108A - Method and device for simulating Bluetooth mouse, mobile terminal and storage medium - Google Patents

Method and device for simulating Bluetooth mouse, mobile terminal and storage medium Download PDF

Info

Publication number
CN112954108A
CN112954108A CN202110181276.4A CN202110181276A CN112954108A CN 112954108 A CN112954108 A CN 112954108A CN 202110181276 A CN202110181276 A CN 202110181276A CN 112954108 A CN112954108 A CN 112954108A
Authority
CN
China
Prior art keywords
control
bluetooth
mouse
target controlled
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110181276.4A
Other languages
Chinese (zh)
Inventor
周腾腾
杨志远
刘山荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110181276.4A priority Critical patent/CN112954108A/en
Publication of CN112954108A publication Critical patent/CN112954108A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a method and a device for simulating a Bluetooth mouse, a mobile terminal and a storage medium. The method is applied to a mobile terminal, a first switch for turning on or off a Bluetooth mouse is arranged in a Bluetooth setting interface of the mobile terminal, and the method comprises the following steps: opening a control page of the Bluetooth mouse in response to receiving an operation of opening a first switch of the Bluetooth mouse, wherein a plurality of controlled devices are arranged in the control page; in response to receiving an operation of selecting one of the plurality of controlled devices as a target controlled device, establishing a Bluetooth connection with the target controlled device; displaying an operation interface of the Bluetooth mouse; and responding to the received operation executed on the operation interface, and sending a mouse control instruction to the target controlled equipment. By the method, the use experience of the user can be improved.

Description

Method and device for simulating Bluetooth mouse, mobile terminal and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for simulating a bluetooth mouse, a mobile terminal, and a storage medium.
Background
Bluetooth has been widely applied to smart phones and smart home devices as a low-cost, low-power consumption, and mature near field communication technology.
At present, users often control devices such as computers, smart phones, smart televisions and the like through hardware peripherals, such as mice, keyboards, touch screens, remote controllers, handles and the like. Bluetooth HID (human Interface Device Profile) provides support for Bluetooth peripherals by intelligent devices. Therefore, the intelligent mobile phone can simulate the mobile phone as a Bluetooth mouse through the HID protocol, and control of intelligent equipment such as a computer and a television is achieved.
Disclosure of Invention
The disclosure provides a method and a device for simulating a Bluetooth mouse, a mobile terminal and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for a mobile terminal to simulate a bluetooth mouse, where a bluetooth setting interface of the mobile terminal is arranged with a first switch for turning on or off the bluetooth mouse, the method including:
opening a control page of the Bluetooth mouse in response to receiving an operation of opening a first switch of the Bluetooth mouse, wherein a plurality of controlled devices are arranged in the control page;
in response to receiving an operation of selecting one of the plurality of controlled devices as a target controlled device, establishing a Bluetooth connection with the target controlled device;
displaying an operation interface of the Bluetooth mouse;
and responding to the received operation executed on the operation interface, and sending a mouse control instruction to the target controlled equipment.
The control page comprises a second switch, and the plurality of controlled devices on the control page are presented through responding to the received operation of opening the second switch on the control page.
Optionally, a second switch is included on the control page, and the plurality of controlled devices on the control page are presented by responding to receiving an operation of turning on the second switch on the control page.
Optionally, the operation interface for displaying the bluetooth mouse includes:
triggering to display a first control on the control page based on the Bluetooth connection;
and responding to the received operation of clicking the first control, and displaying an operation interface of the Bluetooth mouse.
Optionally, the first control is displayed in a floating manner on the control page.
Optionally, the sending a mouse control instruction to the target controlled device in response to receiving the operation executed on the operation interface includes:
responding to the received operation of clicking the second control and moving the operation interface, and sending a page content selection instruction to the target controlled equipment; or the like, or, alternatively,
in response to receiving the operation of sliding the third control, sending a page scrolling instruction to the target controlled device; or the like, or, alternatively,
after a page content selection instruction is sent to the target controlled equipment, a display instruction is sent to the target controlled equipment in response to the fact that the operation of clicking the fourth control is received; the display instruction is used for the target controlled equipment to display a list box for operating the selected page content.
Optionally, the method further includes:
and receiving data transmitted by the target controlled equipment based on the Bluetooth connection when the mouse control instruction is sent to the target controlled equipment.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for simulating a bluetooth mouse, which is applied in a mobile terminal, including:
the opening module is configured to respond to the operation of receiving a first switch for opening the Bluetooth mouse and open a control page of the Bluetooth mouse, wherein a plurality of controlled devices are arranged in the control page;
an establishing module configured to establish a Bluetooth connection with a target controlled device in response to receiving an operation of selecting one of the plurality of controlled devices as the target controlled device;
the display module is configured to display an operation interface of the Bluetooth mouse;
and the sending module is configured to respond to the received operation executed on the operation interface and send a mouse control instruction to the target controlled equipment.
Optionally, a second switch is included on the control page, and the plurality of controlled devices on the control page are presented by responding to receiving an operation of turning on the second switch on the control page.
Optionally, the display module is specifically configured to trigger to display a first control on the control page based on the bluetooth connection; and responding to the received operation of clicking the first control, and displaying an operation interface of the Bluetooth mouse.
Optionally, the first control is displayed in a floating manner on the control page.
Optionally, the operation interface includes a second control, a third control, and a fourth control;
the sending module is specifically configured to send a page content selection instruction to the target controlled device in response to receiving an operation of clicking the second control and moving the operation interface; or, in response to receiving the operation of sliding the third control, sending a page scrolling instruction to the target controlled device; or after a page content selection instruction is sent to the target controlled equipment, a display instruction is sent to the target controlled equipment in response to the fact that the fourth control is clicked; the display instruction is used for the target controlled equipment to display a list box for operating the selected page content.
Optionally, the apparatus further comprises:
and the receiving module is configured to receive data transmitted by the target controlled device based on the Bluetooth connection when the mouse control instruction is sent to the target controlled device.
According to a third aspect of the embodiments of the present disclosure, there is provided a mobile terminal including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of emulating a bluetooth mouse as described in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium including:
the instructions in said storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the method of emulating a bluetooth mouse as described in the above first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the function of simulating the bluetooth mouse is embedded into the system, so that a user can open a control page of the bluetooth mouse based on a bluetooth setting interface, and establish bluetooth connection between the mobile terminal and the target controlled device based on the control page and display an operation interface of the bluetooth mouse, thereby realizing mouse control of the target controlled device. According to the scheme, the user does not need to additionally download the application program simulated by the mouse, and the memory of the mobile terminal cannot be occupied by the newly installed application program, so that the user can be facilitated, and the use experience of the user is improved.
In addition, the mode of additionally downloading the mouse simulation application, the Bluetooth connection state in the application may not be consistent with the Bluetooth connection state in the system, and according to the above scheme of the disclosure, the control page of the Bluetooth mouse simulation is opened through the Bluetooth setting interface of the system, and then the Bluetooth connection is established with the target controlled device based on the control page, so that when the mobile terminal simulates the Bluetooth mouse function, the Bluetooth setting of the system is shared, that is, the Bluetooth connection state can be consistent with the Bluetooth connection state in the system, and the use experience of the user can also be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method for simulating a bluetooth mouse according to an embodiment of the disclosure.
Fig. 2 is an exemplary diagram of a bluetooth setup interface of a system in a mobile phone.
Fig. 3 is an exemplary diagram of a bluetooth setup interface of a system according to an embodiment of the disclosure.
Fig. 4 is a diagram illustrating an exemplary bluetooth mouse simulated control page according to an embodiment of the disclosure.
Fig. 5 is a second exemplary diagram of a bluetooth mouse simulated control page in an embodiment of the disclosure.
Fig. 6 is a third exemplary view of a bluetooth mouse simulated control page in an embodiment of the disclosure.
Fig. 7 is a diagram of an apparatus for simulating a bluetooth mouse according to the present disclosure.
Fig. 8 is a block diagram of a mobile terminal shown in an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for a mobile terminal to simulate a bluetooth mouse according to an embodiment of the present disclosure, where a first switch for turning on or off the bluetooth mouse is disposed in a bluetooth setting interface of the mobile terminal, as shown in fig. 1, the method includes the following steps:
s11, in response to the fact that the operation of starting a first switch of the Bluetooth mouse is received, opening a control page of the Bluetooth mouse, wherein a plurality of controlled devices are arranged in the control page;
s12, responding to the received operation of selecting one of the controlled devices as a target controlled device, and establishing Bluetooth connection with the target controlled device;
s13, displaying an operation interface of the Bluetooth mouse;
and S14, responding to the received operation executed on the operation interface, and sending a mouse control instruction to the target controlled equipment.
In an embodiment of the present disclosure, the mobile terminal includes a smart phone, a smart speaker, or a wearable device. The mobile terminal comprises a display screen and supports image display.
The mobile terminal also supports a Bluetooth function, can display a Bluetooth setting interface on the display screen, and starts the Bluetooth function based on a Bluetooth switch on the Bluetooth setting interface, so as to search connectable Bluetooth equipment and establish connection with a target Bluetooth equipment designated by a user for data transmission.
In one embodiment, the mobile terminal supports the bluetooth mouse emulation function through an independently installed Application (APP) based on the bluetooth function of the mobile terminal. The APP simulating the Bluetooth mouse allows a user to open a Bluetooth function through the application program, and triggers and scans the Bluetooth controlled equipment around the connection and displays the Bluetooth controlled equipment, so that the user can realize mouse control on the Bluetooth controlled equipment in an interface provided by the APP.
However, in the above scheme, the APP based on the simulated bluetooth mouse executes mouse control, and the user needs to additionally download the APP to register and log in for use, so that the operation is complicated, and the use experience of the user is affected. In addition, the additionally downloaded application program may occupy the memory space of the mobile terminal, and may also affect the user experience.
In this regard, the present disclosure directly embeds the analog function of the bluetooth mouse into the system setup, and arranges a first switch for turning on or off the bluetooth mouse in the bluetooth setup interface of the mobile terminal. Therefore, in step S11, the mobile terminal may open the control page of the bluetooth mouse based on the operation of the first switch. In the embodiment of the disclosure, when the mobile terminal receives an operation of turning on the first switch of the bluetooth mouse from the user, the control page of the bluetooth mouse is turned on. It should be noted that, in the embodiment of the present disclosure, a plurality of controlled devices that can establish a bluetooth connection with the mobile terminal are displayed on the control page.
Fig. 2 is an exemplary diagram of a bluetooth setup interface of a system in a mobile phone, and as shown in fig. 2, the bluetooth setup interface of the system includes a switch a1 for turning on or off a bluetooth function. In use, a user may set switch a1 to an open state to turn on bluetooth functionality. After the mobile phone receives the instruction of starting the Bluetooth function, the mobile phone starts to search nearby Bluetooth equipment, so that Bluetooth connection with the nearby Bluetooth equipment is established.
Fig. 3 is an exemplary diagram of a bluetooth setup interface of a system according to an embodiment of the disclosure, and as shown in fig. 3, the bluetooth setup interface further includes a first switch a2 for turning on or off a bluetooth mouse. After the mobile phone receives the operation of turning on the first switch A2 of the Bluetooth mouse, the control page of the Bluetooth mouse is turned on.
In step S12, the mobile terminal may establish a bluetooth connection with the target controlled device through the control page. The target controlled device is determined by the selection operation of the user, and the target controlled device may be a computer, a television, or a vehicle-mounted device, and the embodiments of the present disclosure are not limited.
In one embodiment, a second switch is included on the control page, and the plurality of controlled devices on the control page are presented in response to receiving an operation to turn on the second switch on the control page.
In this embodiment, a second switch is provided on the control page of the bluetooth mouse, and when the mobile terminal receives an operation of turning on the second switch from the user, the information of the controlled device is triggered and displayed. And when the mobile terminal receives the selected operation of the target controlled equipment in the controlled equipment, establishing Bluetooth connection with the target controlled equipment.
Fig. 4 is a first exemplary view of a control page of a bluetooth mouse in an embodiment of the present disclosure, and as shown in fig. 4, a second switch a3 of "connect bluetooth device" is provided on the control page of the bluetooth mouse. When the mobile terminal receives the operation of turning on the 'connected Bluetooth equipment', the display of the information of the 'available equipment' is triggered, and therefore the information of a plurality of controlled equipment is displayed. If the mobile terminal receives the selected operation of the user on any one of the plurality of controlled devices, the Bluetooth connection with the selected controlled device is established, and the selected controlled device is the Bluetooth connection of the target controlled device.
In the embodiment of the disclosure, the process from the operation of receiving and turning on the second switch to the connection establishment with the target controlled device by the mobile terminal is as follows: after receiving a second operation instruction for a second control, the mobile terminal starts a background registration service, calls getProfileProxy (Context, bluetooth profile, servicelist, int) to acquire the connection of the proxy object, creates bluetooth high device appsdsetings, bluetooth high device appqos setings and callbacks, rewrites a callback method therein, calls a register app () method to register the mobile terminal as bluetooth input equipment, and then opens system bluetooth for scanning. After the list of the alternative controlled devices is obtained through scanning and displayed, the mobile terminal receives the selected operation of the user aiming at the target controlled device, and therefore a connect () method of the calling system is triggered to complete connection.
It should be noted that, in the embodiment of the present disclosure, if the mobile terminal receives the connection request sent by the target controlled device on the control page of the bluetooth mouse, a bluetooth connection may also be established between the connection request sent by the target controlled device and the target controlled device, and an operation interface of the bluetooth mouse is displayed for the user to operate based on the bluetooth connection.
In step S13, after the mobile terminal establishes the bluetooth connection with the target controlled device, the operation interface of the bluetooth mouse may be displayed.
It should be noted that, in the embodiment of the present disclosure, the operation interface of the bluetooth mouse may be a sub-interface on the control page of the bluetooth mouse, or may be a new interface independent from the control page. In addition, the operation interface of the bluetooth mouse can be a mouse-shaped interface, and the interface comprises a control which can simulate the left click function and the right click function of the mouse and a slider which can simulate the scrolling function. However, the present disclosure does not specifically limit the style of the operation interface of the bluetooth mouse as long as the function of the mouse can be realized.
In one embodiment, the displaying the operation interface of the bluetooth mouse includes:
triggering to display a first control on the control page based on the Bluetooth connection;
and responding to the received operation of clicking the first control, and displaying an operation interface of the Bluetooth mouse.
In the embodiment of the disclosure, after the mobile terminal and the target controlled device establish a bluetooth connection, a first control for opening an operation interface of a bluetooth mouse is displayed on a control page. Based on the displayed first control, the mobile terminal can receive the operation of clicking the first control from the user, so that the operation interface of the Bluetooth mouse is displayed.
In one embodiment, the first control is displayed in a floating manner on the control page.
Fig. 5 is a second exemplary diagram of a control page of a bluetooth mouse in an embodiment of the present disclosure, and as shown in fig. 5, after a bluetooth connection is established between the mobile terminal and the target controlled device, a first control L1 is displayed in a floating manner in a lower right corner. When the mobile terminal receives the operation of clicking the first control L1, the operation interface of the bluetooth mouse is displayed. Fig. 6 is a third exemplary view of a control page of a bluetooth mouse in an embodiment of the present disclosure, and as shown in fig. 6, an operation interface of the bluetooth mouse is in a shape of a mouse, and the operation interface is a sub-interface in the control page. The operation interface comprises a second control L2 simulating a left mouse button, a third control L3 simulating a mouse scroll wheel and a fourth control L4 simulating a right mouse button.
In step S14, the mobile terminal receives an operation performed by the user on the operation interface of the bluetooth mouse, and then sends a mouse control command to the target controlled device.
In the embodiment of the present disclosure, as mentioned above, the operation interface of the bluetooth mouse includes controls capable of simulating left click and right click functions of the mouse, and a slider capable of simulating a scrolling function. Therefore, after the mobile terminal receives the clicking or sliding operation of the user, the clicking or sliding operation is converted into corresponding operation data, and the data is sent to the target controlled device through the sendReport () interface.
In the embodiment of the disclosure, for example, the mobile terminal is a mobile phone, the target controlled device is a computer, and when a user forgets to carry or fails a mouse in the computer, the mobile phone can be turned on to simulate a mouse function, and the user computer is connected through bluetooth to realize the mouse function. For example, the target controlled device is a television, when a user wants to change programs while watching the television but the remote control of the television is not nearby, the user can connect the television by turning on the mobile phone to simulate the mouse function, and then control the smart television through the mobile phone to change the programs. For another example, the target controlled device is an in-vehicle device, and when the user is using the in-vehicle device but the main driver is inconvenient to click the touch screen, the rear row of users can connect the in-vehicle device through a bluetooth mouse to operate the in-vehicle system.
It should be noted that other non-touch display devices inside buses, shopping malls and the like can be controlled by the method for simulating the bluetooth mouse.
In one embodiment, the operation interface includes a second control, a third control, and a fourth control, and the sending a mouse control instruction to the target controlled device in response to receiving an operation performed on the operation interface includes:
responding to the received operation of clicking the second control and moving the operation interface, and sending a page content selection instruction to the target controlled equipment; or the like, or, alternatively,
in response to receiving the operation of sliding the third control, sending a page scrolling instruction to the target controlled device; or the like, or, alternatively,
after a page content selection instruction is sent to the target controlled equipment, a display instruction is sent to the target controlled equipment in response to the fact that the operation of clicking the fourth control is received; the display instruction is used for the target controlled equipment to display a list box for operating the selected page content.
As shown in FIG. 6, the operation interface includes a second control L2 simulating a left button of the mouse, a third control L3 simulating a scroll wheel of the mouse, and a fourth control L4 simulating a right button of the mouse. For example, when the mobile terminal receives an operation of clicking the second control L2 and moving the entire operation page, a page content selection instruction is sent to the target controlled device. And after the target controlled equipment receives the instruction, the selected content can be highlighted.
For example, when the mobile terminal receives the operation of sliding the third control element L3, it sends a page scrolling command to the target controlled device, and after receiving the command, the target controlled device scrolls the page.
For another example, when the mobile terminal receives an operation of clicking the fourth control L4 after sending a page content selection instruction to the target controlled device, a display instruction is sent to the target controlled device, so that the target controlled device displays a list box for operating the selected page content, for example, the list box includes options for performing operations such as copying and cutting on the selected page content.
It should be noted that, in the embodiment of the present disclosure, the content of the mobile terminal sending the mouse control instruction to the target controlled device based on the operation interface of the bluetooth mouse is not limited to this. In addition, in the embodiment of the present disclosure, if the mobile terminal is switched to an interface of another application from the operation interface of the bluetooth mouse or the control page of the bluetooth mouse, the bluetooth mouse function may still not be interrupted, and the mobile terminal may still continue to execute the mouse control function after returning to the operation interface of the bluetooth mouse. In the present disclosure, the function of the mobile terminal simulating the bluetooth mouse is turned off only when the mobile terminal receives an instruction to turn off the bluetooth mouse function on the bluetooth setting interface, for example, in fig. 3, the mobile terminal receives a turn-off instruction based on the first switch a2 of the "bluetooth mouse" on the bluetooth setting interface. In addition, when the mobile terminal disclosed by the invention switches the horizontal and vertical screens, the control page of the Bluetooth mouse and/or the operation interface of the Bluetooth mouse can synchronously switch the horizontal and vertical screens, so that better use experience is provided for users.
In one embodiment, the method further comprises:
and receiving data transmitted by the target controlled equipment based on the Bluetooth connection when the mouse control instruction is sent to the target controlled equipment.
In the embodiment of the disclosure, when the mobile terminal sends the mouse control instruction to the target controlled device, data transmitted by the target controlled device based on the bluetooth connection can be received, for example, the mobile terminal receives audio data transmitted by the target controlled device based on the bluetooth connection, so that the user can listen to music and the like through the mobile terminal.
It should be noted that, in the embodiment of the present disclosure, when the mobile terminal simulates a bluetooth mouse, other applications that are not based on bluetooth connection, such as a WeChat application, a notepad application, and the like, may still operate normally.
In addition, in the embodiment of the disclosure, the mobile terminal and the target controlled device may adopt an independent thread for performing bluetooth connection or data transmission (including sending a mouse control instruction), and the like, that is, it is not necessary to wait for the bluetooth connection or data transmission after the task in the main thread of the mobile terminal is executed, so that the occurrence of a stuck phenomenon can be reduced, and the smoothness of use can be improved.
It can be understood that, in the embodiment of the present disclosure, the function of simulating the bluetooth mouse is embedded into the system, so that the user can open the control page of the bluetooth mouse based on the bluetooth setting interface, and establish the bluetooth connection between the mobile terminal and the target controlled device based on the control page and display the operation interface of the bluetooth mouse, thereby implementing mouse control on the target controlled device. According to the scheme, the user does not need to additionally download the application program simulated by the mouse, and the memory of the mobile terminal cannot be occupied by the newly installed application program, so that the user can be facilitated, and the use experience of the user is improved.
In addition, the mode of additionally downloading the mouse simulation application, the Bluetooth connection state in the application may not be consistent with the Bluetooth connection state in the system, and according to the above scheme of the disclosure, the control page of the Bluetooth mouse simulation is opened through the Bluetooth setting interface of the system, and then the Bluetooth connection is established with the target controlled device based on the control page, so that when the mobile terminal simulates the Bluetooth mouse function, the Bluetooth setting of the system is shared, that is, the Bluetooth connection state can be consistent with the Bluetooth connection state in the system, and the use experience of the user can also be improved.
Fig. 7 is a diagram of an apparatus for simulating a bluetooth mouse according to the present disclosure. Referring to fig. 7, the apparatus for simulating a bluetooth mouse applied to a mobile terminal includes:
the starting module 101 is configured to respond to the operation of receiving a first switch for starting the Bluetooth mouse, and open a control page of the Bluetooth mouse, wherein a plurality of controlled devices are arranged in the control page;
an establishing module 102 configured to establish a bluetooth connection with a target controlled device in response to receiving an operation of selecting one of the plurality of controlled devices as the target controlled device;
the display module 103 is configured to display an operation interface of the Bluetooth mouse;
a sending module 104 configured to send a mouse control instruction to the target controlled device in response to receiving the operation executed on the operation interface.
Optionally, a second switch is included on the control page, and the plurality of controlled devices on the control page are presented by responding to receiving an operation of turning on the second switch on the control page.
Optionally, the display module 103 is specifically configured to trigger to display a first control on the control page based on the bluetooth connection; and responding to the received operation of clicking the first control, and displaying an operation interface of the Bluetooth mouse.
Optionally, the first control is displayed in a floating manner on the control page.
Optionally, the operation interface includes a second control, a third control, and a fourth control;
the sending module 104 is specifically configured to send a page content selection instruction to the target controlled device in response to receiving an operation of clicking the second control and moving the operation interface; or, in response to receiving the operation of sliding the third control, sending a page scrolling instruction to the target controlled device; or after a page content selection instruction is sent to the target controlled equipment, a display instruction is sent to the target controlled equipment in response to the fact that the fourth control is clicked; the display instruction is used for the target controlled equipment to display a list box for operating the selected page content.
Optionally, the apparatus further comprises:
a receiving module 105, configured to receive data transmitted by the target controlled device based on the bluetooth connection when the mouse control instruction is sent to the target controlled device.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram of a mobile terminal 800 shown in an embodiment of the present disclosure. For example, the apparatus 800 may be a smartphone or the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium having instructions stored therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of emulating a bluetooth mouse, a first switch for turning on or off the bluetooth mouse being disposed in a bluetooth setup interface of the mobile terminal, the method comprising:
opening a control page of the Bluetooth mouse in response to receiving an operation of opening a first switch of the Bluetooth mouse, wherein a plurality of controlled devices are arranged in the control page;
in response to receiving an operation of selecting one of the plurality of controlled devices as a target controlled device, establishing a Bluetooth connection with the target controlled device;
displaying an operation interface of the Bluetooth mouse;
and responding to the received operation executed on the operation interface, and sending a mouse control instruction to the target controlled equipment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A method for simulating a Bluetooth mouse by a mobile terminal is characterized in that a first switch for turning on or off the Bluetooth mouse is arranged in a Bluetooth setting interface of the mobile terminal, and the method comprises the following steps:
opening a control page of the Bluetooth mouse in response to receiving an operation of opening a first switch of the Bluetooth mouse, wherein a plurality of controlled devices are arranged in the control page;
in response to receiving an operation of selecting one of the plurality of controlled devices as a target controlled device, establishing a Bluetooth connection with the target controlled device;
displaying an operation interface of the Bluetooth mouse;
and responding to the received operation executed on the operation interface, and sending a mouse control instruction to the target controlled equipment.
2. The method of claim 1, wherein the control page includes a second switch thereon, and wherein the plurality of controlled devices on the control page are presented in response to receiving an operation to turn on the second switch on the control page.
3. The method of claim 1, wherein the displaying the operation interface of the bluetooth mouse comprises:
triggering to display a first control on the control page based on the Bluetooth connection;
and responding to the received operation of clicking the first control, and displaying an operation interface of the Bluetooth mouse.
4. The method of claim 3, wherein the first control is displayed in a floating manner on the control page.
5. The method according to any one of claims 1 to 4, wherein the operation interface comprises a second control, a third control and a fourth control; the sending of the mouse control instruction to the target controlled device in response to receiving the operation executed on the operation interface includes:
responding to the received operation of clicking the second control and moving the operation interface, and sending a page content selection instruction to the target controlled equipment; or the like, or, alternatively,
in response to receiving the operation of sliding the third control, sending a page scrolling instruction to the target controlled device; or the like, or, alternatively,
after a page content selection instruction is sent to the target controlled equipment, a display instruction is sent to the target controlled equipment in response to the fact that the operation of clicking the fourth control is received; the display instruction is used for the target controlled equipment to display a list box for operating the selected page content.
6. The method of claim 1, further comprising:
and receiving data transmitted by the target controlled equipment based on the Bluetooth connection when the mouse control instruction is sent to the target controlled equipment.
7. A device for simulating a Bluetooth mouse is applied to a mobile terminal, and the device comprises:
the opening module is configured to respond to the operation of receiving a first switch for opening the Bluetooth mouse and open a control page of the Bluetooth mouse, wherein a plurality of controlled devices are arranged in the control page;
an establishing module configured to establish a Bluetooth connection with a target controlled device in response to receiving an operation of selecting one of the plurality of controlled devices as the target controlled device;
the display module is configured to display an operation interface of the Bluetooth mouse;
and the sending module is configured to respond to the received operation executed on the operation interface and send a mouse control instruction to the target controlled equipment.
8. The apparatus of claim 7, wherein the control page includes a second switch thereon, and wherein the plurality of controlled devices on the control page are presented in response to receiving an operation to turn on the second switch on the control page.
9. The apparatus of claim 7,
the display module is specifically configured to trigger display of a first control on the control page based on the bluetooth connection; and responding to the received operation of clicking the first control, and displaying an operation interface of the Bluetooth mouse.
10. The apparatus of claim 9, wherein the first control is displayed in a floating manner on the control page.
11. The apparatus according to any one of claims 7 to 10, wherein the operation interface comprises a second control, a third control, and a fourth control;
the sending module is specifically configured to send a page content selection instruction to the target controlled device in response to receiving an operation of clicking the second control and moving the operation interface; or, in response to receiving the operation of sliding the third control, sending a page scrolling instruction to the target controlled device; or after a page content selection instruction is sent to the target controlled equipment, a display instruction is sent to the target controlled equipment in response to the fact that the fourth control is clicked; the display instruction is used for the target controlled equipment to display a list box for operating the selected page content.
12. The apparatus of claim 7, further comprising:
and the receiving module is configured to receive data transmitted by the target controlled device based on the Bluetooth connection when the mouse control instruction is sent to the target controlled device.
13. A mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of simulating a Bluetooth mouse of any of claims 1-6.
14. A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the method of emulating a bluetooth mouse of any one of claims 1 to 6.
CN202110181276.4A 2021-02-08 2021-02-08 Method and device for simulating Bluetooth mouse, mobile terminal and storage medium Pending CN112954108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110181276.4A CN112954108A (en) 2021-02-08 2021-02-08 Method and device for simulating Bluetooth mouse, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110181276.4A CN112954108A (en) 2021-02-08 2021-02-08 Method and device for simulating Bluetooth mouse, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN112954108A true CN112954108A (en) 2021-06-11

Family

ID=76245233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110181276.4A Pending CN112954108A (en) 2021-02-08 2021-02-08 Method and device for simulating Bluetooth mouse, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112954108A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035329A (en) * 2006-03-07 2007-09-12 李伟高 Mobile phone with the bluetooth keyboard and bluetooth mouse function
CN201528370U (en) * 2009-10-23 2010-07-14 深圳市天讯龙软件技术有限公司 Mobile phone with Bluetooth mouse function
CN102970428A (en) * 2012-11-16 2013-03-13 广东欧珀移动通信有限公司 Mobile terminal application sharing method and system
US9292107B1 (en) * 2012-10-29 2016-03-22 Trend Micro Inc. Mobile telephone as computer mouse
CN106303057A (en) * 2016-08-24 2017-01-04 惠州Tcl移动通信有限公司 The method and system of bluetooth equipment are controlled by mobile terminal simulation bluetooth mouse

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035329A (en) * 2006-03-07 2007-09-12 李伟高 Mobile phone with the bluetooth keyboard and bluetooth mouse function
CN201528370U (en) * 2009-10-23 2010-07-14 深圳市天讯龙软件技术有限公司 Mobile phone with Bluetooth mouse function
US9292107B1 (en) * 2012-10-29 2016-03-22 Trend Micro Inc. Mobile telephone as computer mouse
CN102970428A (en) * 2012-11-16 2013-03-13 广东欧珀移动通信有限公司 Mobile terminal application sharing method and system
CN106303057A (en) * 2016-08-24 2017-01-04 惠州Tcl移动通信有限公司 The method and system of bluetooth equipment are controlled by mobile terminal simulation bluetooth mouse

Similar Documents

Publication Publication Date Title
US10564833B2 (en) Method and apparatus for controlling devices
EP3136793B1 (en) Method and apparatus for awakening electronic device
WO2017113842A1 (en) Intelligent device control method and apparatus
US9886259B2 (en) Method and terminal device for complying router management application with router firmware
CN111314768A (en) Screen projection method, screen projection device, electronic equipment and computer readable storage medium
EP3062196A1 (en) Method and apparatus for operating and controlling smart devices with hand gestures
KR20160077011A (en) Method and apparatus for adjusting operating status of smart home device
CN107562349B (en) Method and device for executing processing
EP3119037B1 (en) Method and apparatus for downloading a control program
WO2017008400A1 (en) Method and device for controlling intelligent device
CN112905089B (en) Equipment control method and device
JP2017502438A (en) Description Information Display Method, Description Information Display Device, Electronic Device, Program, and Recording Medium
CN114071243A (en) Video playing method and device, electronic equipment and storage medium
CN107272427B (en) Control method and device of intelligent equipment
CN106933111B (en) Method and device for controlling equipment
CN112954108A (en) Method and device for simulating Bluetooth mouse, mobile terminal and storage medium
JP2018503149A (en) Information input method, apparatus, program, and recording medium
KR20130133389A (en) Terminal and method for controlling the same
CN106773753B (en) Equipment control method and device
CN113377322A (en) Page direct processing method and device and electronic equipment
EP3929738A1 (en) Data processing method, apparatus, and medium
US11956333B2 (en) Method for sharing apps, terminal, and storage medium
CN112698770B (en) Information processing method and device, and storage medium
EP4206962A1 (en) Shooting method and device and storage medium
CN111107624B (en) Negative one-screen synchronization method, negative one-screen synchronization device 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210611