This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: Without Security end device is not connecting.

Other Parts Discussed in Thread: Z-STACK

Tool/software: Linux

Hi team,

                 Without security end device is not connecting to the coordinator.How to connect without security. please help me. i give the command without security only but still it's not working.

  • Do you use Z-Stack Linux Home GW?

  • With security i am facing the joining and leaving problem in coordinator.
    coordinator: Zig-bee pro 1.0
    End device : smart plug.
    I see the packets in Ubiqua also, but it's not chowing any Active end descriptor and Simple descriptor.
    Please help me, i am new to zig-bee stack.
  • Since you don’t want to use security, I suggest you to use ZNP new framework which you can refer to www.ti.com/.../TIDC-ZNP-HOST-SW3
  • with security why it's happening joining and rejoin ?????
  • If device doesn’t enable security, it will enter unauthorized state and reset to rejoin.
  • when disable the security in coordinator also it's not joining, why ??. That time both are same state only.
  • I attached the logs without using security.please find it.

  • What do you want me to check?
  • My end device is not connecting it's showing above logs.

    when i am using security below logs will be happening. how to trace the end device connecting continuously .

  • I am confused by your descriptions. Do you enable TC linkkey security on device? By the way, please attach sniffer log instead of screenshot.
  • <?xml version="1.0" encoding="utf-8"?>
    <Config>
      <NetworkExplorer>
        <TreeViewConfig>
          <Element Property="Protocol" IsGroup="true" IsShowInfo="false" />
          <Element Property="ChannelId" IsGroup="true" IsShowInfo="false" />
          <Element Property="PanIdFormated" IsGroup="true" IsShowInfo="false" />
          <Element Property="LongAddressFormated" IsGroup="false" IsShowInfo="false" />
          <Element Property="ShortAddressFormated" IsGroup="false" IsShowInfo="true" />
          <Element Property="Alias" IsGroup="false" IsShowInfo="false" />
          <Element Property="Vendor" IsGroup="false" IsShowInfo="false" />
        </TreeViewConfig>
        <SortOptionConfig>
          <SortElement Property="Protocol" IsSortBy="false" />
          <SortElement Property="ChannelId" IsSortBy="false" />
          <SortElement Property="PanIdFormated" IsSortBy="false" />
          <SortElement Property="LongAddressFormated" IsSortBy="false" />
          <SortElement Property="ShortAddressFormated" IsSortBy="false" />
          <SortElement Property="Alias" IsSortBy="false" />
          <SortElement Property="Vendor" IsSortBy="false" />
        </SortOptionConfig>
      </NetworkExplorer>
      <KeyValuePairs>
        <KeyValuePair Key="NetExp_BtnSortOptions" Value="false" />
        <KeyValuePair Key="10272C292A222C3D0426262A302B310028242C29" Value="3F2C222720203624312C362D74053C2A3528242C296B262A28" />
        <KeyValuePair Key="LastUpdatedFromWeb" Value="09-11-2017 12:02:49" />
        <KeyValuePair Key="UpdateCheckUntil" Value="2017-11-29 16:12:49" />
        <KeyValuePair Key="TrafficClearOptionsTrafficView" Value="True" />
        <KeyValuePair Key="TrafficClearOptionsNetworkData" Value="True" />
        <KeyValuePair Key="TrafficClearOptionsSecurityKeys" Value="False" />
        <KeyValuePair Key="TrafficClearOptionsAddresses" Value="False" />
        <KeyValuePair Key="CompareOnlyOtaPrefKey" Value="False" />
        <KeyValuePair Key="MainRecentCaptures" Value="C:\Users\satya\Desktop\QCA4024_Zigbee_Smartplug_Packets.cubx|C:\Users\satya\Desktop\zigbee.cubx|C:\Users\satya\Desktop\key.cubx|C:\Users\satya\Desktop\QCA to QCA paring.cubx|C:\Users\satya\Desktop\Cel and QCA pairing.cubx|C:\Users\satya\Desktop\Logs.cubx|C:\Users\satya\Desktop\security.dcf" />
        <KeyValuePair Key="DefaultProtocolStackNumber" Value="0" />
        <KeyValuePair Key="DefaultChecksumCorrectionAction" Value="0" />
        <KeyValuePair Key="EnablePrivateProfiles" Value="False" />
        <KeyValuePair Key="EnablePrivateMac" Value="False" />
        <KeyValuePair Key="EnablePrivateRF4CE" Value="False" />
        <KeyValuePair Key="ToolbarIconSize" Value="26" />
        <KeyValuePair Key="TrafficViewSourceIsMemory" Value="True" />
        <KeyValuePair Key="CommentWindow_Width" Value="0" />
        <KeyValuePair Key="CommentWindow_Height" Value="0" />
      </KeyValuePairs>
      <Columns>
        <Column Name="Id" Width="46" />
        <Column Name="Length" Width="32" IsVisible="true" />
        <Column Name="Timestamp" Width="102" IsVisible="true" />
        <Column Name="TimeDelta" Width="107" IsVisible="true" />
        <Column Name="Channel" Width="28" IsVisible="true" />
        <Column Name="Stack" Width="48" IsVisible="true" />
        <Column Name="Layer" Width="38" IsVisible="true" />
        <Column Name="RSSI" Width="32" IsVisible="false" />
        <Column Name="PacketType" Width="143" IsVisible="true" />
        <Column Name="PanSrc" Width="54" IsVisible="false" />
        <Column Name="PanDst" Width="55" IsVisible="false" />
        <Column Name="MacDst" Width="81" IsVisible="true" />
        <Column Name="MacSrc" Width="192" IsVisible="true" />
        <Column Name="MacSeq" Width="62" IsVisible="true" />
        <Column Name="NwkSrc" Width="58" IsVisible="true" />
        <Column Name="NwkDst" Width="60" IsVisible="true" />
        <Column Name="NwkSeq" Width="62" IsVisible="true" />
        <Column Name="Group" Width="43" IsVisible="false" />
        <Column Name="ApsCounter" Width="75" IsVisible="false" />
        <Column Name="Security" Width="53" IsVisible="true" />
        <Column Name="Source" Width="50" IsVisible="false" />
        <Column Name="URI" Width="150" IsVisible="false" />
      </Columns>
      <WindowLayoutWPF>
        <xamDockManager version="16.2.20162.2045">
          <contentPanes>
            <contentPane name="TrafficViewContentPane" location="DockedBottom" lastActivatedTime="2017-11-27T12:00:18.6498392Z" serializationId="TraContentPane_Id" />
            <contentPane name="NewGraphicViewContPane" location="DockedLeft" lastActivatedTime="2017-11-27T11:58:11.1457534Z" serializationId="NewGraContentPane_Id" />
            <contentPane name="DeviceManagerContPane" location="DockedLeft" lastActivatedTime="2017-11-27T11:40:47.4498945Z" serializationId="DevContentPane_Id" />
            <contentPane name="NetworkExplorerContPane" location="DockedLeft" lastActivatedTime="2017-11-27T09:47:01.9353949Z" serializationId="NetContentPane_Id" />
            <contentPane name="PacketViewContPane" location="DockedRight" lastActivatedTime="2017-11-27T06:19:01.4738641Z" serializationId="PacContentPane_Id" />
            <contentPane name="PropertiesViewContPane" location="DockedRight" lastActivatedTime="2017-11-27T05:38:27.1006483Z" serializationId="ProContentPane_Id" />
            <contentPane name="WatchViewContPane" location="DockedRight" lastActivatedTime="2017-11-23T06:36:41.7293543Z" serializationId="WatContentPane_Id" />
            <contentPane name="EventViewerContentPane" location="DockedBottom" serializationId="TraContentPane_Id" visibility="Collapsed" />
            <contentPane name="ShellViewContentPane" location="DockedBottom" serializationId="ShellContentPane_Id" visibility="Collapsed" />
            <contentPane name="TerminalViewContentPane" location="DockedBottom" serializationId="TerminalContentPane_Id" visibility="Collapsed" />
          </contentPanes>
          <panes>
            <splitPane name="LeftSideSplitPane" splitterOrientation="Horizontal" location="DockedLeft" extent="300">
              <contentPane name="DeviceManagerContPane" relativeSize="50,20" />
              <contentPane name="NewGraphicViewContPane" relativeSize="50,40" />
              <contentPane name="NetworkExplorerContPane" relativeSize="50,20" />
            </splitPane>
            <splitPane name="RightSideSplitPane" splitterOrientation="Horizontal" location="DockedRight" extent="300">
              <contentPane name="PacketViewContPane" relativeSize="50,75" />
              <contentPane name="PropertiesViewContPane" relativeSize="50,50" />
              <contentPane name="WatchViewContPane" relativeSize="50,25" />
            </splitPane>
            <splitPane name="CenterSideSplitPane" splitterOrientation="Horizontal" location="DockedBottom">
              <contentPane name="TrafficViewContentPane" relativeSize="50,75" />
              <contentPane name="EventViewerContentPane" relativeSize="50,25" />
              <contentPane name="ShellViewContentPane" relativeSize="50,10" />
              <contentPane name="TerminalViewContentPane" relativeSize="50,10" />
            </splitPane>
          </panes>
        </xamDockManager>
      </WindowLayoutWPF>
      <SecurityKeys version="2">
        <Key keyID="5A6967426565416C6C69616E63653039">
          <KeyType>LinkKey</KeyType>
          <Key>5A6967426565416C6C69616E63653039</Key>
        </Key>
        <Key keyID="93636BCFA64A72E4F0D69EEE8B0B7CC2">
          <KeyType>NetworkKey</KeyType>
          <Key>93636BCFA64A72E4F0D69EEE8B0B7CC2</Key>
        </Key>
        <Key keyID="60B361436AB504BF04D83339EAD19C4C">
          <KeyType>NetworkKey</KeyType>
          <Key>60B361436AB504BF04D83339EAD19C4C</Key>
        </Key>
      </SecurityKeys>
      <Filters />
      <WatchItems />
      <UbiquaCustomPorts>
        <COAPCustomPorts />
        <DTLSCustomPorts />
      </UbiquaCustomPorts>
      <UbiquaAddressRelation>
        <AddressRelation>
          <LongAddress Alias="">0000000000000000</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
            <ShortAddress>42DE</ShortAddress>
            <ShortAddress>4845</ShortAddress>
            <ShortAddress>61C1</ShortAddress>
            <ShortAddress>8998</ShortAddress>
            <ShortAddress>9F50</ShortAddress>
            <ShortAddress>B86C</ShortAddress>
            <ShortAddress>E16A</ShortAddress>
            <ShortAddress>ED9C</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress Alias="">0000000000000001</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress Alias="">0000000000000008</LongAddress>
          <ShortAddressList>
            <ShortAddress>ED9C</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress Alias="">0000000000000010</LongAddress>
          <ShortAddressList>
            <ShortAddress>246F</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress Alias="">0000000000001234</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress Alias="">000000FFFE000001</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress Alias="">000000FFFE000002</LongAddress>
          <ShortAddressList>
            <ShortAddress>0AC9</ShortAddress>
            <ShortAddress>D7AC</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress Alias="0x8998">000D6F0005242100</LongAddress>
          <ShortAddressList>
            <ShortAddress>020E</ShortAddress>
            <ShortAddress>0A93</ShortAddress>
            <ShortAddress>1878</ShortAddress>
            <ShortAddress>1D4D</ShortAddress>
            <ShortAddress>2EC0</ShortAddress>
            <ShortAddress>3101</ShortAddress>
            <ShortAddress>324D</ShortAddress>
            <ShortAddress>42DE</ShortAddress>
            <ShortAddress>4845</ShortAddress>
            <ShortAddress>5221</ShortAddress>
            <ShortAddress>57F3</ShortAddress>
            <ShortAddress>584E</ShortAddress>
            <ShortAddress>5F28</ShortAddress>
            <ShortAddress>61AA</ShortAddress>
            <ShortAddress>61C1</ShortAddress>
            <ShortAddress>7667</ShortAddress>
            <ShortAddress>8123</ShortAddress>
            <ShortAddress>834E</ShortAddress>
            <ShortAddress>8998</ShortAddress>
            <ShortAddress>8B27</ShortAddress>
            <ShortAddress>9004</ShortAddress>
            <ShortAddress>93D7</ShortAddress>
            <ShortAddress>9932</ShortAddress>
            <ShortAddress>9B95</ShortAddress>
            <ShortAddress>9F50</ShortAddress>
            <ShortAddress>AF68</ShortAddress>
            <ShortAddress>B453</ShortAddress>
            <ShortAddress>B86C</ShortAddress>
            <ShortAddress>B931</ShortAddress>
            <ShortAddress>BFEB</ShortAddress>
            <ShortAddress>C792</ShortAddress>
            <ShortAddress>CFC9</ShortAddress>
            <ShortAddress>D075</ShortAddress>
            <ShortAddress>D5A6</ShortAddress>
            <ShortAddress>E16A</ShortAddress>
            <ShortAddress>E8DC</ShortAddress>
            <ShortAddress>F86F</ShortAddress>
            <ShortAddress>FBB4</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress Alias="">0022A300001707E8</LongAddress>
          <ShortAddressList>
            <ShortAddress>69C3</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
      </UbiquaAddressRelation>
    </Config>
    Yes, I used "Zigbeealliance09" TC key. I attached the logs.

  • Why is it a xml file? You should attach cubx file.
  • it's not showing the cubex file option.

  • I see you use Ubiqua Protocol Analyzer to do sniff and you can save it with file extension *.cubx. Then, you can ZIP it to attach it here.
  • Are you sure your device enable TC Link key security? Which Z-Stack version and example do you use to test this?
  • ZigBee\OnOff: Unhandled OnOff client event 2.

    How to solve above problem.
  • I couldn't understand your question. Where do you see this client event?
  • After adding the device. when i am able to control the end device that time it will happening.
  • Where do you see this message "ZigBee\OnOff: Unhandled OnOff client event 2.?"
  • Zig-bee 3.0 and smart plug

  • After adding the device. i am able to control the device some times it working fine but above problem also  occurring.I don't know why it's happening.

  • Do you design this smart plug?
  • Do you have any about Legacy support.
  • After setting BIB it's working, why???
  • What is BIB?