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.

3.0 入网

Other Parts Discussed in Thread: Z-STACK

我是在z-stack 3.0.2 GenericApp 例程上面的 zclGenericApp_Init()的最下面加了 

协调器

bdb_StartCommissioning( BDB_COMMISSIONING_MODE_NWK_FORMATION );
NLME_PermitJoiningRequest(0xff);

终端

bdb_StartCommissioning(BDB_COMMISSIONING_MODE_NWK_STEERING);

不知道问什么没有 device  announce ;下面是抓去的数据包

  • <?xml version="1.0" encoding="utf-8"?>
    <Config>
      <KeyValuePairs>
        <KeyValuePair Key="UpdateCheckUntil" Value="2019-08-10 09:23:42" />
        <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="DefaultProtocolStackNumber" Value="0" />
        <KeyValuePair Key="DefaultChecksumCorrectionAction" Value="0" />
        <KeyValuePair Key="EnablePrivateProfiles" Value="False" />
        <KeyValuePair Key="EnablePrivateMac" Value="False" />
        <KeyValuePair Key="FileAssoc.cubx" Value="True" />
        <KeyValuePair Key="FileAssoc.subx" Value="True" />
        <KeyValuePair Key="FileAssoc.dcf" Value="True" />
        <KeyValuePair Key="FileAssoc.pcap" Value="True" />
        <KeyValuePair Key="FileAssoc.cap" Value="True" />
        <KeyValuePair Key="FileAssoc.txt" Value="False" />
        <KeyValuePair Key="FileAssoc.psd" Value="False" />
        <KeyValuePair Key="FileAssoc.isd" Value="True" />
        <KeyValuePair Key="AutoCheckFileAssoc" Value="True" />
        <KeyValuePair Key="MainRecentCaptures" Value="C:\Users\linzichao\Desktop\新建文件夹 (2)\7月30日18_26_33_test1.cubx|C:\Users\linzichao\Documents\zcl.cubx" />
      </KeyValuePairs>
      <Columns>
        <Column Name="Id" Width="124" />
        <Column Name="Length" Width="117" IsVisible="true" />
        <Column Name="Timestamp" Width="173" IsVisible="true" />
        <Column Name="TimeDelta" Width="148" IsVisible="true" />
        <Column Name="Channel" Width="89" IsVisible="true" />
        <Column Name="Stack" Width="106" IsVisible="true" />
        <Column Name="Layer" Width="94" IsVisible="true" />
        <Column Name="PacketType" Width="269" IsVisible="true" />
        <Column Name="PanSrc" Width="54" IsVisible="false" />
        <Column Name="PanDst" Width="55" IsVisible="false" />
        <Column Name="MacSrc" Width="110" IsVisible="true" />
        <Column Name="MacDst" Width="109" IsVisible="true" />
        <Column Name="MacSeq" Width="95" IsVisible="true" />
        <Column Name="NwkSrc" Width="58" IsVisible="false" />
        <Column Name="NwkDst" Width="60" IsVisible="false" />
        <Column Name="NwkSeq" Width="62" IsVisible="false" />
        <Column Name="Group" Width="43" IsVisible="false" />
        <Column Name="ApsCounter" Width="75" IsVisible="false" />
        <Column Name="Security" Width="53" IsVisible="false" />
        <Column Name="Source" Width="50" IsVisible="false" />
      </Columns>
      <WindowLayout>
        <DockPanel FormatVersion="1.0" DockLeftPortion="0.24375" DockRightPortion="0.0202883205863608" DockTopPortion="0.25" DockBottomPortion="0.25" ActiveDocumentPane="0" ActivePane="1">
          <Contents Count="7">
            <Content ID="0" PersistString="Ubilogix.Ubiqua.Views.Traffic.TrafficView" AutoHidePortion="0.25" IsHidden="False" IsFloat="False" />
            <Content ID="1" PersistString="Ubilogix.Ubiqua.Views.Devices.Manager.DeviceManagerView" AutoHidePortion="200" IsHidden="False" IsFloat="False" />
            <Content ID="2" PersistString="Ubilogix.Ubiqua.Views.NetworkExplorer.NetworkExplorerView" AutoHidePortion="0.25" IsHidden="True" IsFloat="False" />
            <Content ID="3" PersistString="Ubilogix.Ubiqua.Views.Graphic.GraphicView" AutoHidePortion="0.25" IsHidden="False" IsFloat="False" />
            <Content ID="4" PersistString="Ubilogix.Ubiqua.Views.Packet.PacketView" AutoHidePortion="0.25" IsHidden="True" IsFloat="False" />
            <Content ID="5" PersistString="Ubilogix.Ubiqua.Views.Watch.WatchView" AutoHidePortion="0.25" IsHidden="True" IsFloat="False" />
            <Content ID="6" PersistString="Ubilogix.Ubiqua.Views.Info.InfoView" AutoHidePortion="0.25" IsHidden="True" IsFloat="False" />
          </Contents>
          <Panes Count="8">
            <Pane ID="0" DockState="Document" ActiveContent="0">
              <Contents Count="1">
                <Content ID="0" RefID="0" />
              </Contents>
            </Pane>
            <Pane ID="1" DockState="DockLeft" ActiveContent="1">
              <Contents Count="1">
                <Content ID="0" RefID="1" />
              </Contents>
            </Pane>
            <Pane ID="2" DockState="DockLeft" ActiveContent="-1">
              <Contents Count="1">
                <Content ID="0" RefID="2" />
              </Contents>
            </Pane>
            <Pane ID="3" DockState="DockLeft" ActiveContent="3">
              <Contents Count="1">
                <Content ID="0" RefID="3" />
              </Contents>
            </Pane>
            <Pane ID="4" DockState="DockRight" ActiveContent="-1">
              <Contents Count="1">
                <Content ID="0" RefID="4" />
              </Contents>
            </Pane>
            <Pane ID="5" DockState="DockRight" ActiveContent="-1">
              <Contents Count="1">
                <Content ID="0" RefID="5" />
              </Contents>
            </Pane>
            <Pane ID="6" DockState="DockRight" ActiveContent="-1">
              <Contents Count="1">
                <Content ID="0" RefID="6" />
              </Contents>
            </Pane>
            <Pane ID="7" DockState="Float" ActiveContent="-1">
              <Contents Count="1">
                <Content ID="0" RefID="3" />
              </Contents>
            </Pane>
          </Panes>
          <DockWindows>
            <DockWindow ID="0" DockState="Document" ZOrderIndex="1">
              <NestedPanes Count="1">
                <Pane ID="0" RefID="0" PrevPane="-1" Alignment="Right" Proportion="0.5" />
              </NestedPanes>
            </DockWindow>
            <DockWindow ID="1" DockState="DockLeft" ZOrderIndex="2">
              <NestedPanes Count="3">
                <Pane ID="0" RefID="1" PrevPane="-1" Alignment="Bottom" Proportion="0.5" />
                <Pane ID="1" RefID="3" PrevPane="1" Alignment="Bottom" Proportion="0.699999988079071" />
                <Pane ID="2" RefID="2" PrevPane="3" Alignment="Top" Proportion="0.300000011920929" />
              </NestedPanes>
            </DockWindow>
            <DockWindow ID="2" DockState="DockRight" ZOrderIndex="3">
              <NestedPanes Count="3">
                <Pane ID="0" RefID="4" PrevPane="-1" Alignment="Bottom" Proportion="0.5" />
                <Pane ID="1" RefID="5" PrevPane="4" Alignment="Bottom" Proportion="0.200000002980232" />
                <Pane ID="2" RefID="6" PrevPane="4" Alignment="Bottom" Proportion="0.400000005960464" />
              </NestedPanes>
            </DockWindow>
            <DockWindow ID="3" DockState="DockTop" ZOrderIndex="4">
              <NestedPanes Count="0" />
            </DockWindow>
            <DockWindow ID="4" DockState="DockBottom" ZOrderIndex="5">
              <NestedPanes Count="0" />
            </DockWindow>
          </DockWindows>
          <FloatWindows Count="1">
            <FloatWindow ID="0" Bounds="39, 487, 300, 300" ZOrderIndex="0">
              <NestedPanes Count="1">
                <Pane ID="0" RefID="7" PrevPane="-1" Alignment="Right" Proportion="0.5" />
              </NestedPanes>
            </FloatWindow>
          </FloatWindows>
        </DockPanel>
      </WindowLayout>
      <SecurityKeys version="2">
        <Key keyID="00000000000000000000000000000000">
          <KeyType>NetworkKey</KeyType>
          <Key>00000000000000000000000000000000</Key>
        </Key>
        <Key keyID="11131517191B1D1F10121416181A1C1D">
          <KeyType>NetworkKey</KeyType>
          <Key>11131517191B1D1F10121416181A1C1D</Key>
        </Key>
      </SecurityKeys>
      <Filters />
      <Autosave>
        <IsEnabled>false</IsEnabled>
        <Interval>1</Interval>
      </Autosave>
      <WatchItems />
      <Services>
        <Service Name="RemoteControl">
          <Enabled>false</Enabled>
          <AuthRequired>false</AuthRequired>
          <Username />
          <Password></Password>
          <Port>19501</Port>
        </Service>
      </Services>
      <UbiquaAddressRelation>
        <AddressRelation>
          <LongAddress>0000000000000000</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
            <ShortAddress>09DE</ShortAddress>
            <ShortAddress>3F04</ShortAddress>
            <ShortAddress>55DB</ShortAddress>
            <ShortAddress>5B6E</ShortAddress>
            <ShortAddress>7B4A</ShortAddress>
            <ShortAddress>844B</ShortAddress>
            <ShortAddress>A02D</ShortAddress>
            <ShortAddress>A54E</ShortAddress>
            <ShortAddress>AF5B</ShortAddress>
            <ShortAddress>BAE0</ShortAddress>
            <ShortAddress>C559</ShortAddress>
            <ShortAddress>F2C2</ShortAddress>
            <ShortAddress>F76E</ShortAddress>
            <ShortAddress>FFFE</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress>00124B00132CE4E9</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
            <ShortAddress>042E</ShortAddress>
            <ShortAddress>42B3</ShortAddress>
            <ShortAddress>42B9</ShortAddress>
            <ShortAddress>59E7</ShortAddress>
            <ShortAddress>634A</ShortAddress>
            <ShortAddress>6B70</ShortAddress>
            <ShortAddress>71B7</ShortAddress>
            <ShortAddress>7EA8</ShortAddress>
            <ShortAddress>B5F0</ShortAddress>
            <ShortAddress>F2C2</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress>00124B001D21CA56</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
            <ShortAddress>037C</ShortAddress>
            <ShortAddress>09DE</ShortAddress>
            <ShortAddress>0EBF</ShortAddress>
            <ShortAddress>1334</ShortAddress>
            <ShortAddress>1740</ShortAddress>
            <ShortAddress>1B0B</ShortAddress>
            <ShortAddress>2A83</ShortAddress>
            <ShortAddress>2F20</ShortAddress>
            <ShortAddress>3F04</ShortAddress>
            <ShortAddress>440A</ShortAddress>
            <ShortAddress>49EB</ShortAddress>
            <ShortAddress>4F57</ShortAddress>
            <ShortAddress>5193</ShortAddress>
            <ShortAddress>55DB</ShortAddress>
            <ShortAddress>5821</ShortAddress>
            <ShortAddress>5AAD</ShortAddress>
            <ShortAddress>5D82</ShortAddress>
            <ShortAddress>7B4A</ShortAddress>
            <ShortAddress>9A85</ShortAddress>
            <ShortAddress>9DBB</ShortAddress>
            <ShortAddress>A6B9</ShortAddress>
            <ShortAddress>AC14</ShortAddress>
            <ShortAddress>AF5B</ShortAddress>
            <ShortAddress>BAE0</ShortAddress>
            <ShortAddress>BEB6</ShortAddress>
            <ShortAddress>BF52</ShortAddress>
            <ShortAddress>E455</ShortAddress>
            <ShortAddress>EB10</ShortAddress>
            <ShortAddress>F5DE</ShortAddress>
            <ShortAddress>F76E</ShortAddress>
            <ShortAddress>FEE5</ShortAddress>
            <ShortAddress>FF76</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress>00124B001D6774EB</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress>00124B001D7AE36B</LongAddress>
          <ShortAddressList>
            <ShortAddress>207E</ShortAddress>
            <ShortAddress>5B6E</ShortAddress>
            <ShortAddress>A345</ShortAddress>
            <ShortAddress>F720</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress>00124B001D7AF4BF</LongAddress>
          <ShortAddressList>
            <ShortAddress>7AD3</ShortAddress>
            <ShortAddress>7F13</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
      </UbiquaAddressRelation>
    </Config>

  • <?xml version="1.0" encoding="utf-8"?>
    <Config>
      <KeyValuePairs>
        <KeyValuePair Key="UpdateCheckUntil" Value="2019-08-10 09:23:42" />
        <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="DefaultProtocolStackNumber" Value="0" />
        <KeyValuePair Key="DefaultChecksumCorrectionAction" Value="0" />
        <KeyValuePair Key="EnablePrivateProfiles" Value="False" />
        <KeyValuePair Key="EnablePrivateMac" Value="False" />
        <KeyValuePair Key="FileAssoc.cubx" Value="True" />
        <KeyValuePair Key="FileAssoc.subx" Value="True" />
        <KeyValuePair Key="FileAssoc.dcf" Value="True" />
        <KeyValuePair Key="FileAssoc.pcap" Value="True" />
        <KeyValuePair Key="FileAssoc.cap" Value="True" />
        <KeyValuePair Key="FileAssoc.txt" Value="False" />
        <KeyValuePair Key="FileAssoc.psd" Value="False" />
        <KeyValuePair Key="FileAssoc.isd" Value="True" />
        <KeyValuePair Key="AutoCheckFileAssoc" Value="True" />
        <KeyValuePair Key="MainRecentCaptures" Value="C:\Users\linzichao\Desktop\新建文件夹 (2)\7月30日18_26_33_test1.cubx|C:\Users\linzichao\Documents\zcl.cubx" />
      </KeyValuePairs>
      <Columns>
        <Column Name="Id" Width="124" />
        <Column Name="Length" Width="117" IsVisible="true" />
        <Column Name="Timestamp" Width="173" IsVisible="true" />
        <Column Name="TimeDelta" Width="148" IsVisible="true" />
        <Column Name="Channel" Width="89" IsVisible="true" />
        <Column Name="Stack" Width="106" IsVisible="true" />
        <Column Name="Layer" Width="94" IsVisible="true" />
        <Column Name="PacketType" Width="269" IsVisible="true" />
        <Column Name="PanSrc" Width="54" IsVisible="false" />
        <Column Name="PanDst" Width="55" IsVisible="false" />
        <Column Name="MacSrc" Width="110" IsVisible="true" />
        <Column Name="MacDst" Width="109" IsVisible="true" />
        <Column Name="MacSeq" Width="95" IsVisible="true" />
        <Column Name="NwkSrc" Width="58" IsVisible="false" />
        <Column Name="NwkDst" Width="60" IsVisible="false" />
        <Column Name="NwkSeq" Width="62" IsVisible="false" />
        <Column Name="Group" Width="43" IsVisible="false" />
        <Column Name="ApsCounter" Width="75" IsVisible="false" />
        <Column Name="Security" Width="53" IsVisible="false" />
        <Column Name="Source" Width="50" IsVisible="false" />
      </Columns>
      <WindowLayout>
        <DockPanel FormatVersion="1.0" DockLeftPortion="0.24375" DockRightPortion="0.0202883205863608" DockTopPortion="0.25" DockBottomPortion="0.25" ActiveDocumentPane="0" ActivePane="1">
          <Contents Count="7">
            <Content ID="0" PersistString="Ubilogix.Ubiqua.Views.Traffic.TrafficView" AutoHidePortion="0.25" IsHidden="False" IsFloat="False" />
            <Content ID="1" PersistString="Ubilogix.Ubiqua.Views.Devices.Manager.DeviceManagerView" AutoHidePortion="200" IsHidden="False" IsFloat="False" />
            <Content ID="2" PersistString="Ubilogix.Ubiqua.Views.NetworkExplorer.NetworkExplorerView" AutoHidePortion="0.25" IsHidden="True" IsFloat="False" />
            <Content ID="3" PersistString="Ubilogix.Ubiqua.Views.Graphic.GraphicView" AutoHidePortion="0.25" IsHidden="False" IsFloat="False" />
            <Content ID="4" PersistString="Ubilogix.Ubiqua.Views.Packet.PacketView" AutoHidePortion="0.25" IsHidden="True" IsFloat="False" />
            <Content ID="5" PersistString="Ubilogix.Ubiqua.Views.Watch.WatchView" AutoHidePortion="0.25" IsHidden="True" IsFloat="False" />
            <Content ID="6" PersistString="Ubilogix.Ubiqua.Views.Info.InfoView" AutoHidePortion="0.25" IsHidden="True" IsFloat="False" />
          </Contents>
          <Panes Count="8">
            <Pane ID="0" DockState="Document" ActiveContent="0">
              <Contents Count="1">
                <Content ID="0" RefID="0" />
              </Contents>
            </Pane>
            <Pane ID="1" DockState="DockLeft" ActiveContent="1">
              <Contents Count="1">
                <Content ID="0" RefID="1" />
              </Contents>
            </Pane>
            <Pane ID="2" DockState="DockLeft" ActiveContent="-1">
              <Contents Count="1">
                <Content ID="0" RefID="2" />
              </Contents>
            </Pane>
            <Pane ID="3" DockState="DockLeft" ActiveContent="3">
              <Contents Count="1">
                <Content ID="0" RefID="3" />
              </Contents>
            </Pane>
            <Pane ID="4" DockState="DockRight" ActiveContent="-1">
              <Contents Count="1">
                <Content ID="0" RefID="4" />
              </Contents>
            </Pane>
            <Pane ID="5" DockState="DockRight" ActiveContent="-1">
              <Contents Count="1">
                <Content ID="0" RefID="5" />
              </Contents>
            </Pane>
            <Pane ID="6" DockState="DockRight" ActiveContent="-1">
              <Contents Count="1">
                <Content ID="0" RefID="6" />
              </Contents>
            </Pane>
            <Pane ID="7" DockState="Float" ActiveContent="-1">
              <Contents Count="1">
                <Content ID="0" RefID="3" />
              </Contents>
            </Pane>
          </Panes>
          <DockWindows>
            <DockWindow ID="0" DockState="Document" ZOrderIndex="1">
              <NestedPanes Count="1">
                <Pane ID="0" RefID="0" PrevPane="-1" Alignment="Right" Proportion="0.5" />
              </NestedPanes>
            </DockWindow>
            <DockWindow ID="1" DockState="DockLeft" ZOrderIndex="2">
              <NestedPanes Count="3">
                <Pane ID="0" RefID="1" PrevPane="-1" Alignment="Bottom" Proportion="0.5" />
                <Pane ID="1" RefID="3" PrevPane="1" Alignment="Bottom" Proportion="0.699999988079071" />
                <Pane ID="2" RefID="2" PrevPane="3" Alignment="Top" Proportion="0.300000011920929" />
              </NestedPanes>
            </DockWindow>
            <DockWindow ID="2" DockState="DockRight" ZOrderIndex="3">
              <NestedPanes Count="3">
                <Pane ID="0" RefID="4" PrevPane="-1" Alignment="Bottom" Proportion="0.5" />
                <Pane ID="1" RefID="5" PrevPane="4" Alignment="Bottom" Proportion="0.200000002980232" />
                <Pane ID="2" RefID="6" PrevPane="4" Alignment="Bottom" Proportion="0.400000005960464" />
              </NestedPanes>
            </DockWindow>
            <DockWindow ID="3" DockState="DockTop" ZOrderIndex="4">
              <NestedPanes Count="0" />
            </DockWindow>
            <DockWindow ID="4" DockState="DockBottom" ZOrderIndex="5">
              <NestedPanes Count="0" />
            </DockWindow>
          </DockWindows>
          <FloatWindows Count="1">
            <FloatWindow ID="0" Bounds="39, 487, 300, 300" ZOrderIndex="0">
              <NestedPanes Count="1">
                <Pane ID="0" RefID="7" PrevPane="-1" Alignment="Right" Proportion="0.5" />
              </NestedPanes>
            </FloatWindow>
          </FloatWindows>
        </DockPanel>
      </WindowLayout>
      <SecurityKeys version="2">
        <Key keyID="00000000000000000000000000000000">
          <KeyType>NetworkKey</KeyType>
          <Key>00000000000000000000000000000000</Key>
        </Key>
        <Key keyID="11131517191B1D1F10121416181A1C1D">
          <KeyType>NetworkKey</KeyType>
          <Key>11131517191B1D1F10121416181A1C1D</Key>
        </Key>
      </SecurityKeys>
      <Filters />
      <Autosave>
        <IsEnabled>false</IsEnabled>
        <Interval>1</Interval>
      </Autosave>
      <WatchItems />
      <Services>
        <Service Name="RemoteControl">
          <Enabled>false</Enabled>
          <AuthRequired>false</AuthRequired>
          <Username />
          <Password></Password>
          <Port>19501</Port>
        </Service>
      </Services>
      <UbiquaAddressRelation>
        <AddressRelation>
          <LongAddress>0000000000000000</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
            <ShortAddress>09DE</ShortAddress>
            <ShortAddress>3F04</ShortAddress>
            <ShortAddress>55DB</ShortAddress>
            <ShortAddress>5B6E</ShortAddress>
            <ShortAddress>7B4A</ShortAddress>
            <ShortAddress>844B</ShortAddress>
            <ShortAddress>A02D</ShortAddress>
            <ShortAddress>A54E</ShortAddress>
            <ShortAddress>AF5B</ShortAddress>
            <ShortAddress>BAE0</ShortAddress>
            <ShortAddress>C559</ShortAddress>
            <ShortAddress>F2C2</ShortAddress>
            <ShortAddress>F76E</ShortAddress>
            <ShortAddress>FFFE</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress>00124B00132CE4E9</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
            <ShortAddress>042E</ShortAddress>
            <ShortAddress>42B3</ShortAddress>
            <ShortAddress>42B9</ShortAddress>
            <ShortAddress>59E7</ShortAddress>
            <ShortAddress>634A</ShortAddress>
            <ShortAddress>6B70</ShortAddress>
            <ShortAddress>71B7</ShortAddress>
            <ShortAddress>7EA8</ShortAddress>
            <ShortAddress>B5F0</ShortAddress>
            <ShortAddress>F2C2</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress>00124B001D21CA56</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
            <ShortAddress>037C</ShortAddress>
            <ShortAddress>09DE</ShortAddress>
            <ShortAddress>0EBF</ShortAddress>
            <ShortAddress>1334</ShortAddress>
            <ShortAddress>1740</ShortAddress>
            <ShortAddress>1B0B</ShortAddress>
            <ShortAddress>2A83</ShortAddress>
            <ShortAddress>2F20</ShortAddress>
            <ShortAddress>3F04</ShortAddress>
            <ShortAddress>440A</ShortAddress>
            <ShortAddress>49EB</ShortAddress>
            <ShortAddress>4F57</ShortAddress>
            <ShortAddress>5193</ShortAddress>
            <ShortAddress>55DB</ShortAddress>
            <ShortAddress>5821</ShortAddress>
            <ShortAddress>5AAD</ShortAddress>
            <ShortAddress>5D82</ShortAddress>
            <ShortAddress>7B4A</ShortAddress>
            <ShortAddress>9A85</ShortAddress>
            <ShortAddress>9DBB</ShortAddress>
            <ShortAddress>A6B9</ShortAddress>
            <ShortAddress>AC14</ShortAddress>
            <ShortAddress>AF5B</ShortAddress>
            <ShortAddress>BAE0</ShortAddress>
            <ShortAddress>BEB6</ShortAddress>
            <ShortAddress>BF52</ShortAddress>
            <ShortAddress>E455</ShortAddress>
            <ShortAddress>EB10</ShortAddress>
            <ShortAddress>F5DE</ShortAddress>
            <ShortAddress>F76E</ShortAddress>
            <ShortAddress>FEE5</ShortAddress>
            <ShortAddress>FF76</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress>00124B001D6774EB</LongAddress>
          <ShortAddressList>
            <ShortAddress>0000</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress>00124B001D7AE36B</LongAddress>
          <ShortAddressList>
            <ShortAddress>207E</ShortAddress>
            <ShortAddress>5B6E</ShortAddress>
            <ShortAddress>A345</ShortAddress>
            <ShortAddress>F720</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
        <AddressRelation>
          <LongAddress>00124B001D7AF4BF</LongAddress>
          <ShortAddressList>
            <ShortAddress>7AD3</ShortAddress>
            <ShortAddress>7F13</ShortAddress>
          </ShortAddressList>
        </AddressRelation>
      </UbiquaAddressRelation>
    </Config>

  • 协调器應該要用bdb_StartCommissioning( BDB_COMMISSIONING_MODE_NWK_FORMATION|BDB_COMMISSIONING_MODE_NWK_STEERING );
  • 用的您给我的方法,之后还是不行,下面是我的抓包数据

    麻烦您分析一下,谢谢。

  • 你的抓包文件打不开但是现在看到是你的截图是入网成功的,请发送cubx或者packet sniffer 的抓包
  • 把芯片都erase一下再重试一次
  • 您好,如果我入网成功了,那为什么没有 device announce ,我也调用事件注册了 bdb_RegisterCommissioningStatusCB( zclGenericApp_ProcessCommissioningStatus ); (这个在之前的帖子看到的。) 还有就是 抓包的数据 也没有显示链接的状态。 还有就是请问您怎末看出了 入网成功的?
  • 可能你没抓到,请erase 芯片重新烧录并抓包。
  • 如果有問題,請附上抓包檔,不要用截圖
  • erase 一下了,在终端 入网失败那打断点 ,会执行到达此段点,说明没有成功 。
  • 請附上抓包檔
  • https://e2echina.ti.com/cfs-file/__key/communityserver-discussions-components-files/104/_93620553E14F6F60_.7z

  • 你除了在z-stack 3.0.2 GenericApp 例程上面的 zclGenericApp_Init()的最下面加了

    协调器

    bdb_StartCommissioning( BDB_COMMISSIONING_MODE_NWK_FORMATION );
    NLME_PermitJoiningRequest(0xff);

    终端

    bdb_StartCommissioning(BDB_COMMISSIONING_MODE_NWK_STEERING);

    還有改動到什麼源碼?
    另外我有建議你把协调器的

    bdb_StartCommissioning( BDB_COMMISSIONING_MODE_NWK_FORMATION );
    NLME_PermitJoiningRequest(0xff);
    改成
    bdb_StartCommissioning( BDB_COMMISSIONING_MODE_NWK_FORMATION|BDB_COMMISSIONING_MODE_NWK_STEERING );
    你有試試嗎?
  • 入网问题因该是解决了,但是具体的抓包数据的分析还没有搞明白,什么时候是一直入着网,什么时候终端掉线。现在在进行下一步的数要实现数据的交互,不知道您有没有好的建议?
  • 建議你用Ubiqua 或是wireshark比較好分析抓包
  • 现在就是用的Ubiqua 来抓取的数据包,关于数据分析这块又很少的资料可以参考。
  • 数据分析你可以參考Zigbee spec對應去分析