A method, system, computer device and storage medium for controlling transmission of a signal

By dividing the control signal into multiple repeating units and encoding it with a lightweight data format, the problem of large storage space occupation in the prior art is solved, and efficient control signal transmission is achieved.

CN115762110BActive Publication Date: 2025-12-19SHENZHEN OURUIBO ELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211230613.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2025-12-19
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

Existing encoding techniques require re-encoding the entire digital signal when adjusting segments of operation instructions. The encoded results are long, occupy a large amount of storage space, and are not convenient for transmission to devices with small memory.

Method used

The control signals are encoded using a lightweight data format (such as JSON). By dividing the control signals into multiple repeating units and forming sub-codes according to preset encoding rules, the sub-codes are combined into encoded control signals, reducing storage size.

Benefits of technology

This reduces storage space requirements and improves control signal transmission efficiency without changing the operation of control signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115762110B_ABST
    Figure CN115762110B_ABST
Patent Text Reader

Abstract

The application discloses a kind of control signal transmission method, system, computer equipment and storage medium.The method comprises: obtaining first control signal;According to the first control signal, the encoding control signal of lightweight data format is generated;The encoding control signal is outputted.The control signal transmission method, system, computer equipment and storage medium of implementation of the present application, since it can be converted into the encoding control signal of lightweight data format after obtaining control signal and then output, to reduce the storage size required in control signal transmission.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of signal transmission, in particular to a control signal transmission method and system, a computer device and a storage medium. BACKGROUND

[0002] In the control signal transmission, the operation instruction of the control command is often converted from an analog signal to a binary digital signal, then encoded, and then assembled into an electrical signal for transmission. The binary digital signal has only two states of "0" and "1", which can be represented by a series of intermittent voltage pulses. "1" is represented by high level, and "0" is represented by low level, thereby forming the level signal of the digital signal. In the existing encoding technology, the duration of the high level and the low level in the rectangular wave of the level signal is recorded in sequence, and the duration of the high level is placed in the odd number, and the duration of the low level is placed in the even number, and finally the encoding result, i.e. a level digital array, is obtained.

[0003] When using the existing encoding technology, if a certain segment of the operation instruction is adjusted, the entire digital signal needs to be re-encoded; and the level digital array obtained is relatively long, which requires a large storage space and is not convenient for transmission to devices with small memory. SUMMARY

[0004] The technical problem to be solved by the present application is to provide a control signal transmission method, system, computer device and storage medium.

[0005] The technical solution adopted by the present application to solve the technical problem is: providing a control signal transmission method, comprising the following steps:

[0006] obtaining a first control signal;

[0007] generating an encoded control signal in a lightweight data format according to the first control signal;

[0008] outputting the encoded control signal.

[0009] Preferably, after the step of outputting the encoded control signal, the method further comprises: obtaining a corresponding second control signal according to the received encoded control signal.

[0010] Preferably, the lightweight data format is a JSON format.

[0011] Preferably, the step of generating an encoded control signal in a lightweight data format according to the first control signal comprises:

[0012] dividing the first control signal into a plurality of repeating units according to the communication protocol used;

[0013] Encode each of the repeating units according to a preset encoding rule to form a corresponding sub-encoding; the sub-encoding includes a data key-value pair of the repeating unit and a repeating number key-value pair of the repeating unit;

[0014] Combine the sub-encodings corresponding to the first control signal to obtain the encoded control signal.

[0015] Preferably, the data key-value pair is a key-value pair of a level array.

[0016] Preferably, each element of the level array includes a duration of each level and a symbol used to distinguish the type of the level.

[0017] Preferably, in the step of combining the sub-encodings corresponding to the first control signal to obtain the encoded control signal, the step includes:

[0018] Combine the sub-encodings corresponding to the first control signal in sequence to obtain the encoded control signal; the sequence is a division sequence of the repeating units corresponding to the sub-encodings.

[0019] The application also constructs a control signal transmission system, which includes:

[0020] A control signal processing module, configured to acquire a first control signal, generate an encoded control signal in a lightweight data format according to the first control signal, and output the encoded control signal.

[0021] A control signal receiving module, configured to receive the encoded control signal output by the control signal processing module.

[0022] The application also constructs a computer device, which includes a memory, a processor and a bus, the memory stores a computer program executable by the processor, the processor and the memory communicate through the bus, and the processor executes the computer program to perform the steps of the control signal transmission method according to any one of the above.

[0023] The application also constructs a computer readable storage medium, which stores a computer program, and the computer program is adapted to be loaded by a processor to perform the steps of the control signal transmission method according to any one of the above.

[0024] The control signal transmission method, system, computer device and storage medium of the application can convert a control signal into an encoded control signal in a lightweight data format after acquiring the control signal and then output the encoded control signal, thereby reducing the required storage size in control signal transmission. BRIEF DESCRIPTION OF DRAWINGS

[0025] In order to make the technical solutions of the embodiments of the present application or the prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description only need to be some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative work.

[0026] Figure 1 is a flowchart of a first embodiment of a control signal transmission method provided by the present application.

[0027] Figure 2 is a flowchart of an optional embodiment of a control signal transmission method provided by the present application.

[0028] Figure 3 is a schematic diagram of a specific application example of a control signal transmission method provided by the present application. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0030] Please refer to Figure 1 , Figure 1 is a flowchart of a first embodiment of a control signal transmission method provided by the present application. The control signal transmission method of this embodiment can be applied to devices with encoding function in a communication system, including but not limited to routing devices, servers, mobile phones, mobile terminals, tablet computers, smart watches, smart bracelets, notebook computers, desktop computers, smart air conditioners, smart televisions, smart sound boxes, smart fans, smart remote controllers, etc. The device receives the control signal sent by the control terminal, such as APP, remote controller or other control device, encodes the control signal, and then outputs the control terminal device, such as smart home appliances, smart terminals or other controlled devices, etc.

[0031] Specifically, the control signal transmission method in this embodiment includes the following steps:

[0032] S1, obtaining a first control signal.

[0033] In this step, the control signal sent by the APP, remote controller or other control device is received through wireless transmission or wired transmission, and the first control signal is obtained by analyzing the control signal according to the communication protocol used. The first control signal can be a light-on instruction, a light adjustment instruction or other control instruction. Specifically, when wireless transmission is used, the communication protocol used can be ZigBee (ZigBee protocol), RF (radio frequency), Bluetooth or other communication protocol; when wired transmission is used, the communication protocol used can be ETH (Ethernet protocol), RS485, KNX or other communication protocol.

[0034] S2, generating an encoded control signal in a lightweight data format according to the first control signal.

[0035] In this step, the first control signal is converted into an encoded control signal in a lightweight data format by a communication device with encoding function, so that the storage size can be reduced without changing the specific operation corresponding to the first control signal. The encoded control signal can include start code, synchronization header, data code, check code and other segments, so as to realize the control of the terminal device. Specifically, the communication device with encoding function can be a server, a tablet computer, a smart watch, a smart bracelet and other devices.

[0036] S3, outputting the encoded control signal.

[0037] In this step, a data frame containing the encoded control signal is generated, and then outputted through wired transmission or wireless transmission. Specifically, when WIFI technology is used for wireless transmission, the corresponding control frame, management frame and data frame need to be encapsulated to output the encoded control signal. Of course, the encoded control signal can also be transmitted by using other protocols, and the corresponding encoding is performed according to different communication protocols. Since the storage size of the encoded control signal is small, the bandwidth occupied by the transmission data can be saved when the encoded control signal is outputted.

[0038] In this embodiment, the control signal can be converted into an encoded control signal in a lightweight data format and then outputted after the control signal is obtained, so as to reduce the storage size required in the transmission of the control signal.

[0039] Further, in an optional embodiment, the lightweight data format is JSON format in step S2. Specifically, the structure of JSON can be divided into array and object. The object is composed of several key-value pairs key:value, the key name key is the attribute of the object, the key value value is the corresponding attribute value, the key name can be represented by a string, and the value type can be any type such as string, number, object, array, boolean or null. JSON format has the advantages of clear hierarchical structure, less syntax, ultra-lightweight, etc.

[0040] Further, in an optional embodiment, as shown in step S2, the encoding control signal in the lightweight data format is generated according to the first control signal, which can specifically include: Figure 2

[0041] S21, dividing the first control signal into multiple repetition units according to the used communication protocol;

[0042] S22, respectively encoding each repetition unit according to the preset encoding rule to form the corresponding sub-encoding; the sub-encoding includes the data key-value pair of the repetition unit and the repetition number key-value pair of the repetition unit;

[0043] S23, combining the multiple sub-encodings corresponding to the first control signal to obtain the encoding control signal.

[0044] Specifically, in the communication process, a segment is often continuously transmitted for repeated encoding. For example, the segment of the start code is repeated twice, and the segment of the data code is repeated three times. The repetition number of different segments can be adjusted according to the specific communication protocol, so that the corresponding repetition unit can be divided according to the repetition number of different segments. In other embodiments, other division methods can also be used, for example, when the total number of bytes occupied by the adjacent start code and the synchronization header is small, they can also be combined as a repetition unit for division.

[0045] The data value of the repetition unit is read from the division obtained repetition unit, and then this data value is taken as the key value in the data key-value pair, and the repetition number of this repetition unit in the first control signal is taken as the key value in the repetition number key-value pair. Then the data key-value pair and the repetition number key-value pair are combined into an object, and the corresponding multiple sub-encodings can be obtained. Then the multiple sub-encodings corresponding to the first control signal are combined into an object or an array, and the encoding control signal is obtained.

[0046] Further, step S22 can specifically include: the data key-value pair is a key-value pair of a level array.

[0047] ​Specifically, the first control signal can be represented by a series of discontinuous voltage pulses or light pulses. When represented by voltage pulses, the first control signal can be converted into a level signal with a pulse voltage waveform as a rectangular wave, and the data value of the repeated unit obtained according to the preset encoding rule is the level array of the level signal segment corresponding to the repeated unit.

[0048] Further, when the first control signal is a level signal, in step S22, the data key value pair of the level array obtained according to the preset encoding rule can specifically include: each element of the level array includes the duration of each level and a symbol used to distinguish the type of the level.

[0049] Specifically, the level signal is continuously composed of a first high level lasting for a period of time, a first low level lasting for another period of time, a second high level lasting for a period of time, a second low level lasting for another period of time,..., an Nth high level lasting for a period of time, and an Nth low level lasting for another period of time. Therefore, obtaining the level array corresponding to one repeated unit can be achieved by sequentially recording the duration of each level and sequentially taking each element of the level array. Since different repeated units can start with a high level or a low level, a symbol needs to be added to the elements of the level array to distinguish the high level or the low level. For example, a negative sign "-" is added to the duration of each low level to distinguish. In other embodiments, a negative sign "-" can also be added to the duration of each high level. It can be understood that other symbols can also be used for distinction.

[0050] Further, in an optional embodiment, in step S23, combining the plurality of sub-codes corresponding to the first control signal to obtain the encoded control signal can specifically include: combining the plurality of sub-codes corresponding to the first control signal in a specified order to obtain the encoded control signal; the specified order is the division order of the repeated units corresponding to the sub-codes; or generating a corresponding sub-code key value pair for each sub-code, and combining the plurality of sub-code key value pairs corresponding to the first control signal in any order to obtain the encoded control signal; the key name of the sub-code key value pair is used to distinguish the division order of the repeated units corresponding to the sub-codes.

[0051] Specifically, the first sub-encoding corresponds to the first repeating unit, the second sub-encoding corresponds to the second repeating unit, and the Nth sub-encoding corresponds to the Nth repeating unit. Therefore, the first sub-encoding, the second sub-encoding, and the Nth sub-encoding can be combined in order according to the division order of the respective repeating units to obtain an array of the encoding control signal. The combination order of the plurality of sub-encodings can be used to identify the division order of the corresponding plurality of repeating units. In other embodiments, the first sub-encoding key-value pair, the second sub-encoding key-value pair, and the Nth sub-encoding key-value pair can be generated and combined into an object to obtain the encoding control signal, wherein the key name of the sub-encoding key-value pair can be used to identify the division order of the plurality of sub-encodings corresponding to the repeating units.

[0052] Please refer to Figure 3 , Figure 3 A schematic diagram of a specific application example of the transmission method of the control signal provided by the application. In this specific application example, in order to facilitate the description of the generation step of the encoding control signal of the transmission method of the control signal provided by the application, the example is simplified.

[0053] The first repeating unit is: high level for 1000us, low level for 300us, high level for 500us; the second repeating unit is: low level for 175us, high level for 700us, low level for 175us, high level for 175us, low level for 175us. It can be understood that the above duration can be adjusted according to the actual first control signal, and then the corresponding encoding control signal is generated.

[0054] When the complete level signal of the first control signal is composed of the first repeating unit repeated once and the second repeating unit repeated once;

[0055] The generated encoding control signal is:

[0056] [{“count”:1,“array”:[1000,-300,500]},{“count”:1,“array”:[-175,700,-175,175,-175]}];

[0057] The first repeating unit and the second repeating unit can also be regarded as a repeating unit, and the generated encoding control signal can be:

[0058] {“count”:1,“array”:[1000,-300,500,-175,700,-175,175,-175]}.

[0059] When the complete level signal of the first control signal is composed of the first repeating unit repeated twice and the second repeating unit repeated three times;

[0060] The generated encoding control signal is:

[0061] [{“count”:2,“array”:[1000,-300,500]},{“count”:3,“array”:[-175,700,-175,175,-175]}]。

[0062] Further, in an optional embodiment, after step S3, further comprising: obtaining a corresponding second control signal according to the received encoding control signal.

[0063] Specifically, after obtaining the encoding control signal through wired transmission or wireless transmission, the repeated units corresponding to the multiple sub-codes, the division order of the repeated units and the repetition times are identified, and then the electric wave signal, i.e., the second control signal, is generated for wireless transmission. The ASK modulation or OOK modulation can be used, and other modulation methods can also be used. The second control signal can be used to control the terminal device to perform specific operations.

[0064] The application also constructs a control signal transmission system for implementing the control signal transmission method as described above. The control signal transmission system of the embodiment comprises a control signal processing module and a control signal receiving module. The control signal processing module is configured to obtain a first control signal, generate an encoding control signal in a lightweight data format according to the first control signal, and output the encoding control signal; and the control signal receiving module is configured to receive the encoding control signal output by the control signal processing module.

[0065] The application also constructs a computer device comprising a memory, a processor and a bus; the memory is configured to store a computer program executable by the processor; the processor and the memory communicate through the bus; and the processor is configured to execute the computer program to implement the control signal transmission method as described above. Specifically, according to the embodiment of the application, the processes described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiment of the application comprises a computer program product comprising a computer program carried on a computer readable medium, and the computer program comprises program codes for executing the method shown in the flowchart. In such an embodiment, when the computer program is downloaded and installed by an electronic device and executed, the above-mentioned functions defined in the method of the embodiment of the application are executed. The electronic device in the application can be a notebook, a tablet computer, a smart phone or the like, or a server.

[0066] The application also discloses a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the transmission method of the control signal. Specifically, it should be noted that the computer readable medium of the application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer readable storage media can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the application, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or component. In the application, the computer readable signal medium can include a data signal propagating in a baseband or as a carrier wave part of a signal, which carries computer readable program code. Such a propagating data signal can take various forms, including but not limited to electromagnetic signals, optical signals or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or component. The program code contained in the computer readable medium can be transmitted by any suitable medium, including but not limited to: wire, cable, RF (radio frequency), etc., or any suitable combination of the above.

[0067] The computer readable storage medium described above can be contained in the computer device described above, or can exist separately and not be assembled into the computer device.

[0068] It can be understood that the above embodiments only express part of the embodiments of the application, and the description is more specific and detailed, but it cannot be understood as a limitation on the scope of the patent of the application; it should be noted that for ordinary skilled persons in the art, the above technical features can be freely combined without departing from the concept of the application, and some modifications and improvements can be made, which are all within the protection scope of the application; therefore, any equivalent transformation and modification within the scope of the claims of the application should be included in the scope of the claims of the application.

Claims

1. A method of controlling transmission of a signal, characterized by, The method comprises the following steps: obtaining a first control signal; generating an encoded control signal in a lightweight data format according to the first control signal, wherein the step of generating an encoded control signal in a lightweight data format according to the first control signal comprises: dividing the first control signal into multiple repeating units according to a communication protocol used; encoding each of the repeating units according to a preset encoding rule to form a corresponding sub-encoding, wherein the sub-encoding comprises a data key-value pair of the repeating unit and a repeating number key-value pair of the repeating unit; combining multiple sub-encodings corresponding to the first control signal to obtain the encoded control signal; and outputting the encoded control signal.

2. The method of claim 1, wherein, After the step of outputting the encoded control signal, the method further comprises obtaining a corresponding second control signal according to the received encoded control signal.

3. The method of claim 1, wherein, The lightweight data format is a JSON format.

4. The method of claim 3, wherein, The data key-value pair is a key-value pair of a level array.

5. The method of claim 4, wherein, Each element of the level array comprises a duration of each level and a symbol for distinguishing the type of the level.

6. The method of claim 3, wherein, In the step of combining multiple sub-encodings corresponding to the first control signal to obtain the encoded control signal, the method comprises: combining multiple sub-encodings corresponding to the first control signal in a specified order to obtain the encoded control signal, wherein the specified order is a division order of the repeating units corresponding to the sub-encodings; or generating a corresponding sub-encoding key-value pair for each of the sub-encodings, and combining multiple sub-encoding key-value pairs corresponding to the first control signal in any order to obtain the encoded control signal, wherein the key name of the sub-encoding key-value pair is used to distinguish the division order of the repeating units corresponding to the sub-encodings.

7. A transmission system of control signals, characterized in that The method comprises: a control signal processing module configured to obtain a first control signal, generate an encoded control signal in a lightweight data format according to the first control signal, and output the encoded control signal; a control signal receiving module configured to receive the encoded control signal output by the control signal processing module; the control signal processing module is further configured to divide the first control signal into multiple repeating units according to a communication protocol used, encode each of the repeating units according to a preset encoding rule to form a corresponding sub-encoding, wherein the sub-encoding comprises a data key-value pair of the repeating unit and a repeating number key-value pair of the repeating unit, and combine multiple sub-encodings corresponding to the first control signal to obtain the encoded control signal.

8. A computer device, comprising: The method comprises: a memory, a processor, and a bus, wherein the memory stores a computer program executable by the processor, the processor and the memory communicate through the bus, and the processor executes the computer program to perform the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, A computer program is stored on a computer readable storage medium, and the computer program is adapted to be loaded by a processor to perform the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Signal modulation method and circuit based on infrared protocol and remote control terminal

    CN111627200A

  • Display control method of LED display assembly and related device

    CN112259044A