固件版本发布记录 
================================================================================
版本: V1.17
	配套说明：
		【硬件版本】
		【逻辑版本】	
            CTSR-3DY-16120-L_V1.03.bit
发布日期:2025-12-03

发布说明：
     
【新增功能】
    1.485主站代码优化实现通信失败错误码
    2.新增5条报警历史映射至MODBUS地址的功能
【修改功能】
    1.修改时区数据类型为有符号数
    1.改keil微库为libc库，为解决errno多线程安全问题
【修复BUG】
    
【规格实现情况说明】
      
【遗留BUG】
    1.Commissionnig页面Network Synchronized Clock中不能正确设置参数


modbus主站errcode的定义：（不会被设置为0，可以通过在程序中给errcode写0来判断错误是否解除）
    0 : No errors
    16#1 : Tx data failed
    16#2 : Rx time out

    16#10-16#15 表示接受到数据但数据存在问题
        16#10：Invalid CRC
        16#11：Invalid data
        16#12: Invalid exception code
        16#14: Too many data
        16#15: Response not from requested slave

    在MSB是1时，为异常响应码(接受到的异常响应代码的值)
        例：16#81 对应异常代码1，表示不支持的功能码
        16#82 对应异常代码2，表示不支持的数据地址

================================================================================
版本: V1.16C
	配套说明：
		【硬件版本】
		【逻辑版本】	
            CTSR-3DY-16120-L_V1.03.bit
发布日期:2025-11-19

发布说明：
     
【新增功能】

【修改功能】

【修复BUG】
    1.修复SR2和变频器通信丢包问题。(部分机器响应超时未按配置工作，在从站响应慢时会丢包。BUG13483 & 13134）
    2.修复SR1工装测试设置SF灯后通信失败问题.
    3.修复BUG13497 SR1在上位机上不显示手动报警 
    4.修复BUG 13318 LCD背光设置不能正常显示当前状态的问题
    5.修复BUG 13372 手动停止告警不会消失的问题
【规格实现情况说明】
      
【遗留BUG】



# Firmware Version Release Notes
================================================================================
**Version**: V1.17
&nbsp;&nbsp;&nbsp;&nbsp;**Supporting Documentation**:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;【Hardware Version】
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;【Logic Version】
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CTSR-3DY-16120-L_V1.03.bit
**Release Date**: 2025-12-03

**Release Description**:

【New Features】
1. Optimized the 485 master station code to implement communication failure error codes.
2. Added the function of mapping 5 new alarm history entries to MODBUS addresses.

【Modified Features】
1. Modified the time zone data type to signed integer.
2. Replaced the Keil MicroLIB with the libc library to resolve the multi-thread safety issue of `errno`.

【Fixed Bugs】
- None

【Specification Implementation Status】
- None

【Known Issues】
1. The parameters cannot be set correctly in the **Network Synchronized Clock** section of the Commissioning page.


**Definition of MODBUS Master Station Error Codes** (The value will never be set to 0; you can determine whether the error is resolved by writing 0 to `errcode` in the program):
- 0: No errors
- 16#1: Tx data failed
- 16#2: Rx time out

- 16#10–16#15: Indicate that data is received but contains errors
  - 16#10: Invalid CRC
  - 16#11: Invalid data
  - 16#12: Invalid exception code
  - 16#14: Too many data
  - 16#15: Response not from requested slave

- When the Most Significant Bit (MSB) is 1, the value represents an exception response code (the value of the received exception response code).
  - Example: 16#81 corresponds to exception code 1, indicating an unsupported function code.
  - Example: 16#82 corresponds to exception code 2, indicating an unsupported data address.

================================================================================
**Version**: V1.16C
&nbsp;&nbsp;&nbsp;&nbsp;**Supporting Documentation**:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;【Hardware Version】
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;【Logic Version】
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CTSR-3DY-16120-L_V1.03.bit
**Release Date**: 2025-11-19

**Release Description**:

【New Features】
- None

【Modified Features】
- None

【Fixed Bugs】
1. Fixed the packet loss issue in communication between SR2 and the frequency converter. (Some devices failed to work as configured due to response timeout and would lose packets when the slave station responded slowly. BUG13483 & 13134)
2. Fixed the communication failure issue of SR1 after setting the SF light in fixture testing.
3. Fixed BUG13497: Manual alarms of SR1 were not displayed on the upper computer.
4. Fixed BUG13318: The LCD backlight setting could not display the current status correctly.
5. Fixed BUG13372: Manual stop alarms would not disappear.

【Specification Implementation Status】
- None

【Known Issues】
- None

