micolous / cbus

Use Python to communicate with a Clipsal C-Bus PCI or CNI! Includes MQTT bridge (for Home Assistant), PCI simulator, and reverse engineering notes.
http://cbus.readthedocs.org/
GNU Lesser General Public License v3.0
49 stars 27 forks source link

CBUS LCD Touch Screen with ethernet connectivity - how to interface with libcbus -> MQTT #46

Open rollsch opened 9 months ago

rollsch commented 9 months ago

As per this issue here: https://github.com/micolous/cbus/issues/45

I have a clipsal CBUS system with a touch screen (I have no idea what this product is actually called).

It has 2x RS485 RJ45 sockets and a wired ethernet socket. I did not do the install and no longer have the project file, though I believe I can access the system via netbios to get it?

WhatsApp Image 2024-01-03 at 09 01 36_f3b7e6a9 image WhatsApp Image 2024-01-03 at 09 01 36_f908f4b5

CBus toolkit cannot find any CNI devices on the network, however I with nmap I found the following ports open on the touchscreen.

Nmap scan report for 192.168.68.110 (DHCP assigned)

PORT STATE SERVICE VERSION 135/tcp open msrpc? 139/tcp open netbios-ssn Microsoft Windows netbios-ssn 8081/tcp open blackice-icecap?

All projects simply say "closed". Attempting to open the network says "PCI failed to reset. Unable to open the Network". None of the "Home" network seems to match what I see on the LCD screen.

I confirmed the unit address is "254" via the LCD.

image

image

I installed homeassistant with MQTT which found "257" devices. I assume this is simply the default project. None of these commands do anything on the network.

How can I find out what exactly this controller is and what would be required to get it to talk to libcbus/mqtt?

I figure if I can get the netbios setup I can pull the project file off the device which may assist.

rollsch commented 9 months ago

I saw this email notification, but maybe you deleted your reply?

"if you take the glass front off it has a USB connector you can use like a PCI.

It does not have ethernet capabilities."

There is an ethernet plug on the back, I've set an IP address and I can see it show up in a port scan. What is this ethernet port used for if you cannot program it or send commands to and from it?

MadMal commented 9 months ago

Sorry, travelling and not sure what happened.

Yes the CTC cannot be used as a CNI from memory.

You can program them across the network - but need to be using PICED as the software.

Toolkit is just for CBUS, not touch screens.

rollsch commented 9 months ago

What would be the cheapest way to get a CNI on the network, via the USB port and convert to ethernet?

MadMal commented 9 months ago

Where are you based?

The cheapest is to use a PCI with a raspberry pi if you want an MQTT gateway.

Can be used for programming with a bit more work and using cgate.

I would suggest to use the older versions of cgate, toolkit and piced - the latest versions are quite different and there is not a lot of experience with them on raspberry pis try.