CN114500455B - Configuration method and system of intelligent lamp - Google Patents

Configuration method and system of intelligent lamp Download PDF

Info

Publication number
CN114500455B
CN114500455B CN202111638303.2A CN202111638303A CN114500455B CN 114500455 B CN114500455 B CN 114500455B CN 202111638303 A CN202111638303 A CN 202111638303A CN 114500455 B CN114500455 B CN 114500455B
Authority
CN
China
Prior art keywords
address
gateway protocol
knx
equipment
calculating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111638303.2A
Other languages
Chinese (zh)
Other versions
CN114500455A (en
Inventor
周春喜
戴健
陈尧杰
葛凌焘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Shendu Technology Co ltd
Original Assignee
Hangzhou Shendu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Shendu Technology Co ltd filed Critical Hangzhou Shendu Technology Co ltd
Priority to CN202111638303.2A priority Critical patent/CN114500455B/en
Publication of CN114500455A publication Critical patent/CN114500455A/en
Application granted granted Critical
Publication of CN114500455B publication Critical patent/CN114500455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2557Translation policies or rules
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application relates to a configuration method and a configuration system of an intelligent lamp, wherein the method comprises the following steps: mapping the device hardware address by acquiring the device hardware address of the device driver based on the first gateway protocol to obtain the device virtual address of the device driver, wherein the device driver corresponds to the intelligent lamp one by one; according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol, the device control address of the second gateway protocol is obtained through the preset formula calculation, and the associated configuration of the device control address and the device hardware address of the intelligent lamp is completed.

Description

Configuration method and system of intelligent lamp
Technical Field
The application relates to the technical field of intelligent home, in particular to a configuration method and a configuration system of an intelligent lamp.
Background
The DALI (Digital Addressable Lighting Interface, digital searchable lighting interface) is a two-wire bidirectional serial digital communication protocol, is a digital clock lighting communication system researched and developed by lighting manufacturers due to the energy saving requirement, and has the advantages of simple structure, convenience in installation, easiness in operation and the like. In practical building intelligent project applications, DALI systems typically interface with the KNX bus system as one of the subsystems, providing powerful support for intelligent lighting control of the building. The existing KNX/DALI gateway on the market is very complicated in debugging, and a debugging engineer needs to map each DALI lamp address into a corresponding KNX control address one by one through programming of the DALI gateway.
It follows that the KNX/DALI gateway needs to find the DALI luminaire address of each luminaire and then associate it with the KNX control address. Under the condition of a large number of lamps, the debugging process becomes very tedious and time-consuming; after debugging and delivering, the function of the intelligent lamp is inconvenient for a user to edit by himself, and after the equipment fails, the user cannot simply replace the equipment and needs to reprogram and download the equipment.
At present, an effective solution is not proposed for solving the problem of low efficiency of debugging configuration of intelligent lamps in the related technology.
Disclosure of Invention
The embodiment of the application provides a configuration method and a configuration system of an intelligent lamp, which are used for at least solving the problem of low efficiency of debugging and configuration of the intelligent lamp in the related technology.
In a first aspect, an embodiment of the present application provides a method for configuring an intelligent lamp, where the method includes:
acquiring a device hardware address of a device driver based on a first gateway protocol, and mapping the device hardware address to obtain a device virtual address of the device driver, wherein the device driver corresponds to the intelligent lamp one by one;
and according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol, calculating the device control address of the second gateway protocol through a preset formula, and completing the association configuration of the device control address and the device hardware address of the intelligent lamp.
In some embodiments, obtaining a device hardware address of a device driver based on a first gateway protocol, mapping the device hardware address, and obtaining a device virtual address of the device driver includes:
obtaining device hardware addresses of a device driver based on a DALI gateway protocol, sequentially arranging the device hardware addresses according to a preset sequence to obtain an arrangement sequence number, and setting the arrangement sequence number as a device virtual address of the device driver.
In some embodiments, according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol, calculating the device control address of the second gateway protocol through a preset formula includes:
according to the device virtual address DN based on the DALI gateway protocol and the device hardware address KN based on the KNX gateway protocol;
calculating to obtain a KNX equipment switch address through a formula ADDR1=0x7000+ (KN×64×4) +4xDN+0; calculating to obtain a KNX equipment brightness address through ADD2=0x7000+ (KN 64+4) +4xDN+1; the color temperature address of the KNX device is calculated by the formula addr3=0x7000+ (kn×64×4) +4× dn+2.
In some embodiments, after calculating the device control address of the second gateway protocol according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol through a preset formula, the method further includes:
and determining a control area of the equipment control address of the second gateway according to the number of the intelligent lamps in the first gateway.
In some embodiments, the device hardware addresses are arranged in a preset order, wherein the preset order is from small to large.
In a second aspect, an embodiment of the present application provides a configuration system of an intelligent luminaire, where the system includes a data mapping module and an association configuration module;
the data mapping module obtains the equipment hardware address of the equipment driver based on the first gateway protocol, maps the equipment hardware address to obtain the equipment virtual address of the equipment driver, wherein the equipment driver corresponds to the intelligent lamp one by one;
and the association configuration module calculates the equipment control address of the second gateway protocol through a preset formula according to the equipment virtual address based on the first gateway protocol and the equipment hardware address based on the second gateway protocol, and completes association configuration of the equipment control address and the equipment hardware address of the intelligent lamp.
In some embodiments, the data mapping module obtains a device hardware address of a device driver based on a first gateway protocol, maps the device hardware address, and obtains a device virtual address of the device driver, including:
the data mapping module obtains the device hardware addresses of the device driver based on the DALI gateway protocol, sequentially arranges the device hardware addresses according to a preset sequence to obtain an arrangement sequence number, and sets the arrangement sequence number as the device virtual address of the device driver.
In some embodiments, the calculating, by the association configuration module according to the first gateway protocol-based device virtual address and the second gateway protocol-based device hardware address, the device control address of the second gateway protocol through a preset formula includes:
the association configuration module is used for configuring the device hardware address KN based on the KNX gateway protocol according to the device virtual address DN based on the DALI gateway protocol;
calculating to obtain a KNX equipment switch address through a formula ADDR1=0x7000+ (KN×64×4) +4xDN+0; calculating to obtain a KNX equipment brightness address through ADD2=0x7000+ (KN 64+4) +4xDN+1; the color temperature address of the KNX device is calculated by the formula addr3=0x7000+ (kn×64×4) +4× dn+2.
In some embodiments, the association configuration module further includes, after calculating, according to the first gateway protocol-based device virtual address and the second gateway protocol-based device hardware address, a device control address of the second gateway protocol according to a preset formula:
and the association configuration module determines a control area of the equipment control address of the second gateway according to the number of the intelligent lamps in the first gateway.
In some embodiments, the data mapping module sequentially arranges the hardware addresses of the devices in a preset order, where the preset order is from small to large.
Compared with the related art, the configuration method and the configuration system of the intelligent lamp provided by the embodiment of the application have the advantages that the device hardware address of the device driver based on the first gateway protocol is obtained and mapped to obtain the device virtual address of the device driver, wherein the device driver corresponds to the intelligent lamp one by one; according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol, the device control address of the second gateway protocol is obtained through the preset formula calculation, the association configuration of the device control address and the device hardware address of the intelligent lamp is completed, the problem of low efficiency in debugging configuration of the intelligent lamp is solved, automatic mapping between two different protocol addresses is realized, and complicated association programming between protocol addresses during intelligent lamp configuration is avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of steps of a method of intelligent luminaire configuration according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a control zone setting of a KNX device control address;
FIG. 3 is a block diagram of a configuration of an intelligent light fixture according to an embodiment of the present application;
fig. 4 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application.
Description of the drawings: 31. a data mapping module; 32. and (5) associating a configuration module.
Detailed Description
The present application will be described and illustrated with reference to the accompanying drawings and examples in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. All other embodiments, which can be made by a person of ordinary skill in the art based on the embodiments provided by the present application without making any inventive effort, are intended to fall within the scope of the present application.
It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is possible for those of ordinary skill in the art to apply the present application to other similar situations according to these drawings without inventive effort. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the described embodiments of the application can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," and similar referents in the context of the application are not to be construed as limiting the quantity, but rather as singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in connection with the present application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The embodiment of the application provides a configuration method of an intelligent lamp, and fig. 1 is a step flow chart of the configuration method of the intelligent lamp according to the embodiment of the application, as shown in fig. 1, the method comprises the following steps:
step S102, obtaining a device hardware address of a device driver based on a first gateway protocol, and mapping the device hardware address to obtain a device virtual address of the device driver, wherein the device driver corresponds to the intelligent lamp one by one;
step S104, according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol, the device control address of the second gateway protocol is obtained through calculation according to a preset formula, and the association configuration of the device control address and the device hardware address of the intelligent lamp is completed.
Through the steps S102 to S104 in the embodiment of the application, the problem of low efficiency of debugging configuration of the intelligent lamp is solved, automatic mapping between two different protocol addresses is realized, and complicated associated programming between the protocol addresses during intelligent lamp configuration is avoided.
In some embodiments, step S102, obtaining a device hardware address of a device driver based on the first gateway protocol, mapping the device hardware address, and obtaining a device virtual address of the device driver includes:
the method comprises the steps of obtaining device hardware addresses of a device driver based on a DALI gateway protocol, sequentially arranging the device hardware addresses according to a preset sequence to obtain arrangement sequence numbers, and setting the arrangement sequence numbers as device virtual addresses of the device driver.
Specifically, table 1 is a mapping table of device hardware addresses and device virtual addresses of device drivers, as shown in table 1, obtain device hardware addresses (15,7,9,5,1,2,4) of device drivers based on DALI gateway protocol, total 7 drivers, arrange the device hardware addresses from small to large (1,2,4,5,7,9, 15), obtain arrangement serial numbers (1, 2,3,4,5,6, 7), and set the arrangement serial numbers as device virtual addresses of the device drivers, i.e., obtain mapping pairs (1-1, 2-2,4-3,5-4,7-5,9-6, 15-7).
TABLE 1
DALI driver address (device hardware address) DALI driver map address (device virtual address)
1 1
2 2
4 3
5 4
7 5
9 6
15 7
It should be noted that the preset sequence may be from small to large, from large to small, or under a preset rule that does not violate a natural rule.
In some embodiments, step S104, calculating the device control address of the second gateway protocol according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol by a preset formula includes:
according to the device virtual address DN based on the DALI gateway protocol and the device hardware address KN based on the KNX gateway protocol;
calculating to obtain a KNX equipment switch address through a formula ADDR1=0x7000+ (KN×64×4) +4xDN+0; calculating to obtain a KNX equipment brightness address through ADD2=0x7000+ (KN 64+4) +4xDN+1; the color temperature address of the KNX device is calculated by the formula addr3=0x7000+ (kn×64×4) +4× dn+2.
Specifically, table 2 is an association mapping table between KNX device control addresses, DALI device virtual addresses, and DALI device hardware addresses, as shown in table 2,
calculating to obtain a KNX equipment switch address through a formula ADDR1=0x7000+ (KN×64×4) +4xDN+0; calculating to obtain a KNX equipment brightness address through ADD2=0x7000+ (KN 64+4) +4xDN+1; calculating to obtain a KNX device color temperature address through a formula ADDR 3=0x7000+ (KN 64+4xDN+2); in the formula, KN is a hardware address (generated by dialing code decision or automatic allocation) of KNX equipment, and is unique in the same KNX system); the DN is the DALI device virtual address. It should be noted that the KNX device control address includes a KNX device switch address, a KNX device brightness address, and a KNX device color temperature address.
In some embodiments, in step S104, after calculating the device control address of the second gateway protocol according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol by using a preset formula, the method further includes:
and determining a control area of the equipment control address of the second gateway according to the number of the intelligent lamps in the first gateway.
Specifically, the first gateway may be a DALI gateway and the second gateway may be a KNX gateway. Fig. 2 is a schematic diagram of a control area setting of a KNX device control address, as shown in fig. 2, if there are at most 64 intelligent lamps (device drivers) in one DALI gateway, according to a number limiting rule of intelligent lamps in the DALI gateway, the control areas (DALI/KNX control address areas) of the KNX device control address are divided by the KNX device hardware address, that is, each DALI/KNX control address area contains 64 KNX device control addresses, and the control area is 64 intelligent lamps.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
An embodiment of the present application provides a configuration system of an intelligent lamp, fig. 3 is a structural block diagram of the configuration system of the intelligent lamp according to the embodiment of the present application, and as shown in fig. 3, the system includes a data mapping module 31 and an association configuration module 32;
the data mapping module 31 obtains the device hardware address of the device driver based on the first gateway protocol, maps the device hardware address to obtain the device virtual address of the device driver, wherein the device driver corresponds to the intelligent lamp one by one;
the association configuration module 32 calculates the device control address of the second gateway protocol according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol through a preset formula, and completes association configuration of the device control address and the device hardware address of the intelligent lamp.
Through the steps S102 to S104 in the embodiment of the application, the problem of low efficiency of debugging configuration of the intelligent lamp is solved, automatic mapping between two different protocol addresses is realized, and complicated associated programming between the protocol addresses during intelligent lamp configuration is avoided.
In some embodiments, the data mapping module 31 obtains a device hardware address of a device driver based on the first gateway protocol, maps the device hardware address, and obtains a device virtual address of the device driver, where the obtaining includes:
the data mapping module 31 obtains the device hardware addresses of the device driver based on the DALI gateway protocol, sequentially arranges the device hardware addresses according to a preset sequence to obtain an arrangement sequence number, and sets the arrangement sequence number as the device virtual address of the device driver.
In some embodiments, the association configuration module 32 calculates the device control address of the second gateway protocol according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol by a preset formula, where the calculating includes:
the association configuration module 32 is configured according to the device virtual address DN based on the DALI gateway protocol and the device hardware address KN based on the KNX gateway protocol;
calculating to obtain a KNX equipment switch address through a formula ADDR1=0x7000+ (KN×64×4) +4xDN+0; calculating to obtain a KNX equipment brightness address through ADD2=0x7000+ (KN 64+4) +4xDN+1; the color temperature address of the KNX device is calculated by the formula addr3=0x7000+ (kn×64×4) +4× dn+2.
In some embodiments, the association configuration module 32 further includes, after calculating the device control address of the second gateway protocol according to the preset formula according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol:
the association configuration module 32 determines the control area of the device control address of the second gateway according to the number of intelligent luminaires in the first gateway.
In some of these embodiments, in the data mapping module 31 sequentially arranging the device hardware addresses in a preset order, the preset order is a small-to-large order.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
The present embodiment also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
In addition, in combination with the configuration method of the intelligent lamp in the above embodiment, the embodiment of the application can be realized by providing a storage medium. The storage medium has a computer program stored thereon; the computer program, when executed by the processor, implements the method for configuring any one of the intelligent luminaires in the above embodiments.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of configuring a smart luminaire. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
In one embodiment, fig. 4 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application, and as shown in fig. 4, an electronic device, which may be a server, is provided, and an internal structure diagram thereof may be as shown in fig. 4. The electronic device includes a processor, a network interface, an internal memory, and a non-volatile memory connected by an internal bus, where the non-volatile memory stores an operating system, computer programs, and a database. The processor is used for providing computing and control capability, the network interface is used for communicating with an external terminal through network connection, the internal memory is used for providing environment for the operation of an operating system and a computer program, when the computer program is executed by the processor, the configuration method of the intelligent lamp is realized, and the database is used for storing data.
It will be appreciated by those skilled in the art that the structure shown in fig. 4 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the electronic device to which the present inventive arrangements are applied, and that a particular electronic device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be understood by those skilled in the art that the technical features of the above-described embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above-described embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method for configuring an intelligent luminaire, the method comprising:
acquiring a device hardware address of a device driver based on a first gateway protocol, and mapping the device hardware address to obtain a device virtual address of the device driver, wherein the device driver corresponds to the intelligent lamp one by one;
according to the device virtual address based on the first gateway protocol and the device hardware address based on the second gateway protocol, the device control address of the second gateway protocol is obtained through calculation according to a preset formula, and the association configuration of the device control address and the device hardware address of the intelligent lamp is completed;
the first gateway protocol is a DALI gateway protocol, the second gateway protocol is a KNX gateway protocol, and the preset formula includes: the formula addr1=0x7000+ (kn×64×4) +4xdn+0 for calculating the switch address of the KNX device, the formula addr2=0x7000+ (kn×64×4) +4xdn+1 for calculating the brightness address of the KNX device, the formula addr3=0x7000+ (kn×64×4) +4xdn+2 for calculating the color temperature address of the KNX device, wherein DN is the device virtual address of DALI gateway protocol and KN is the device hardware address of KNX gateway protocol.
2. The method of claim 1, wherein obtaining a device hardware address of a device driver based on a first gateway protocol, mapping the device hardware address, obtaining a device virtual address of the device driver comprises:
obtaining device hardware addresses of a device driver based on a DALI gateway protocol, sequentially arranging the device hardware addresses according to a preset sequence to obtain an arrangement sequence number, and setting the arrangement sequence number as a device virtual address of the device driver.
3. The method of claim 1, wherein calculating the device control address of the second gateway protocol by a preset formula based on the device virtual address of the first gateway protocol and the device hardware address of the second gateway protocol comprises:
according to the device virtual address DN based on the DALI gateway protocol and the device hardware address KN based on the KNX gateway protocol;
calculating to obtain a KNX equipment switch address through a formula ADDR1=0x7000+ (KN×64×4) +4xDN+0; calculating to obtain a KNX equipment brightness address through ADD2=0x7000+ (KN 64+4) +4xDN+1; the color temperature address of the KNX device is calculated by the formula addr3=0x7000+ (kn×64×4) +4× dn+2.
4. The method of claim 1, wherein after calculating the device control address of the second gateway protocol by a preset formula according to the device virtual address of the first gateway protocol and the device hardware address of the second gateway protocol, the method further comprises:
and determining a control area of the equipment control address of the second gateway according to the number of the intelligent lamps in the first gateway.
5. The method of claim 2, wherein in arranging the device hardware addresses in a predetermined order in sequence, the predetermined order is a small-to-large order.
6. The configuration system of the intelligent lamp is characterized by comprising a data mapping module and an associated configuration module;
the data mapping module obtains the equipment hardware address of the equipment driver based on the first gateway protocol, maps the equipment hardware address to obtain the equipment virtual address of the equipment driver, wherein the equipment driver corresponds to the intelligent lamp one by one;
the association configuration module calculates the equipment control address of the second gateway protocol through a preset formula according to the equipment virtual address based on the first gateway protocol and the equipment hardware address based on the second gateway protocol, and completes association configuration of the equipment control address and the equipment hardware address of the intelligent lamp;
the first gateway protocol is a DALI gateway protocol, the second gateway protocol is a KNX gateway protocol, and the preset formula includes: the formula addr1=0x7000+ (kn×64×4) +4xdn+0 for calculating the switch address of the KNX device, the formula addr2=0x7000+ (kn×64×4) +4xdn+1 for calculating the brightness address of the KNX device, the formula addr3=0x7000+ (kn×64×4) +4xdn+2 for calculating the color temperature address of the KNX device, wherein DN is the device virtual address of DALI gateway protocol and KN is the device hardware address of KNX gateway protocol.
7. The system of claim 6, wherein the data mapping module obtains a device hardware address of a device driver based on a first gateway protocol, maps the device hardware address, and obtains a device virtual address of the device driver, comprising:
the data mapping module obtains the device hardware addresses of the device driver based on the DALI gateway protocol, sequentially arranges the device hardware addresses according to a preset sequence to obtain an arrangement sequence number, and sets the arrangement sequence number as the device virtual address of the device driver.
8. The system of claim 6, wherein the association configuration module calculating the device control address of the second gateway protocol according to a preset formula based on the device virtual address of the first gateway protocol and the device hardware address of the second gateway protocol comprises:
the association configuration module is used for configuring the device hardware address KN based on the KNX gateway protocol according to the device virtual address DN based on the DALI gateway protocol;
calculating to obtain a KNX equipment switch address through a formula ADDR1=0x7000+ (KN×64×4) +4xDN+0; calculating to obtain a KNX equipment brightness address through ADD2=0x7000+ (KN 64+4) +4xDN+1; the color temperature address of the KNX device is calculated by the formula addr3=0x7000+ (kn×64×4) +4× dn+2.
9. The system of claim 6, wherein the association configuration module further comprises, after calculating the device control address of the second gateway protocol according to a preset formula based on the device virtual address of the first gateway protocol and the device hardware address of the second gateway protocol:
and the association configuration module determines a control area of the equipment control address of the second gateway according to the number of the intelligent lamps in the first gateway.
10. The system of claim 7, wherein the predetermined order is a small to large order in which the data mapping module sequentially arranges the device hardware addresses in the predetermined order.
CN202111638303.2A 2021-12-29 2021-12-29 Configuration method and system of intelligent lamp Active CN114500455B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111638303.2A CN114500455B (en) 2021-12-29 2021-12-29 Configuration method and system of intelligent lamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111638303.2A CN114500455B (en) 2021-12-29 2021-12-29 Configuration method and system of intelligent lamp

Publications (2)

Publication Number Publication Date
CN114500455A CN114500455A (en) 2022-05-13
CN114500455B true CN114500455B (en) 2023-08-25

Family

ID=81507956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111638303.2A Active CN114500455B (en) 2021-12-29 2021-12-29 Configuration method and system of intelligent lamp

Country Status (1)

Country Link
CN (1) CN114500455B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072159A (en) * 2006-05-10 2007-11-14 国际商业机器公司 System and apparatus for managing internal virtual local area network
CN102625554A (en) * 2012-03-20 2012-08-01 浙江大学 Distributed DALI (Digital Addressable Lighting Interface) lighting control system and method thereof
DE102012013894A1 (en) * 2012-07-13 2014-01-16 Ambright GmbH Method for operating of lamp in lamp circuit board, involves transmitting measurement results of detection and/or operating information of lamp to data network
CN103987179A (en) * 2014-05-28 2014-08-13 梅志国 Lamp set positioning method used in intelligent lamplight control system
CN104333508A (en) * 2014-10-31 2015-02-04 常州机电职业技术学院 Zigbee gateway based on cloud computing
CN104823525A (en) * 2012-11-26 2015-08-05 皇家飞利浦有限公司 Signal-level based control of power grid load systems
CN104919760A (en) * 2012-11-12 2015-09-16 阿尔卡特朗讯公司 Virtual chassis system control protocols
WO2016023061A1 (en) * 2014-08-11 2016-02-18 Int'act Pty Ltd Dali device addressing method & software
CN105991779A (en) * 2015-02-02 2016-10-05 中国移动通信集团公司 Internet of things short-distance communication method and device, and middleware
CN109041367A (en) * 2018-06-28 2018-12-18 上海亚明照明有限公司 Intelligent lighting control system, method, medium, terminal, Intelligent lamp and intelligent gateway

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007121569A1 (en) * 2006-04-21 2007-11-01 Tir Technology Lp Solid-state lighting network and protocol
WO2013016534A1 (en) * 2011-07-27 2013-01-31 Verified Energy, Llc Encapsulation of dali commands in wireless networks
US9317446B2 (en) * 2014-09-23 2016-04-19 Cisco Technology, Inc. Multi-level paging and address translation in a network environment
CN111886848A (en) * 2018-03-23 2020-11-03 昕诺飞控股有限公司 Method and apparatus for querying address advertisement messages in a communication network
US11307993B2 (en) * 2018-11-26 2022-04-19 Advanced Micro Devices, Inc. Dynamic remapping of virtual address ranges using remap vector
US11057340B2 (en) * 2019-07-19 2021-07-06 Vmware, Inc. Per-application split-tunneled UDP proxy

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072159A (en) * 2006-05-10 2007-11-14 国际商业机器公司 System and apparatus for managing internal virtual local area network
CN102625554A (en) * 2012-03-20 2012-08-01 浙江大学 Distributed DALI (Digital Addressable Lighting Interface) lighting control system and method thereof
DE102012013894A1 (en) * 2012-07-13 2014-01-16 Ambright GmbH Method for operating of lamp in lamp circuit board, involves transmitting measurement results of detection and/or operating information of lamp to data network
CN104919760A (en) * 2012-11-12 2015-09-16 阿尔卡特朗讯公司 Virtual chassis system control protocols
CN104823525A (en) * 2012-11-26 2015-08-05 皇家飞利浦有限公司 Signal-level based control of power grid load systems
CN103987179A (en) * 2014-05-28 2014-08-13 梅志国 Lamp set positioning method used in intelligent lamplight control system
WO2016023061A1 (en) * 2014-08-11 2016-02-18 Int'act Pty Ltd Dali device addressing method & software
CN104333508A (en) * 2014-10-31 2015-02-04 常州机电职业技术学院 Zigbee gateway based on cloud computing
CN105991779A (en) * 2015-02-02 2016-10-05 中国移动通信集团公司 Internet of things short-distance communication method and device, and middleware
CN109041367A (en) * 2018-06-28 2018-12-18 上海亚明照明有限公司 Intelligent lighting control system, method, medium, terminal, Intelligent lamp and intelligent gateway

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
智慧照明通信协议DALI调光控制装置的检测方法;赵柱博;张波;;光源与照明(04);全文 *

Also Published As

Publication number Publication date
CN114500455A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
KR101293623B1 (en) Configurable cache and method to configure same
CN102625554B (en) Distributed DALI (Digital Addressable Lighting Interface) lighting control system and method thereof
US7797573B2 (en) Memory management method and portable terminal device
CN103678187B (en) A kind of micro-control unit and control method thereof
CN112256348B (en) Cloud service platform creation method and system, electronic equipment and storage medium
CN111767144B (en) Transaction route determination method, device, equipment and system for transaction data
CN105204871A (en) Plug-in type development method and device
CN110399181A (en) Software Development Kit funcall method, system and electronic equipment and medium
CN108243407A (en) A kind of method and terminal device of multiple wireless module device network interface managements
CN104580267A (en) A resource downloading method, device, server and corresponding system
CN114500455B (en) Configuration method and system of intelligent lamp
CN103632185B (en) A kind of mask smart card with expanded function
CN102110055A (en) Memory layout method and memory layout device of flash chip
CN110399166B (en) ME Nonce value saving method, device, equipment and storage medium
CN114513496B (en) Control method, system, device and medium of intelligent lamp
WO2016023276A1 (en) Data processing method and device for storage card
CN102902629B (en) memory space mapping method and device
CN115915556A (en) Distributed intelligent light control method, device, equipment and medium
CN101789265A (en) FLASH express programming method for Power PC system
CN103605519A (en) Application program control adding method and application program control adding device
CN113741812B (en) Memory partition updating method and device, electronic device and storage medium
CN109558387A (en) Processing method, device, storage medium and the terminal of identification card number
CN104599711A (en) Embedded storage chip, embedded electronic device and program updating method
CN115357928A (en) Data access method, computer device and storage medium
CN116931954B (en) Built-in software package compiling construction method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant