An online address writing method and device, a terminal device and a storage medium
By using the online address writing method, the first device generates and transmits feedback information instructions, realizing automatic online address writing of the LED landscape decoration system. This solves the problems of low testing efficiency and high operation and maintenance costs, and improves the automation level and efficiency of the system.
Patent Information
- Application Number
- CN202210546821.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-19
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-05-19
AI Technical Summary
In existing LED landscape decoration systems, transcoding chips cannot automatically acquire feedback information from single-line signal transmission LED lights, resulting in low testing efficiency and high operation and maintenance costs.
By using the online address writing method, the first device generates a feedback information instruction and passes it level by level to other cascaded devices in the same device string. It receives the feedback parameters, performs online address writing, and forwards the address adaptation instruction to the first cascaded device in other device strings, thereby realizing automatic online address writing operation.
It improves testing efficiency, reduces operating and maintenance costs, and avoids setting parameters for cascaded devices one by one on-site.
Smart Images

Figure CN117135791B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communications, and in particular relates to an online writing method, apparatus, terminal equipment, and storage medium. Background Technology
[0002] With the rapid development of LED landscape lighting technology in recent years, LED lights have been widely used in urban building and bridge landscape decoration, advertising, stage backgrounds and other fields due to their advantages such as low power consumption, energy saving and low carbon emissions, high efficiency and durability and rich colors.
[0003] Currently, when existing single-wire signal transmission LED luminaires are applied to systems containing multiple series circuits connected in parallel, they mainly use multiple transcoding chips to control pixels. At the same time, a certain number of single-wire signal transmission LED luminaires are connected in series after each transcoding chip. Each LED luminaire can drive multiple pixels composed of red, green, blue, or single color. The transcoding chips are usually connected in parallel to share a data signal bus, which enables the setting of the transcoding chip's own address and function parameters, as well as the forwarding of data to the cascaded single-wire signal transmission LED luminaires.
[0004] In summary, the transcoding chips in existing LED landscape decoration systems cannot automatically acquire feedback information from the single-wire signal transmission LED lights. Therefore, it is usually necessary to set parameters for multiple parallel series circuit systems during the on-site installation and commissioning of the LED landscape decoration system. This results in low testing efficiency and high operation and maintenance costs, and further improvements are needed. Summary of the Invention
[0005] In view of this, embodiments of this application provide an online writing method, apparatus, terminal device, and storage medium to solve the problems of low testing efficiency and high operation and maintenance costs in the prior art.
[0006] In a first aspect, embodiments of this application provide an online address writing method, applicable to a first device, comprising:
[0007] In response to the address adaptation command sent by the controller, a feedback information command is generated;
[0008] Send the feedback information instruction to the second device, and send the address adaptation instruction to the third device; wherein the first device and the second device are located in a first device string, and the first device and the third device are located in different device strings;
[0009] The system receives a first feedback parameter sent by the second device and completes the online address writing based on the first feedback parameter; the first feedback parameter includes the number of devices contained in the first device string.
[0010] Optionally, after completing the online address writing based on the first feedback parameter, the method further includes:
[0011] Recharge and read its own address.
[0012] Optionally, after completing the online address writing based on the first feedback parameter, the method further includes:
[0013] In response to the first control data sent by the controller, second control data corresponding to the first device string is extracted based on the address of the first device;
[0014] Send third control data to the third device, wherein the third control data is the data in the first control data other than the second control data.
[0015] Optionally, after extracting the second control data corresponding to the first device string based on the address of the first device, the method further includes:
[0016] Extract the fourth control data corresponding to the first device from the second control data;
[0017] Send fifth control data to the second device, wherein the fifth control data is the data in the second control data other than the fourth control data.
[0018] Optionally, before generating the feedback information instruction in response to the address adaptation instruction sent by the controller, the method further includes:
[0019] The address adaptation command sent by the controller is received through the first data port.
[0020] Secondly, embodiments of this application provide an online address writing method, applicable to a second device, comprising:
[0021] Receive feedback information instructions sent by the first device;
[0022] In response to the feedback information instruction, a first feedback parameter is generated; wherein the first device and the second device are located in a first device string, and the first feedback parameter includes the number of devices contained in the first device string; or...
[0023] Send the feedback information instruction to the fourth device;
[0024] Receive the first feedback parameter sent by the fourth device;
[0025] Send the first feedback parameter to the first device.
[0026] Thirdly, embodiments of this application provide an online address writing method, applicable to a third device, comprising:
[0027] In response to the address adaptation command sent by the first device, a feedback information command is generated;
[0028] The feedback information instruction is sent to the fifth device; wherein the third device and the fifth device are located in the second device string;
[0029] The system receives the second feedback parameter sent by the fifth device and completes the online address writing based on the second feedback parameter; the second feedback parameter includes the number of devices contained in the second device string.
[0030] Optionally, after generating the feedback information instruction in response to the address adaptation instruction sent by the first device, the method further includes:
[0031] The address adaptation instruction is sent to the sixth device, wherein the third device and the sixth device are located in different device strings.
[0032] Fourthly, embodiments of this application provide an online writing device, comprising:
[0033] First Response Module: Used to respond to the address adaptation command sent by the controller and generate feedback information commands;
[0034] First sending module: used to send the feedback information instruction to the second device, and to send the address adaptation instruction to the third device; wherein, the online address writing device and the second device are located in the first device string, and the first device and the third device are located in different device strings;
[0035] First write address module: used to receive the first feedback parameter sent by the second device, and complete the online write address according to the first feedback parameter; the first feedback parameter includes the number of devices contained in the first device string.
[0036] Fifthly, embodiments of this application provide an online writing device, comprising:
[0037] First receiving module: used to receive feedback information instructions sent by the first device;
[0038] The second response module is used to generate a first feedback parameter in response to the feedback information instruction; wherein the first device and the online writing device are located in a first device string, and the first feedback parameter includes the number of devices contained in the first device; or...
[0039] The second sending module is used to send the feedback information instruction to the fourth device;
[0040] Second receiving module: used to receive the first feedback parameter sent by the fourth device;
[0041] The third sending module is used to send the first feedback parameter to the first device.
[0042] Sixthly, embodiments of this application provide an online writing device, comprising:
[0043] The third response module is used to respond to the address adaptation command sent by the first device and generate feedback information commands.
[0044] Fourth sending module: used to send the feedback information instruction to the fifth device; wherein, the online writing device and the fifth device are located in the second device string;
[0045] The second write module is used to receive the second feedback parameter sent by the fifth device and complete the online write according to the second feedback parameter; the second feedback parameter includes the number of devices contained in the second device string.
[0046] In a seventh aspect, embodiments of this application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method described in the first aspect above.
[0047] Eighthly, embodiments of this application provide a terminal device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method described in the second aspect above.
[0048] Ninthly, embodiments of this application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method described in the third aspect above.
[0049] In a tenth aspect, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method described in the first aspect above.
[0050] Eleventhly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method described in the second aspect above.
[0051] In a twelfth aspect, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method described in the third aspect above.
[0052] The beneficial effects of this application's embodiments compared to the prior art are as follows: In the online writing method of this application, the first device can send feedback information instructions to other cascaded devices in the same device string and receive first feedback parameters fed back level by level, and then realize online writing based on the first feedback parameters; at the same time, it forwards the address adaptation instruction to other device strings, driving the first cascaded device in other device strings to perform the online writing operation. Through the above online writing method, the first device can respond to the above address adaptation instruction and automatically complete the online writing operation, without the need for staff to set the parameters of each cascaded device on-site, which is conducive to improving testing efficiency, reducing operation and maintenance costs, and to a certain extent solving the current problems of low testing efficiency and high operation and maintenance costs. Attached Figure Description
[0053] Figure 1 This is a first flowchart illustrating an online address writing method according to an embodiment of this application;
[0054] Figure 2 It is a schematic diagram of the structure of a traditional series circuit system with multiple circuits arranged in parallel.
[0055] Figure 3 This is a schematic diagram of the structure of the device system in the embodiments of this application;
[0056] Figure 4 This is a second flowchart illustrating an online address writing method in an embodiment of this application;
[0057] Figure 5 This is a second flowchart illustrating an online address writing method in an embodiment of this application;
[0058] Figure 6 This is a schematic diagram of the adaptive transcoding structure of the cascaded device in an embodiment of this application;
[0059] Figure 7 This is a schematic diagram of the grayscale data forwarding structure in an embodiment of this application;
[0060] Figure 8 This is a schematic diagram of the third process of an online address writing method in an embodiment of this application;
[0061] Figure 9 This is a schematic diagram of the fourth process of an online address writing method in an embodiment of this application;
[0062] Figure 10 This is a flowchart illustrating another embodiment of an online address writing method in this application.
[0063] Figure 11 This is a schematic flowchart of another embodiment of the online address writing method in this application;
[0064] Figure 12 This is a block diagram of an online address writing device according to an embodiment of this application;
[0065] Figure 13 This is a block diagram of another embodiment of an online writing device according to the present application.
[0066] Figure 14 This is a block diagram of another embodiment of an online address writing device in this application. Detailed Implementation
[0067] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0068] To illustrate the technical solution described in this application, specific embodiments are provided below.
[0069] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0070] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0071] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0072] Furthermore, in the description of this application, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0073] Example 1:
[0074] The following describes an online address writing method provided by an embodiment of this application, such as... Figure 1 As shown, this method is applicable to a first device, and the method includes, but is not limited to, the following steps:
[0075] S1, in response to the address adaptation command sent by the controller, generates a feedback information command;
[0076] The device system provided in this application embodiment may include several series circuits. For ease of understanding of the technical solution of this application embodiment, the first series circuit, the second series circuit to the nth series circuit are respectively named S1, S2 to S3. n Since each series circuit contains several cascaded devices, the first to the a-th cascaded devices in the first series circuit are named S1L1, S1L2 to S1L3 respectively. a The first to m-th cascaded devices on the second series circuit are named S2L1, S2L2 to S2L3 respectively. m The first to the kth cascaded devices on the nth series circuit are named S respectively. n L1, S n L2 to S n L k , where n, a, m and k are all positive integers greater than 0, and a, m and k represent the maximum number of cascaded devices in the corresponding series circuit.
[0077] Meanwhile, the first cascaded device of the first series circuit is named the first device, the second to the (a-1)th cascaded devices of the first series circuit are named the second device, the a-th cascaded device of the first series circuit is named the fourth device, the first cascaded device of the second series circuit is named the third device, the second to the (m-1)th cascaded devices of the second series circuit are named the fifth device, and the first cascaded device of the nth series circuit is named the sixth device.
[0078] like Figure 2 and Figure 3 As shown in the embodiments of this application, the first cascaded device of each series circuit can transmit data to the first cascaded device of other series circuits in a serial communication manner. For example, the first device, the third device and the sixth device can transmit data in a serial communication manner, thereby saving engineering wiring costs and reducing operation and maintenance costs.
[0079] Specifically, the first device responds to the address adaptation instruction sent by the controller and then generates a feedback information instruction. In this embodiment, the address adaptation instruction is a preset data format. Each cascaded device in each series circuit can distinguish the format of the transmitted data and determine whether the data is an address adaptation instruction. The feedback information instruction can enable the cascaded device that receives the feedback information instruction to generate corresponding feedback information.
[0080] In some possible implementations, such as Figure 1 and Figure 4As shown, prior to step S1, the method further includes, but is not limited to, step S0:
[0081] S0 receives the address adaptation command sent by the controller through the first data port.
[0082] Without loss of generality, such as Figure 3 As shown in the embodiments of this application, the first device, the second device, the third device, the fourth device, the fifth device, and the sixth device all include a first data port. For example, the first data port can be a DIN (Deutsche Industrie-Norm) port. The first device, the second device, the third device, the fifth device, and the sixth device also include a second data port. For example, the second data port can be a DO (Digital out) port. To distinguish it from other DO ports mentioned below, this DO port is named DO1 port. The first device and the third device also include a third data port. For example, the third data port can be a DO (Digital out) port. To distinguish it from the DO ports mentioned above, this DO port is named DO2 port.
[0083] Specifically, when the system is powered on for the first time, the first device can receive the address adaptation command sent by the controller through the first data port. After each cascaded device receives the feedback information command, both the first and second data ports will switch from the input state to the output state according to the actual situation. For example, the second data port of the first device, the first data port of the second device, the second data port of the second device, and the first data port of the fourth device will all switch from the input state to the output state after receiving the feedback information command. This lays the groundwork for subsequent cascaded devices in the same series circuit to send the feedback information back to the second data port of the cascaded device at the previous level in the same series circuit, thereby improving the testing efficiency.
[0084] S2, send feedback information instructions to the second device, and send address adaptation instructions to the third device;
[0085] Specifically, the first device and the second device are located in the first device string, which represents the first series circuit S1. The first device and the third device are located in different device strings, that is, the first device and the third device are located in different series circuits. After the first device receives the address adaptation instruction, the first device will send a feedback information instruction to the first data port of the second device through the second data port, and forward the address adaptation instruction to the first data port of the third device through the third data port.
[0086] S3, receive the first feedback parameter sent by the second device, and complete the online address writing according to the first feedback parameter.
[0087] Specifically, when the second device receives the feedback information instruction, it generates corresponding feedback information and sends the feedback information instruction to the first data port of the fourth device via the second data port in a serial communication manner. After receiving the feedback information instruction, the fourth device also generates corresponding feedback information. Then, both the second and fourth devices feed back the feedback information to the first device step by step to form the first feedback parameter, until the first feedback parameter is sent back to the first device. In this embodiment, the first feedback parameter includes the number of devices contained in the first device string. After receiving the first feedback parameter, the first device performs online address writing according to the first feedback parameter, writing the address of each cascaded device on the same serial circuit into the device's non-volatile storage medium. For example, the non-volatile storage medium may include any one or more of the following storage units: flash memory, electrically erasable programmable read-only memory (EEPROM), and multi-time programmable memory (MTP), to avoid data loss after power failure.
[0088] In some possible implementations, such as Figure 5 As shown, after step S3, the method further includes, but is not limited to, step S31:
[0089] S31, power on again, read its own address.
[0090] Specifically, after the first device completes the online address writing, the user can power on the system again to reduce the possibility of address loss in cascaded devices; if the first cascaded device in other series circuits completes the online address writing, the user can power on the system again.
[0091] In some possible implementations, such as Figure 5 As shown, after step S31, the process also includes, but is not limited to, steps S4 and S41:
[0092] S4, in response to the first control data sent by the controller, extract the second control data corresponding to the first device string according to the address of the first device;
[0093] Specifically, such as Figure 6As shown, the first device responds to the first control data sent by the controller. The first control data includes device parameters, including but not limited to grayscale control data that can control the grayscale of all cascaded devices. Then, the first device extracts the second control data corresponding to the first device string according to the address of the first device. The second control data includes but is not limited to grayscale control data that can control the grayscale of the second and fourth devices, laying the groundwork for subsequent control of the grayscale of the corresponding device string.
[0094] S41, send third control data to the third device.
[0095] Specifically, the first device sends third control data to the first data port of the third device through the third data port; such as Figure 7 As shown, the third control data refers to the data other than the second control data in the first control data. In this embodiment of the application, the third control data includes grayscale control data that can control the device string corresponding to the third device.
[0096] In some possible implementations, such as Figure 8 As shown, the storage unit can pre-store the address of each cascaded device, so after executing step S3, step S31 is not executed, and step S4 is executed after executing step 3.
[0097] In some possible implementations, such as Figure 5 and Figure 8 As shown, after step S4, the method further includes, but is not limited to, steps S42 and S43:
[0098] S42, extract the fourth control data corresponding to the first device from the second control data;
[0099] Specifically, the first device extracts the corresponding fourth control data from the second control data to control the grayscale of the first device.
[0100] S43, send the fifth control data to the second device.
[0101] Specifically, the first device sends the fifth control data to the second device; the fifth control data represents the data in the second control data other than the fourth control data, thereby controlling the grayscale of the second device; the grayscale control steps of the fourth device are similar, so they will not be described in detail here.
[0102] Example 2:
[0103] This application also provides an online address writing method, such as... Figure 9 As shown, this method is applicable to a second device, and the method includes, but is not limited to, the following steps:
[0104] S5, Receive feedback information instruction sent by the first device;
[0105] Specifically, the second device receives feedback information instructions sent by the first device.
[0106] S51, in response to the feedback information command, generates the first feedback parameter; or sends the feedback information command to the fourth device;
[0107] Specifically, the first device and the second device are located in the first device string, and the first feedback parameter includes the number of devices contained in the first device string; in this embodiment, the second device generates the first feedback parameter in response to the feedback information instruction; in other embodiments, the second device responds to the feedback information instruction, and the fourth device sends the feedback information instruction.
[0108] S52, receive the first feedback parameter sent by the fourth device;
[0109] Specifically, the second device can receive the first feedback parameters sent by the fourth device.
[0110] S53, send the first feedback parameter to the first device.
[0111] Specifically, the second device sends the first feedback parameter to the first device, thereby facilitating the first device to perform online address writing in the future.
[0112] Example 3:
[0113] This application also provides an online address writing method, such as... Figure 10 As shown, this method is applicable to third-party devices and includes, but is not limited to, the following steps:
[0114] S6, in response to the address adaptation instruction sent by the first device, generate a feedback information instruction;
[0115] Specifically, the third device responds to the address adaptation instruction sent by the first device in the form of forwarding, and then generates a feedback information instruction.
[0116] S61, send feedback information command to the fifth device;
[0117] Specifically, the third and fifth devices are located in the second device string; the third device sends feedback information instructions to the first data port of the fifth device through the second data port.
[0118] S62, receive the second feedback parameter sent by the fifth device, and complete the online address writing according to the second feedback parameter.
[0119] Specifically, the second feedback parameter includes the number of devices contained in the second device string; the third device receives the second feedback parameter sent by the first data port of the fifth device through the second data port, and then completes the online address writing according to the second feedback parameter.
[0120] In some possible implementations, such as Figure 11 As shown, after step S62, the procedure also includes, but is not limited to, step S63:
[0121] S63, send address adaptation instructions to the sixth device.
[0122] Specifically, the third device and the sixth device are located in different device strings; the third device sends the address adaptation instruction to the first data port of the sixth device in a forwarding manner through the third data port.
[0123] The implementation principle of the online address writing method in this application embodiment is as follows: A first device receives an address adaptation instruction sent by the controller through a first data port, and then sends a feedback information instruction to the first data port of the second device through a second data port, and forwards the address adaptation instruction to the first data port of the third device through a third data port; After receiving the feedback information instruction, the second device generates corresponding feedback information, and sends the feedback information instruction to the first data port of the fourth device through the second data port; After receiving the feedback information instruction, the fourth device also generates corresponding feedback information; Then, both the second and fourth devices send the feedback information back to the first device step by step to form a first feedback parameter, until the first feedback parameter is sent back to the first device; The first device completes the online address writing according to the first feedback parameter; Then, the first device responds to the first control data sent by the controller, extracts the second control data corresponding to the first device string according to the address of the first device, extracts the fourth control data corresponding to the first device from the second control data, and sends the fifth control data to the second device, and simultaneously sends the third control data to the third device.
[0124] It should be noted that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0125] Embodiments of this application also provide an online writing device. For ease of explanation, only the parts relevant to this application are shown, such as... Figure 12 As shown, the device includes:
[0126] First Response Module 10: Used to generate feedback information instructions in response to the address adaptation instructions sent by the controller;
[0127] First sending module 11: used to send feedback information instructions to the second device, and to send address adaptation instructions to the third device; wherein, the online writing device and the second device are located in the first device string, and the first device and the third device are located in different device strings;
[0128] First write address module 12: used to receive the first feedback parameter sent by the second device, and complete the online write address according to the first feedback parameter; the first feedback parameter includes the number of devices contained in the first device string.
[0129] Another embodiment of this application also provides an online address writing device. For ease of explanation, only the parts relevant to this application are shown, such as... Figure 13 As shown, the device includes:
[0130] First receiving module 20: used to receive feedback information instructions sent by the first device;
[0131] Second response module 21: used to generate first feedback parameters in response to feedback information instructions; wherein, the first device and the online writing device are located in the first device string, and the first feedback parameters include the number of devices contained in the first device; or...
[0132] Second sending module 22: used to send feedback information instructions to the fourth device;
[0133] Second receiving module 23: Used to receive the first feedback parameter sent by the fourth device;
[0134] The third sending module 24 is used to send the first feedback parameter to the first device.
[0135] Another embodiment of this application also provides an online address writing device. For ease of explanation, only the parts relevant to this application are shown, such as... Figure 14 As shown, the device includes,
[0136] The third response module 30 is used to generate a feedback information instruction in response to the address adaptation instruction sent by the first device.
[0137] Fourth sending module 31: used to send feedback information instructions to the fifth device; wherein, the online writing device and the fifth device are located in the second device string;
[0138] The second writing module 32 is used to receive the second feedback parameters sent by the fifth device and complete the online writing based on the second feedback parameters; the second feedback parameters include the number of devices contained in the second device string.
[0139] It should be noted that the information interaction and execution process between the above modules are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, which will not be repeated here.
[0140] This application also provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps in the online write-address method embodiment of Embodiment 1 described above, for example... Figure 1 Steps S1 to S3 are shown; or, when the processor executes the computer program, it implements the functions of each module in the above-described device, for example... Figure 12 The functions of modules 10 to 12 are shown.
[0141] Another embodiment of this application provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps in the online write-address method embodiment of Embodiment 2 described above, for example... Figure 1 Steps S5 to S53 are shown; or, when the processor executes the computer program, it implements the functions of each module in the above-described device, for example... Figure 13 The functions of modules 20 to 24 are shown.
[0142] Another embodiment of this application provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps in the online write-address method embodiment of Embodiment 3 described above, for example... Figure 10 Steps S6 to S62 are shown; or, when the processor executes the computer program, it implements the functions of each module in the above-described device, for example... Figure 14 The functions of modules 30 to 32 are shown.
[0143] The terminal device can be a desktop computer, laptop, handheld computer, or cloud server, etc., and includes, but is not limited to, processors and memory. The processor can be a central processing unit (CPU), or other general-purpose processors, 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, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.
[0144] The memory can be an internal storage unit of the terminal device, such as the hard drive or RAM of the terminal device. The memory can also be an external storage device of the terminal device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the terminal device. Furthermore, the memory can include both internal storage units and external storage devices of the terminal device. The memory can also store computer programs and other programs and data required by the terminal device. The memory can also be used to temporarily store data that has been output or will be output.
[0145] One embodiment of this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps of the various method embodiments in Embodiment 1 above. Another embodiment of this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps of the various method embodiments in Embodiment 2 above. Yet another embodiment of this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps of the various method embodiments in Embodiment 3 above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include any entity or device capable of carrying computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content contained in computer-readable media may be appropriately added to or subtracted from the requirements of legislation and patent practice in a jurisdiction. For example, in some jurisdictions, computer-readable media may not include electrical carrier signals and telecommunication signals, in accordance with legislation and patent practice.
[0146] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the methods, principles and structures of this application should be covered within the scope of protection of this application.
Claims
1. An online address writing method, characterized in that, Applicable to the first device, including: In response to the address adaptation command sent by the controller, a feedback information command is generated; The system sends the feedback information instruction to a second device, and forwards the address adaptation instruction to a third device; wherein the first device and the second device are located in a first device string, and the first device and the third device are located in different device strings; the third device responds to the address adaptation instruction sent by the first device in a forwarded manner, then generates a feedback information instruction, sends the feedback information instruction to a fifth device; and forwards the address adaptation instruction to a sixth device; the third device and the fifth device are located in a second device string; the third device and the sixth device are located in different device strings; The device receives the first feedback parameter sent by the second device and completes online address writing according to the first feedback parameter, writing the address of each cascaded device on the same series circuit into the device's non-volatile storage medium; the first feedback parameter includes the number of devices contained in the first device string, and the first feedback parameter is generated by each device in the first device string in response to the feedback information instruction and fed back to the first device level by level; The controller is connected only to the first device, and the address adaptation instruction is sent by the controller when the system is first powered on. After completing the online address writing based on the first feedback parameter, the method further includes: In response to the first control data sent by the controller, second control data corresponding to the first device string is extracted based on the address of the first device; Send third control data to the third device, wherein the third control data is the data in the first control data other than the second control data.
2. The online writing method as described in claim 1, characterized in that, After completing the online address writing based on the first feedback parameter, the method further includes: Recharge and read its own address.
3. The online writing method as described in claim 1 or 2, characterized in that, After extracting the second control data corresponding to the first device string based on the address of the first device, the method further includes: Extract the fourth control data corresponding to the first device from the second control data; Send fifth control data to the second device, wherein the fifth control data is the data in the second control data other than the fourth control data.
4. The online writing method as described in claim 1, characterized in that, Before generating the feedback information instruction in response to the address adaptation instruction sent by the controller, the method further includes: The address adaptation command sent by the controller is received through the first data port.
5. An online address writing method, characterized in that, Suitable for a second device, including: The device receives a feedback information instruction sent by a first device, wherein the first device is used to execute the method described in any one of claims 1-4; In response to the feedback information instruction, a first feedback parameter is generated; wherein the first device and the second device are located in a first device string, and the first feedback parameter includes the number of devices contained in the first device string; or... Send the feedback information instruction to the fourth device; Receive the first feedback parameter sent by the fourth device; Send the first feedback parameter to the first device.
6. An online address writing method, characterized in that, Applicable to third-party devices, including: In response to an address adaptation instruction sent by a first device, a feedback information instruction is generated, wherein the first device is used to perform the method described in any one of claims 1-4; The feedback information instruction is sent to the fifth device; wherein the third device and the fifth device are located in the second device string; The system receives the second feedback parameter sent by the fifth device and completes the online address writing based on the second feedback parameter; the second feedback parameter includes the number of devices contained in the second device string.
7. The online writing method as described in claim 6, characterized in that, After generating the feedback information instruction in response to the address adaptation instruction sent by the first device, the method further includes: The address adaptation instruction is sent to the sixth device, wherein the third device and the sixth device are located in different device strings.
8. An online writing device, applied to a first device, the first device being used to perform the method according to any one of claims 1-4, characterized in that, include: First Response Module: Used to respond to the address adaptation command sent by the controller and generate feedback information commands; First sending module: used to send the feedback information instruction to the second device, and to send the address adaptation instruction to the third device; wherein, the online address writing device and the second device are located in the first device string, and the first device and the third device are located in different device strings; First write address module: used to receive the first feedback parameter sent by the second device, and complete the online write address according to the first feedback parameter; the first feedback parameter includes the number of devices contained in the first device string.
9. An online address writing device, characterized in that, include: First receiving module: used to receive feedback information instructions sent by the first device, the first device including the online writing device as described in claim 8; The second response module is used to generate a first feedback parameter in response to the feedback information instruction; wherein the first device and the online writing device are located in a first device string, and the first feedback parameter includes the number of devices contained in the first device; or... The second sending module is used to send the feedback information instruction to the fourth device; Second receiving module: used to receive the first feedback parameter sent by the fourth device; The third sending module is used to send the first feedback parameter to the first device.
10. An online address writing device, characterized in that, include: The third response module is used to generate a feedback information instruction in response to the address adaptation instruction sent by the first device, wherein the first device includes the online address writing device as described in claim 8. Fourth sending module: used to send the feedback information instruction to the fifth device; wherein, the online writing device and the fifth device are located in the second device string; The second write module is used to receive the second feedback parameter sent by the fifth device and complete the online write according to the second feedback parameter; the second feedback parameter includes the number of devices contained in the second device string.
11. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 4.
12. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in claim 5.
13. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 6 to 7.
14. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 4.
15. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in claim 5.
16. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 6 to 7.
Citation Information
Patent Citations
Method, device and equipment for adaptive addressing and addressing, and storage medium
CN112599082A
