Hi,
I have a raspberry pi 2 with an HM-CFG-USB-2 stick. I already installed hmcfgusb and it seems like it’s working ok:
[code]USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K…
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c7 0a 4c 45 H.HM-USB-IF…LE
USB > 0x0010: 51 31 31 39 37 37 30 38 30 84 b2 00 00 00 00 56 Q11977080…V
USB > 0x0020: 3e ea 00 00 00 00 ff ff 00 00 00 00 00 00 00 00 >…
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
2015-03-12 20:21:02.139049: LAN < HHM-USB-IF,03C7,LEQ1197708,3084B2,000000,00563EEA,0000
HHM-USB-IF,03C7,LEQ1197708,3084B2,000000,00563EEA,0000
usb-transfer took 49ms![/code]
I configured Homegear to use the hmland interface:
[code]# The device family this interface is for
[HomeMaticBidCoS]
Specify an unique id here to identify this device in Homegear
id = hmland
When default is set to “true” Homegear will assign this device
to new peers.
default = true
Options: cul, cc1100, coc, cuno, hmcfglan, hmlgw
deviceType = hmcfglan
IP address of your HM-CFG-LAN
host = localhost
Port number your HM-CFG-LAN listens on. Normally 1000.
port = 1234
Put the AES key printed on your HM-CFG-LAN here
lanKey = 00112233445566778899AABBCCDDEEFF
Specify a 16 byte (32 characters) long AES key here to protect your wireless communication
!!! IMPORTANT: Never ever lose this key. That would render your devices useless.
To remove the key from your devices, you need to factory reset them
rfKey = 00112233445566778899AABBCCDDEEFF
With each key change currentRFKeyIndex needs to be
incremented by 1. Default value is 1.
currentRFKeyIndex = 1
When you change rfKey, put the old key here. To
change the key Homegear needs to know the old and
the new one.
!!! Do not set oldRFKey when you set rfKey for the first time !!!
##oldRFKey = 00112233445566778899AABBCCDDEEFF
Default: responseDelay = 95
Should be “95” for CUL or COC, “100” for TI CC1101 and “60” for HM-CFG-LAN or HM-LGW
responseDelay = 60[/code]
But I am not able to pair any devices.
When I start homegear on the command line I get the following output:
03/12/15 20:45:11.068 Loading RPC server settings from /etc/homegear/rpcservers.conf
03/12/15 20:45:11.070 Loading RPC client settings from /etc/homegear/rpcclients.conf
03/12/15 20:45:11.079 Info: Loading family module mod_homematicwired.so
03/12/15 20:45:11.096 Info: Loading family module mod_insteon.so
03/12/15 20:45:11.116 Info: Loading family module mod_max.so
03/12/15 20:45:11.134 Info: Loading family module mod_miscellaneous.so
03/12/15 20:45:11.147 Info: Loading family module mod_philipshue.so
03/12/15 20:45:11.163 Info: Loading family module mod_homematicbidcos.so
03/12/15 20:45:11.214 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Info: Enabling AES encryption for communication with HM-CFG-LAN.
03/12/15 20:45:11.214 Initializing database...
03/12/15 20:45:11.222 Initializing family controller...
03/12/15 20:45:11.222 Module HomeMatic BidCoS: Loading XML RPC devices...
03/12/15 20:45:12.051 Info: Not initializing device family HomeMatic Wired, because no physical interface was found.
03/12/15 20:45:12.052 Info: Not initializing device family INSTEON, because no physical interface was found.
03/12/15 20:45:12.052 Info: Not initializing device family MAX!, because no physical interface was found.
03/12/15 20:45:12.053 Info: Not initializing device family Philips hue, because no physical interface was found.
03/12/15 20:45:12.053 Module Miscellaneous: Loading XML RPC devices...
03/12/15 20:45:12.055 Loading devices...
03/12/15 20:45:12.056 Module HomeMatic BidCoS: Loading HomeMatic BidCoS device 1
03/12/15 20:45:12.059 Module HomeMatic BidCoS: Loading HomeMatic BidCoS device 2
03/12/15 20:45:12.062 Module Miscellaneous: Loading Miscellaneous device 3
03/12/15 20:45:12.063 Start listening for packets...
03/12/15 20:45:12.064 Initializing RPC client...
03/12/15 20:45:12.064 Info: Connecting to host localhost on port 1234...
03/12/15 20:45:12.065 Starting XML RPC server RPCServer1 listening on 0.0.0.0:2001...
03/12/15 20:45:12.071 Starting XML RPC server RPCServer2 listening on 0.0.0.0:2002, SSL enabled...
03/12/15 20:45:12.071 RPC Server (Port 2001): Info: RPC Server started listening on address 0.0.0.0 and port 2001
03/12/15 20:45:12.074 Info: Connected to host localhost on port 1234. Client number is: 1
03/12/15 20:45:12.086 Starting XML RPC server RPCServer3 listening on 0.0.0.0:2003, SSL enabled, authentification enabled...
03/12/15 20:45:12.087 RPC Server (Port 2002): Info: RPC Server started listening on address 0.0.0.0 and port 2002
03/12/15 20:45:12.099 Starting CLI server...
03/12/15 20:45:12.099 RPC Server (Port 2003): Info: RPC Server started listening on address 0.0.0.0 and port 2003
03/12/15 20:45:12.099 Initializing event handler...
03/12/15 20:45:12.099 Loading events...
03/12/15 20:45:12.100 Startup complete.
03/12/15 20:45:13.070 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Error: Error communicating with HM-CFG-LAN. AES is enabled but no IV was send from HM-CFG-LAN. Please use the HomeMatic LAN Interface Configurator to re-enable AES.
03/12/15 20:45:13.071 Module HomeMatic BidCoS: LAN-Konfigurationsadapter "hmland": Error: Error communicating with HM-CFG-LAN. AES is enabled but no IV was send from HM-CFG-LAN. Please use the HomeMatic LAN Interface Configurator to re-enable AES.
As I understand, it is not possible to use AES with the HM-CFG-USB-2. But how do I disable AES in Homegear? When I comment out the AES key lines, I get an error at startup.