Smart Home Automation Forum
KC828-Server unable to respond mqtt command until restart - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-Server Raspberry Pi4 local server (https://www.kincony.com/forum/forumdisplay.php?fid=17)
+--- Thread: KC828-Server unable to respond mqtt command until restart (/showthread.php?tid=2472)

Pages: 1 2


KC828-Server unable to respond mqtt command until restart - Jessica - 12-25-2022

KC828-Server has two ethernet
I installed Debian on CM4 with ipV4 192.168.1.128
another ipV4 is 192.168.1.129, work mode MQTT

My problem is KC828-Server can be pinged from 192.168.1.128 to 192.168.1.129, but unable to respond mqtt command, neither to login until I do a restart then everything works fine.
This happens many times in a day, and I can't figure out how to solve it other than restarting the module.
Please advise.


RE: KC828-Server unable to respond mqtt command until restart - admin - 12-26-2022

do you use INPUT for mqtt message?
here is a option in webpage: "SW trigger output" , you can set to "disable", so that INPUT will not trigger OUTPUT directly, then will send MQTT message when INPUT trigger.


RE: KC828-Server unable to respond mqtt command until restart - Jessica - 12-26-2022

(12-26-2022, 02:12 AM)admin Wrote: do you use INPUT for mqtt message?
here is a option in webpage: "SW trigger output" , you can set to "disable", so that INPUT will not trigger OUTPUT directly, then will send MQTT message when INPUT trigger.

Thanks for the response, SW trigger output does not solve the problem.

I found the bug, when I stop MQTT Broker on CM4, then KC868-Server side crashes somewhere and stops working, even http service on KC868-Server doesn't working, except ping.

But how to restart KC868-Server service? I don't like to power-off then power-on again to run it.


RE: KC828-Server unable to respond mqtt command until restart - admin - 12-26-2022

do you use mosquito broker?


RE: KC828-Server unable to respond mqtt command until restart - Jessica - 12-26-2022

(12-26-2022, 11:31 AM)admin Wrote: do you use mosquito broker?

what's the point? You can stop any mqtt broker, and I do not use mosquito


RE: KC828-Server unable to respond mqtt command until restart - admin - 12-27-2022

if you stop mqtt broker, KC868-Server will always try to connect mqtt broker. but during this time, http webpage also can be open. just mqtt can't established. my testing is : i install home assistant and mqtt broker on KC868-Server, when i turn OFF mqtt broker, i also can use kc868-server ethernet ip login with my web browser.
my KC868-Server firmware is “V1.48”


RE: KC828-Server unable to respond mqtt command until restart - Jessica - 12-27-2022

Yes, you are right, the problem is not the stopping of the mqtt broker service, after I stop mqtt broker, the http web page can also open.

I'm in stage of developing application on CM4, the following are the steps that make the KC868-Server service stop
1. Stop our application services ( including mqtt broker service ), KC868-Server service is still running
2. Build application with npm run build ( vue-cli-service build ), KC868-Server service is not running
3. Start application services to communicate with KC868-Server service

It was confirmed while building our application, KC868-Server http webpage can not be opened, but can be pinged.

I also tried rebooting CM4 but no effect, only power-off then back power-on to make KC868-Server service run again.


RE: KC828-Server unable to respond mqtt command until restart - admin - 12-28-2022

KC868-Server have two independent system. one is KinCony's ARM CPU system, another is CM4 system, i think you are developing your CM4 software system. even if no CM4 OS, KinCony's ARM CPU also will work. you can think KC868-Server = KC868-H16BS + Raspberry Pi4


RE: KC828-Server unable to respond mqtt command until restart - Jessica - 12-28-2022

That's it, how can two separate systems kill the other system.

Do you have time to do some exploring using remote sessions to see more clearly?


RE: KC828-Server unable to respond mqtt command until restart - admin - 12-29-2022

i have not used Debian on CM4, just installed "Raspberry Pi OS" or "home assistant OS", but not seen one system will kill another system. What power supply you have used? voltage and current?