Constants¶
Definitions of constants used by DL/T645 protocol
Some constants are specific to 1997/2007 implementations.
Protocol constants¶
- dlt645.constants.BROADCAST_ADDR = b'\xaa\xaa\xaa\xaa\xaa\xaa'¶
brodcast address - used when requesting a device address
- dlt645.constants.AWAKEN¶
bytes used as prefix to a request to wake up the device
- dlt645.constants.START¶
byte marking start of a frame or start of data block
- dlt645.constants.END¶
end of frame byte
Control Code¶
- dlt645.constants.MAIN¶
Transimission direction flag - comes from main
- dlt645.constants.STATION¶
Transimission direction flag - comes from station
- dlt645.constants.RESPONSE_CORRECT¶
station reponse flag - correct response
- dlt645.constants.RESPONSE_INCORRECT¶
station reponse flag - incorrect response
- dlt645.constants.NO_MORE_DATA¶
Follow up frame flag - No more data
- dlt645.constants.MORE_DATA¶
Follow up frame flag - More data frames after this one
Function codes¶
- dlt645.constants.FUNCTION_CODES¶
Function codes for 2007 and 1997 implementations