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

Permit Join with XBee #170

Open
sbroszat opened this issue Dec 13, 2021 · 0 comments
Open

Permit Join with XBee #170

sbroszat opened this issue Dec 13, 2021 · 0 comments

Comments

@sbroszat
Copy link

Im unable to permit Join with an XBee, because the XBee seems to ignore the ZigBeeStd for this.

I have a workaround for this with the ZigbeeNet XBee framehandler:

        ZigBeeSerialPort zigbeePort = new ZigBeeSerialPort("/dev/ttyS0");
        IXBeeFrameHandler FH = new XBeeFrameHandler();
        FH.Start(zigbeePort);
        var command = new XBeeAtCommand();
        command.SetAtCommand("CB");                 //Push Commissioning button
        command.SetParameterValue(new int[] {2});   //Enable joining for 1 minute
        command.SetFrameId(0);                      //Not Used
        command.SetFrameType(8);                    //AT Command
        FH.SendRequest(command);
        FH.Close();
        IZigBeeTransportTransmit dongle = new ZigBeeDongleXBee(zigbeePort);
        Control.NetworkManager = new ZigBeeNetworkManager(dongle);

So every time I start my Zigbee Gateway it opens first the Network for 60s and then starts the NetworkManager.
Is there any possibility to call the framehandler over the NetworkManager or any other way to send an AT-Command with an also running NetworkManager?

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

1 participant