-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
After installing zigbee2mqtt on Raspberry PI 4B, zboss was used as adapter, but startup failed #24290
Comments
debug_log:
Starting Zigbee2MQTT without watchdog. |
Please record the startup debug log.
|
Thank you for your reply |
yes, if you don't have a similar section in your config file |
When I add debug, this is new and different log information.I checked my installation steps,but I don't understand why such a problem occurs: Starting Zigbee2MQTT without watchdog. Thank you for your help~ |
I am a newbie and looking at these logs, I feel that zigbee2mqtt is unable to send Get_JOINED this Frame to my Adapter. So the boot failed, right? |
you have a strange port specified. as if it is connected via jlink. perhaps it is necessary to connect differently. |
Thank you, when I writed the hex file to nRF52840 using nRF Connect for Desktop, I connected it directly to my Raspberry PI via USB, and it showed this by-id, is this operation correct? What should I do if it's not correct? |
I tried to change the way I connected to the nRF52840 DK, but it didn't work. In the process of writing the firmware, I used J-Link to do it, and then in the Linux environment, the by-id displayed is like this: |
strange. I checked the work on nrf usb-sticks, in your case DK is used and it may need a different firmware, similar to the nRF5340 DK https://github.com/kardia-as/nrf-zboss-ncp/tree/main/nRF5340DK |
Thank you for your reply. After testing, I learned that the problem was indeed caused by my failure to use proper firmware.At the moment, I change for the website during the firmware writing to nRF52840DK(https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/zigbee/architectures.html#ug-zigbee-platform-design-ncp-details),and then it can be identified as Zigbee NCP normally. At present, starting zigbee2mqtt can enter the step of connecting to MQTT server. It seems that there are still mqtt problems to be solved, and I am trying to deal with them. Thank you for your help! |
I was able to connect to my MQTT Server after modifying the configuration file, but then the following log appeared: [2024-10-14 17:15:33] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}' I can't understand: |
try to run it again. this shouldn't be happening |
I have tried many times, but this problem still occurs, is it caused by MQTT server? |
I found this problem with similar log information, does it seem to be caused by the same cause? |
I have checked the log information and the information received in my mqtt server, and it seems that after connected to MQTT server, a message with the topic: zigbee2mqtt/bridge/state and the load: {"state":"online"} needs to be sent to MQTT server. Indicates that the server is successfully connected and is online. This process also sends some MQTT messages, including theme respectively topics: zigbee2mqtt/bridge/info and zigbee2mqtt/bridge/extensions, zigbee2mqtt/bridge/info contains a large number of relevant information. The MQTT server can receive these messages, but the extensions message is empty(I am not sure that's right), and some error occurred during the process, which caused the zigbee2mqtt/bridge/state message to not be published successfully. So the payload that MQTT server finally receives is {"state":"offline"}. |
@chenyixi1997 Can you check it on the dev version (edge)? Maybe they've already fixed it. |
I don't understand what you mean, could you please tell me how to check it? |
Do you mean that I need to Switch to dev branch according to the Linux part of Switch to the dev branch, right? Looks like the instruction in the last step: |
I use the following two instructions will get the following error, it seems that there is no way to switch branches: |
Thanks for your help, I tried to reinstall zigbee2mqtt on my Raspberry PI today, and my problem can be solved after the re-installation. |
But the strange thing is that when I start up again, the previous error still appears |
I found that whenever I re-installed zigbee2mqtt, my first npm start started normally, but after I closed zigbee2mqtt by ctrl+c, I started npm start again, and there was an error: |
I find that every time I use npm start to start zigbee2mqtt, only after deleting data/database.db can zigbee2mqtt be started normally. I don't know the specific reason. |
What happened?
English is not my native language. Please forgive me for any mistakes
My device is raspberry PI 4b.Adapter is nRF52840 DK, write the firmware in the https://github.com/kardia-as/nrf-zboss-ncp/tree/main/nRF52840_dongle. After starting zigbee2mqtt(npm start) according to the tutorial,It shows that the startup is not successful, there are some errors, it seems that the command is not transmitted normally, how to solve it?For configuration information, I set up my mqtt, as well as serial.
What did you expect to happen?
I expect to be able to start zigbee2mqtt normally
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.40.2
Adapter firmware version
v2.6.0_ncp_zboss_max_mem_nrf52840_dongle
Adapter
zboss
Setup
Pi 4
Debug log
The text was updated successfully, but these errors were encountered: