Control method and device for display state of Bluetooth equipment and terminal equipment

A bluetooth device and display status technology, applied in hardware monitoring, short-distance communication services, instruments, etc., can solve the problems of not being able to display user-defined status, simple display status, etc.

Inactive Publication Date: 2019-11-12
SHENZHEN GRANDSUN ELECTRONICS
4 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0003] In view of this, the embodiment of the present application provides a control method, device and terminal equipment for the display state of the Blu...
View more

Abstract

The invention belongs to the technical field of intelligent control, and provides a control method and a device for the display state of Bluetooth equipment and terminal equipment. The method comprises the steps: receiving a state display instruction transmitted by a control end; analyzing the state to be displayed by the Bluetooth equipment specified by the control end in the state display instruction; sending the state to be displayed by the Bluetooth device to a display module; and indicating the display module to display the state to be displayed by the Bluetooth equipment in a corresponding mode. In the process, the Bluetooth device can send the display mode specified by the control terminal to the display module, and the display module displays the display mode, so that the Bluetoothdevice can display the state specified by the user without increasing the load of the Bluetooth main chip.

Application Domain

Hardware monitoringNear-field systems using receivers +1

Technology Topic

Intelligent controlTerminal equipment +4

Image

  • Control method and device for display state of Bluetooth equipment and terminal equipment
  • Control method and device for display state of Bluetooth equipment and terminal equipment
  • Control method and device for display state of Bluetooth equipment and terminal equipment

Examples

  • Experimental program(3)

Example Embodiment

[0025] Example one:
[0026] figure 1 A schematic flowchart of a smart speaker interaction method provided by an embodiment of the present application is shown, and the details are as follows:
[0027] Step S11, receiving the status display instruction sent by the control terminal;
[0028] The Bluetooth device in the embodiment of the application receives the status display instruction sent by the control terminal; wherein, the control terminal includes a terminal device with Bluetooth function such as a smart phone, a tablet computer, and a smart wearable device. The status display instruction is used to instruct the Bluetooth device to display the current status in the process of connecting with the control terminal or after successful connection.
[0029] Further, when the control terminal sends the status display instruction to the Bluetooth device, it uses the Bluetooth serial port protocol (Serial Port Protocol, SPP) or the Bluetooth low energy protocol (Bluetooth Low Energy, BLE) to display the current status of the Bluetooth device. The status is included in the status display instruction and sent to the Bluetooth device. The status display instruction includes ID information of the Bluetooth device, data packet length, command ID, and cyclic redundancy check code. The command ID corresponds to the display state of the Bluetooth device. The status display instruction is sent to the Bluetooth device in the form of a data packet.
[0030] Further, the status display instruction is sent by the control terminal through the Bluetooth SPP protocol or the Bluetooth BLE protocol. Step S12: parse the state to be displayed by the Bluetooth device designated by the control terminal in the state display instruction;
[0031] In the embodiment provided in this application, the Bluetooth device parses the received status display instruction to obtain relevant information contained therein, for example, the control terminal included in the instruction specifies the current status of the Bluetooth device to be displayed.
[0032] Optionally, in another embodiment provided in this application, the parsing the status to be displayed by the Bluetooth device specified by the control terminal in the status display instruction includes:
[0033] Read the ID information of the Bluetooth device included in the status display instruction;
[0034] Determine whether the read ID information of the Bluetooth device is consistent with its own ID information;
[0035] If they are consistent, acquire the command ID contained in the status display command;
[0036] The status to be displayed by the Bluetooth device is determined according to the command ID.
[0037] In this step, after the main chip of the Bluetooth device receives the data packet of the status display instruction sent by the control terminal, it parses the data packet to obtain the ID information of the Bluetooth device contained in the data packet, and compares its own ID information with The ID information parsed from the data packet is matched to determine whether the two are consistent. If they are consistent, it means that the Bluetooth device to be controlled by the control terminal is the Bluetooth device that received the data packet; and then further from the state The command ID is parsed from the data packet of the display command; the command ID is a code, and each different ID code corresponds to the display state of a different Bluetooth device. Therefore, the command ID can be determined after the command ID is parsed The control terminal wants the Bluetooth device to display in what state.
[0038] Step S13: Send the state to be displayed by the Bluetooth device to a display module, where the display module includes a display control chip, and the display module is connected to the Bluetooth main chip of the Bluetooth device;
[0039] In the embodiment provided in this application, the analyzed state of the Bluetooth device to be displayed is sent to the display module, where the display module includes a light-emitting diode (Light-Emitting Diode, LED) light strip or a liquid crystal display (Liquid Crystal Display). , LCD), further comprising a display control chip for controlling the display mode of the display module; and the display module is connected with the main chip of the Bluetooth device to realize the communication between the two.
[0040] Specifically, the sending process specifically includes: the Bluetooth master chip sends the command ID to the display module through an I2C (Inter-Integrated Circuit) bus or a Universal Asynchronous Receiver/Transmitter (UART).
[0041] Further, the sending the state to be displayed by the Bluetooth device to the display module includes:
[0042] The Bluetooth master chip of the Bluetooth device sends the state to be displayed by the Bluetooth device to the display control chip of the display module through the I2C bus or UART.
[0043] Step S14: Instruct the display control chip to control the display module to display the state to be displayed by the Bluetooth device in a corresponding manner.
[0044] In the embodiment provided in this application, after the Bluetooth device sends the parsed command ID to the display module, it instructs the display control chip to control the display module to parse the command ID, so that the display module finally displays the command ID specified by the control terminal according to the analysis result The current display status of the Bluetooth device.
[0045] Optionally, in another embodiment provided by the present application, the instructing the display control chip to control the display module to display the state to be displayed by the Bluetooth device in a corresponding manner includes:
[0046] Sending the command ID to the display control chip via an I2C bus or a universal UART;
[0047] Instruct the display control chip to call the flashing mode corresponding to the command ID, so that the display control chip controls the LED light strip to display the status of the Bluetooth device in the corresponding flashing mode.
[0048] In this step, if the display module is set to display the status of the Bluetooth device by the LED light strip, the flashing mode corresponding to the command ID is called. Then instruct the display control chip to control the LED light strip to display the corresponding flashing pattern to characterize the display status of the Bluetooth device. Among them, the LED light strip is composed of several LED RGB (Red, Green, Blue) three-color lights. The control chip of the light strip can set the color and blinking timing of each RGB light to realize different display modes. For example, the light strips breathe, race, flash, etc. under different colors, and each command ID corresponds to a flashing mode. For example, command ID = 01 corresponds to LED light with green marquee flashing; command ID = 02 corresponds to LED light with green light breathing .
[0049] figure 2 Shows the relationship between the various parts of the Bluetooth device when the control terminal is a smart phone, such as figure 2 As shown at this time, the Bluetooth device 22 includes a Bluetooth main chip; a display control chip and an LED light strip. The smart phone 21 sends a status display instruction to the Bluetooth device 22, and the Bluetooth main chip parses out the commands after receiving the status display instruction. ID, and send the command ID to the display control chip, and the display control chip controls the flashing mode of the light strip according to the commanded ID to characterize the display state of the Bluetooth device.
[0050] Optionally, in another embodiment provided in the present application, the method for controlling the display state of the Bluetooth device further includes:
[0051] Receiving the corresponding relationship between the command ID and the blinking pattern set by the user, and storing the corresponding relationship in a preset position.
[0052] In this step, the Bluetooth device stores the correspondence between the command ID and the flashing pattern of the LED light strip in advance according to the user's setting, so as to quickly and accurately control the flashing mode of the LED light strip according to the command ID.
[0053] Optionally, in another embodiment provided in this application, the instructing the display module to display the state to be displayed by the Bluetooth device in a corresponding manner includes:
[0054] When the display module includes an LCD display screen, calling the pattern corresponding to the command ID;
[0055] Instruct the LCD display to display the corresponding pattern.
[0056] In this step, when the display module is set as an LCD display screen, a text or pattern corresponding to each command ID is preset, and the status of the Bluetooth device is displayed on the LCD display screen in the form of the text or pattern.
[0057] The embodiment provided in this application sets a display module in the Bluetooth device, and connects the main chip of the Bluetooth device with the display module. When the Bluetooth device receives the status display instruction sent by the control terminal, the status display instruction is analyzed to The status that the control terminal needs to be displayed by the Bluetooth device is obtained, and then the resolved status of the Bluetooth device that needs to be displayed is sent to the display module, so that the display module displays the corresponding status according to the instructions. In this process, the Bluetooth device can send the display mode specified by the control terminal to the display module, and the display module will display it, so that the Bluetooth device can display the state specified by the user without increasing the load of the Bluetooth main chip.

Example Embodiment

[0058] Embodiment two:
[0059] Corresponding to the interactive method of the smart speaker described in the above embodiment, image 3 It shows the structural block diagram of the interactive device of the smart speaker provided by the embodiment of the present application. For ease of description, only the parts related to the embodiment of the present application are shown.
[0060] Reference image 3 The control device for the display state of the Bluetooth device includes: a receiving module 31, an analysis module 32, a sending module 33, and a display module 34, wherein:
[0061] The receiving module 31 is configured to receive a status display instruction sent by the control terminal; the status display instruction is sent by the control terminal through the Bluetooth SPP protocol or the Bluetooth BLE protocol.
[0062] The parsing module 32 is configured to analyze the state to be displayed by the Bluetooth device designated by the control terminal in the state display instruction;
[0063] The sending module 33 is configured to send the state to be displayed by the Bluetooth device to the display module, wherein the display module includes a display control chip, and the display module is connected to the Bluetooth main chip of the Bluetooth device;
[0064] The display module 34 is used to instruct the display control chip to control the display module to display the state to be displayed by the Bluetooth device in a corresponding manner.
[0065] Further, the sending the state to be displayed by the Bluetooth device to the display module includes:
[0066] The Bluetooth master chip of the Bluetooth device sends the state to be displayed by the Bluetooth device to the display control chip of the display module through the I2C bus or UART.
[0067] Further, the parsing module 32 includes:
[0068] A reading unit for reading the ID information of the Bluetooth device included in the status display instruction;
[0069] The judging unit is used to judge whether the read ID information of the Bluetooth device is consistent with its own ID information; if they are consistent, obtain the command ID included in the status display instruction; and determine what the Bluetooth device wants to display according to the command ID status.
[0070] Further, the display module 34 includes:
[0071] The command ID sending unit is configured to send the command ID to the display control chip via the I2C bus or universal UART;
[0072] The indicating unit is used to instruct the display control chip to call the flashing mode corresponding to the command ID, so that the display control chip controls the LED light strip to display the status of the Bluetooth device in the corresponding flashing mode.
[0073] Further, the display module 34 further includes:
[0074] The pattern display unit is configured to call the pattern corresponding to the command ID when the display module includes an LCD display screen; instruct the LCD display screen to display the status of the Bluetooth device in the form of the corresponding pattern.
[0075] Further, the device for controlling the display state of the Bluetooth device further includes:
[0076] The storage module is configured to receive the corresponding relationship between the command ID and the blinking pattern set by the user, and store the corresponding relationship to a preset position.
[0077] The embodiment provided in this application sets a display module in the Bluetooth device, and connects the main chip of the Bluetooth device with the display module. When the Bluetooth device receives the status display instruction sent by the control terminal, the status display instruction is analyzed to The status that the control terminal needs to be displayed by the Bluetooth device is obtained, and then the resolved status of the Bluetooth device that needs to be displayed is sent to the display module, so that the display module displays the corresponding status according to the instructions. In this process, the Bluetooth device can send the display mode specified by the control terminal to the display module, and the display module will display it, so that the Bluetooth device can display the state specified by the user without increasing the load of the Bluetooth main chip.
[0078] It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

Example Embodiment

[0079] Embodiment three:
[0080] Figure 4 It is a schematic diagram of a terminal device provided by an embodiment of the present application. Such as Figure 4 As shown, the terminal device 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and running on the processor 40. When the processor 40 executes the computer program 42, the steps in the embodiment of the method for controlling the display state of each Bluetooth device described above are implemented, for example figure 1 Steps S11 to S14 are shown. Alternatively, when the processor 40 executes the computer program 42, the functions of the modules/units in the foregoing device embodiments are implemented, for example image 3 The functions of modules 31 to 34 are shown.
[0081] Exemplarily, the computer program 42 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 41 and executed by the processor 40 to complete This application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 42 in the terminal device 4. For example, the computer program 42 can be divided into: a receiving module, an analysis module, a sending module, and a display module, where:
[0082] The receiving module is used to receive the status display instruction sent by the control terminal; the status display instruction is sent by the control terminal through the Bluetooth SPP protocol or the Bluetooth BLE protocol.
[0083] The analysis module is used to analyze the status to be displayed by the Bluetooth device designated by the control terminal in the status display instruction;
[0084] A sending module, configured to send the state to be displayed by the Bluetooth device to a display module, wherein the display module includes a display control chip, and the display module is connected to the Bluetooth main chip of the Bluetooth device;
[0085] The display module is used to instruct the display control chip to control the display module to display the state to be displayed by the Bluetooth device in a corresponding manner.
[0086] Further, the sending the state to be displayed by the Bluetooth device to the display module includes:
[0087] The Bluetooth master chip of the Bluetooth device sends the state to be displayed by the Bluetooth device to the display control chip of the display module through the I2C bus or UART.
[0088] Further, the analysis module includes:
[0089] A reading unit for reading the ID information of the Bluetooth device included in the status display instruction;
[0090] The judging unit is used to judge whether the read ID information of the Bluetooth device is consistent with its own ID information; if they are consistent, obtain the command ID included in the status display instruction; and determine what the Bluetooth device wants to display according to the command ID status.
[0091] Further, the display module includes:
[0092] The calling unit is used for calling the flashing mode corresponding to the command ID when the display module includes an LED light strip; instructing the LED light strip to display the status of the Bluetooth device in the corresponding flashing mode.
[0093] Further, the display module further includes:
[0094] The command ID sending unit is configured to send the command ID to the display control chip via the I2C bus or universal UART;
[0095] The indicating unit is used to instruct the display control chip to call the flashing mode corresponding to the command ID, so that the display control chip controls the LED light strip to display the status of the Bluetooth device in the corresponding flashing mode.
[0096] Further, the device for controlling the display state of the Bluetooth device further includes:
[0097] The storage module is configured to receive the correspondence between the command ID and the blinking pattern set by the user, and store the correspondence to a preset position.
[0098] The terminal device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art can understand, Figure 4 It is only an example of the terminal device 4, and does not constitute a limitation on the terminal device 4. It may include more or fewer components than shown in the figure, or a combination of some components, or different components. For example, the terminal device may also include Input and output equipment, network access equipment, bus, etc.
[0099] The so-called processor 40 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
[0100] The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) equipped on the terminal device 4. Card, Flash Card, etc. Further, the memory 41 may also include both an internal storage unit of the terminal device 4 and an external storage device. The memory 41 is used to store the computer program and other programs and data required by the terminal device. The memory 41 can also be used to temporarily store data that has been output or will be output.
[0101] Those skilled in the art can clearly understand that for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In actual applications, the above functions can be allocated to different functional units, Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which is not repeated here.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products