1. 介绍
通过读写Memory Bank 10, 可对DALI模块写入生产信息,及输入测试命令。
支持写入的生产信息包括:
- GTIN(仅限于此值修改的电源固件)
- 产品编号 Article Number(仅限于此值修改的电源固件)
- 唯一序列号 Identification Number
- 硬件版本 Hardware Version
- 生产年周 Production Year Production Week
- 其它生产信息 Additional Gear Info (10字节)
支持的生产命令包括:
- 恢复出厂设置
2. Memory Bank
2.1 写入参数
可配置参数存储在memory bank中,可通过标准DALI读写memory bank操作访问及修改。以下示例为修改唯一序列号为0x8AC72E3727AA0AD1(10000012312023010001)
ENABLE WRITE MEMORY
DTR1 = 10
DTR0 = 2
WRITE MEMORY LOCATION, data=85
DTR0 = 0x56
WRITE MEMORY LOCATION, data=0x8A
WRITE MEMORY LOCATION, data=0xC7
WRITE MEMORY LOCATION, data=0x2E
WRITE MEMORY LOCATION, data=0x37
WRITE MEMORY LOCATION, data=0x27
WRITE MEMORY LOCATION, data=0xAA
WRITE MEMORY LOCATION, data=0x0A
WRITE MEMORY LOCATION, data=0xD1
2.2 Memory Bank 10
Address | Description | Default value | Reset value | Memory type |
0x00 | Address of last addressable memory location | 0x5F | NC | ROM |
0x01 | Reserved – not implemented | NO | NA | NA |
0x02 | Lock byte | 0xFF | 0xFF | RAM |
0x03 | Version of the memory bank | 0x0C | NC | ROM |
0x04-0x07 | Command | RAM | NC | RAM-P |
0x08 | Protect Status | 0x00 | 0x00 | RAM |
0x09-0x0B | Protect Features | 0x00 | NC | NVM-P |
0x0C-0x0F | Reserved | 0x00 | NC | ROM |
0x10-0x1F | OEM Master Key | 0xFF..FF | NC | RAM-P |
0x20-0x2F | OEM User Key | 0xFF..FF | NC | RAM-P |
0x30-0x3F | Production Key | 0xFF..FF | NC | RAM-P |
0x40-0x43 | Article No | 0xFF..FF | NC | NVM-P |
0x44 | Production Year | 0xFF | NC | NVM-P |
0x45 | Production Week | 0xFF | NC | NVM-P |
0x46-0x4F | Additional Gear Info | 0xFF..FF | NC | NVM-P |
0x50-0x55 | GTIN(*) | 0xFF..FF | NC | NVM-P |
0x56-0x5D | Identification number(*) | 0xFF..FF | NC | NVM-P |
0x5E-0x5F | Hardware Ver(*) | 0xFFFF | NC | NVM-P |
注:
* GTIN, Identification number, Hardware Ver修改后将实时更新到memory bank 0对应位置。
2.3 测试命令
可以向Command中写入以下命令:
Command | Byte0 | Byte1 | Byte2 | Byte3 |
恢复出厂设置 | 0x82 | 0xAA | 0xAA | 0xAA |