Device access method in KTV application scenario and KTV multi-protocol control device

By designing KTV multi-protocol control equipment, using the microcontroller controller and keyboard input device to obtain and store the code value of the target equipment, normal communication between KTV equipment from different manufacturers is achieved, and obstacles caused by differences in communication protocols between equipment are solved, supporting multiple A variety of protocols covering a wide range of market needs.

CN111007777BActive Publication Date: 2024-10-15SHENZHEN BEST TOUCH ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911330601.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-20
Publication Date
2024-10-15
Estimated Expiration
2039-12-20

AI Technical Summary

Technical Problem

Differences in the communication protocols of KTV equipment from different manufacturers result in normal communication between the equipment, resulting in communication obstacles when equipment is upgraded or replaced.

Method used

A KTV multi-protocol control device is designed, including a microcontroller controller, a wallboard access interface, a memory, a device access interface and a keyboard input device. The code value of the target device is obtained through the learning mode and stored and modulated to realize different devices. communication between.

Benefits of technology

It realizes normal communication between KTV equipment from different manufacturers, solves the problem of communication obstacles after equipment upgrade or replacement, supports multiple protocols such as ITT, NEC, NokiaNRC, etc., covering 99% of the home appliance market.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111007777B_ABST
    Figure CN111007777B_ABST
Patent Text Reader

Abstract

The present application relates to a device access method and a KTV multi-protocol control device in a KTV application scenario. The method includes: a keyboard input device receives a first trigger operation of a user on a first key area, a single-chip microcomputer controller responds to the first trigger operation and enters a corresponding learning mode, a wallboard access interface receives a second trigger operation of a user on a second key area, a device access interface sends a target instruction issued by a controller of a target device to the single-chip microcomputer controller, the single-chip microcomputer controller calls a target protocol corresponding to the target instruction in a memory, obtains a code value corresponding to the target instruction, and stores the code value, a wallboard access interface receives a third trigger operation of a user on a second key area, and the single-chip microcomputer controller responds to the third trigger operation and controls the target device according to the code value corresponding to the second key area, so as to realize normal communication between various devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of entertainment equipment, and in particular to a device access method in a KTV application scenario and a KTV multi-protocol control device. Background Art

[0002] With the development of the national economy and the continuous improvement of people's living standards, KTV venues have become a good place for people to have fun, relieve stress and enrich their lives. The KTV industry is also constantly developing in the direction of the new era, and the equipment is constantly being updated.

[0003] Among the existing KTV equipment, wall panels, song-ordering machines, and air-conditioning equipment are all essential hardware facilities. If the KTV wall panels, song-ordering machines, and air-conditioning equipment are replaced with those from different manufacturers due to equipment upgrades or damage, the differences in equipment communication protocols from different manufacturers will lead to the inability to communicate normally between the various devices.

[0004] Application Contents

[0005] Based on this, it is necessary to provide a device access method and a KTV multi-protocol control device in a KTV application scenario to address the technical problem that due to differences in device communication protocols from different manufacturers, normal communication between devices cannot be carried out.

[0006] A device access method in a KTV application scenario, the method is applicable to a KTV multi-protocol control device, characterized in that the KTV multi-protocol control device comprises a single-chip microcomputer controller, a wall panel access interface, a memory, a device access interface and a keyboard input device; the wall panel access interface, the memory, the device access interface and the keyboard input device are all connected to the single-chip microcomputer controller; the wall panel access interface is connected to the wall panel input device of the KTV wall panel; the keyboard input device comprises a plurality of first key areas; the wall panel input device comprises a plurality of second key areas; the memory is used to store a plurality of protocols for controlling external devices;

[0007] The method comprises:

[0008] In response to a first trigger operation of a first key area on the keyboard input device, entering a corresponding learning mode;

[0009] receiving a second trigger operation of the user on the second key area through the wall panel access interface;

[0010] receiving a target instruction sent by a controller of a target device through the device access interface;

[0011] Calling a target protocol corresponding to the target instruction in the memory, obtaining a code value corresponding to the target instruction, and storing the code value;

[0012] receiving a third trigger operation of the user on the second key area through the wall panel access interface;

[0013] In response to the third trigger operation, the target device is controlled according to the code value corresponding to the second key area.

[0014] In one embodiment, the first key area includes an infrared learning key area; the device access interface includes an infrared receiving interface; the target device includes an infrared control device;

[0015] The method includes: responding to a first trigger operation on a first key area on the keyboard input device, entering a corresponding learning mode; receiving a second trigger operation on a second key area by a user through the wallboard access interface; receiving a target instruction issued by a controller of a target device through the device access interface; calling a target protocol corresponding to the target instruction in the memory to obtain a code value corresponding to the target instruction, including:

[0016] Receiving a first trigger operation of the user on the infrared learning key area through the keyboard input device;

[0017] In response to the first trigger operation, entering an infrared learning mode;

[0018] receiving a second trigger operation of the user on the second key area through the wall panel access interface;

[0019] Receiving a target instruction sent by a controller of the infrared control device through the infrared receiving interface;

[0020] According to the packet header of the target instruction, calling the target protocol corresponding to the packet header in the memory;

[0021] The target instruction is decoded according to the target protocol to obtain a code value corresponding to the target instruction.

[0022] In one embodiment, the KTV multi-protocol control device further includes an infrared transmitting interface; the infrared transmitting interface is connected to the single-chip microcomputer controller;

[0023] The step of controlling the target device according to the code value corresponding to the second key area in response to the third trigger operation includes:

[0024] In response to the third trigger operation, acquiring a code value corresponding to the second key area;

[0025] Modulating the code value corresponding to the second key area;

[0026] The modulated code value is sent to the target device through the infrared transmission interface for control.

[0027] In one embodiment, the first key area includes a song ordering machine learning key area; the device access interface includes a song ordering machine receiving interface; the target device includes a song ordering machine;

[0028] The method includes: responding to a first trigger operation on a first key area on the keyboard input device, entering a corresponding learning mode; receiving a second trigger operation on a second key area by a user through the wallboard access interface; receiving a target instruction issued by a controller of a target device through the device access interface; calling a target protocol corresponding to the target instruction in the memory to obtain a code value corresponding to the target instruction, including:

[0029] Receiving a first trigger operation of a user on the learning key area of ​​the song request machine through the keyboard input device;

[0030] In response to the first trigger operation, entering a song request machine learning mode;

[0031] receiving a second trigger operation of the user on the second key area through the wall panel access interface;

[0032] Receiving a target instruction sent by the controller of the song-ordering machine through the song-ordering machine receiving interface;

[0033] In response to a protocol selection operation by a user, determining a target protocol;

[0034] A code value corresponding to the target instruction is obtained according to the target protocol.

[0035] In one embodiment, the protocols for controlling the external device include: ITT protocol, NEC protocol, NokiaNRC protocol, Sharp protocol, Philips RC-5 protocol, Philips RC-6 protocol, Philips RECS-80 protocol and SonySIRC protocol.

[0036] A KTV multi-protocol control device, the KTV multi-protocol control device comprises a single-chip microcomputer controller, a wall panel access interface, a memory, a device access interface and a keyboard input device; the wall panel access interface, the memory, the device access interface and the keyboard input device are all connected to the single-chip microcomputer controller; the wall panel access interface is connected to the wall panel input device of the KTV wall panel; the keyboard input device comprises a plurality of first key areas; the wall panel input device comprises a plurality of second key areas; the memory is used to store a plurality of protocols for controlling external devices;

[0037] The keyboard input device is used to receive a first trigger operation of a user on a first key area;

[0038] The single chip microcomputer controller is used to enter a corresponding learning mode in response to the first trigger operation;

[0039] The wall panel access interface is used to receive a second trigger operation of the user on the second key area;

[0040] The device access interface is used to send the target instruction issued by the controller of the target device to the single-chip microcomputer controller;

[0041] The single-chip microcomputer controller is used to call the target protocol corresponding to the target instruction in the memory, obtain the code value corresponding to the target instruction, and store the code value;

[0042] The wall panel access interface is used to receive a third trigger operation of the user on the second key area;

[0043] The single chip controller is used to control the target device according to the code value corresponding to the second key area in response to the third trigger operation.

[0044] In one embodiment, the first key area includes an infrared learning key area; the device access interface includes an infrared receiving interface; the target device includes an infrared control device;

[0045] The keyboard input device is used to receive a first trigger operation of the user on the infrared learning key area;

[0046] The single chip microcomputer controller is used to enter an infrared learning mode in response to the first trigger operation;

[0047] The wall panel access interface is used to receive a second trigger operation of the user on the second key area;

[0048] The infrared receiving interface is used to send the target instruction issued by the controller of the infrared control device to the single-chip controller;

[0049] The single chip microcomputer controller is used to call the target protocol corresponding to the packet header in the memory according to the packet header of the target instruction; and decode the target instruction according to the target protocol to obtain a code value corresponding to the target instruction.

[0050] In one embodiment, the KTV multi-protocol control device further includes an infrared transmitting interface; the infrared transmitting interface is connected to the single-chip microcomputer controller;

[0051] The single chip controller is used to obtain the code value corresponding to the second key area in response to the third trigger operation; and modulate the code value corresponding to the second key area;

[0052] The infrared transmission interface is used to send the modulated code value to the target device for control.

[0053] In one embodiment, the first key area includes a song ordering machine learning key area; the device access interface includes a song ordering machine receiving interface; the target device includes a song ordering machine;

[0054] The keyboard input device is used to receive a first trigger operation of the user on the learning key area of ​​the song ordering machine;

[0055] The single chip microcomputer controller is used to enter the song request machine learning mode in response to the first trigger operation;

[0056] The wall panel access interface is used to receive a second trigger operation of the user on the second key area;

[0057] The song ordering machine receiving interface is used to send the target instruction issued by the controller of the song ordering machine to the single chip controller;

[0058] The single chip microcomputer controller is used to determine the target protocol in response to the user's protocol selection operation; and to obtain the code value corresponding to the target instruction according to the target protocol.

[0059] In one embodiment, the KTV multi-protocol control device further includes a display device; the display device is connected to the single-chip controller;

[0060] The display device is used to display information during the process of accessing the target device and controlling the target device.

[0061] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0062] In response to a first trigger operation of a first key area on the keyboard input device, entering a corresponding learning mode;

[0063] receiving a second trigger operation of the user on the second key area through the wall panel access interface;

[0064] receiving a target instruction sent by a controller of a target device through the device access interface;

[0065] Calling a target protocol corresponding to the target instruction in the memory, obtaining a code value corresponding to the target instruction, and storing the code value;

[0066] receiving a third trigger operation of the user on the second key area through the wall panel access interface;

[0067] In response to the third trigger operation, the target device is controlled according to the code value corresponding to the second key area.

[0068] The device access method and KTV multi-protocol control device in the above-mentioned KTV application scenario, the KTV multi-protocol control device includes a single-chip microcomputer controller, a wall panel access interface, a memory, a device access interface and a keyboard input device, the wall panel access interface, the memory, the device access interface and the keyboard input device are all connected to the single-chip microcomputer controller, the wall panel access interface is connected to the wall panel input device of the KTV wall panel, the keyboard input device includes a plurality of first key areas, the wall panel input device includes a plurality of second key areas, the memory is used to store a plurality of protocols for controlling external devices, the keyboard input device receives a first trigger operation of the user on the first key area, the single-chip microcomputer controller responds to the first trigger operation and enters a corresponding learning mode, the wall panel access interface receives a second trigger operation of the user on the second key area, the device access interface sends a target instruction issued by the controller of the target device to the single-chip microcomputer controller, the single-chip microcomputer controller calls the target protocol corresponding to the target instruction in the memory, obtains the code value corresponding to the target instruction, and stores the code value, the wall panel access interface receives a third trigger operation of the user on the second key area, the single-chip microcomputer controller responds to the third trigger operation, controls the target device according to the code value corresponding to the second key area, and realizes normal communication between various devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 A structural block diagram of a KTV multi-protocol control device in one embodiment;

[0070] Figure 2 A schematic diagram of a flow chart of a device access method in a KTV application scenario in an embodiment;

[0071] Figure 3 A structural block diagram of a KTV multi-protocol control device in one embodiment;

[0072] Figure 4 A schematic diagram of controlling an air conditioner and a KTV song requesting machine in a KTV application scenario in one embodiment. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0074] In one embodiment, a device access method in a KTV application scenario is provided. The device access method in the KTV application scenario is applicable to a KTV multi-protocol control device, such as Figure 1As shown, the KTV multi-protocol control device 10 includes a single-chip microcomputer controller 101, a wall panel access interface 102, a memory 103, a device access interface 104 and a keyboard input device 105; the wall panel access interface 102, the memory 103, the device access interface 104 and the keyboard input device 105 are all connected to the single-chip microcomputer controller 101; the wall panel access interface 102 is connected to the wall panel input device of the KTV wall panel; the keyboard input device 105 includes a plurality of first key areas; the wall panel input device includes a plurality of second key areas; the memory 103 is used to store a plurality of protocols for controlling external devices;

[0075] The method comprises:

[0076] Step S21, in response to a first trigger operation of a first key area on the keyboard input device, entering a corresponding learning mode;

[0077] Step S22, receiving a second trigger operation of the user on the second key area through the wall panel access interface;

[0078] Step S23, receiving a target instruction issued by a controller of a target device through the device access interface;

[0079] Step S24, calling the target protocol corresponding to the target instruction in the memory, obtaining the code value corresponding to the target instruction, and storing the code value;

[0080] Step S25, receiving a third trigger operation of the user on the second key area through the wall panel access interface;

[0081] Step S26: In response to the third trigger operation, the target device is controlled according to the code value corresponding to the second button area.

[0082] In an embodiment of the present invention, the KTV wall panel is an indispensable device in the KTV private room. The KTV wall panel includes a wall panel input device. The KTV multi-protocol control device 10 can read the key values ​​on the wall panel input device through the wall panel access interface 102. The KTV wall panel generally adopts the RJ45 interface of the RS485 protocol as the standard. The wall panel access interface 102 converts the serial port TTL level of the single-chip controller 101 into a 485 level to interconnect with the KTV wall panel.

[0083] Among them, the keyboard input device 105 serves as an interface for human-computer interaction, including several first key areas, for example, an infrared learning key area, a song ordering machine learning key area, a learning completion key area, and the like.

[0084] The wall panel input device serves as an interface for human-computer interaction, including several second button areas, such as music volume control, microphone volume control, re-singing, original / backing vocals, mute, play / stop, song switching, device power on / off, etc.

[0085] The first trigger operation is to touch one of the above-mentioned first button areas (for example, press for a long time), and the single-chip controller 101 enters the corresponding learning mode in response to the first trigger operation. The learning mode refers to a mode for obtaining the code value of the target device to be connected. For example, assuming that the infrared learning button area is pressed for a long time, wherein the pressing time needs to be greater than a preset threshold, the single-chip controller 101 enters the infrared control device learning mode in response to the first trigger operation; assuming that the karaoke machine learning button area is pressed for a long time, wherein the pressing time needs to be greater than a preset threshold, the single-chip controller 101 enters the karaoke machine learning mode in response to the first trigger operation.

[0086] Assume that after entering the learning mode of the karaoke machine, the wall panel access interface 102 receives the second trigger operation of the user on the second button area, and enters a specific function learning mode of the karaoke machine. Among them, the second trigger operation is to touch the above-mentioned second button area (for example, duet), for example, press the duet button area, or slide with the duet button area as the pressing starting point. In response to the second trigger operation, the single-chip microcomputer controller 101 needs to re-learn the code value of the duet button area. Afterwards, the device access interface 104 sends the target instruction issued by the controller of the target device to the single-chip microcomputer controller 101, and the single-chip microcomputer controller 101 calls the target protocol corresponding to the target instruction in the memory 103, obtains the code value corresponding to the target instruction, and stores the code value.

[0087] In the embodiment of the present invention, the memory 103 may store several protocols for controlling external devices, and it is necessary to call the target protocol corresponding to the target instruction from these protocols. For example, in the above example, the target instruction is to reset the chorus control instruction, then the code value corresponding to the chorus control instruction is obtained, and the code value is stored in the memory 103. According to the above method, all code values ​​for controlling the target device can be remapped and stored in the memory 103.

[0088] For ease of understanding, an example is given here. Device A is installed in a KTV room. The code value of the re-singing instruction of device A is 1000, and the code value of the song-cutting instruction of device A is 1100. The code values ​​are stored in the memory 103. Device A fails and device B needs to be replaced. Then, long press the song-ordering machine learning button area on the keyboard input device 105 to enter the song-ordering machine learning mode. Then, press the re-singing button area on the wall panel input device to enter the code value learning mode of the re-singing button area. Then, the single-chip microcomputer controller 101 receives the target instruction (re-singing instruction) issued by the controller of the target device through the device access interface 104, calls the target protocol corresponding to the target instruction in the memory 103, obtains the code value corresponding to the target instruction (assuming that the code value of the re-singing instruction of device B is 1111), and stores the code value 1111, that is, replaces the previously stored code value 1000 of the re-singing button area with the code value 1111. Afterwards, continue to press the song-cutting button area on the wall panel input device to enter the code value learning mode of the song-cutting button area. After that, the single-chip microcomputer controller 101 receives the target instruction (song-cutting instruction) issued by the controller of the target device through the device access interface 104, calls the target protocol corresponding to the target instruction in the memory 103, obtains the code value corresponding to the target instruction (assuming that the code value of the song-cutting instruction of device B is 1101), and stores the code value 1101, that is, replaces the previously stored code value 1100 of the song-cutting button area with the code value 1101.

[0089] In an embodiment of the present invention, according to the above steps S21-S23, after the code values ​​of all instructions of device B are remapped to the key area of ​​the wall panel input device, the learning completion key area of ​​the keyboard input device 105 is pressed (for example, long press) to complete the learning of the key function of device B by the KTV wall panel, and exit the learning mode. When the chorus key area of ​​the wall panel input device is touched again, the stored code value 1111 is obtained, and the target device is controlled according to the code value 1111.

[0090] In the device access method under the above-mentioned KTV application scenario, the keyboard input device 105 receives the first trigger operation of the user on the first key area, the single-chip controller 101 responds to the first trigger operation and enters the corresponding learning mode, the wall panel access interface 102 receives the second trigger operation of the user on the second key area, the device access interface 104 sends the target instruction issued by the controller of the target device to the single-chip controller 101, the single-chip controller 101 calls the target protocol corresponding to the target instruction in the memory 103, obtains the code value corresponding to the target instruction, and stores the code value, the wall panel access interface 102 receives the third trigger operation of the user on the second key area, the single-chip controller 101 responds to the third trigger operation, controls the target device according to the code value corresponding to the second key area, and realizes normal communication between various devices.

[0091] In an optional embodiment, after the KTV multi-protocol control device 10 is started, the software and hardware are initialized first, and then the keys on the keyboard input device 105 can be used to select whether to remap the wall panel key value. If remapping is required, the code value of the wall panel is modified according to the above process and stored in the memory 103. Finally, the control of the new external device can be achieved through the corresponding instructions of the wall panel.

[0092] In an optional embodiment, the first key area includes an infrared learning key area; the device access interface includes an infrared receiving interface; and the target device includes an infrared control device;

[0093] The method includes: responding to a first trigger operation on a first key area on the keyboard input device, entering a corresponding learning mode; receiving a second trigger operation on a second key area by a user through the wallboard access interface; receiving a target instruction issued by a controller of a target device through the device access interface; calling a target protocol corresponding to the target instruction in the memory to obtain a code value corresponding to the target instruction, including:

[0094] Receiving a first trigger operation of the user on the infrared learning key area through the keyboard input device;

[0095] In response to the first trigger operation, entering an infrared learning mode;

[0096] receiving a second trigger operation of the user on the second key area through the wall panel access interface;

[0097] Receiving a target instruction sent by a controller of the infrared control device through the infrared receiving interface;

[0098] According to the packet header of the target instruction, calling the target protocol corresponding to the packet header in the memory;

[0099] The target instruction is decoded according to the target protocol to obtain a code value corresponding to the target instruction.

[0100] In the embodiment of the present invention, the infrared receiving interface 201 is used to receive and demodulate infrared protocol waves commonly used in the market to extract corresponding code values.

[0101] In the embodiment of the present invention, the target instruction may be an infrared protocol wave sent by a remote control device of an infrared control device.

[0102] In the embodiment of the present invention, the memory 103 in the above embodiment is used to store the protocol of the control device (for example, the infrared decoding protocol for controlling the infrared control device) and the code value of the wallboard remapping.

[0103] In the embodiment of the present invention, the protocols (infrared protocol decoding) stored in the memory 103 include: ITT protocol, NEC protocol, NokiaNRC protocol, Sharp protocol, Philips RC-5 protocol, Philips RC-6 protocol, Philips RECS-80 protocol and Sony SIRC protocol. These protocols have covered 99% of the home appliance market.

[0104] In an embodiment of the present invention, the target instruction includes a packet header. After the single-chip microcomputer controller 101 receives the packet header, it will automatically select a target protocol corresponding to the packet header from several protocols stored in the memory 103, decode the target instruction according to the target protocol, and obtain a code value corresponding to the target instruction.

[0105] In the embodiment of the present invention, the infrared control device takes the most commonly used air conditioner as an example, and mainly includes instructions such as air conditioner on / off, air conditioner mode selection, temperature control, and wind speed control. The code value of the air conditioner on / off instruction is 1000, and the code value is stored in the memory 103. If the air conditioner fails and needs to be replaced with a new one, long press the infrared learning button area on the keyboard input device 105 to enter the infrared control device learning mode. Afterwards, the air conditioner on / off button area on the wall panel input device is pressed to generate an air conditioner on / off button learning instruction. The single-chip microcomputer controller 101 receives the air conditioner on / off button learning instruction through the wall panel access interface 102 and enters the code value learning mode of the air conditioner on / off button area. Afterwards, the single-chip microcomputer controller 101 receives the target instruction (air conditioner on / off instruction) issued by the remote control device of the new air conditioner (i.e., the controller of the infrared control device) through the infrared receiving interface 201, calls the target protocol corresponding to the target instruction in the memory 103, obtains the code value corresponding to the target instruction (assuming that the code value of the air conditioner on / off instruction of the new air conditioner is 1111), and stores the code value 1111, that is, replaces the previously stored code value 1000 of the air conditioner on / off button area with the code value 1111.

[0106] In an optional embodiment, the KTV multi-protocol control device further includes an infrared transmitting interface; the infrared transmitting interface is connected to the single-chip microcomputer controller;

[0107] The step of controlling the target device according to the code value corresponding to the second key area in response to the third trigger operation includes:

[0108] In response to the third trigger operation, acquiring a code value corresponding to the second key area;

[0109] Modulating the code value corresponding to the second key area;

[0110] The modulated code value is sent to the target device through the infrared transmission interface for control.

[0111] In the embodiment of the present invention, the infrared transmitting module can modulate the corresponding code value through the corresponding protocol and send it out to control the infrared control device.

[0112] In the device access method under the above KTV application scenario, the single-chip controller 101 responds to the third trigger operation of the second key area on the wall panel input device, obtains the code value corresponding to the second key area, and modulates the code value corresponding to the second key area, and the infrared transmission interface 202 sends the modulated code value to the target device. For example, the air conditioner on / off key area on the wall panel input device is pressed to generate the third trigger operation, the single-chip controller 101 obtains the code value 1111 corresponding to the air conditioner on / off key area, and modulates the code value 1111, and the infrared transmission interface 202 sends the modulated code value to the target device to control the air conditioner on / off.

[0113] In an optional embodiment, the first key area includes a song ordering machine learning key area; the device access interface includes a song ordering machine receiving interface; the target device includes a song ordering machine;

[0114] The method includes: responding to a first trigger operation on a first key area on the keyboard input device, entering a corresponding learning mode; receiving a second trigger operation on a second key area by a user through the wallboard access interface; receiving a target instruction issued by a controller of a target device through the device access interface; calling a target protocol corresponding to the target instruction in the memory to obtain a code value corresponding to the target instruction, including:

[0115] Receiving a first trigger operation of a user on the learning key area of ​​the song request machine through the keyboard input device;

[0116] In response to the first trigger operation, entering a song request machine learning mode;

[0117] receiving a second trigger operation of the user on the second key area through the wall panel access interface;

[0118] Receiving a target instruction sent by the controller of the song-ordering machine through the song-ordering machine receiving interface;

[0119] In response to a protocol selection operation by a user, determining a target protocol;

[0120] A code value corresponding to the target instruction is obtained according to the target protocol.

[0121] In an embodiment of the present invention, the memory 103 pre-stores the communication protocols of several KTV song-ordering machines from different manufacturers on the market, that is, it stores the code values ​​corresponding to the instructions such as song switching, re-singing, play / pause and volume control in the song-ordering machine, obtains the code value of the new song-ordering machine, and maps the code value to the KTV wall panel to realize the control of the KTV wall panel over the song-ordering machine, and also stores the code value remapped by the wall panel.

[0122] In an embodiment of the present invention, assuming that the code value of the song switching instruction of KTV song ordering machine A is 1100, the code value is stored in the memory 103, and KTV song ordering machine A fails and needs to be replaced with a new KTV song ordering machine B, then long press the song ordering machine learning button area on the keyboard input device 105 to enter the song ordering machine learning mode. Afterwards, the song switching button area on the wall panel input device is pressed to generate a song switching button learning instruction. The single-chip controller 101 receives the song switching button learning instruction through the wall panel access interface 102 and enters the code value learning mode of the song switching button area. Afterwards, the single-chip controller 101 receives the target instruction (song switching instruction) issued by the controller of the KTV song ordering machine B (the controller here is a set-top box, etc.) through the song ordering machine receiving interface 203, calls the target protocol corresponding to the target instruction in the memory 103, obtains the code value corresponding to the target instruction (assuming that the code value of the song switching instruction of the KTV song ordering machine B is 1101), and stores the code value 1101, that is, replaces the previously stored code value 1100 of the song switching button area with the code value 1101.

[0123] In the embodiment of the present invention, the user selects the communication protocol of the KTV song requesting machine through the keyboard input device 105, and obtains the code value corresponding to the target instruction according to the selected protocol.

[0124] In the embodiment of the present invention, the song ordering machine receiving interface 203 realizes the mutual communication between the KTV multi-protocol control device 10 and the KTV song ordering machine through the RS232 communication protocol.

[0125] In the above-mentioned embodiment of the invention, the keyboard input device 105 serves as an interface for human-computer interaction, and includes several first button areas, for example, an infrared learning button area, a song ordering machine learning button area, a learning completion button area, etc., which can be used to select and set functions such as system menus, infrared code modulation functions, infrared remote control code value demodulation, and wall panel key value remapping.

[0126] The device access method in the above KTV application scenario can decode the remote controllers of infrared control devices from different manufacturers currently used in the KTV market according to the specified infrared protocol, and remap the code value to the KTV wall panel. At the same time, the code value can be modulated by infrared waveform according to the corresponding infrared protocol and then transmitted, so as to realize the wall panel to control infrared control devices from different manufacturers. It can also control KTV song request machines from different manufacturers, read and remap the key operation codes of KTV wall panels from different manufacturers on the market, and realize normal communication between the song request machine and the wall panel.

[0127] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0128] In one embodiment, Figure 1 As shown, a KTV multi-protocol control device 10 is provided, and the KTV multi-protocol control device 10 includes a single-chip microcomputer controller 101, a wall panel access interface 102, a memory 103, a device access interface 104 and a keyboard input device 105; the wall panel access interface 102, the memory 103, the device access interface 104 and the keyboard input device 105 are all connected to the single-chip microcomputer controller 101; the wall panel access interface 102 is connected to the wall panel input device of the KTV wall panel; the keyboard input device 105 includes a plurality of first key areas; the wall panel input device includes a plurality of second key areas; the memory 103 is used to store a plurality of protocols for controlling external devices;

[0129] The keyboard input device 105 is used to receive a first trigger operation of a user on a first key area;

[0130] The single chip microcomputer controller 101 is used to enter a corresponding learning mode in response to the first trigger operation;

[0131] The wall panel access interface 102 is used to receive a second trigger operation of the user on the second key area;

[0132] The device access interface 104 is used to send the target instruction issued by the controller of the target device to the single chip controller 101;

[0133] The single chip controller 101 is used to call the target protocol corresponding to the target instruction in the memory 103, obtain the code value corresponding to the target instruction, and store the code value;

[0134] The wall panel access interface 102 is used to receive a third trigger operation of the user on the second button area;

[0135] The single chip controller 101 is used to control the target device according to the code value corresponding to the second key area in response to the third trigger operation.

[0136] In an optional embodiment, Figure 3 As shown, a KTV multi-protocol control device 10 is provided, wherein the first key area includes an infrared learning key area; the device access interface 104 includes an infrared receiving interface 301; and the target device includes an infrared control device;

[0137] The keyboard input device 105 is used to receive a first trigger operation of the user on the infrared learning key area;

[0138] The single chip controller 101 is used to enter the infrared learning mode in response to the first trigger operation;

[0139] The wall panel access interface 102 is used to receive a second trigger operation of the user on the second key area;

[0140] The infrared receiving interface 201 is used to send the target instruction issued by the controller of the infrared control device to the single chip controller 101;

[0141] The single chip controller 101 is used to call the target protocol corresponding to the packet header in the memory 103 according to the packet header of the target instruction; and decode the target instruction according to the target protocol to obtain a code value corresponding to the target instruction.

[0142] In an optional embodiment, Figure 3 As shown, a KTV multi-protocol control device 10 is provided, and the KTV multi-protocol control device 10 further includes an infrared emission interface 302; the infrared emission interface 302 is connected to the single-chip controller 101;

[0143] The single chip controller 101 is used to obtain the code value corresponding to the second key area in response to the third trigger operation; and modulate the code value corresponding to the second key area;

[0144] The infrared transmission interface 202 is used to send the modulated code value to the target device for control.

[0145] In the embodiment of the present invention, the infrared transmitting module can modulate the corresponding code value through the corresponding protocol and send it out to control the infrared control device.

[0146] In an optional embodiment, Figure 3 As shown, a KTV multi-protocol control device 10 is provided, wherein the first key area includes a song ordering machine learning key area; the device access interface 104 includes a song ordering machine receiving interface 303; the target device includes a song ordering machine;

[0147] The single chip controller 101 is used to enter the song request machine learning mode in response to the first trigger operation;

[0148] The wall panel access interface 102 is used to receive a second trigger operation of the user on the second key area;

[0149] The song ordering machine receiving interface 203 is used to send the target instruction issued by the controller of the song ordering machine to the single chip controller 101;

[0150] The single chip microcomputer controller 101 is used to determine the target protocol in response to the user's protocol selection operation; and obtain the code value corresponding to the target instruction according to the target protocol.

[0151] In an embodiment of the present application, the memory 103 in the above embodiment is used to store the protocol of the control device (for example, the infrared decoding protocol for controlling the infrared control device, the communication protocol for controlling the song request machine) and the code value of the wall panel remapping.

[0152] In the embodiment of the present application, the description of the above-mentioned KTV multi-protocol control device 10 can be found in the description of each embodiment of the device access method under the KTV application scenario, and will not be repeated here.

[0153] In an optional embodiment, the KTV multi-protocol control device 10 further includes a display device; the display device is connected to the single-chip controller 101;

[0154] The display device is used to display information during the process of accessing the target device and controlling the target device.

[0155] In the embodiment of the present application, the display device uses six 7-segment digital tubes to display information (for example, system menu functions and code values, etc.) during the process of accessing and controlling the target device.

[0156] In an optional embodiment, the KTV multi-protocol control device 10 also includes a power supply device, which converts 220V AC power into DC 12V, 5V and 3.3V multi-level voltage values ​​for system use through a transformer and a rectifier circuit.

[0157] In an optional embodiment, the keyboard input device 105 serves as an interface for human-computer interaction and includes several first button areas, for example, an infrared learning button area, a song ordering machine learning button area, a learning completion button area, etc., which can be used to select and set functions such as system menus, infrared code modulation functions, infrared remote control code value demodulation, and wall panel key value remapping.

[0158] For the specific definition of the KTV multi-protocol control device, please refer to the definition of the device access method in the KTV application scenario above, which will not be repeated here. Each module in the above-mentioned KTV multi-protocol control device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0159] In one embodiment, Figure 4 The schematic diagram of the control of the air conditioner and the KTV song-ordering machine in the KTV application scenario shown is that the KTV wall panel can control the air conditioner and the song-ordering machine. There is a button area for controlling the air conditioner and the song-ordering machine on the KTV wall panel. For example, when the air conditioner switch button is pressed, the command is sent to the KTV multi-protocol control device through the RS485 protocol. The KTV multi-protocol control device communicates with the air conditioner through the infrared communication protocol to control the air conditioner switch.

[0160] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0161] Receiving a first trigger operation of a user on the learning key area of ​​the song request machine through the keyboard input device;

[0162] In response to the first trigger operation, entering a song request machine learning mode;

[0163] receiving a second trigger operation of the user on the second key area through the wall panel access interface;

[0164] Receiving a target instruction sent by the controller of the song-ordering machine through the song-ordering machine receiving interface;

[0165] In response to a protocol selection operation by a user, determining a target protocol;

[0166] A code value corresponding to the target instruction is obtained according to the target protocol.

[0167] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0168] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0169] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.

Claims

1. A device access method in a KTV application scenario, the method is applicable to KTV multi-protocol control equipment, characterized in that: The KTV multi-protocol control device includes a single-chip microcomputer controller, a wall panel access interface, a memory, a device access interface and a keyboard input device; the wall panel access interface, the memory, the device access interface and the keyboard input device are all connected to the single-chip microcomputer controller; the wall panel access interface is connected to the wall panel input device of the KTV wall panel; the keyboard input device includes a plurality of first key areas; The wall panel input device includes a plurality of second key areas; The memory is used to store several protocols for controlling external devices; The method comprises: In response to a first trigger operation of a first key area on the keyboard input device, entering a corresponding learning mode; receiving a second trigger operation of the user on the second key area through the wall panel access interface; receiving a target instruction sent by a controller of a target device through the device access interface; Calling a target protocol corresponding to the target instruction in the memory, obtaining a code value corresponding to the target instruction, and storing the code value; receiving a third trigger operation of the user on the second key area through the wall panel access interface; In response to the third trigger operation, controlling the target device according to the code value corresponding to the second key area; The first key area includes an infrared learning key area; the device access interface includes an infrared receiving interface; the target device includes an infrared control device; The method includes: responding to a first trigger operation on a first key area on the keyboard input device, entering a corresponding learning mode; receiving a second trigger operation on a second key area by a user through the wallboard access interface; receiving a target instruction issued by a controller of a target device through the device access interface; calling a target protocol corresponding to the target instruction in the memory to obtain a code value corresponding to the target instruction, including: Receiving a first trigger operation of the user on the infrared learning key area through the keyboard input device; In response to the first trigger operation, entering an infrared learning mode; receiving a second trigger operation of the user on the second key area through the wall panel access interface; Receiving a target instruction sent by a controller of the infrared control device through the infrared receiving interface; According to the packet header of the target instruction, calling the target protocol corresponding to the packet header in the memory; Decoding the target instruction according to the target protocol to obtain a code value corresponding to the target instruction; The KTV multi-protocol control device also includes an infrared transmission interface; the infrared transmission interface is connected to the single-chip controller; The step of controlling the target device according to the code value corresponding to the second key area in response to the third trigger operation includes: In response to the third trigger operation, acquiring a code value corresponding to the second key area; Modulating the code value corresponding to the second key area; The modulated code value is sent to the target device through the infrared transmission interface for control.

2. The method according to claim 1, characterized in that The first key area includes a song ordering machine learning key area; the device access interface includes a song ordering machine receiving interface; the target device includes a song ordering machine; In response to a first trigger operation on a first key area on the keyboard input device, the corresponding learning mode is entered; a second trigger operation on a second key area by a user is received through the wall panel access interface; and a target instruction issued by a controller of a target device is received through the device access interface; Calling a target protocol corresponding to the target instruction in the memory to obtain a code value corresponding to the target instruction includes: Receiving a first trigger operation of a user on the learning key area of ​​the song request machine through the keyboard input device; In response to the first trigger operation, entering a song request machine learning mode; receiving a second trigger operation of the user on the second key area through the wall panel access interface; Receiving a target instruction sent by the controller of the song-ordering machine through the song-ordering machine receiving interface; In response to a protocol selection operation by a user, determining a target protocol; A code value corresponding to the target instruction is obtained according to the target protocol.

3. The method according to claim 1, characterized in that The protocols for controlling external devices include: ITT protocol, NEC protocol, Nokia NRC protocol, Sharp protocol, Philips RC-5 protocol, Philips RC-6 protocol, Philips RECS-80 protocol and Sony SIRC protocol.

4. A KTV multi-protocol control device, characterized in that: The KTV multi-protocol control device includes a single-chip microcomputer controller, a wall panel access interface, a memory, a device access interface and a keyboard input device; the wall panel access interface, the memory, the device access interface and the keyboard input device are all connected to the single-chip microcomputer controller; the wall panel access interface is connected to the wall panel input device of the KTV wall panel; the keyboard input device includes a plurality of first key areas; the wall panel input device includes a plurality of second key areas; the memory is used to store a plurality of protocols for controlling external devices; The keyboard input device is used to receive a first trigger operation of a user on a first key area; The single chip microcomputer controller is used to enter a corresponding learning mode in response to the first trigger operation; The wall panel access interface is used to receive a second trigger operation of the user on the second key area; The device access interface is used to send the target instruction issued by the controller of the target device to the single-chip microcomputer controller; The single-chip microcomputer controller is used to call the target protocol corresponding to the target instruction in the memory, obtain the code value corresponding to the target instruction, and store the code value; The wall panel access interface is used to receive a third trigger operation of the user on the second key area; The single chip controller is used to control the target device according to the code value corresponding to the second key area in response to the third trigger operation; The first key area includes an infrared learning key area; the device access interface includes an infrared receiving interface; the target device includes an infrared control device; The keyboard input device is used to receive a first trigger operation of the user on the infrared learning key area; The single chip microcomputer controller is used to enter an infrared learning mode in response to the first trigger operation; The wall panel access interface is used to receive a second trigger operation of the user on the second key area; The infrared receiving interface is used to send the target instruction issued by the controller of the infrared control device to the single-chip controller; The single-chip microcomputer controller is used to call the target protocol corresponding to the packet header in the memory according to the packet header of the target instruction; and decode the target instruction according to the target protocol to obtain a code value corresponding to the target instruction; The KTV multi-protocol control device also includes an infrared transmission interface; the infrared transmission interface is connected to the single-chip controller; The single chip controller is used to obtain the code value corresponding to the second key area in response to the third trigger operation; and modulate the code value corresponding to the second key area; The infrared transmission interface is used to send the modulated code value to the target device for control.

5. The KTV multi-protocol control device according to claim 4, characterized in that: The first key area includes a song ordering machine learning key area; the device access interface includes a song ordering machine receiving interface; the target device includes a song ordering machine; The keyboard input device is used to receive a first trigger operation of the user on the learning key area of ​​the song ordering machine; The single chip microcomputer controller is used to enter the song request machine learning mode in response to the first trigger operation; The wall panel access interface is used to receive a second trigger operation of the user on the second key area; The song ordering machine receiving interface is used to send the target instruction issued by the controller of the song ordering machine to the single chip controller; The single chip microcomputer controller is used to determine the target protocol in response to the user's protocol selection operation; and to obtain the code value corresponding to the target instruction according to the target protocol.

6. The KTV multi-protocol control device according to claim 4, characterized in that: The KTV multi-protocol control device also includes a display device; the display device is connected to the single-chip controller; The display device is used to display information during the process of accessing the target device and controlling the target device.