zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

CC2531 Router On by default

Open talondnb opened this issue 8 years ago • 17 comments

Is there a way to have a CC2531 boot straight into being On?

talondnb avatar Aug 12 '18 03:08 talondnb

What exactly do you mean by that question?

tb-killa avatar Aug 12 '18 19:08 tb-killa

So when a CC2531 router is plugged in somewhere, it’s not enabled by default. You have to press one of the buttons on the device to enable it to function.

After a power failure, it will go back to the non enabled state. I would like it to boot into the enabled state by default without having to press any buttons.

talondnb avatar Aug 12 '18 22:08 talondnb

Maybe @ptvoinfo could help you .. i actually doesnt use this type of router ..

tb-killa avatar Aug 13 '18 08:08 tb-killa

@talondnb The router reconnects automatically after first successfull pairing. You need to re-pair the router after reflashing of a router or coordinator.

ptvoinfo avatar Aug 13 '18 17:08 ptvoinfo

I have two routers paired, they function fine. But the default state on bootup is not ‘online’.

Every time I have a power failure or the router loses power for a moment, I have to go to each router and press SW1 to bring each one back online. It will still be paired but I have to bring them back online manually because the default state is a standby mode.

http://ptvo.info/cc2531-based-router-firmware-136/

“Buttons:

SW1 – Changes a virtual state of the router (the router sends it in a diagnostic report) and a state of the green light.“

This is what I mean. I have press SW1 so the green light is on, meaning router is online. I would like the device to boot straight into having its green light on.

I hope that makes sense.

talondnb avatar Aug 13 '18 21:08 talondnb

I do not think this is how this works. I have a CC2531 as a router and do not have to press any buttons after powering it up. I could never figure out what that green light really means, but it still routes without the green light on.

I had a power outage yesterday and I am seeing the router in the logs:

2018-8-14 16:48:52 DEBUG Recieved zigbee message with data {"cid":"genOnOff","data":{"onOff":0}} 2018-8-14 16:48:52 INFO MQTT publish, topic: 'zigbee2mqtt/Router1', payload: '{"state":false}'

mercballs avatar Aug 14 '18 20:08 mercballs

Hmm, I could be mistaken, but I was taking the payload: false (as you have) as not being online. If you press SW1 so the green light is on, that payload will become true. Is this not how it works?

talondnb avatar Aug 14 '18 21:08 talondnb

Also, if you go to the dev tools and look for your device, does it have a state of ‘off’ or ‘on’? I have one with a state of ‘off’ currently, payload is ‘false’, the other is ‘on’ with a payload of ‘true’.

talondnb avatar Aug 14 '18 21:08 talondnb

My router is also 'Off' after a powerloss, and has to be set to 'On' manually. It would be nice to have the state set to 'On' after a powerloss.

SargonofAssyria avatar Aug 16 '18 18:08 SargonofAssyria

@ptvoinfo, would this be possible?

talondnb avatar Aug 16 '18 21:08 talondnb

If the router is off then how are your receiving messages from it? Are we sure that that the status is not just reflecting the button status?

mercballs avatar Aug 16 '18 22:08 mercballs

I am NOT recieving messages (from the router and device after the router) after a powerloss, that's why I manual have to set the router to ON again.

SargonofAssyria avatar Aug 17 '18 07:08 SargonofAssyria

same here, router off by default. would as well be nicer if the green light was also slowly blinking instead of being that bright when on :-)

lolorc avatar Aug 27 '18 13:08 lolorc

Sorry for my late response. I think this is not "Bug". This virtual router state "On/Off" does not matter at all. The router operates and retransmits packets even if the green light is on/off. By default the green light is off because it is very bright. But you may press the button and turn on/off this light if you want. I may try to add a possibility to save the green light state and restore it after power loss. Vote.

ptvoinfo avatar Sep 19 '18 06:09 ptvoinfo

what does it mean "virtual router" ? IOW what's does it change if it's on or off ?

anyway, at the moment, I've been unable to pair a cc2531 router to cc2531 coordinator, looking forward to see all the firmwares upgraded to Z-Stack 3.0

lolorc avatar Sep 19 '18 07:09 lolorc

Might be interesting to know the exact firmware version used for flashing the cc2531. I ended up using "CC2531-router-diag-usb.hex" and it 'remembers' the state of the "switch" after powerloss (pulling the plug from the socket) and re-inserting it somewhere else (light remains green, status in zigbee2mqtt is on).

basmeerman avatar Sep 30 '18 20:09 basmeerman

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 15 '18 19:12 stale[bot]