Patent Description:
At present, as an external input device for computers, the mouse is mainly used in an office setting. The basic functions of the mouse are also reflected in the text input, translation and other functions. The mouse key functions are often simple and users cannot customize the mouse key functions. The mouse, as an accessory of the computer, will lose most of its functions when it is separated from the computer.

<CIT> relates to a method for controlling an Interest of Things (IoT) device. The method includes receiving network connecting data sent by a terminal, determining a physical location of the terminal based on the network connecting data, determining a target region based on the physical location to determine a target IoT device corresponding to the target region, receiving user operation data sent by the terminal, and controlling the target IoT device based on the user operation data.

<CIT> relates to extending an IoT control interface from an IoT controller to a user device. The IoT controller receives information from IoT devices over an IoT communications interface. The IoT controller establishes a wireless media presentation session with a user device with the IoT controller acting as a source and the user device acting as a sink. The IoT controller generates a displayable IoT control interface for the IoT devices and sends the displayable IoT control interface to a user device within a media stream of the wireless media presentation session. The use device displays the displayable IoT control interface and sends the IoT controller user input feedback over a user input feedback channel. The IoT controller determines whether to modify one or more settings associated with the at least one IoT device based upon the user input feedback.

<CIT> relates to a mouse having a remote control function. The mouse acquires the speed signal through a voice inputting module and sends the speed signal to a control chip, acquires a control signal through the control chip, and sends the control signal to an external electronic device through an infrared transmitting module.

To overcome the problems in the prior art, the present inventionprovides a method for controlling an Internet of Things (IoT) device applied to a terminal device according to independent claim <NUM>, a method for controlling an IoT device applied to a server according to independent claim <NUM>, an apparatus for controlling an IoT device applied to a terminal device according to independent claim <NUM>, and a non-transitory computer-readable storage medium according to independent claim <NUM>.

The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects. With the method of the present disclosure, an effect that the user remotely controls the IoT device through the mouse may be achieved, which improves the additional value of the mouse key, has various functions, improves the user's use experience, and meets the user's use needs.

It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present disclosure.

The drawings herein are incorporated into the specification and constitute a portion of the specification and illustrate embodiments in accordance with the disclosure, and the drawings together with the specification are used to explain the principle of the disclosure.

The Internet of Things (IOT) is in a meaning of Internet for connecting everything, which is an extended and expanded network based on the Internet. It is a huge network formed by combining various information sensing devices with the Internet, realizing an interconnection among individuals, machines and things at any time and any place. With the continuous development of information technology, IoT devices have been increasingly used.

At present, users usually use a dedicated IoT controller to control IoT devices. An IoT controller may only control a specific device and cannot flexibly set objects to be controlled. The users can also use a mobile phone to directly control the IoT home devices. This method requires opening special application on the mobile phone, then selecting a device and selecting an operation to be performed. The operation chain is redundant which causes a poor user experience.

The mouse is a commonly used product in daily office. In the home environment, the mouse is also a common device. In the past, the mouse was mainly used in the office field. As an accessory of the computer, the mouse will lose most of its functions after being separated from the computer. As people use IoT devices, the basic functions of the mouse can no longer meet daily requirements for individuals.

In order to solve the above technical problems, the present disclosure provides a method for controlling an Internet of Things (IoT) device, which is applied to a terminal device. The terminal device acquires parameter information of a triggered key of a mouse, determines a target device and target operation information acting on the target device based on the parameter information, and sends device information of the target device and the target operation information to a server, such that the server sends control information sent by the user through the mouse to the target device. therefore, an effect that the user remotely controls the IoT device through the mouse may be achieved, which improves the additional value of the mouse key, has various functions, improves the user's use experience, and meets the user's use needs.

According to an exemplary embodiment, a method for controlling an Internet of Things (IoT) device is provided, which is applied to a terminal device. The terminal device may be, for example, a desktop computer, a notebook computer, a mobile phone, a tablet computer, and other smart devices. Before describing the method in this embodiment, the overall architecture involved in the method will be explained first.

As shown in <FIG>, the communication network architecture includes a mouse <NUM>, a terminal device <NUM>, a server <NUM>, and an Internet of Things (IoT) device. The mouse <NUM> is in communication connection with the terminal device <NUM>, the terminal device <NUM> is connected to the server <NUM> via a wireless network, and the IoT device is connected to the server <NUM> via a wireless network. The IoT device may be, for example, an air conditioning device <NUM> and a TV set <NUM>. It should be understandable that the IoT device may also be smart home devices such as smart curtains and smart refrigerators. The terminal device <NUM> and the mouse <NUM> in this embodiment may be devices in the user's office, or devices located in other enclosed spaces away from the IoT devices. The execution subject of the method for controlling the IoT device in this embodiment is the terminal device <NUM>. The terminal device <NUM> may include, but is not limited to, a smart phone, a tablet computer, a personal computer (PC), a notebook computer, a personal digital assistant (PDA), and so on.

In this embodiment, the IoT device in the Internet may be called a networked device, and the IoT device in the local communication network may be called a non-networked device. Referring to <FIG>, the IoT device may be connected to the Internet, that is, the networked devices. When the user wants to control the networked device, as the mouse cannot establish wireless communication with the IoT device in the Internet, at this time, the user may trigger a key of the mouse <NUM> to send a message to the terminal device <NUM>, and the terminal device <NUM> determines the IoT device corresponding to the message and the related operation content which are then sent to the server <NUM> according to the message sent by mouse <NUM>. After receiving the above information, the server <NUM> controls the involved IoT device to perform the related operation content.

As shown in <FIG>, the method in this embodiment includes the following steps during the implementation process.

In step S210, parameter information of a triggered key of a mouse is acquired, in which the parameter information includes a key value of the key and a state of the key.

In this step, the terminal device can receive all key operations sent by the mouse. Each key on the mouse corresponds to a key value. For example, the key value corresponding to the left key is A, the key value corresponding to the right key is B, and the key value corresponding to the middle key is C; the state of the key may be, for example, single-click, double-click, long-press, and so on. When the user presses a certain key of the mouse, the key value of the key and the specific operation that the user acts on the key, that is, the state of the key, will be sent to the terminal device as parameter information. After the terminal device receives the parameter information sent by the mouse, the terminal device subsequently determines the device that the user wants to operate and the operation content according to the parameter information (details are described later).

In an example, the user triggering the parameter information sent by the mouse key includes: pressing the mouse key in a preset sequence of operation actions. Specifically, the user can trigger a mouse key by pressing a preset operation action, and the preset operation action includes one or a combination of the followings: single-click, double-click, long-press, a combination of different keys. For example, the user can trigger the keys by clicking the left key once, or by clicking the right key twice in a sequence of execution. For another example, the user can also trigger a key by clicking the left key and the right key of the mouse at the same time. For another example, the user can also trigger a key by long pressing the middle key of the mouse.

In another example, a voice control key can also be specially set on the mouse to realize voice information entry. The voice control key corresponds to a preset key value. When the voice control key is pressed, the mouse will collect voice information, and the collected voice information can be regarded as the state of the key corresponding to the voice control key. For example, the user presses the voice control key on the mouse and says "Please turn on the air conditioner at home and adjust the temperature to <NUM> ". After the mouse receives the voice information, the voice control key being triggered and the received voice information may be determined as parameter information and sent to the terminal device, and then the terminal device recognizes the voice information according to the received parameter information to determine the IoT device and the corresponding operation content involved in the voice information made by the user, so as to achieve a remote control for the IoT device via the mouse.

Here, it should be noted that in this embodiment, the terminal device <NUM> and the mouse <NUM> can be connected in a near field communication manner, such as Bluetooth. When the mouse <NUM> has a network communication function, it may also be connected through Internet communication. When the terminal device <NUM> is a personal computer, the terminal device <NUM> is provided with software that matches the mouse <NUM> to adjust the IoT devices corresponding to the respective keys on the mouse <NUM> and the operation content corresponding to operations acting on the keys by setting the software. When the terminal device <NUM> is a mobile phone or a tablet computer, an application program (APP) is set on the terminal device <NUM>. By operating and setting the APP, the IoT devices corresponding to the respective keys on the mouse <NUM> and the operation content corresponding to the operations acting on the keys may be adjusted.

In step S220, a target device and target operation information acting on the target device are determined based on the parameter information.

In this step, after the terminal device obtains the parameter information sent by the user by triggering the mouse, the terminal device determines the target device corresponding to the parameter information and the target operation information sent for the target device according to the parameter information sent by the mouse.

In an example, referring to <FIG>, two IoT devices are connected to the Internet, one is an air conditioner <NUM> and the other is a TV set <NUM>. When the user is in the office, and the user wants to turn on the air conditioner <NUM> at home, the user can click the left key of the mouse <NUM>, and the terminal device <NUM> maintains a near field communication connection with the mouse <NUM>, and the terminal device <NUM> receives the parameter information sent by the mouse <NUM>, and specifically, the parameter information may include the key value of the left key and the state of the left key being clicked. The terminal device <NUM> may determine that the IoT device that the user wants to operate is the air conditioner <NUM>, and the target operation information is to activate the air conditioner <NUM> according to the default rules between the terminal device <NUM> and the mouse <NUM>, for example, the left key corresponds to "air conditioner <NUM>", and the single-click corresponds to "turn on".

In another example, when the user is in the office and the user wants to turn off the TV set <NUM> at home, the user can double-click the right key of the mouse <NUM>, the terminal device <NUM> maintains a Bluetooth communication connection with the mouse <NUM>, and the terminal device <NUM> receives the parameter information sent by the mouse <NUM>. The parameter information of the right key is the key value of the right key and the state of the right key being double-clicked. The terminal device <NUM> may determine that the IoT device that the user wants to operate is the TV set <NUM>, and the target operation information is to deactivate the TV set <NUM> according to the default rules between the terminal device <NUM> and the mouse <NUM>, for example, the right key corresponds to "TV set <NUM>", and the double-click corresponds to "turn off".

In another example, when the user is in the office, and the user wants to turn on the air conditioner <NUM> at home, the user can long-press the middle key of the mouse <NUM> and says "Please turn on the air conditioner to <NUM> " by voice while the middle key is pressed. The terminal device <NUM> maintains a Bluetooth communication connection with the mouse <NUM>, and the terminal device <NUM> receives the parameter information sent by the mouse <NUM>, the parameter information may include the key value of the middle key and the voice information received during the middle key is pressed. The terminal device <NUM> receives the voice information sent by the mouse <NUM> according to the default rules between the terminal device <NUM> and the mouse <NUM>, such as a voice input state corresponding to the middle key. Furthermore, the terminal device <NUM> recognizes the received voice information, determines that the target device is the air conditioner <NUM>, and the target operation information is to turn on the air conditioner to <NUM>.

In step S230, device information of the target device and the target operation information are sent to a server.

In this step, the terminal device determines the target device that the user wants to control according to the parameter information of the key triggered by the user, and then determines the device information of the target device, such as the identification information of the target device, and determines the device information of the target device. The device information of the target device and the target operation information of the target device are sent to the server to control the target device to perform operations corresponding to the target operation information through the server, thereby realizing to control the networked device by the mouse through the network.

Referring to <FIG>, the terminal device <NUM> determines that the user wants to control the air conditioner <NUM> in the home, the target operation information sent to the air conditioner <NUM> is turning on the air conditioner <NUM>, and the terminal device <NUM> determines the device information of the air conditioner <NUM>, such as version information of a certain air conditioner in the some air conditioners at home, and the device information of the air conditioner <NUM> and the target operation information of turning on the air conditioner <NUM> are sent to the server <NUM> and then sent to the air conditioner <NUM> through the server <NUM>, such that the air conditioner <NUM> performs the corresponding operations.

The terminal device in the present disclosure obtains the parameter information of the mouse key triggered by the user, in which the parameter information includes the key value of the key and the state of the key, the target device that the user wants to control and the target operation information of the target device are determined according to the parameter information, and the device information of the target device and the target operation information of the target device are sent to the server, so that the server sends the control information sent by the user to the target device, thereby realizing remote control of different IoT devices through the mouse, improving the additional value of the mouse key, making the functions richer, improving the user experience, and meeting the user's use needs, which can realize the smart mouse in a true sense.

According to an exemplary embodiment, as shown in <FIG>, the method in this embodiment is applied to a terminal device. The method in this embodiment includes the following steps.

In step S310, parameter information of a triggered key of a mouse is acquired, in which the parameter information includes a key value of the key and a state of the key.

The step S310 is the same as the step S210, related descriptions are mentioned in step S210, which will not be repeated in this embodiment.

In step S320, configuration information is acquired.

The configuration information in this step is configured to represent a correspondence between the key value of the key and the IoT device and a correspondence between the state of the key and operation information.

The configuration information is pre-stored in the terminal device, and the related content in the configuration information can be modified by the software or APP installed on the terminal device, so that the user can customize the IoT device corresponding to the mouse key and the operation corresponding to the state of the mouse key as required, so as to meet the needs of users.

Of course, it should be understood that the configuration information can also be stored on the server, and the configuration information can be obtained from the server that is in communication with the terminal device when the terminal device needs to use the configuration information.

In step S330, the target device and the target operation information acting on the target device are determined based on the parameter information and the configuration information.

The configuration information of the terminal device stores the key value of the mouse key and the operation information corresponding to the pressed state of the mouse key. In the configuration information, the correspondence between the key value of the key triggered by the user and the IoT device, and the correspondence between the state of the key triggered by the user and the operation information can be obtained, such that the IoT device that the user wants to operate and the operation to be performed on IoT device may be determined. After the terminal device obtains the parameter information of the triggered mouse key, the terminal device determines the key value of the key and the state of the key contained in the parameter information. For example, the key value is A, and the state is single click. The terminal device queries the configuration information and determines that the target device corresponding to the key value A is an air conditioner, and the state of the key is that the target operation information corresponding to single-click is "turn on", that is, the air conditioner is turned on.

In step S340, device information of the target device and the target operation information are sent to a server.

The step S340 is the same as the step S230, and the related descriptions are mentioned in step S230, which will not be repeated in this embodiment.

In this embodiment, configuration information is stored in the terminal device. When the terminal device receives the parameter information sent by the mouse, the terminal device determines the target device and target operation information according to the configuration information and parameter information, and then the device information and target operation information are sent to the server so as to realize to control the device and remote control of the IoT device.

In step S410, customized information is received.

The customized information includes device information of the IoT device corresponding to the key value of the key, and operation information of the IoT device corresponding to the state of the key.

In this step, the mouse supports the user to configure the mouse keys through customized information. The user can preset the function of the mouse key to control the IoT device in the configuration page of the terminal device. The user can configure different key operations for the respective keys of the mouse according to their own situation, so as to control different IoT devices. For example, the user can input the customized information of the mouse in the editable software of the computer or the APP of the mobile phone. The user can set customized information about the mouse keys in the configuration page of the terminal device. The terminal device receives the customized information input by the user, and can flexibly configure the mouse key functions according to the customized information to add new mouse functions.

The user can set the correspondence between the key value of the mouse key and the IoT device in the Internet when the user wants to control the networked device via the mouse, and set the correspondence between the state of the mouse key and the operation information that acts on the networked device in the configuration page.

Referring to <FIG>, the terminal device <NUM> can obtain the device information of all networked devices, that is, the terminal device <NUM> can obtain the device information of the air conditioner <NUM> in the home and the device information of the TV set <NUM> in the home through the server <NUM>, and the terminal device <NUM> can also obtain information of all keys of the mouse. The correspondence between the preset key value of the key and the device information of the air conditioner <NUM> and the correspondence between the preset state of the key and the operation information for controlling the air conditioner <NUM> in the configuration page of the terminal device <NUM> according to personal usage habits when the user wants to control the air conditioner <NUM> at home.

The IoT devices in the present disclosure include, but are not limited to, smart devices such as smart household appliance and smart wearable devices. The smart wearable devices include smart wearable devices for elders, smart wearable devices for pets, smart watches for adults, smart watches for children, etc. the smart household appliances include smart air purifier platforms, sweeping robots, smart power strips, smart kitchen and bathroom supplies, smart doors and windows, air conditioners, washing machines, TVs, refrigerators, etc..

In an exemplary embodiment, the device information of the IoT device includes at least one of the following information: a device name, device identification information, a device address, a device interface, an IP address, a MAC address, and a communication identification.

In an exemplary embodiment, the operation information acting on the IoT device includes at least one of the following information: switch status control, volume adjustment, light brightness adjustment, and temperature adjustment.

In step <NUM>, the configuration information is determined based on the customized information.

In this step, after the user sets the customized information of the mouse through the terminal device, the terminal device generates the configuration information of the mouse according to the correspondence between the key value of the key and the device information of the IoT device, and the correspondence between the state of the key and the operation information acting on the IoT device set in the customized information input by the user, and store the configuration information of the mouse or upload the configuration information to the server.

In this embodiment, the user can set the customized information of the respective mouse keys in the terminal device according to personal needs. The terminal device receives the customized information input by the user and generates configuration information, so that the mouse can perform the configurations based on the user's personal habits and needs to enrich the functions of the mouse keys, thereby meeting the user's personalized customization needs, and facilitating users to use the mouse to control the IoT devices according to their personal habits.

According to an exemplary embodiment, as shown in <FIG>, the method in this embodiment is applied to a terminal device. Before setting the customized information through the terminal device, and before controlling the IoT device through the mouse, the terminal device first needs to perform security authentication on the mouse to improve the security and reliability of subsequent operations. The method for authenticating a mouse involved in this embodiment includes the following steps.

In step S510, authentication information of the mouse is acquired.

In this step, before acquiring the authentication information of the mouse, the terminal device establishes a communication connection with the mouse in the near field communication manner. During the establishment of the communication connection, in order to ensure the reliability of the subsequent communication process, the first step is to obtain the authentication information of the mouse according to the preset communication protocol to perform device authentication on the mouse, and determine whether the mouse connected to the terminal device is an authentication device.

In step S520, it is confirmed that the mouse belongs to an authentication device according to the authentication information.

In a case that the mouse belongs to the authentication device, the step S530 is executed; in case that the mouse does not belong to the authentication device, the step S540 is executed.

When confirming whether the mouse belongs to an authentication device, the authentication information obtained from the mouse is compared with the pre-stored related information. In a case that the authentication information is consistent with the pre-stored related information, the mouse belongs to the authentication device. In a case that there is a difference between the pre-stored related information and authentication information, that is, they are inconsistent, the mouse is not an authentication device.

In step S530, device information of the mouse is displayed.

In this step, when the terminal device confirms that the mouse belongs to the authentication device, the device information of the mouse can be displayed in the terminal device, and the user can view the device information of the mouse and learn about the device details of the mouse in time.

The device information of the mouse includes one or more of the following combinations: an electric power of the mouse, version information, a state of the mouse, and mouse key information.

In step S540, the device information of the mouse is not displayed.

In this step, when the terminal device confirms that the mouse is not an authentication device, the device information of the mouse cannot be viewed in the terminal device, and the terminal device does not establish a communication connection with the mouse.

In this embodiment, the terminal device obtains the authentication information of the mouse to perform device authentication on the mouse, and judges whether the mouse belongs to the authentication device according to the authentication information of the mouse. In a case that the mouse belongs to the authentication device, the authentication for the mouse is passed, and the terminal device can display the device information of the mouse, such that the user can learn about the mouse information, and at the same time the reliability of the connection between the mouse and the terminal device may be improved.

According to an exemplary embodiment, the overall architecture in this embodiment is shown in <FIG>, and the method for controlling an Internet of Things (IoT) device in this embodiment is applied to a server. The overall architecture shown in <FIG> is described in the description in the related embodiments, which will not be repeated here.

As shown in <FIG>, the method for controlling the Internet of Things (IoT) device in this embodiment includes the following steps.

In step S610, device information and target operation information of a target device sent by a terminal device are acquired.

In this step, the server receives the device information and target operation information of the target device sent by the terminal device, and determines the target device the user would like to control from the multiple networked IoT devices according to the received device information and target operation information of the target device, so that the server sends to the target device a control instruction issued by the user to the target device. Referring to <FIG>, for example, if the user wants to control the air conditioner <NUM> in the home to be turned on, the user clicks the left key of the mouse <NUM> to send parameter information to the terminal device <NUM>. After the terminal device <NUM> receives the parameter information sent by the mouse <NUM>, the terminal device may determine, according to the parameter information, that the target device corresponding to the left key of the mouse <NUM> is the air conditioning device <NUM>, and the corresponding target operation information is turn on, then the device information of the air conditioner <NUM> and the information of turning on the air conditioner are sent to the server <NUM>.

In step S620, a control instruction is determined according to the target operation information.

In this step, after receiving the target operation information sent by the terminal device, the server determines the control instruction corresponding to the target operation information according to the target operation information. For example, after receiving the device information and the information of turning on the air conditioner sent by the terminal device, the control instruction is "turning on".

In step S630, the control instruction is sent to the target device.

In this step, after determining the control instruction according to the target operation information received from the terminal device, the server sends the control instruction to the target device that the user needs to control, so that the target device receives the control instruction and executes the corresponding operation. For example, the server <NUM> issues an instruction of "turning on" to the air conditioner <NUM> in the home, and controls the air conditioner <NUM> in the home to be turned on. For another example, the server <NUM> sends an instruction of "turning off" to the TV set <NUM> in the home to control the TV set <NUM> in the home to be turned off.

In this embodiment, the server receives the device information and target operation information of the target device sent by the terminal device, determines the control instruction corresponding to the target operation information according to the target operation information, and sends the control instruction to the target that the user needs to control, such that the target device is enabled to perform corresponding operations after receiving the control instruction, which realizes the effect of remote control of the IoT device by the user through the mouse, and improves the convenience and diversity of the control of the IoT device.

According to an exemplary embodiment, referring to <FIG> and <FIG>, two overall architectures involved in the embodiment will be described first. The architecture shown in <FIG> is applied to the process of remotely controlling the IoT device through the mouse. The overall architecture has been described in detail in the previous embodiments, and will not be repeated here.

The architecture shown in <FIG> is applied to the process in which the mouse is used as a controller to control a local device. The local communication network includes a mouse <NUM> and a local device. The local device includes a computer <NUM> and an IoT device. The IoT device is an air conditioner <NUM> and a TV <NUM>. The IoT device in this embodiment is a local device in a local communication network, that is, a non-networked device. A Bluetooth communication connection is established between the mouse <NUM> and the local device.

As shown in <FIG>, this embodiment provides a method for controlling an Internet of Things (IoT) device. The method is applied to the mouse <NUM> shown in <FIG>. The method in this embodiment includes the following steps.

In step S810, device information of a local device in a communication state is acquired.

In this step, the mouse establishes Bluetooth communication with multiple local devices, and the user can send control information to the local device currently establishing a Bluetooth communication connection with the mouse by triggering the mouse key operation, and control the local device with which the Bluetooth connection is established. After receiving the operation information of the key from the user, the mouse sends different control information to the local device according to the different local devices connected to the mouse.

The device information represents what the device currently connected to the mouse is, such as the version number of the device, etc., and can reflect whether the device is a personal computer, a television, or an air conditioner.

In the implementation process, in order to facilitate the user to visually distinguish the information of the device currently establishing a communication connection with the mouse, an indicator can be set on the mouse, the local device currently connected can be determined by changing a blinking mode of the indicator, a color of the indicator, and the number of indicators and the like. For example, when the indicator is red, it means that the local device currently connected to the mouse is a computer; when there are two indicators are on, it indicates that the local device currently connected to the mouse is an air conditioner; when the indicator keeps flashing, it means that the local device currently connected with the mouse device is a TV. The above-mentioned specific method of displaying the local device currently connected with the mouse can be set in a custom way, so that the user can intuitively judge the current connected local device in a familiar method, which is convenient for the user to operate.

In step S820, a working mode is determined based on the device information of the local device.

In this step, after obtaining the device information of the local device, the mouse determines the working mode corresponding to the local device according to the device information of the local device. Specifically, the mouse can work in different working modes, the mouse has the working mode of a conventional mouse, and may also have other working modes. When the mouse is in different working modes, the user triggers the same mouse operation to send different control information, and then controls different local devices to perform different actions.

In step S830, control information is sent to the local device based on an operation on a key and the working mode.

In this step, the mouse receives the operation information corresponding to the mouse key that the user triggers, and accurately determines the control information sent by the user according to the local device corresponding to the control of the key operation and the working mode of the mouse corresponding to the local device, such that the control information is sent to the local device that the user wants to control, and the local device receives and executes the control information sent by the user.

Referring to <FIG>, for example, when the mouse <NUM> currently establishes a communication connection with the computer <NUM>, in the mouse working mode corresponding to the computer <NUM>, and the user single clicks the left key, the parameter information is sent to the computer <NUM>, and the parameter information includes the key value of the left key and the information of single click. At this time, after receiving the above-mentioned parameter information, the computer <NUM> makes a feedback of selecting a certain folder. For another example, when the mouse <NUM> currently establishes a communication connection with the TV <NUM>, the mouse <NUM> is used as a controller of the TV <NUM>, and when the user single clicks the left key, a control instruction of turning on the TV <NUM> is sent to the TV <NUM>.

In this embodiment, different local devices can be controlled according to the different local devices to which the mouse is currently connected. That is, the mouse can be used as a normal mouse or as a controller, which expands the functional diversity of the mouse and improves the user experience.

According to an exemplary embodiment, referring to <FIG> and <FIG>, this embodiment provides a method for controlling an Internet of Things (IoT) device, and the method is applied to a mouse. The method in this embodiment includes the following steps.

In step S910, device information of a local device in a communication state is acquired.

The step S910 is the same as the step S810, and the relevant description is mentioned in step S810, which will not be repeated in this embodiment.

In step S920, a working mode is determined based on the device information of the local device.

In this step, after acquiring the device information of the local device in the communication state, the mouse determines whether the local device to be controlled by the user is a computer or an IoT device according to the device information of the local device, so as to send the control information in the working mode of the computer or the IoT device, thereby distinguishing the local devices currently controlled by the user through the mouse and control them accordingly.

In step S930, it is determined that the working mode is a mouse mode in response to the device information of the local device representing that the local device is a computer.

In this step, after acquiring the device information of the local device, the mouse determines that the local device to be controlled by the user is the computer according to the device information of the local device, and determines that the working mode of the mouse corresponding to the computer is a mouse mode according to the configuration information of the mouse. Therefore, the mouse is enabled to send the control information sent by the user to the computer in the mouse mode, and the computer will process the control information sent by the user through the mouse. For example, users can manipulate files and folders on the computer by single-clicking, double-clicking, long-pressing, and dragging the mouse keys.

In step S940, it is determined that the working mode is a controller mode in response to the device information of the local device representing that the local device is the IoT device.

In this step, after acquiring the device information of the local device, the mouse determines that the local device to be controlled by the user is an air conditioner or a TV, etc. according to the device information of the local device, and it is determined that the working mode of the mouse is the controller mode, thereby facilitating the user's operation to send out correct control instructions to the air conditioner or TV in the controller mode, and the TV or the air conditioner is controlled to perform corresponding actions. For example, the air conditioner is controlled to be turned on or off, and the TV is controlled to beturned on or off.

In step S950, control information is sent to the local device based on an operation on a key and the working mode.

In this step, when the working mode is the controller mode, the control information is sent to the IoT device in a Bluetooth broadcasting manner according to the received key operation, in which the control information includes the Bluetooth secret key of the IoT device as the local device.

Since the Bluetooth communication method sends control information through broadcast, in order to ensure the accuracy and pertinence of control, the control information of the Bluetooth broadcast includes the Bluetooth secret key of the IoT device to be controlled, so as to ensure that only the IoT device who has the secret key can receive the control instruction and execute corresponding actions.

The Bluetooth secret key involved in the control information can be obtained by the mouse from the terminal device. The mouse can first establish a communication connection with the terminal device through Bluetooth. The terminal device stores configuration information and the Bluetooth secret key of the IoT device involved. The configuration information is used to represent the device information of the IoT device corresponding to the key value of the key and the operation information that acts on the IoT device corresponding to the state of the key. The user can customize the configuration information, adjust the IoT device corresponding to the key value of the mouse key, and the operation information corresponding to the state of the key to enhance the personalized configuration and functional diversity.

Of course, it should be understood that the Bluetooth secret key and configuration information can also be stored in the server instead of the terminal device. When the Bluetooth device and configuration information need to be used, the terminal device communicates with the server to obtain the Bluetooth secret key and configuration information.

In this embodiment, the mouse can be used as an ordinary mouse or as a controller to control local Internet of Things devices, which enhances the functional diversity of the mouse and facilitates local control by the user.

According to an exemplary embodiment, as shown in <FIG>, the apparatus is applied to a terminal device. The apparatus includes a first acquiring unit <NUM>, a first determining unit <NUM>, a first sending unit <NUM>, a first receiving unit <NUM>, and a generating unit <NUM> and a displaying unit <NUM>.

The first acquiring unit <NUM> is configured to acquire parameter information of a triggered key of a mouse, in which the parameter information includes a key value of the key and a state of the key. The first determining unit <NUM> is configured to determine a target device and target operation information acting on the target device based on the parameter information. The first sending unit <NUM> is configured to send device information of the target device and the target operation information to a server.

The first determining unit <NUM> is specifically configured to: acquire configuration information, in which the configuration information is configured to represent a correspondence between the key value of the key and the IoT device and a correspondence between the state of the key and operation information; and determine the target device and the target operation information acting on the target device based on the parameter information and the configuration information.

The apparatus also includes: a first receiving unit <NUM>, is configured to receive customized information input to the terminal device, in which the customized information comprises device information of the IoT device corresponding to the key value of the key, and operation information of the IoT device corresponding to the state of the key; and a generating unit <NUM>, configured to determine the configuration information based on the customized information.

The first obtaining unit <NUM> is configured to acquire authentication information of the mouse; the first determining unit <NUM> is configured to confirm that the mouse belongs to an authentication device according to the authentication information; and the apparatus also includes a displaying unit <NUM>, which is configured to display device information of the mouse.

According to an exemplary embodiment, as shown in <FIG>, the apparauts is applied to a server. Referring to <FIG>, the apparatus includes a determining second acquiring unit <NUM>, a second determining unit <NUM>, and a second sending unit <NUM>.

The second acquiring unit <NUM> is configured to acquire device information and target operation information of a target device sent by a terminal device. The second determining unit <NUM> is configured to determine a control instruction according to the target operation information. The second sending unit <NUM> is configured to send the control instruction to the target device.

According to an exemplary embodiment, as shown in <FIG>, the apparatus is applied to a mouse. Referring to <FIG>, the device includes a third acquiring unit <NUM>, a third determining unit <NUM>, a third sending unit <NUM>, a communication unit <NUM>, and a third receiving unit <NUM>.

The third acquiring unit <NUM> is configured to acquire device information of a local device in a communication state. The third determining unit <NUM> is configured to determine a working mode based on the device information of the local device. The third sending unit <NUM> is configured to send control information to the local device based on an operation on a key and the working mode.

The third determining unit <NUM> is further configured to: determine that the working mode is a mouse mode in response to the device information of the local device representing that the local device is a computer; and determine that the working mode is a controller mode in response to the device information of the local device representing that the local device is the IoT device.

The third sending unit <NUM> is configured to: send the control information to the IoT device in a Bluetooth broadcasting manner based on the operation on the key in a case that the working mode is the controller mode, wherein the control information comprises a Bluetooth key of the IoT device.

Among them, the apparatus also includes: a communication unit <NUM>, configured to establish a communication connection with a terminal device; and a third receiving unit <NUM>, configured to receive configuration information sent by the terminal device and the Bluetooth key of the IoT device, in which the configuration information is configured to represent device information of the IoT device corresponding to the key value of the key, and operation information acting on the IoT device corresponding to a state of the key.

Regarding the apparatus in the foregoing embodiment, the specific manner in which each unit performs operation has been described in detail in the embodiment of the method, and detailed description will not be given here.

An embodiment of the present disclosure provides a terminal device, including: a processor; a memory for storing instructions executable by the processor; in which the processor is configured to execute the instructions in the memory to implement the method for controlling an Internet of Things (IoT) device described above.

An embodiment of the present disclosure provides a server, including: a processor; a memory for storing instructions executable by the processor; in which the processor is configured to execute the instructions in the memory to implement the method for controlling an Internet of Things (IoT) device described above.

An embodiment of the present disclosure provides a mouse, including: a processor; a memory for storing instructions executable by the processor; in which the processor is configured to execute the instructions in the memory to implement the method for controlling an Internet of Things (IoT) device described above.

<FIG> is a block diagram showing an electronic device according to an exemplary embodiment. For example, the device <NUM> may include one or more of the following components: a processing component <NUM>, a memory <NUM>, a power component <NUM>, a multimedia component <NUM>, an audio component <NUM>, an input/output (I/O) interface <NUM>, a sensor component <NUM>, and a communication component <NUM>.

The memory <NUM> is configured to store various types of data to support the operation of the apparatus <NUM>. Examples of such data include instructions for any applications or methods operated on the apparatus <NUM>, contact data, phonebook data, messages, pictures, video, etc. The memory <NUM> may be implemented using any type of volatile or non-volatile memory devices, or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk.

The multimedia component <NUM> includes a screen providing an output interface between the apparatus <NUM> and the user. In some embodiments, the multimedia component <NUM> includes a front-facing camera and/or a rear-facing camera. When the apparatus <NUM> is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and/or the rear-facing camera can receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or has focal length and optical zoom capability.

The audio component <NUM> is configured to output and/or input audio signals. For example, the audio component <NUM> includes a microphone (MIC) configured to receive an external audio signal when the apparatus <NUM> is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory <NUM> or transmitted via the communication component <NUM>. In some embodiments, the audio component <NUM> further includes a speaker to output audio signals.

The I/O interface <NUM> provides an interface between the processing component <NUM> and peripheral interface modules, such as a keyboard, a click wheel, keys, and the like. The keys may include, but are not limited to, a home key, a volume key, a starting key, and a locking key.

The sensor component <NUM> includes one or more sensors to provide status assessments of various aspects of the apparatus <NUM>. For instance, the sensor component <NUM> may detect an open/closed status of the apparatus <NUM>, relative positioning of components, e.g., the display and the keypad, of the apparatus <NUM>, a change in position of the apparatus <NUM> or a component of the apparatus <NUM>, a presence or absence of user contact with the apparatus <NUM>, an orientation or an acceleration/deceleration of the apparatus <NUM>, and a change in temperature of the apparatus <NUM>.

The communication component <NUM> is configured to facilitate communication, wired or wirelessly, between the apparatus <NUM> and other devices. The apparatus <NUM> can access a wireless network based on a communication standard, such as WiFi, <NUM>, or <NUM>, or a combination thereof. In one exemplary embodiment, the communication component <NUM> receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component <NUM> further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on a radio frequency identity (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.

In exemplary embodiments, the apparatus <NUM> may be implemented with 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 exemplary embodiments, there is also provided a non-transitory computer readable storage medium including instructions, such as included in the memory <NUM>, executable by the processor <NUM> in the apparatus <NUM>, for performing the above-described methods. For example, the non-transitory computer-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device, and the like.

Those skilled in the art easily think of other embodiments of the present disclosure after considering the description and practicing the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptive changes that follow the general principles of this disclosure and include common general knowledge or customary technical means in the technical field not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope of this disclosure are disclosed by the claims.

It should be understood that the present disclosure is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

It should be further understood that, when used in the specification, terms "comprising" and/or "containing" specify the presence of stated features, operations, elements and/or components, but do not exclude the presence or addition of one or more other features, operations, elements, components and/or groups thereof. If there are no more restrictions, the element defined by the sentence "including a. " does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.

Detail descriptions of the apparatus in embodiments above are described in the method embodiments, which will not be described in detail herein.

Those skilled in the art easily think of other embodiments of the present disclosure after considering the description and practicing the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptive changes that follow the general principles of this disclosure and include common general knowledge or customary technical means in the technical field not disclosed in this disclosure. The description and examples are to be considered exemplary only.

Claim 1:
A method for controlling an Internet of Things (IoT) device, applied to a terminal device, comprising:
acquiring (S210) parameter information of a triggered key of a mouse, wherein the parameter information includes a key value of the key and a state of the key;
determining (S220) a target device and target operation information acting on the target device based on the parameter information; and
sending (S230) device information of the target device and the target operation information to a server;
wherein determining (S220) the target device and the target operation information acting on the target device based on the parameter information comprises:
acquiring (S320) configuration information, wherein the configuration information is configured to represent a correspondence between the key value of the key and the IoT device and a correspondence between the state of the key and operation information; and
determining (S330) the target device and the target operation information acting on the target device based on the parameter information and the configuration information; and
wherein the key value of a left key of the mouse corresponds to a first IoT device, the key value of a right key of the mouse corresponds to a second IoT device, and the key value of a middle key of the mouse corresponds to a third IoT device.