pfrommerd / insteon-terminal

A simple tool to allow modification of an insteonplm or a insteonhub
The Unlicense
75 stars 31 forks source link

Terminal flow command #16

Open ghost opened 6 years ago

ghost commented 6 years ago

I have just a a usb SmartHub 2413u and a dimmer 2457D2, no hub. My init.py is: What is the teminal sequence to 'pair' the dimmer to modem then to control it. Here are some of my terminal outputs.

modem       = Modem2413U("modem", "49.F9.97")
dimmer      = Dimmer2477D("dimmer", "47.14.D1")
Connecting
Connected
Terminal ready!
>>> connectToSerial("/dev/ttyUSB0")
Connecting
Connected

>>> connectToSerial("/dev/ttyUSB0")
Connecting
Connected
>>> listDevices()
dimmer                         47.14.D1
modem                          49.F9.97

# the dimmer is in multi link mode blink-blink-blink  blink-blink-blink

>>> modem.getid()
sent msg: OUT:Cmd:0x60|
getid got msg: IN:Cmd:0x60|IMAddress:49.F9.97|DeviceCategory:0x03|DeviceSubCategory:0x15|FirmwareVersion:0x9E|ACK/NACK:0x06|

>>> modem.enterLinkingModeExtended(1)      
sent msg: OUT:Cmd:0x62|toAddress:49.F9.97|messageFlags:0x1F=DIRECT:3:3|command1:0x09|command2:0x01|userData1:0x00|userData2:0x00|userData3:0x00|userData4:0x00|userData5:0x00|userData6:0x00|userData7:0x00|userData8:0x00|userData9:0x00|userData10:0x00|userData11:0x00|userData12:0x00|userData13:0x00|userData14:0xF6|
enter linking mode extended got no reply!

Thank you

tommycw1 commented 2 years ago

A device will not listed to commands from any other device until it has some initial paring. To do this, you press and hold the the link button on your modem until it beeps. then do the same on your device, it should beep twice quickly. Then do the same in reverse, pressing the link button on the device and hold until it beeps, then press the link button on the modem and it should beep twice quickly. This will give you a cross linked device then you can now communicate with.