A private line encoding method, a private line decoding method, a device, and a private line control system

By employing binary encoding and decoding methods for the dedicated line control system, the problem of abnormal start-up and shutdown of fire-fighting equipment caused by voltage interference was solved, achieving more stable control.

CN119402133BActive Publication Date: 2026-05-05HANGZHOU HIKFIRE TECH LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU HIKFIRE TECH LTD
Filing Date
2024-10-12
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

In existing dedicated line control systems, the start and stop of fire-fighting equipment depends on the line voltage, which can easily lead to abnormal start or stop due to interference, resulting in poor control stability.

Method used

The control commands are encoded into level signals using a binary encoding method. The signals are then transmitted and decoded using a preset correspondence between binary numbers and code elements to ensure the stability of the level signals.

Benefits of technology

It improves the stability of dedicated line control, avoids the impact of level changes caused by interference on the start-up and shutdown status of equipment, and enhances the reliability of control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402133B_ABST
    Figure CN119402133B_ABST
Patent Text Reader

Abstract

This application provides a dedicated line encoding method, a dedicated line decoding method, an apparatus, and a dedicated line control system, relating to the field of fire control technology. A first dedicated line board's first pin is connected to a first dedicated line module via a dedicated line. The method includes: the first dedicated line board binary-encoding a first control command to be transmitted to obtain data to be transmitted; the first dedicated line board determining the code corresponding to each binary number in the data to be transmitted according to a preset correspondence between binary numbers and code elements; wherein each code element contains a data portion of a first duration; in the correspondence between binary numbers and code elements, the duration of the data portion corresponding to 0 and 1 is different; the first dedicated line board generates each determined code element on its first pin; after receiving the level signal generated by the first dedicated line board, the first dedicated line module determines the control command represented by the received level signal based on the correspondence between binary numbers and code elements. This improves the stability of the dedicated line control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of fire control technology, and in particular to a dedicated line encoding method, a dedicated line decoding method, a device, and a dedicated line control system. Background Technology

[0002] In the field of fire protection, existing dedicated line control systems consist of dedicated line boards and dedicated line modules. The dedicated line boards and modules communicate via dedicated lines to control the fire protection equipment corresponding to the dedicated line modules. For example, fire protection equipment can be fans or fire pumps, and the dedicated line module can control the stopping or starting of the fire protection equipment.

[0003] In related technologies, communication between the dedicated line board and the dedicated line module is achieved by switching voltage on and off. That is, when the voltage output by the dedicated line board is high, the dedicated line module controls the fire-fighting equipment to start; when the voltage output by the dedicated line board is low, the dedicated line module controls the fire-fighting equipment to stop. However, in the above system, the starting and stopping of the fire-fighting equipment depends entirely on the voltage on the line. If a sudden change in voltage level occurs due to interference or other reasons, it will cause abnormal starting and stopping of the fire-fighting equipment, resulting in poor control stability.

[0004] Therefore, improving the stability of dedicated line control has become an urgent problem to be solved. Summary of the Invention

[0005] The purpose of this application is to provide a leased line encoding method, a leased line decoding method, an apparatus, and a leased line control system to improve the stability of leased line control. The specific technical solution is as follows:

[0006] A first aspect of this application provides a leased line encoding method applied to a first leased line board, wherein a first pin of the first leased line board is connected to a first leased line module via a leased line, the method comprising:

[0007] The first control command to be sent is encoded into binary to obtain the data to be sent;

[0008] Based on a preset correspondence between binary numbers and symbols, the symbols corresponding to each binary number in the data to be transmitted are determined respectively; wherein, each symbol contains a data portion of a first duration; in the correspondence between binary numbers and symbols, the durations of the data portions of symbols corresponding to 0 and 1 are different; when the type of the first control instruction is to control the device to start, the level represented by the data portion of each symbol includes the device's start level; when the type of the first control instruction is to control the device to stop, the level represented by the data portion of each symbol is the device's sustain level, and the sustain level is lower than the start level;

[0009] Each code element is generated and determined on the first pin so that after receiving the level signal generated by the first dedicated line board, the first dedicated line module can determine the control command represented by the received level signal based on the correspondence between the binary number and the code element.

[0010] A second aspect of this application provides a leased line decoding method applied to a first leased line module, wherein a second pin of the first leased line module is connected to a first pin of a first leased line board via a leased line, the method comprising:

[0011] The second pin receives the level signal generated by the first dedicated line board on the first pin, which is used as the level signal to be decoded.

[0012] Based on the symbols contained in the level signal to be decoded and the preset correspondence between binary numbers and symbols, determine the binary number corresponding to each symbol as control command data;

[0013] Each symbol contains a data portion of a first duration. In the correspondence between binary numbers and symbols, the durations of the data portions of symbols corresponding to 0 and 1 are different. When the control command data is used to control the device to start, the level represented by the data portion of each received symbol includes the device's start level. When the control command data is used to control the device to stop, the level represented by the data portion of each received symbol is the device's sustain level, and the sustain level is lower than the start level.

[0014] The control command data is binary decoded to obtain the control command corresponding to the level signal to be decoded.

[0015] A third aspect of the embodiments of this application provides a dedicated line control system, the dedicated line control system comprising: a first dedicated line board and a first dedicated line module;

[0016] The first leased line board is used to execute any of the leased line coding methods described in the first aspect above;

[0017] The first leased line module is used to execute any of the leased line decoding methods described in the second aspect above.

[0018] A fourth aspect of this application provides a leased line encoding device applied to a first leased line board, wherein a first pin of the first leased line board is connected to a first leased line module via a leased line, the device comprising:

[0019] The first encoding unit is used to encode the first control command to be sent into binary form to obtain the data to be sent.

[0020] The symbol determination unit is used to determine the symbol corresponding to each binary number in the data to be transmitted according to a preset correspondence between binary numbers and symbols; wherein, any symbol contains a data portion of a first duration; in the correspondence between binary numbers and symbols, the duration of the data portion of the symbols corresponding to 0 and 1 is different; when the type of the first control instruction is to control the device to start, the level represented by the data portion of each determined symbol includes the device's start level; when the type of the first control instruction is to control the device to stop, the level represented by the data portion of each determined symbol is the device's maintenance level, and the maintenance level is lower than the start level;

[0021] The symbol generation unit is used to generate the determined symbols on the first pin, so that after the first leased line module receives the level signal generated by the first leased line board, it can determine the control command represented by the received level signal based on the correspondence between the binary number and the symbol.

[0022] A fifth aspect of this application provides a leased line decoding device applied to a first leased line module, wherein a second pin of the first leased line module is connected to a first pin of a first leased line board via a leased line, the device comprising:

[0023] The signal receiving unit is used to receive the level signal generated by the first dedicated line board on the first pin through the second pin, as the level signal to be decoded;

[0024] The control instruction data determination unit is used to determine the binary number corresponding to each code element based on each code element contained in the level signal to be decoded and the preset correspondence between binary numbers and code elements, and use it as control instruction data.

[0025] Each symbol contains a data portion of a first duration. In the correspondence between binary numbers and symbols, the durations of the data portions of symbols corresponding to 0 and 1 are different. When the control command data is used to control the device to start, the level represented by the data portion of each received symbol includes the device's start level. When the control command data is used to control the device to stop, the level represented by the data portion of each received symbol is the device's sustain level, and the sustain level is lower than the start level.

[0026] The first decoding unit is used to perform binary decoding on the control instruction data to obtain the control instruction corresponding to the level signal to be decoded.

[0027] A sixth aspect of the embodiments of this application provides a dedicated line board, including:

[0028] Memory, used to store computer programs;

[0029] When a processor executes a program stored in memory, it implements any of the above-described leased line encoding methods.

[0030] A seventh aspect of this application provides a leased line module, including:

[0031] Memory, used to store computer programs;

[0032] The processor, when executing a program stored in memory, implements any of the above-described dedicated line decoding methods.

[0033] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to execute any of the leased line encoding or leased line decoding methods described above.

[0034] Beneficial effects of the embodiments in this application:

[0035] This application provides a dedicated line encoding method. A dedicated line board (i.e., a first dedicated line board) can perform binary encoding on a first control command to be transmitted, obtaining data to be transmitted that represents the first control command; that is, the data to be transmitted is a combination of binary numbers (0 and 1). Furthermore, the code corresponding to each binary number in the data to be transmitted can be determined according to a preset correspondence between binary numbers and code elements. Since, in the preset correspondence between binary numbers and code elements, when the type of the first control command is controlling device startup, the level represented by the data portion of each code element includes the device startup level; when the type of the first control command is controlling device shutdown, the level represented by the data portion of each code element is the device maintenance level; and the duration of the data portion in the code element corresponding to binary number 0 is different from the duration of the data portion in the code element corresponding to binary number 1, the first dedicated line board can encode according to the aforementioned preset correspondence between binary numbers and code elements to generate the determined code elements on the first pin. Correspondingly, after receiving the level signal generated by the first dedicated line board, the first dedicated line module can determine the binary number corresponding to each symbol in the received level signal according to the preset correspondence between binary numbers and symbols, and perform binary decoding to obtain the control command corresponding to the received level signal. Thus, in this application, the transmission of control commands between the dedicated line board and the dedicated line module can be achieved by encoding the control command to obtain the level signal (i.e., each symbol) through the dedicated line board and decoding the level signal to obtain the control command. Compared to controlling the equipment by switching voltage on and off, the dedicated line encoding method provided in this application does not simply rely on the level at a certain moment to control the equipment, which can improve the stability of control to a certain extent and avoid the impact of level changes caused by interference on the start / stop state of the equipment.

[0036] Of course, implementing any product or method of this application does not necessarily require achieving all of the advantages described above at the same time. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other embodiments can be obtained based on these drawings.

[0038] Figure 1 A schematic diagram of the dedicated line control system provided in this application;

[0039] Figure 2 A first flowchart of a leased line coding method provided in an embodiment of this application;

[0040] Figure 3 A schematic diagram of a code element provided for an embodiment of this application;

[0041] Figure 4(a) is a schematic diagram of the code element corresponding to the binary number 0 provided in the embodiment of this application;

[0042] Figure 4(b) is a schematic diagram of the code element corresponding to the binary number 1 provided in the embodiment of this application;

[0043] Figure 5 A second flowchart of the leased line coding method provided in the embodiments of this application;

[0044] Figure 6(a) is a schematic diagram of the code element corresponding to the binary number 0 in the first correspondence provided in the embodiment of this application;

[0045] Figure 6(b) is a schematic diagram of the code element corresponding to the binary number 1 in the first correspondence provided in the embodiment of this application;

[0046] Figure 7(a) is a schematic diagram of the code element corresponding to the binary number 0 in the second correspondence provided in the embodiment of this application;

[0047] Figure 7(b) is a schematic diagram of the code element corresponding to the binary number 1 in the second correspondence provided in the embodiment of this application;

[0048] Figure 8(a) is a schematic diagram of the structure of a frame used to transmit control commands to start the control device, provided in an embodiment of this application;

[0049] Figure 8(b) is a schematic diagram of the structure of a frame used to transmit a control command to stop the control device, provided in an embodiment of this application;

[0050] Figure 9 A schematic diagram illustrating the process of sending and receiving symbols provided in an embodiment of this application;

[0051] Figure 10 A first flowchart of a leased line decoding method provided in an embodiment of this application;

[0052] Figure 11(a) is a schematic diagram of reporting device information in one code element when the first control command is of the type of control device startup, provided in an embodiment of this application;

[0053] Figure 11(b) is a schematic diagram of reporting device information in one code element when the type of the first control command is to control the device to stop, according to an embodiment of this application;

[0054] Figure 12 A structural diagram of a leased line encoding device provided in an embodiment of this application;

[0055] Figure 13 A structural diagram of a leased line decoding device provided in an embodiment of this application;

[0056] Figure 14 A structural diagram of a dedicated line board provided in an embodiment of this application;

[0057] Figure 15 This is a structural diagram of a dedicated line module provided in an embodiment of this application. Detailed Implementation

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

[0059] In the field of fire control technology, the wiring methods between fire-fighting equipment (e.g., fans, fire pumps, etc.) and the control devices that control the fire-fighting equipment can be divided into multi-wire systems and bus systems.

[0060] Existing dedicated line control systems consist of dedicated line boards and dedicated line modules. The dedicated line boards and modules communicate via dedicated lines to control the fire-fighting equipment corresponding to the dedicated line modules. Accordingly, the dedicated line module can control the fire-fighting equipment to stop or start.

[0061] In related technologies, communication between the dedicated line board and the dedicated line module is achieved by switching voltage on and off. That is, when the voltage output by the dedicated line board is high, the dedicated line module controls the fire-fighting equipment to start; when the voltage output by the dedicated line board is low, the dedicated line module controls the fire-fighting equipment to stop. However, in the above system, the starting and stopping of the fire-fighting equipment depends entirely on the voltage on the line. If a sudden change in voltage level occurs due to interference or other reasons, it will cause abnormal starting and stopping of the fire-fighting equipment, resulting in poor control stability.

[0062] Therefore, ensuring the stability of dedicated line control has become an urgent problem to be solved.

[0063] The dedicated line coding method provided in this application is particularly suitable for multi-line scenarios. In a multi-line scenario, each fire-fighting device (i.e., the device in this application) is connected to the dedicated line board through an independent physical line (i.e., the dedicated line in this application). That is, only the fire-fighting device and the dedicated line board are connected on the physical line.

[0064] In this application, a fire-fighting device is controlled by a dedicated line module, and one pin of the dedicated line module is connected to one pin of a dedicated line board. It is understood that a dedicated line board can connect to multiple dedicated line modules via multiple pins, with each dedicated line module corresponding to and controlling one fire-fighting device.

[0065] This application provides a dedicated line encoding method, which can be applied to a first dedicated line board, wherein the first pin of the first dedicated line board is connected to a first dedicated line module via a dedicated line.

[0066] The first dedicated line board can be any dedicated line board in the dedicated line control system. The dedicated line control system includes dedicated line boards and dedicated line modules. See also... Figure 1 , Figure 1 A schematic diagram of the dedicated line control system provided in this application. A dedicated line control system 100 includes: at least one dedicated line board 101 and at least one dedicated line module 102, wherein a dedicated line module 102 is used to control a fire-fighting device 200.

[0067] See Figure 2 , Figure 2 A first flowchart of a leased line coding method provided in this application embodiment, the method includes the following steps:

[0068] S201: Encode the first control command to be sent into binary form to obtain the data to be sent.

[0069] S202: Based on the preset correspondence between binary numbers and code elements, determine the code element corresponding to each binary number in the data to be sent.

[0070] Each symbol contains a data portion of a first duration; in the correspondence between binary numbers and symbols, the durations of the data portions of symbols corresponding to 0 and 1 are different; when the type of the first control instruction is to control the device to start, the level represented by the data portion of each symbol includes the device's start level; when the type of the first control instruction is to control the device to stop, the level represented by the data portion of each symbol is the device's sustain level, and the sustain level is lower than the start level.

[0071] S203: Generate the determined symbols on the first pin so that after receiving the level signal generated by the first dedicated line board, the first dedicated line module can determine the control command represented by the received level signal based on the correspondence between binary numbers and symbols.

[0072] This application provides a dedicated line encoding method. A dedicated line board (i.e., a first dedicated line board) can perform binary encoding on a first control command to be transmitted, obtaining data to be transmitted that represents the first control command; that is, the data to be transmitted is a combination of binary numbers (0 and 1). Furthermore, the code corresponding to each binary number in the data to be transmitted can be determined according to a preset correspondence between binary numbers and code elements. Since, in the preset correspondence between binary numbers and code elements, when the type of the first control command is controlling device startup, the level represented by the data portion of each code element includes the device startup level; when the type of the first control command is controlling device shutdown, the level represented by the data portion of each code element is the device maintenance level; and the duration of the data portion in the code element corresponding to binary number 0 is different from the duration of the data portion in the code element corresponding to binary number 1, the first dedicated line board can encode according to the aforementioned preset correspondence between binary numbers and code elements to generate the determined code elements on the first pin. Correspondingly, after receiving the level signal generated by the first dedicated line board, the first dedicated line module can determine the binary number corresponding to each symbol in the received level signal according to the preset correspondence between binary numbers and symbols, and perform binary decoding to obtain the control command corresponding to the received level signal. Thus, in this application, the transmission of control commands between the dedicated line board and the dedicated line module can be achieved by encoding the control command to obtain the level signal (i.e., each symbol) through the dedicated line board and decoding the level signal to obtain the control command. Compared to controlling the equipment by switching voltage on and off, the dedicated line encoding method provided in this application does not simply rely on the level at a certain moment to control the equipment, which can improve the stability of control to a certain extent and avoid the impact of level changes caused by interference on the start / stop state of the equipment.

[0073] Regarding step S201, the first control command to be sent can be a control command for a device (which can be referred to as the first device), controlling the dedicated line module of the first device, i.e., the first dedicated line module in this application. A pin of the first dedicated line board (i.e., the first pin) is connected to a pin of the first dedicated line module (i.e., the second pin) via a dedicated line.

[0074] In one implementation, a user can interact with the aforementioned leased line control system via a first leased line board. For example, the first leased line board may include physical buttons, a display screen, or other devices for receiving user control commands. Correspondingly, the user can trigger control commands for a first device, i.e., first control commands, at the first leased line board. For example, the user can trigger a control command instructing the first device to start, or a control command instructing the first device to stop.

[0075] After receiving the first control command to be sent, the first dedicated line board can encode the command into binary form to obtain the data to be sent. That is, the first dedicated line board can convert the first control command into binary data (a sequence of 0s and 1s) based on its type, and use this as the data to be sent. The number of binary numbers in the data to be sent is preset by technicians according to actual needs; for example, the data to be sent can be a 2-bit or 6-bit binary number.

[0076] For example, if the number of binary numbers contained in the data to be sent is 6, when the type of the first control instruction is to start the control device, the data to be sent can be 100100; when the type of the first control instruction is to stop the control device, the data to be sent can be 100101.

[0077] Regarding step S202, the first dedicated line board can determine the code corresponding to each binary number in the data to be transmitted according to the order of the binary numbers in the data to be transmitted and the preset correspondence between binary numbers and code elements.

[0078] For a given symbol, it can be divided into a data part and a flag part. The data part of the symbol is used to distinguish the binary number corresponding to the symbol, and the flag part is used to distinguish the symbol from other symbols in the level signal. The data part of a symbol represents a non-zero level.

[0079] In this embodiment of the application, the output level of the first dedicated line board can be divided into 3 levels, as shown in Table (1) below:

[0080] Table (1)

[0081] Level Classification Level value effect Logic Level high level 27V Power supply and code transmission 1 low level 10V answer 1 Zero level 0V Code issuance 0

[0082] In this system, the high-level signal has a value of 27V, the low-level signal has a value of 10V, and the zero-level signal has a value of 0V. The high and low levels correspond to logic level 1, and the zero level corresponds to logic level 0. The high level is used for power supply and transmitting symbols (i.e., code transmission), the low level is used for response, and the zero level is used for code transmission. The specific power supply, code transmission, and response processes will be explained in subsequent embodiments.

[0083] See Figure 3 , Figure 3 This is a schematic diagram of a code element provided in an embodiment of this application. The level signal during the time period T1 corresponds to the data portion of this code element, where T1 represents the first duration and the level signal during the time period T1 corresponds to logic level 1 (i.e., logic 1). The level signal during the time period T4 corresponds to the flag portion of this code element, where T4 represents the fourth duration and the level signal during the time period T4 corresponds to logic level 0 (i.e., logic 0).

[0084] For each binary number in the data to be transmitted, the duration of the data portion of the corresponding symbol (i.e., the first duration) can be determined based on the value (0 or 1) of the binary number and the correspondence between binary numbers and symbols. The duration of the data portion of the symbol corresponding to 0 and 1 is different. For example, if a binary number is 0, the duration of the data portion of the symbol corresponding to that binary number can be determined to be 5 milliseconds; if a binary number is 1, the duration of the data portion of the symbol corresponding to that binary number can be determined to be 6 milliseconds. In this case, the duration of the data portion of the symbol corresponding to 1 is longer than the duration of the data portion of the symbol corresponding to 0. Alternatively, the duration of the data portion of the symbol corresponding to 1 can also be shorter than the duration of the data portion of the symbol corresponding to 0. This application does not specifically limit the first duration corresponding to each binary number; the first duration corresponding to each binary number only needs to meet the actual requirements.

[0085] Referring to Figures 4(a) and 4(b), Figure 4(a) is a schematic diagram of the code element corresponding to the binary number 0 provided in the embodiment of this application. A logic level of 0 for 1ms (i.e., logic 0) corresponds to the flag part of this code element, and a logic level of 1 for 5ms (i.e., logic 1) corresponds to the data part of this code element. Figure 4(b) is a schematic diagram of the code element corresponding to the binary number 1 provided in the embodiment of this application. A logic level of 0 for 1ms (i.e., logic 0) corresponds to the flag part of this code element, and a logic level of 1 for 6ms (i.e., logic 1) corresponds to the data part of this code element.

[0086] When the type of the first control command is to control the device to start, the first pin of the first dedicated line board needs to output the start level of the first device to control the start of the first device. Therefore, when the type of the first control command is to control the device to start, for each binary number in the data to be sent, the level represented by the data part of the code element includes the start level of the device (i.e., the level required to start the device). The duration of the start level included in the data part of the code element can be called the second duration. That is, the second duration is not greater than the first duration. Among them, the start level of the device is determined according to the actual performance of the fire protection equipment in the scenario, and the start level of the device corresponds to the high level in the above table (1) (i.e., the level used for power supply and code transmission).

[0087] When the type of the first control command is to control the device to stop, the first pin of the first dedicated line board needs to output a level lower than the start level of the first device to control the first device to stop. Therefore, when the type of the first control command is to control the device to stop, for each binary number in the data to be transmitted, the level represented by the data part of the code is determined as the maintenance level of the device, that is, when the first pin of the first dedicated line board generates the data part of the code, the first pin outputs a maintenance level for a first duration. Among them, the maintenance level of the device is lower than the start level of the device. The maintenance level of the device is the lowest level required for the device to communicate with the first dedicated line board. At this time, the maintenance level output by the first pin of the first dedicated line board cannot control the start of the first device, and the first device can communicate with the first dedicated line board when the received level signal is the maintenance level. Correspondingly, the maintenance level of the device is also determined according to the actual performance of the fire protection equipment in the scenario. Under normal circumstances, the maintenance level of a device is lower than the start level of the device. The maintenance level of the device corresponds to the low level (i.e. the level used for reply) in the table (1) above.

[0088] Regarding step S203, after determining the code element corresponding to each binary number in the data to be transmitted, the first dedicated line board can generate the code element corresponding to each binary number on the first pin according to the order of each binary number in the data to be transmitted, that is, generate a level signal containing multiple code elements.

[0089] Furthermore, after receiving the level signal generated by the first dedicated line board, the first dedicated line module can determine the control command represented by the received level signal based on the correspondence between binary numbers and code elements. The specific process will be described in subsequent embodiments.

[0090] In some embodiments, the dedicated line communication between a dedicated line board and a dedicated line module adopts two-bus technology, that is, signal transmission and power supply share a single physical line. The basic communication principle of two-bus technology is downlink voltage and uplink current; downlink is code transmission, and uplink is code return. Correspondingly, the correspondence between binary numbers and code elements includes: a first correspondence under the condition that the control command type is to control the device to start, and a second correspondence under the condition that the control command type is to control the device to stop.

[0091] In the first correspondence, the data portion of any symbol includes a start level of a second duration and a sustain level of a third duration, and the sum of the second duration and the third duration is the first duration; the sustain level included in the data portion of the symbol is used to instruct the leased line module to upload the device information of the controlled device during the time period of receiving the sustain level in the data portion; in the second correspondence, the data portion of any symbol is a sustain level that lasts for the first duration, used to instruct the leased line module to upload the device information of the controlled device during the partial time period corresponding to receiving the data portion.

[0092] See Figure 5 , Figure 5 The second flowchart of the leased line coding method provided in the embodiments of this application is shown below. Figure 2 Based on this, step S202 includes:

[0093] S2021: If the type of the first control instruction is to control the device to start, then in the first correspondence, determine the code element corresponding to each binary number in the data to be sent.

[0094] S2022: If the type of the first control instruction is to control the device to stop, then in the second correspondence, the code elements corresponding to each binary number in the data to be sent are determined respectively.

[0095] In this embodiment, the correspondence between binary numbers and code elements can be divided into two types according to the type of control instruction: a first correspondence and a second correspondence. The first correspondence represents the correspondence between binary numbers and code elements when the control instruction is for starting the device. The second correspondence represents the correspondence between binary numbers and code elements when the control instruction is for stopping the device.

[0096] In the first correspondence, for each binary number in the data to be transmitted, the data portion of the symbol includes a start level of a second duration and a sustain level of a third duration. At this time, the sum of the second and third durations is the first duration, and the portion of the symbol corresponding to the second duration precedes the portion corresponding to the third duration. Accordingly, the first leased line module can upload the device information of the controlled device (i.e., the first device) by pulling up the current (i.e., controlling the current value output by the second pin of the first leased line module) during the time period corresponding to the sustain level in the data portion of the symbol output by the first pin of the first leased line board. The specific uploading process will be described in subsequent embodiments.

[0097] In one implementation, the second and third durations can be determined in the following way:

[0098]

[0099] Where T1 represents the first duration, T2 represents the second duration, and T3 represents the third duration. Indicates rounding up. This indicates rounding down to the nearest integer.

[0100] Referring to Figures 6(a) and 6(b), Figure 6(a) is a schematic diagram of the code element corresponding to the binary number 0 in the first correspondence provided in the embodiment of this application. The duration of the flag part of the code element is 1ms, and the flag part of the code element is a zero level (0V) for the fourth duration (1ms); the duration of the data part of the code element is 5ms, and the data part of the code element includes a start level (27V) for the second duration (3ms) and a sustain level (10V) for the third duration (2ms).

[0101] Figure 6(b) is a schematic diagram of the code element corresponding to the binary number 1 in the first correspondence provided in the embodiment of this application. The duration of the flag part of the code element is 1ms, and the flag part of the code element is a zero level (0V) for the fourth duration (1ms); the duration of the data part of the code element is 6ms, and the data part of the code element includes a start level (27V) for the second duration (3ms) and a sustain level (10V) for the third duration (3ms).

[0102] It is understandable that since the maximum output power (denoted as P) of the first dedicated line board is fixed, and P = I × V, where I is the current value and V is the voltage value, if the first dedicated line module increases the current value on the dedicated line when the voltage level (i.e., the voltage output by the first pin) is at the start-up level, it may cause the actual power of the first dedicated line board to exceed the maximum output power, triggering the power protection of the first dedicated line board and causing it to shut down. For example, if the maximum output power of the first dedicated line board is 27W and the start-up level is 27V, and the current on the dedicated line is 1A when the start-up level is output by the first pin of the first dedicated line board, then if the first dedicated line module increases the current value on the dedicated line, it will cause the actual power of the first dedicated line board to exceed the maximum output power, thereby causing the first dedicated line board to shut down. Therefore, to ensure the safety of the circuit, in this embodiment, the first dedicated line module only increases the current value on the dedicated line during the time period when the voltage level (i.e., the voltage output by the first pin of the first dedicated line board) is at the maintenance level.

[0103] In some embodiments, the method further includes:

[0104] If the type of the first control command is to control the device to start, the device information uploaded by the first dedicated line module is read through the first pin within the time period corresponding to the fourth duration of the data part of each generated code element.

[0105] In this embodiment of the application, if the type of the first control instruction is to control the device to start, then the level output by the first pin during the time period corresponding to the fourth duration of the data part of each symbol is a maintenance level.

[0106] In one implementation, during the generation of each symbol on the first pin by the first dedicated line board, the first dedicated line board can read the device information uploaded by the first dedicated line module (i.e., the current value on the first pin) when a specified time corresponding to that symbol is reached. Specifically, for each symbol, the specified time corresponding to a specified duration after the start time of symbol generation can be used as the specified time corresponding to that symbol, and the voltage level at the specified time corresponding to that symbol is a maintenance level.

[0107] Accordingly, the second and third durations of the symbol corresponding to binary number 0, and the second and third durations of the symbol corresponding to binary number 1, can be obtained. Furthermore, a specified duration can be determined. This specified duration is greater than the second duration of the symbol corresponding to binary number 0, greater than the second duration of the symbol corresponding to binary number 1, less than the first duration of the symbol corresponding to binary number 0, and less than the first duration of the symbol corresponding to binary number 1. In this way, it can be guaranteed that for each symbol, the voltage level at the specified time corresponding to that symbol is a maintenance level.

[0108] For example, in the first correspondence, if the first duration of the symbol corresponding to the binary number 0 is 5 milliseconds, then the second duration is 3 milliseconds, and the third duration is 2 milliseconds. If the first duration of the symbol corresponding to the binary number 1 is 6 milliseconds, then the second duration is 3 milliseconds, and the third duration is 3 milliseconds. Accordingly, for each symbol, the specified time can be the time corresponding to 3 milliseconds after the start time of generating the symbol.

[0109] In this way, the control of the lower-level device by the upper-level device (i.e., controlling the device through the first dedicated line board) and the reporting of the device information of the lower-level device to the upper-level device can be completed in a single code element. Thus, control and reporting are completed synchronously in the same code element. While the upper-level device controls the lower-level device, the lower-level device can upload its device information. Moreover, signal transmission and power supply are realized on a single physical line, improving the working efficiency of the link.

[0110] In the second correspondence, the data portion of any symbol is maintained at a level for a first duration. Accordingly, for each symbol, the first leased line module can upload device information of the controlled device within a certain time period corresponding to the received data portion of that symbol.

[0111] Referring to Figures 7(a) and 7(b), Figure 7(a) is a schematic diagram of the code element corresponding to the binary number 0 in the second correspondence provided in the embodiment of this application. The duration of the flag part of the code element is 1ms (milliseconds), and the flag part of the code element is a zero level (0V) for the fourth duration (1ms); the duration of the data part of the code element is 5ms (milliseconds), and the data part of the code element is a sustain level (10V) for the first duration (5ms).

[0112] Figure 7(b) is a schematic diagram of the code element corresponding to the binary number 1 in the second correspondence provided in the embodiment of this application. The duration of the flag part of the code element is 1ms (milliseconds), and the flag part of the code element is a zero level (0V) for the fourth duration (1ms); the duration of the data part of the code element is 6ms (milliseconds), and the data part of the code element is a sustain level (10V) for the first duration (6ms).

[0113] In some embodiments, the method further includes:

[0114] If the type of the first control command is to control the device to stop, the device information uploaded by the first dedicated line module is read through the first pin within a certain time period corresponding to the first duration of the data part of each generated code element.

[0115] In this embodiment of the application, if the type of the first control instruction is to control the device to stop, then the level of the first pin output during the time period corresponding to the data part of each symbol is always a maintenance level.

[0116] To facilitate the first dedicated line board in determining the time period for reading the current value on the first pin, in one implementation, during the generation of each symbol on the first pin, the first dedicated line board can read the current value on the first pin when a specified time corresponding to that symbol is reached. Specifically, for each symbol, the specified time corresponding to a specified duration after the start time of symbol generation can be used as the specified time for that symbol, and the voltage level at the specified time corresponding to that symbol is a sustaining level.

[0117] Since the data portion of each binary number's corresponding symbol in the second correspondence is at a sustained level, meaning that the first leased line module can upload device information at any moment during the data portion of each symbol, it is unnecessary to consider the duration of the data portion of each binary number's corresponding symbol in the second correspondence when determining the specified duration. The specified duration can be determined simply by following the method described in the above embodiments, which will not be elaborated upon here.

[0118] For example, in the second correspondence, if the first duration of the symbol corresponding to the binary number 0 is 5 milliseconds, and the first duration of the symbol corresponding to the binary number 1 is 6 milliseconds, then for each symbol, the specified time can be the time corresponding to 3 milliseconds after the start time of generating the symbol.

[0119] In one implementation, the second and third durations can be determined according to the method described in the above embodiments, where the start time of the time segment corresponding to the third duration in the data portion of a symbol is determined as the specified time. The second and third durations can be determined in the following way:

[0120]

[0121] Where T1 represents the first duration, T2 represents the second duration, and T3 represents the third duration. Indicates rounding up. This indicates rounding down to the nearest integer.

[0122] In this way, the control of the lower-level device by the upper-level device (i.e., controlling the device through the first dedicated line board) and the reporting of the device information of the lower-level device to the upper-level device can be completed in a single code element. Thus, control and reporting are completed synchronously in the same code element. While the upper-level device controls the lower-level device, the lower-level device can upload its device information. Moreover, signal transmission and power supply are realized on a single physical line, improving the working efficiency of the link.

[0123] In some embodiments, the second pin of the first dedicated line module is connected to the first pin of the first dedicated line board via a dedicated line.

[0124] The steps described above for reading device information uploaded by the first leased line module via the first pin include:

[0125] Step a: Read the current value of the current output by the first dedicated line module on the second pin through the first pin.

[0126] The current value output on the second pin is determined by the first dedicated line module based on the third correspondence between the preset binary number and the current value, as well as the binary data corresponding to the device information to be uploaded.

[0127] Step b: Decode the read current value according to the third correspondence to obtain the device information uploaded by the first dedicated line module.

[0128] In this embodiment of the application, during the generation of each symbol by the first dedicated line board, the first dedicated line module can control the current value of the current output by the second pin after reaching a specified time for that symbol. Correspondingly, the first dedicated line board can read the current value on the first pin after reaching the specified time for that symbol.

[0129] In the preset third correspondence between binary numbers and current values, 0 and 1 correspond to different current values. For example, 0 can correspond to a current value of 10mA, while 1 can correspond to a current value of 20mA.

[0130] Then, the first dedicated line board can decode the read current value according to the third correspondence to obtain the binary data corresponding to the device information to be uploaded (i.e., the data to be uploaded).

[0131] For example, after the first dedicated line board reaches the specified time for each symbol, the current values ​​read are 10mA, 10mA, 10mA, 10mA, 10mA, 20mA, respectively. Then, the binary numbers corresponding to each current value can be determined as 0, 0, 0, 0, 0, 1, and the corresponding data to be uploaded is 000001.

[0132] Furthermore, the first dedicated line board can determine the equipment information of the first device based on the data to be uploaded.

[0133] Based on the above processing, the control of the lower-level device by the upper-level device (i.e., controlling the device through the first dedicated line board) and the reporting of the device information of the lower-level device to the upper-level device can be completed in one code element. In this way, control and reporting are completed synchronously in the same code element. While the upper-level device controls the lower-level device, the lower-level device can upload the device information. Moreover, signal transmission and power supply are realized on a single physical line, improving the working efficiency of the link.

[0134] In some embodiments, any symbol further includes a flag portion of a fourth duration, the flag portion representing a level of zero, and the fourth duration being no greater than 1 millisecond; in terms of timing, the flag portion of any symbol is earlier than the data portion of that symbol.

[0135] In this embodiment, for any symbol, the level represented by the flag portion of that symbol can be set to zero. Furthermore, to prevent the first leased line module from controlling the first device to stop due to the first pin outputting a zero-level signal for an excessively long period, the fourth duration can be set to no more than 1 millisecond. Specifically, when the first leased line module does not control the first device to stop when the first pin outputting a zero-level signal for no more than 1 millisecond, the first leased line module will not control the first device to stop.

[0136] Furthermore, for any given symbol, the timing can be configured such that the flag portion of the symbol is generated earlier than the data portion. That is, during the generation of a symbol on the first pin, the flag portion of the symbol is generated first, followed by the data portion.

[0137] Based on the above processing, it can be ensured that during the generation of each symbol, the first pin first outputs the flag part of the symbol (i.e., the zero level of the fourth duration), and then outputs the data part of the symbol. This allows the first dedicated line module to accurately distinguish each symbol in the received level signal generated by the first dedicated line board, determine the start time of each symbol reception, and thus determine the end time of the previous symbol reception. Furthermore, in this embodiment, the introduction of a zero level through level grading increases the voltage discharge path and enhances the line's anti-interference capability.

[0138] Alternatively, in another implementation, the data portion of any symbol is earlier than the flag portion of that symbol in terms of timing.

[0139] For any given symbol, the data portion of that symbol can be set to occur earlier than the flag portion in the timing sequence. That is, during the generation of a symbol on the first pin, the data portion of the symbol is generated first, and then the flag portion of the symbol is generated.

[0140] Based on the above processing, it can be ensured that during the generation of each symbol, the first pin first outputs the data part of the symbol, and then outputs the flag part of the symbol (i.e., the zero level of the fourth duration). In this way, the first dedicated line module can accurately divide each symbol in the received level signal generated by the first dedicated line board, determine the end time of receiving each symbol, and thus determine the start time of receiving the next symbol.

[0141] Furthermore, the code elements in this application have a certain degree of extensibility. Technicians can set the duration of a code element according to actual needs. For example, for a code element, the first duration and the fourth duration of the code element can be set according to actual needs. In this way, efficient and stable control can be achieved.

[0142] In some embodiments, after step S203, the method further includes:

[0143] Step 1: If the type of the first control command is to control the device to start, then the start level is output through the first pin.

[0144] Step 2: If the type of the first control command is to control the device to stop, then maintain the level by outputting the first pin.

[0145] In this embodiment of the application, if the type of the first control instruction is to control the device to start, after the first pin generates the determined code elements, in order to ensure that the first device is in the start state, the start level can be output through the first pin.

[0146] If the type of the first control command is to control the device to stop, after the first pin generates the determined code elements, in order to ensure that the first device is in a stopped state, a maintenance level can be output through the first pin to ensure that the first device will not be started and that the first device can communicate with the first dedicated line board when the received level signal is a maintenance level.

[0147] In one implementation, the first dedicated line board can transmit level signals in a frame structure. Correspondingly, the duration of a frame is fixed. A frame includes a start bit, data bits, and an end bit. The interval between the end time of the end bit of this frame and the start time of the start bit of the next frame can be called the frame interval. The data bits in a frame correspond to the code elements of each binary number in the data to be transmitted.

[0148] Referring to Figure 8(a), Figure 8(a) is a schematic diagram of the structure of a frame for transmitting control commands to start a control device, provided in an embodiment of this application. In Figure 8(a), 0V represents zero level, 10V represents sustain level, and 27V represents start level. The duration of a frame (i.e., the total frame length) is 480ms. A frame includes: a start bit, data bits, and an end bit. The interval between the end time of the end bit of the frame and the start time of the start bit of the next frame can be called the frame interval of the frame. The data bits of the frame contain 6 bits of data (100100). Figure 8(a) shows the code corresponding to the first bit "1" and the code corresponding to the sixth bit "0" in the 6 bits of data. The code corresponding to the middle 4 bits of data is not shown in Figure 8(a), that is, 4 bits are omitted. If the type of the first control command is to start a control device, the data bits of the frame contain the code corresponding to each binary number representing the first control command. During the time period corresponding to the frame interval of the frame, the level output by the first pin of the first dedicated line board is the start level.

[0149] Referring to Figure 8(b), Figure 8(b) is a schematic diagram of the structure of a frame used to transmit control commands for stopping the control device, provided in an embodiment of this application. In Figure 8(b), 0V represents zero level, 10V represents sustain level, and 27V represents start level. The duration of a frame (i.e., the total frame length) is 480ms. A frame includes: a start bit, data bits, and an end bit. The interval between the end time of the end bit of this frame and the start time of the start bit of the next frame can be called the frame interval of this frame. The data bits of this frame contain 6 bits of data (100101). Figure 8(b) shows the code corresponding to the first bit "1" in the 6 bits of data, and the code corresponding to the sixth bit "1" in the 6 bits of data. The code corresponding to the middle 4 bits of data is not shown in Figure 8(b), that is, 4 bits are omitted. If the type of the first control command is to stop the control device, the data bits of this frame contain the code corresponding to each binary number representing the first control command. During the time period corresponding to the frame interval of this frame, the level output by the first pin of the first dedicated line board is a sustain level.

[0150] Based on the above processing, since the first leased line module can only determine the type of control command corresponding to the 6 bits of data in the frame after receiving all the data bits of the frame, the first pin needs to continue outputting a corresponding level to control the device's stop or start. That is, if the type of the first control command is to control the device to start, then during the time period corresponding to the frame interval of the frame, the level output by the first pin of the first leased line board is the start level. If the type of the first control command is to control the device to stop, then during the time period corresponding to the frame interval of the frame, the level output by the first pin of the first leased line board is the maintenance level. In this way, device control can be achieved.

[0151] In some embodiments, step one above includes:

[0152] The start level is output through the first pin until the preset duration is reached from the start time of each symbol determined by the last generation on the first pin, and then the process returns to step S203.

[0153] And / or,

[0154] Step two above includes:

[0155] The output level is maintained by the first pin until the preset duration is reached from the start time of the last generation of each symbol determined by the first pin, and then the process returns to step S203.

[0156] In this embodiment, if the type of the first control command is to control device startup, after the first pin generates the determined symbols once, the startup level can be continuously output through the first pin. Furthermore, if a preset time has elapsed since the last time the first pin generated the determined symbols, and no new command for the first device has been received, the first dedicated line board can generate the determined symbols again through the first pin.

[0157] And / or, if the type of the first control command is to control the device to stop, after the first pin generates the determined symbols once, the first pin can continuously output a maintenance level. Furthermore, if a preset time has elapsed since the last time the first pin generated the determined symbols, and no new command for the first device has been received, the first dedicated line board can generate the determined symbols again on the first pin.

[0158] In one implementation, the first dedicated line board can generate each determined code element multiple times. Correspondingly, technicians can determine a threshold number of repeated generation times. Once the threshold number is reached, the first dedicated line board stops generating each determined code element.

[0159] Based on the above processing, the first dedicated line board can generate multiple determined symbols. This avoids situations where interference or other factors prevent the first dedicated line module from accurately determining the control command for the first device during the initial generation of determined symbols on the first pin. Furthermore, it also avoids situations where the first dedicated line module fails to receive symbols due to the first device's short-term offline status (such as device disconnection caused by power plugging / unplugging). This further improves control stability.

[0160] See Figure 9 , Figure 9 This is a schematic diagram of a code element sending and receiving process provided in an embodiment of this application.

[0161] S901: Begin.

[0162] S902: Logic 0 level.

[0163] That is, the level corresponding to logic level 0 output by the first dedicated line board is the zero level.

[0164] S903: Determine if 1ms has been reached. If yes, proceed to step S904; otherwise, proceed to step S902.

[0165] That is, determine whether the fourth duration has been reached. If it has, it means that the flag part of the code element has been generated and the data part of the code element continues to be generated.

[0166] S904: Logic 1 level.

[0167] That is, the output logic level 1 of the first dedicated line board corresponds to the level (i.e., the data part of the code element), namely low level and high level.

[0168] S905: Determine if time T1 has been reached. If yes, proceed to step S906; otherwise, proceed to step S904.

[0169] That is, it determines whether the end time of the time period corresponding to the third duration of the code element has been reached. If it has been reached, it indicates that the first leased line board can start receiving the device information of the device uploaded by the first leased line module.

[0170] S906: Detect return code.

[0171] That is, the first dedicated line board reads the current value on the first pin.

[0172] S907: Determine if time T2 has been reached. If yes, proceed to step S908; otherwise, proceed to step S906.

[0173] That is, after the data part of the code element is generated, the first dedicated line board can determine the equipment information of the first device based on the current value read.

[0174] S908: Return code information processing.

[0175] That is, the first dedicated line board can determine the equipment information of the first device based on the current value read.

[0176] Based on the same inventive concept, this application provides a leased line decoding method. This method is applied to a first leased line module, where a second pin of the first leased line module is connected to a first pin of a first leased line board via a leased line. See also... Figure 10 , Figure 10 A first flowchart of a leased line decoding method provided in this application embodiment, the method includes the following steps:

[0177] S1001: Receives the level signal generated by the first dedicated line module on the first pin through the second pin, as the level signal to be decoded.

[0178] S1002: Based on the symbols contained in the level signal to be decoded and the preset correspondence between binary numbers and symbols, determine the binary number corresponding to each symbol, which serves as the control command data.

[0179] Each symbol contains a data portion of a first duration. In the correspondence between binary numbers and symbols, the duration of the data portion of symbols corresponding to 0 and 1 is different. When the control command data is used to control the device to start, the level represented by the data portion of each received symbol includes the device's start level. When the control command data is used to control the device to stop, the level represented by the data portion of each received symbol is the device's sustain level, and the sustain level is lower than the start level.

[0180] S1003: Perform binary decoding on the control command data to obtain the control command corresponding to the level signal to be decoded.

[0181] This application provides a dedicated line decoding method. A dedicated line board (i.e., a first dedicated line board) can perform binary encoding on a first control command to be transmitted, obtaining data to be transmitted that represents the first control command; that is, the data to be transmitted is a combination of binary numbers (0 and 1). Furthermore, the code corresponding to each binary number in the data to be transmitted can be determined according to a preset correspondence between binary numbers and code elements. Since, in the preset correspondence between binary numbers and code elements, when the type of the first control command is controlling device startup, the level represented by the data portion of each code element includes the device startup level; when the type of the first control command is controlling device shutdown, the level represented by the data portion of each code element is the device maintenance level; and the duration of the data portion in the code element corresponding to binary number 0 is different from the duration of the data portion in the code element corresponding to binary number 1, the first dedicated line board can encode according to the aforementioned preset correspondence between binary numbers and code elements to generate the determined code elements on the first pin. Correspondingly, after receiving the level signal generated by the first dedicated line board, the first dedicated line module can determine the binary number corresponding to each symbol in the received level signal according to the preset correspondence between binary numbers and symbols, and perform binary decoding to obtain the control command corresponding to the received level signal. Thus, in this application, the transmission of control commands between the dedicated line board and the dedicated line module can be achieved by encoding the control command to obtain the level signal (i.e., each symbol) through the dedicated line board and decoding the level signal to obtain the control command. Compared to controlling the equipment by switching voltage on and off, the dedicated line encoding method provided in this application does not simply rely on the level at a certain moment to control the equipment, which can improve the stability of control to a certain extent and avoid the impact of level changes caused by interference on the start / stop state of the equipment.

[0182] For steps S1001-S1002, the first leased line module can receive the level signal generated by the first leased line board on the first pin through a pin (i.e., the second pin), as the level signal to be decoded. The process of the first leased line board generating the level signal on the first pin is described in the embodiments corresponding to steps S201-S203 above, and will not be repeated here.

[0183] The level signal to be decoded contains code elements corresponding to multiple binary numbers. Therefore, the first dedicated line module can determine the binary number corresponding to each code element based on the code elements contained in the level signal to be decoded and the preset correspondence between binary numbers and code elements, and use it as control command data. The process of determining that the level signal to be decoded contains each code element will be described in subsequent embodiments.

[0184] Accordingly, based on the preset correspondence between binary numbers and symbols, it can be seen that for a symbol, the data portion of that symbol represents a level including a start level and / or a sustain level. Therefore, if a symbol contains both a start level and a sustain level, the first dedicated line module can determine the duration of the data portion of that symbol (i.e., the first duration) based on the total duration of the start and sustain levels. If a symbol contains only a sustain level, the first dedicated line module can determine the duration of the data portion of that symbol (i.e., the first duration) based on the duration of the sustain level. If a symbol contains only a start level, the first dedicated line module can determine the duration of the data portion of that symbol (i.e., the first duration) based on the duration of the start level.

[0185] Furthermore, since the duration of the data portion of the code portion corresponding to 0 and 1 is different in the correspondence between binary numbers and code elements, the first dedicated line module can determine the binary number corresponding to a code element based on the duration of the data portion of that code element.

[0186] For example, in the correspondence between binary numbers and symbols, the data portion of the symbol corresponding to binary number 0 has a duration of 5 milliseconds; the data portion of the symbol corresponding to binary number 1 has a duration of 6 milliseconds. If the durations of the data portions of the six symbols in the signal to be decoded are 6 milliseconds, 5 milliseconds, 5 milliseconds, 6 milliseconds, 5 milliseconds, and 5 milliseconds, then the corresponding binary numbers for each symbol are 1, 0, 0, 1, 0, 0. Accordingly, the control command data is 100100.

[0187] Furthermore, in the correspondence between binary numbers and symbols, when control command data is used to control device startup, the level represented by the data portion of each received symbol includes the device's startup level. Therefore, the first dedicated line module can control the first device to start upon receiving the symbols corresponding to the control command data used to start the device.

[0188] When control command data is used to stop the device, the data portion of each received symbol represents the device's sustaining level. Therefore, when the first dedicated line module receives the symbols corresponding to the control command data used to start the device, it cannot control the first device to start; in this case, the first dedicated line module controls the first device to stop.

[0189] In step S1003, the first dedicated line module can perform binary decoding on the control command data to obtain the control command corresponding to the level signal to be decoded.

[0190] In some embodiments, after step S1003, the method further includes:

[0191] If the type of control command received is to start the control device, then start the device controlled by the first dedicated line module.

[0192] For example, if the control command data is 100100, the first dedicated line module can perform binary decoding on the control command data to obtain the control command corresponding to the level signal to be decoded, which is used to instruct the first device to start.

[0193] In some embodiments, after step S1003, the method further includes:

[0194] If the type of control command received is to stop the control device, then the device controlled by the first dedicated line module will be stopped.

[0195] For example, if the control command data is 100101, the first dedicated line module can perform binary decoding on the control command data to obtain the control command corresponding to the level signal to be decoded, which is used to instruct the first device to stop.

[0196] In some embodiments, the first dedicated line module is used to control the first device. The correspondence between binary numbers and symbols includes: a first correspondence under the condition that the control instruction type is to control the device to start, and a second correspondence under the condition that the control instruction type is to control the device to stop.

[0197] In the first correspondence, the data portion of any symbol includes a start level of a second duration and a sustain level of a third duration, and the sum of the second duration and the third duration is the first duration; in the second correspondence, the data portion of any symbol is a sustain level that lasts for the first duration.

[0198] The method also includes:

[0199] Step 1: During the process of receiving each symbol contained in the level signal to be decoded, when the specified time corresponding to each symbol is reached, upload the device information of the first device to the first dedicated line board.

[0200] The specified duration is defined as the time interval between the specified time corresponding to each symbol and the start time of the data portion received from that symbol, and the level at the specified time corresponding to that symbol is the sustain level.

[0201] In this application embodiment, the first correspondence and the second correspondence can be referred to the relevant descriptions in the embodiments corresponding to steps S2021-S2022 above, and will not be repeated here.

[0202] Correspondingly, when the first dedicated line module receives each symbol contained in the level signal to be decoded through the second pin, when the specified time corresponding to each symbol is reached, it can upload the device information of the controlled device (i.e., the first device) by pulling up the current (i.e. controlling the current value of the current output by the second pin of the first dedicated line module).

[0203] In some embodiments, step 1 above includes:

[0204] Step 1-1: Obtain the device information of the first device to be uploaded and encode it into binary to obtain the data to be uploaded.

[0205] Step 1-2: Based on the preset third correspondence between binary numbers and current values, determine the current value corresponding to each binary number in the data to be uploaded.

[0206] Steps 1-3: Control the output current of the second pin according to the current value corresponding to each determined binary number.

[0207] In this embodiment of the application, the first leased line module can obtain the device information of the current first device as the device information of the first device to be uploaded. For example, the device information of a device can characterize the device's own status, such as: normal, open circuit fault, or short circuit fault, etc.

[0208] Accordingly, the first dedicated line module can perform binary encoding on the device information of the first device to be uploaded, thus obtaining the data to be uploaded. The number of binary numbers in the data to be uploaded is preset by technicians according to actual needs; for example, the number of bits in the data to be uploaded can be the same as the number of bits in the data to be sent.

[0209] For example, if the number of binary numbers in the data to be uploaded is 6, the data to be uploaded can be 000001 when the device information is normal; 000011 when the device information indicates an open circuit fault; and 000111 when the device information indicates a short circuit fault.

[0210] Furthermore, the first dedicated line module can determine the current value corresponding to each binary number in the data to be uploaded based on a preset third correspondence between binary numbers and current values. In this preset third correspondence, the current values ​​corresponding to 0 and 1 are different. For example, the current value corresponding to 0 can be 10mA, and the current value corresponding to 1 can be 20mA.

[0211] Furthermore, the first dedicated line module can control the second pin to output the current value corresponding to the binary number after the specified time of each received symbol, according to the order of the binary numbers in the data to be uploaded.

[0212] Referring to Figures 11(a) and 11(b), Figure 11(a) is a schematic diagram of reporting device information in one code element when the first control instruction is for device startup, according to an embodiment of this application. Here, 0V represents zero level, 10V represents sustaining level, and 27V represents startup level. T1 represents the time period corresponding to the third duration in the data portion of this code element, and T2 represents the time period corresponding to the fourth duration in the data portion of this code element. That is, this code element includes a startup level (27V) of duration T1 and a sustaining level (10V) of duration T2. ​​The first dedicated line module can report device information by controlling the current value output by the second pin during the time period corresponding to the fourth duration in the data portion of this code element.

[0213] Figure 11(b) is a schematic diagram of reporting device information in a single code element when the first control command is of the type of controlling device stop, according to an embodiment of this application. Here, 0V represents zero level, 10V represents sustain level, and 27V represents start level. T1 represents the time period corresponding to the third duration in the data portion of this code element, and T2 represents the time period corresponding to the fourth duration in the data portion of this code element. That is, this code element includes a sustain level (10V) of durations T1 and T2. The first dedicated line module can report device information by controlling the current value output by the second pin during the time period corresponding to the fourth duration in the data portion of this code element.

[0214] Based on the above processing, it is possible to realize the control of the lower-level device by the upper-level device (i.e., control the device through the first dedicated line board) and the reporting of the device information of the lower-level device to the upper-level device in a single code element. In this way, signal transmission and power supply can be realized on a single physical line, thereby improving the working efficiency of the link.

[0215] In some embodiments, any symbol further includes a flag portion of a fourth duration, the flag portion representing a level of zero, and the fourth duration being no greater than 1 millisecond; in terms of timing, the flag portion of any symbol is earlier than the data portion of that symbol.

[0216] Prior to S1002, the method also included:

[0217] The moment when each flag part is received is taken as the starting point of a symbol, and each symbol is decoded from the level signal to be decoded.

[0218] In this embodiment, during the generation of each symbol, the first dedicated line board first outputs the flag portion (i.e., the zero level of the fourth duration) of the symbol via its first pin, and then outputs the data portion of the symbol. Thus, the first dedicated line module can determine the moment when it receives a flag portion as the start time of a symbol reception, which is also the end time of the previous symbol reception. Consequently, the first dedicated line module can distinguish each symbol in the received level signal generated by the first dedicated line board.

[0219] In this way, the first dedicated line module can accurately divide each symbol in the received level signal generated by the first dedicated line board. Subsequently, based on each symbol and the preset correspondence between binary numbers and symbols, the control command data representing the control command can be determined to realize the control of the equipment.

[0220] Based on the same inventive concept, this application provides a dedicated line encoding device applied to a first dedicated line board. The first pin of the first dedicated line board is connected to a first dedicated line module via a dedicated line. See [link to relevant documentation]. Figure 12 , Figure 12 This is a structural diagram of a leased line encoding device provided in an embodiment of this application. The device includes:

[0221] The first encoding unit 1201 is used to encode the first control command to be sent into binary to obtain the data to be sent.

[0222] The symbol determination unit 1202 is used to determine the symbol corresponding to each binary number in the data to be transmitted according to a preset correspondence between binary numbers and symbols; wherein, any symbol contains a data portion of a first duration; in the correspondence between binary numbers and symbols, the duration of the data portion of the symbols corresponding to 0 and 1 is different; when the type of the first control instruction is to control the device to start, the level represented by the data portion of each determined symbol includes the device's start level; when the type of the first control instruction is to control the device to stop, the level represented by the data portion of each determined symbol is the device's maintenance level, and the maintenance level is lower than the start level;

[0223] The symbol generation unit 1203 is used to generate the determined symbols on the first pin so that after the first dedicated line module receives the level signal generated by the first dedicated line board, it can determine the control command represented by the received level signal based on the correspondence between the binary number and the symbol.

[0224] In some embodiments, the correspondence between the binary number and the code element includes: a first correspondence under the condition that the type of the control instruction is to control the device to start, and a second correspondence under the condition that the type of the control instruction is to control the device to stop;

[0225] In the first correspondence, the data portion of any symbol includes a start level of a second duration and a sustain level of a third duration, and the sum of the second duration and the third duration is the first duration; the sustain level included in the data portion of the symbol is used to instruct the leased line module to upload the device information of the controlled device during the time period of receiving the sustain level in the data portion;

[0226] In the second correspondence, the data portion of any symbol is a sustained level that lasts for the first duration, which is used to instruct the dedicated line module to upload the device information of the controlled device during the partial time period corresponding to the received data portion.

[0227] The symbol determination unit 1202 is specifically used for:

[0228] If the type of the first control instruction is to control device startup, then in the first correspondence, the code elements corresponding to each binary number in the data to be sent are determined respectively;

[0229] If the type of the first control command is to control the device to stop, then in the second correspondence, the code elements corresponding to each binary number in the data to be sent are determined respectively.

[0230] In some embodiments, any symbol further includes a flag portion of a fourth duration, the flag portion representing a level of zero, and the fourth duration being no greater than 1 millisecond; in timing, the flag portion of any symbol is earlier than the data portion of that symbol.

[0231] In some embodiments, the apparatus further includes:

[0232] The first output unit is configured to output the start level through the first pin if the type of the first control instruction is to control device startup after the determined symbols are generated on the first pin.

[0233] The second output unit is configured to output the sustain level through the first pin if the type of the first control instruction is to control the device to stop after the determined symbols are generated on the first pin.

[0234] In some embodiments, the first output unit is specifically used for:

[0235] The start level is output through the first pin until a preset duration is reached from the start time of each symbol determined in the last generation on the first pin, and then the symbol generation unit 1203 is triggered.

[0236] And / or,

[0237] The second output unit is specifically used for:

[0238] The sustaining level is output through the first pin until a preset duration is reached from the start time of each symbol determined in the last generation on the first pin, and then the symbol generation unit 1203 is triggered.

[0239] In some embodiments, the apparatus further includes:

[0240] The first receiving unit is configured to, if the type of the first control instruction is to control the device to start, read the device information uploaded by the first dedicated line module through the first pin within the time period corresponding to the fourth duration of the data part of each generated code element.

[0241] The device information determination unit is used to read the device information uploaded by the first dedicated line module through the first pin within a certain time period corresponding to the first duration of the data part of each generated code element if the type of the first control instruction is to control the device to stop.

[0242] In some embodiments, the second pin of the first dedicated line module is connected to the first pin of the first dedicated line board via the dedicated line;

[0243] The device information determination unit is specifically used for:

[0244] The current value of the current output by the first dedicated line module on the second pin is read through the first pin; wherein, the current value of the current output on the second pin is determined by the first dedicated line module based on a preset third correspondence between binary numbers and current values, and the binary data corresponding to the device information to be uploaded;

[0245] The read current value is decoded according to the third correspondence to obtain the device information uploaded by the first dedicated line module.

[0246] Based on the same inventive concept, this application provides a leased line decoding device applied to a first leased line module. The second pin of the first leased line module is connected to the first pin of the first leased line board via a leased line. See [link to relevant documentation]. Figure 13 , Figure 13 This is a structural diagram of a leased line decoding device provided in an embodiment of this application. The device includes:

[0247] Signal receiving unit 1301 is used to receive the level signal generated by the first dedicated line board on the first pin through the second pin, as the level signal to be decoded;

[0248] The control command data determination unit 1302 is used to determine the binary number corresponding to each code element based on each code element contained in the level signal to be decoded and the preset correspondence between binary numbers and code elements, and use it as control command data.

[0249] Each symbol contains a data portion of a first duration. In the correspondence between binary numbers and symbols, the durations of the data portions of symbols corresponding to 0 and 1 are different. When the control command data is used to control the device to start, the level represented by the data portion of each received symbol includes the device's start level. When the control command data is used to control the device to stop, the level represented by the data portion of each received symbol is the device's sustain level, and the sustain level is lower than the start level.

[0250] The first decoding unit 1303 is used to perform binary decoding on the control instruction data to obtain the control instruction corresponding to the level signal to be decoded.

[0251] In some embodiments, any symbol further includes a flag portion of a fourth duration, the flag portion representing a level of zero, and the fourth duration being no greater than 1 millisecond; in timing, the flag portion of any symbol is earlier than the data portion of that symbol.

[0252] The device further includes:

[0253] The symbol segmentation unit is used to decode each symbol from the level signal to be decoded before determining the binary number corresponding to each symbol based on each symbol contained in the level signal to be decoded and the preset correspondence between binary number and symbol, and using it as control instruction data, taking the time of receiving each flag part as the starting point of a symbol.

[0254] In some embodiments, the first dedicated line module is used to control the first device;

[0255] The correspondence between the binary number and the code element includes: a first correspondence under the condition that the control instruction type is to start the control device, and a second correspondence under the condition that the control instruction type is to stop the control device;

[0256] In the first correspondence, the data portion of any symbol includes a start level of a second duration and a sustain level of a third duration, and the sum of the second duration and the third duration is the first duration;

[0257] In the second correspondence, the data portion of any symbol is a sustaining level that lasts for the first duration;

[0258] The device further includes:

[0259] The device information uploading unit is used to upload the device information of the first device to the first dedicated line board when the specified time corresponding to each symbol is reached during the process of receiving each symbol contained in the level signal to be decoded; wherein, the duration between the specified time corresponding to each symbol and the start time of receiving the data part of the symbol is the specified duration, and the level of the specified time corresponding to the symbol is the maintenance level.

[0260] In some embodiments, the device information uploading unit is specifically used for:

[0261] The data to be uploaded is obtained by binary encoding the device information of the first device to be uploaded.

[0262] Based on the preset third correspondence between binary numbers and current values, the current value corresponding to each binary number in the data to be uploaded is determined respectively;

[0263] The output current of the second pin is controlled according to the current value corresponding to each determined binary number.

[0264] In some embodiments, the apparatus further includes:

[0265] The first control unit is configured to, after performing binary decoding on the control command data to obtain the control command corresponding to the level signal to be decoded, if the type of the obtained control command is to start the control device, then control the device controlled by the first dedicated line module to start.

[0266] The second control unit, after performing binary decoding on the control command data to obtain the control command corresponding to the level signal to be decoded, if the type of the obtained control command is to control the device to stop, then controls the device controlled by the first dedicated line module to stop.

[0267] This application embodiment also provides a dedicated line control system, the dedicated line control system including: a first dedicated line board and a first dedicated line module;

[0268] The first leased line board is used to execute any of the leased line coding methods described above;

[0269] The first leased line module is used to execute any of the leased line decoding methods described above.

[0270] This application also provides a dedicated line board, such as... Figure 14 As shown, it includes:

[0271] Memory 1401 is used to store computer programs;

[0272] When the processor 1402 executes the program stored in the memory 1401, it implements the steps of any of the above-mentioned dedicated line encoding methods.

[0273] Furthermore, the aforementioned dedicated line board may also include a communication bus and / or a communication interface, and the processor 1402, the communication interface, and the memory 1401 communicate with each other through the communication bus.

[0274] This application also provides a dedicated line module, such as... Figure 15 As shown, it includes:

[0275] Memory 1501 is used to store computer programs;

[0276] When the processor 1502 executes the program stored in the memory 1501, it implements the steps of any of the above-mentioned dedicated line decoding methods.

[0277] Furthermore, the aforementioned dedicated line module may also include a communication bus and / or a communication interface, with the processor 1502, communication interface, and memory 1501 communicating with each other via the communication bus.

[0278] The communication bus mentioned in the aforementioned leased line board and leased line module can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not indicate that there is only one bus or one type of bus.

[0279] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0280] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0281] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0282] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of any of the above-described leased line encoding or decoding methods.

[0283] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the leased line encoding methods or leased line decoding methods described above.

[0284] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a solid-state drive (SSD), etc.

[0285] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0286] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system, apparatus, electronic device, and computer-readable storage medium embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0287] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.

Claims

1. A leased line coding method, characterized in that, The method, applied to a first dedicated line board, wherein the first pin of the first dedicated line board is connected to a first dedicated line module via a dedicated line, includes: The first control command to be sent is encoded into binary to obtain the data to be sent; Based on a preset correspondence between binary numbers and code elements, the code elements corresponding to each binary number in the data to be transmitted are determined respectively; wherein, each code element contains a data portion of a first duration; in the correspondence between binary numbers and code elements, the durations of the data portions of the code elements corresponding to 0 and 1 are different; when the type of the first control instruction is to control the device to start, the level represented by the data portion of each determined code element includes the device's start level; when the type of the first control instruction is to control the device to stop, the level represented by the data portion of each determined code element is the device's sustain level, and the sustain level is lower than the start level; the correspondence between binary numbers and code elements includes: when the type of the control instruction is to control the device to start... The first correspondence under the condition of movement, and the second correspondence under the condition that the control command type is to control the device to stop; in the first correspondence, the data part of any symbol includes a start level of a second duration and a sustain level of a third duration, and the sum of the second duration and the third duration is the first duration; the sustain level included in the data part of the symbol is used to instruct the dedicated line module to upload the device information of the controlled device during the time period of receiving the sustain level in the data part; in the second correspondence, the data part of any symbol is a sustain level that lasts for the first duration, used to instruct the dedicated line module to upload the device information of the controlled device during the partial time period corresponding to receiving the data part; Each code element is generated and determined on the first pin so that after receiving the level signal generated by the first dedicated line board, the first dedicated line module can determine the control command represented by the received level signal based on the correspondence between the binary number and the code element.

2. The method according to claim 1, characterized in that, The step of determining the code corresponding to each binary number in the data to be transmitted according to the preset correspondence between binary numbers and code elements includes: If the type of the first control instruction is to control device startup, then in the first correspondence, the code elements corresponding to each binary number in the data to be sent are determined respectively; If the type of the first control command is to control the device to stop, then in the second correspondence, the code elements corresponding to each binary number in the data to be sent are determined respectively.

3. The method according to claim 1, characterized in that, Each symbol also includes a fourth duration flag portion, the flag portion representing a zero level, and the fourth duration is no greater than 1 millisecond; in timing, the flag portion of any symbol is earlier than the data portion of that symbol.

4. The method according to claim 1, characterized in that, After the determined symbols are generated at the first pin, the method further includes: If the type of the first control command is to control device startup, then the startup level is output through the first pin; If the first control command is to control the device to stop, then the sustain level is output through the first pin.

5. The method according to claim 4, characterized in that, The step of outputting the start-up level through the first pin includes: The start level is output through the first pin until a preset duration is reached from the start time of the last generation of each symbol determined on the first pin, and then the process of generating each symbol determined on the first pin is returned. And / or, The step of outputting the sustaining level through the first pin includes: The sustaining level is output through the first pin until a preset duration is reached from the start time of the last generation of each symbol determined on the first pin, and then the process of generating each symbol determined on the first pin is returned.

6. The method according to claim 2, characterized in that, The method further includes: If the type of the first control instruction is to control the device to start, within the time period corresponding to the fourth duration of the data part of each generated code element, the device information uploaded by the first dedicated line module is read through the first pin; If the type of the first control command is to control the device to stop, the device information uploaded by the first dedicated line module is read through the first pin during a portion of the time period corresponding to the first duration of the data portion of each generated code element.

7. The method according to claim 6, characterized in that, The second pin of the first dedicated line module is connected to the first pin of the first dedicated line board via the dedicated line. The step of reading the device information uploaded by the first leased line module through the first pin includes: The current value of the current output by the first dedicated line module on the second pin is read through the first pin; wherein, the current value of the current output on the second pin is determined by the first dedicated line module based on a preset third correspondence between binary numbers and current values, and the binary data corresponding to the device information to be uploaded; The read current value is decoded according to the third correspondence to obtain the device information uploaded by the first dedicated line module.

8. A leased line decoding method, characterized in that, Applied to a first dedicated line module, wherein the second pin of the first dedicated line module is connected to the first pin of the first dedicated line board via a dedicated line, the method includes: The second pin receives the level signal generated by the first dedicated line board on the first pin, which is used as the level signal to be decoded. Based on the symbols contained in the level signal to be decoded and the preset correspondence between binary numbers and symbols, determine the binary number corresponding to each symbol as control command data; In this system, each symbol contains a data portion of a first duration, and the durations of the data portions of symbols corresponding to 0 and 1 in the binary number-symbol correspondence are different. When the control command data is used to control the device to start, the level represented by the data portion of each received symbol includes the device's start level. When the control command data is used to control the device to stop, the level represented by the data portion of each received symbol is the device's sustain level, and the sustain level is lower than the start level. The binary number-symbol correspondence includes: a first correspondence under the condition that the control command type is to control the device to start, and a second correspondence under the condition that the control command type is to control the device to stop. In the first correspondence, the data portion of each symbol contains a start level of a second duration and a sustain level of a third duration, and the sum of the second duration and the third duration is the first duration. In the second correspondence, the data portion of each symbol is a sustain level that lasts for the first duration. The control command data is binary decoded to obtain the control command corresponding to the level signal to be decoded.

9. The method according to claim 8, characterized in that, Each symbol also includes a fourth duration flag portion, the flag portion representing a zero level, and the fourth duration is no greater than 1 millisecond; in terms of timing, the flag portion of any symbol is earlier than the data portion of that symbol; Before determining the binary number corresponding to each symbol based on the symbols contained in the level signal to be decoded and the preset correspondence between binary numbers and symbols, and using it as control command data, the method further includes: Each symbol is decoded from the signal to be decoded by taking the time when each flag part is received as the starting point of a symbol.

10. The method according to claim 8, characterized in that, The first dedicated line module is used to control the first device; The method further includes: During the process of receiving each symbol contained in the level signal to be decoded, when the specified time corresponding to each symbol is reached, the device information of the first device is uploaded to the first dedicated line board; wherein, the duration between the specified time corresponding to each symbol and the start time of receiving the data part of the symbol is the specified duration, and the level of the specified time corresponding to the symbol is the maintenance level.

11. The method according to claim 10, characterized in that, When the specified time corresponding to each symbol is reached, the device information of the first device is uploaded to the first leased line board, including: The data to be uploaded is obtained by binary encoding the device information of the first device to be uploaded. Based on the preset third correspondence between binary numbers and current values, the current value corresponding to each binary number in the data to be uploaded is determined respectively; The output current of the second pin is controlled according to the current value corresponding to each determined binary number.

12. The method according to claim 8, characterized in that, After performing binary decoding on the control command data to obtain the control command corresponding to the level signal to be decoded, the method further includes: If the type of the control command obtained is to start the device, then start the device controlled by the first dedicated line module. If the type of control command received is to stop the control device, then the control device controlled by the first dedicated line module will be stopped.

13. A dedicated line control system, characterized in that, The dedicated line control system includes: a first dedicated line board and a first dedicated line module; The first dedicated line board is used to execute the dedicated line coding method according to any one of claims 1-7; The first leased line module is used to execute the leased line decoding method according to any one of claims 8-12.

14. A dedicated line encoding device, characterized in that, The device, applied to a first dedicated line board, wherein the first pin of the first dedicated line board is connected to a first dedicated line module via a dedicated line, comprises: The first encoding unit is used to encode the first control command to be sent into binary form to obtain the data to be sent. A symbol determination unit is used to determine the symbol corresponding to each binary number in the data to be transmitted according to a preset correspondence between binary numbers and symbols; wherein, any symbol contains a data portion of a first duration; in the correspondence between binary numbers and symbols, the durations of the data portions of symbols corresponding to 0 and 1 are different; when the type of the first control instruction is to control the device to start, the level represented by the data portion of each determined symbol includes the device's start level; when the type of the first control instruction is to control the device to stop, the level represented by the data portion of each determined symbol is the device's maintenance level, and the maintenance level is lower than the start level; the correspondence between binary numbers and symbols includes: when the type of the control instruction is to control the device to stop... The system defines a first correspondence under the condition that the control device is started, and a second correspondence under the condition that the control command is to stop the control device. In the first correspondence, the data portion of any symbol contains a start level of a second duration and a sustain level of a third duration, and the sum of the second duration and the third duration is the first duration. The sustain level contained in the data portion of the symbol is used to instruct the dedicated line module to upload the device information of the controlled device during the time period of receiving the sustain level in the data portion. In the second correspondence, the data portion of any symbol is a sustain level that lasts for the first duration, used to instruct the dedicated line module to upload the device information of the controlled device during the partial time period corresponding to receiving the data portion. The symbol generation unit is used to generate the determined symbols on the first pin, so that after the first leased line module receives the level signal generated by the first leased line board, it can determine the control command represented by the received level signal based on the correspondence between the binary number and the symbol.

15. A dedicated line decoding device, characterized in that, The device is applied to a first dedicated line module, wherein the second pin of the first dedicated line module is connected to the first pin of the first dedicated line board via a dedicated line, and the device includes: The signal receiving unit is used to receive the level signal generated by the first dedicated line board on the first pin through the second pin, as the level signal to be decoded; The control instruction data determination unit is used to determine the binary number corresponding to each code element based on each code element contained in the level signal to be decoded and the preset correspondence between binary numbers and code elements, and use it as control instruction data. In this system, each symbol contains a data portion of a first duration, and the durations of the data portions of symbols corresponding to 0 and 1 in the binary number-symbol correspondence are different. When the control command data is used to control the device to start, the level represented by the data portion of each received symbol includes the device's start level. When the control command data is used to control the device to stop, the level represented by the data portion of each received symbol is the device's sustain level, and the sustain level is lower than the start level. The binary number-symbol correspondence includes: a first correspondence under the condition that the control command type is to control the device to start, and a second correspondence under the condition that the control command type is to control the device to stop. In the first correspondence, the data portion of each symbol contains a start level of a second duration and a sustain level of a third duration, and the sum of the second duration and the third duration is the first duration. In the second correspondence, the data portion of each symbol is a sustain level that lasts for the first duration. The first decoding unit is used to perform binary decoding on the control instruction data to obtain the control instruction corresponding to the level signal to be decoded.

16. A dedicated line board, characterized in that, include: Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 1-7.

17. A dedicated line module, characterized in that, include: Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 8-12.

Citation Information

Patent Citations

  • Data transmission method and device, electronic equipment and storage medium

    CN113568850A