TJForc / risco-lan-bridge

risco-lan-bridge is a "bridge" between a node.js application and a Risco Panel
Other
21 stars 12 forks source link

LightSys2 - not listening on port 1000 #15

Closed kkmaslowski closed 2 years ago

kkmaslowski commented 2 years ago

Hi. My alarm Panel is not listening on port 1000. I disabled cloud and try to use direct mode. Any hints why port 1000 could be closed? I have LightSys 2 with RW132IP.

kkmaslowski commented 2 years ago

Ok, I needed to disable Cloud from Panel. Now local communication works.

pergolafabio commented 2 years ago

You can also use the proxy method, that cloud still works

kkmaslowski commented 2 years ago

You can also use the proxy method, that cloud still works

I cannot get it working with my LightSys2.

My current config:

{
  "log": "debug",
  "panel": {
    "Panel_Id": "0001",
    "Panel_IP": "192.168.10.33",
    "Panel_Port": 1000,
    "Panel_Password": "5678",
    "AutoDiscover": true,
    "DiscoverCode": true,
    "WatchDogInterval": 10000,
    "SocketMode": "proxy",
    "ListeningPort": 33000
  },
  "mqtt": {
    "url": "mqtt://192.168.10.100:1883",
    "username": "guest",
    "password": "guest"
  },
  "zones": {
    "default": {
      "off_delay": 30,
      "name_prefix": "Sensor - "
    }
  }
}

My log from container looks like above:

12/21/2021, 1:00:08 PM [debug] Command CRC Value : 0CED
12/21/2021, 1:00:08 PM [debug] CRC Not Ok
12/21/2021, 1:00:10 PM [debug] Received data Buffer from Panel : [2,17,53,55,91,68,123,10,140,71,217,197,253,140,111,168,38,59,0,119,240,70,251,128,119,153,127,230,152,112,181,3]
12/21/2021, 1:00:10 PM [debug] Received data Buffer : [2,17,53,55,91,68,123,10,140,71,217,197,253,140,111,168,38,59,0,119,240,70,251,128,119,153,127,230,152,112,181,3]
12/21/2021, 1:00:10 PM [debug] Command CRC Value : 6932
12/21/2021, 1:00:10 PM [debug] CRC Ok
12/21/2021, 1:00:10 PM [debug] Receive[72] Data from Panel, need to send an ACK.
12/21/2021, 1:00:10 PM [debug] Receive[72] Sending Ack.
12/21/2021, 1:00:10 PM [debug] Command CRC Value : 8EAE
12/21/2021, 1:00:10 PM [debug] Received data from panel: PSTT1=----------E-----
12/21/2021, 1:00:10 PM [debug] Data type: Partition Status
12/21/2021, 1:00:10 PM [debug] Received data Buffer from Panel : [2,17,53,54,81,68,123,10,139,71,187,197,253,140,111,168,38,59,0,119,162,41,238,238,109,3]
12/21/2021, 1:00:10 PM [debug] Received data Buffer : [2,17,53,54,81,68,123,10,139,71,187,197,253,140,111,168,38,59,0,119,162,41,238,238,109,3]
12/21/2021, 1:00:10 PM [debug] Command CRC Value : B8C7
12/21/2021, 1:00:10 PM [debug] CRC Ok
12/21/2021, 1:00:10 PM [debug] Receive[73] Data from Panel, need to send an ACK.
12/21/2021, 1:00:10 PM [debug] Receive[73] Sending Ack.
12/21/2021, 1:00:10 PM [debug] Command CRC Value : 4E93
12/21/2021, 1:00:10 PM [debug] Received data from panel: ZSTT6=O---------
12/21/2021, 1:00:10 PM [debug] Data type: Zone Status
12/21/2021, 1:00:11 PM [debug] Received data Buffer from Panel : [2,17,53,49,91,68,123,10,140,71,217,197,253,140,111,168,38,59,127,119,240,70,251,128,119,153,127,149,149,7,195,3]
12/21/2021, 1:00:11 PM [debug] Received data Buffer : [2,17,53,49,91,68,123,10,140,71,217,197,253,140,111,168,38,59,127,119,240,70,251,128,119,153,127,149,149,7,195,3]
12/21/2021, 1:00:11 PM [debug] Command CRC Value : E4DD
12/21/2021, 1:00:11 PM [debug] CRC Ok
12/21/2021, 1:00:11 PM [debug] Receive[74] Data from Panel, need to send an ACK.
12/21/2021, 1:00:11 PM [debug] Receive[74] Sending Ack.
12/21/2021, 1:00:11 PM [debug] Command CRC Value : 8E26
12/21/2021, 1:00:11 PM [debug] Received data from panel: PSTT1=--------R-E-----
12/21/2021, 1:00:11 PM [debug] Data type: Partition Status
12/21/2021, 1:00:12 PM [debug] Received data Buffer from Panel : [2,17,53,48,81,68,123,10,139,71,217,197,253,140,111,168,38,59,0,119,162,83,238,233,104,3]
12/21/2021, 1:00:12 PM [debug] Received data Buffer : [2,17,53,48,81,68,123,10,139,71,217,197,253,140,111,168,38,59,0,119,162,83,238,233,104,3]
12/21/2021, 1:00:12 PM [debug] Command CRC Value : 88D2
12/21/2021, 1:00:12 PM [debug] CRC Ok
12/21/2021, 1:00:12 PM [debug] Receive[75] Data from Panel, need to send an ACK.
12/21/2021, 1:00:12 PM [debug] Receive[75] Sending Ack.
12/21/2021, 1:00:12 PM [debug] Command CRC Value : 4E1B
12/21/2021, 1:00:12 PM [debug] Received data from panel: ZSTT6=----------
12/21/2021, 1:00:12 PM [debug] Data type: Zone Status
12/21/2021, 1:00:13 PM [debug] Command[03] 'CUSTLST??' Timeout!!!
12/21/2021, 1:00:13 PM [debug] Sending Command: CUSTLST??
12/21/2021, 1:00:13 PM [debug] Command CRC Value : A04E
12/21/2021, 1:00:13 PM [debug] Command[03] Sent.
12/21/2021, 1:00:13 PM [debug] Sequence[3] Data Sent : CUSTLST??
12/21/2021, 1:00:13 PM [debug] Received data Buffer from Panel : [2,17,50,54,72,66,124,10,241,41,160,213,224,228,12,190,59,95,121,97,133,34,154,150,106,252,61,235,145,22,204,52,47,108,46,198,203,167,163,228,143,56,173,196,206,190,171,201,213,152,192,16,16,102,226,20,139,80,135,209,61,60,90,124,95,248,212,107,122,178,70,81,44,31,30,235,70,202,161,162,194,154,22,239,16,16,3]
12/21/2021, 1:00:13 PM [debug] Received data Buffer : [2,17,50,54,72,66,124,10,241,41,160,213,224,228,12,190,59,95,121,97,133,34,154,150,106,252,61,235,145,22,204,52,47,108,46,198,203,167,163,228,143,56,173,196,206,190,171,201,213,152,192,16,16,102,226,20,139,80,135,209,61,60,90,124,95,248,212,107,122,178,70,81,44,31,30,235,70,202,161,162,194,154,22,239,16,16,3]
12/21/2021, 1:00:13 PM [debug] Command CRC Value : 0CED
12/21/2021, 1:00:13 PM [debug] CRC Not Ok
pergolafabio commented 2 years ago

ah, strange, that worked for me i createed a forward rule on my router to formward all packets to the docer (or change the url on panel)

i have defined it like :

  "panel": {
    "Panel_IP": "192.168.0.232",
    "Panel_Port": 1000, 
    "Panel_Password": 1234,
    "Panel_Id": "0001",
    "WatchDogInterval": 10000,
    "Disable_RiscoCloud":  true,
    "Enable_RiscoCloud":  true,
    "DiscoverCode":  false,
    "SocketMode": "proxy",
    "ListeningPort": 33000,
    "CloudPort": 33000,
    "CloudUrl": "www.riscocloud.com"