Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal flow command #16

Open
ghost opened this issue May 7, 2018 · 1 comment
Open

Terminal flow command #16

ghost opened this issue May 7, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented May 7, 2018

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant