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

Unable to connect to Toolkit #143

Open
luke-b5114 opened this issue Jan 12, 2024 · 26 comments
Open

Unable to connect to Toolkit #143

luke-b5114 opened this issue Jan 12, 2024 · 26 comments

Comments

@luke-b5114
Copy link

Hi all,

Recently installed homebridge-cbus on a raspberry pi and working well.

I am having the issue of not being to access toolkit on my windows computer and open the network.
Is anyone able to help me with this ?

Thank you,

@wrh75
Copy link

wrh75 commented Jan 12, 2024

Your raspberry pi will be running C-Gate. Toolkit will also want to run an instance of C-Gate on the windows computer. I don't think 2 instances of C-Gate can connect to the cbus network at the same time. Try stopping C-Gate on the raspberry pi before running toolkit.

@luke-b5114
Copy link
Author

What's the easiest solution to stopping C-Gate on the raspberry pi ?

I am adding another device on the CBus network, am I needing to update the XML on the raspberry pi afterwards ? or will it pick the address up automatically ?

@wrh75
Copy link

wrh75 commented Jan 12, 2024

If the raspberry pi isn't doing anything else important, I would just switch it off to be sure and restart after you're finished in toolkit. If you're using the Homebridge GUI you could try going to the Homebridge Cbus plugin and disabling it under the little spanner icon.

@luke-b5114
Copy link
Author

Disabled and also turned off the raspberry pi.

Toolkit is still unable to open my network

@luke-b5114
Copy link
Author

Is there somehow I can set up remote G-Gate connection?

Thank you for the help

@wrh75
Copy link

wrh75 commented Jan 12, 2024

Sorry to hear that. That was the issue that I ran into a while back and stopping the C-Gate on the pi solved it. I remember it being a bit fussy. I had to make sure that C-Gate stopped and restarted on the pc after stopping the instance on the pi. If you've tried that it must be some other issue. I think it would be easier to solve the issue with toolkit on the pc rather than a remote C-Gate connection. Good luck.

@conformist66
Copy link

conformist66 commented Jan 12, 2024 via email

@luke-b5114
Copy link
Author

I did try that but does not seem to be working.

I believe I've done this correctly..

C-Gate won't let remote clients connect to it if they're not in the file
/usr/local/bin/cgate/config/access.txt.
Add your Admin machine's IP address here, or to whitelist an entire network
add it with '255' as the last octet. e.g.:
192.168.1.7 whitelists just the one machine, whereas
192.168.1.255 whitelists the whole 192.168.1.x network.
The more IPs you whitelist, the less secure C-Gate becomes.

Enter an IP or network address to allow/whitelist : 192.168.1.255

When selecting remote C-Gate
192.168.1.112: 20123

@DarylMc
Copy link

DarylMc commented Jan 12, 2024

What Java version have you got?
java --version

@luke-b5114
Copy link
Author

How do I check which Java Version is installed ?

@DarylMc
Copy link

DarylMc commented Jan 12, 2024

How do I check which Java Version is installed ?

Sorry I misread what you are doing there last night.
I thought you were using CGate on the pi.
I was also wrong.
You need to type "java -version" into the pi terminal to find the version not "--version"

@luke-b5114
Copy link
Author

This is the version I am using below...

java version "1.8.0_381"
Java(TM) SE Runtime Environment (build 1.8.0_381-b09)
Java HotSpot(TM) Client VM (build 25.381-b09, mixed mode)

@luke-b5114
Copy link
Author

overall,
I am just trying to gain access to CBus Toolkit on my Windows machine while Raspberry Pi is still on running C-Gate.

I have bought a CBus coupler I am wanting to address and add to the system.

@DarylMc
Copy link

DarylMc commented Jan 12, 2024

That version of java on the pi will probably need the java security settings changed if you want to use CBus Toolkit and connect to a remote CGate on the pi but I recommend you use the local CGate on the Windows machine to add your new device.
Make a copy/backup your project xml before you do anything.
Once you have the new unit added in Toolkit and backed up again, then copy the xml over to the pi.

@DarylMc
Copy link

DarylMc commented Jan 12, 2024

Keep in mind the latest Cbus Toolkit 17 is a major upgrade.
Stick with Cbus Toolkit 16 for now.

@luke-b5114
Copy link
Author

I am unable to open network on Windows machine toolkit.
prompts me with "PCI failed to reset, unable to open network".

yep, i am still on 1.16.3

@DarylMc
Copy link

DarylMc commented Jan 12, 2024

This video I made may help with remote and local CGate
Or confuse you more :)
https://www.youtube.com/watch?v=L1tet3Espu8

@DarylMc
Copy link

DarylMc commented Jan 12, 2024

This is the java security fix for Toolkit access to a remote CGate on a pi.
https://www.cbusforums.com/threads/c-gate-command-port-issue-with-toolkit.10610/#post-57718

@DarylMc
Copy link

DarylMc commented Jan 12, 2024

Go steady if you're not sure what you are doing.
Backup your project before doing anything.

@luke-b5114
Copy link
Author

Looks like I'm in the same position you were years back. going off this link https://www.cbusforums.com/threads/c-gate-command-port-issue-with-toolkit.10610/#post-57718
"An error has occurred while initializing the secure socket layer - Cannot connect to C-Gate Server"

@DarylMc
Copy link

DarylMc commented Jan 12, 2024

Since you have to manually install jre8 on the latest raspberry pi OS
If I had to build a new image I would use jdk-8u202-linux-arm32-vfp-hflt.tar.gz
If you use this version you won't have to alter the security settings which block TLSv1 and prevent CBus Toolkit from connecting to the remote CGate.

There is a currently working raspberry pi setup guide here.
https://github.com/greiginsydney/Homebridge-cbus-installer/blob/master/SETUP.md

@luke-b5114
Copy link
Author

I'm am unable to find that version of Java available.

I followed Greigs steps, working fine. But still unable to access Toolkit and open network

@DarylMc
Copy link

DarylMc commented Jan 13, 2024

jdk-8u202-linux-arm32-vfp-hflt.tar.gz
jdk-8u202-linux-arm32-vfp-hflt.tar.gz

@luke-b5114
Copy link
Author

Is this a matter of installing this straight to the existing raspberry pi?
or do I have to go through https://github.com/greiginsydney/Homebridge-cbus-installer/blob/master/SETUP.md all over again ?

@luke-b5114
Copy link
Author

Re-installed a different version of Java and now works.
can remote into toolkit now.

Thanks all for the help

@JasonY00
Copy link
Contributor

Please close the issue if resolved.

thanks

Jason

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

5 participants