mirror of
				https://github.com/thelsing/knx.git
				synced 2025-10-26 10:26:25 +01:00 
			
		
		
		
	save work
This commit is contained in:
		
							parent
							
								
									f2e219a2bd
								
							
						
					
					
						commit
						79d9586940
					
				@ -9,7 +9,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
DeviceObject::DeviceObject()
 | 
					DeviceObject::DeviceObject()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    //Default to KNXA (0xFA)
 | 
					    // Default to KNXA (0xFA)
 | 
				
			||||||
 | 
					    // Note: ETS does not accept a SN 00FA00000000 in data secure mode.
 | 
				
			||||||
 | 
					    //       ETS says that 00FA00000000 looks "suspicious" in the log file.
 | 
				
			||||||
    uint8_t serialNumber[] = {0x00, 0xFA, 0x01, 0x02, 0x03, 0x04};
 | 
					    uint8_t serialNumber[] = {0x00, 0xFA, 0x01, 0x02, 0x03, 0x04};
 | 
				
			||||||
    uint8_t hardwareType[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
 | 
					    uint8_t hardwareType[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -8,8 +8,12 @@
 | 
				
			|||||||
#include "bau.h"
 | 
					#include "bau.h"
 | 
				
			||||||
#include "string.h"
 | 
					#include "string.h"
 | 
				
			||||||
#include "bits.h"
 | 
					#include "bits.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Select what cipher modes to include. We need AES128-CBC and AES128-CTR modes.
 | 
				
			||||||
 | 
					#define CBC 1
 | 
				
			||||||
 | 
					#define CTR 1
 | 
				
			||||||
 | 
					#define ECB 0
 | 
				
			||||||
#include "aes.hpp"
 | 
					#include "aes.hpp"
 | 
				
			||||||
#include <stdio.h>
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
const uint8_t SecureDataPdu = 0;
 | 
					const uint8_t SecureDataPdu = 0;
 | 
				
			||||||
const uint8_t SecureSyncRequest = 2;
 | 
					const uint8_t SecureSyncRequest = 2;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user