max-christian / homebridge-texecom

A plugin for homebridge (https://github.com/nfarina/homebridge) to integrate Texecom Premier Elite zones into HomeKit
MIT License
27 stars 8 forks source link

Not working due to corrupted/encoded data being received #19

Closed garethflowers closed 4 years ago

garethflowers commented 4 years ago

After some playing around with Com ports on my Texecom I managed to get a copy of this plugin up and working - and it worked great!

But even since doing a reboot of Homebridge I'm seeing corrupted (or encoded?) data being received - instead of the usual "Z0010 style data. This means that none of my motion/contact sensors are detected anymore.

[7/3/2020, 9:38:41 AM] [Texecom] IP data received: e��b
[7/3/2020, 9:38:41 AM] [Texecom] Unknown string from Texecom: e��b
[7/3/2020, 9:38:43 AM] [Texecom] IP data received: Ȅ�b
[7/3/2020, 9:38:43 AM] [Texecom] Unknown string from Texecom: Ȅ�b
[7/3/2020, 9:40:45 AM] [Texecom] IP data received: 億b
[7/3/2020, 9:40:45 AM] [Texecom] Unknown string from Texecom: 億b
[7/3/2020, 9:40:46 AM] [Texecom] IP data received: ń�b
[7/3/2020, 9:40:46 AM] [Texecom] Unknown string from Texecom: ń�b
[7/3/2020, 9:40:51 AM] [Texecom] IP data received: 億b
[7/3/2020, 9:40:51 AM] [Texecom] Unknown string from Texecom: 億b
[7/3/2020, 9:40:52 AM] [Texecom] IP data received: ń�b
[7/3/2020, 9:40:52 AM] [Texecom] Unknown string from Texecom: ń�b

Any ideas why this dodgy data is being received?

max-christian commented 4 years ago

That’s weird. Is that port definitely still in Crestron mode?

garethflowers commented 4 years ago

Yes. I've just double checked and Com1=Crestron and Com2=SmartCom.

When I originally tried to get everything working my system was setup with SmartCom on Com1, and I've had to swap them around.

max-christian commented 4 years ago

So the IP connection is to Com 1? You’re sure you’re not connecting to the SmartCom? Maybe try connecting with netcat/telnet to see if you get the same messed up data?

garethflowers commented 4 years ago

I'm not sure how to test with netcat or telnet. Can you provide sample commands to use?

garethflowers commented 4 years ago

Got it working again after a reinstall of the Homebridge service (sudo hb-service uninstall && sudo hb-service install).

Weird!

max-christian commented 4 years ago

Oh, good news! I haven’t got a smartcom myself but it never seems to work first time.